📄 deliver.h
字号:
#pragma once
#include "dbbase.h"
#include "infClass.h"
#include "ProductResultInput.h"
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace FAP
{
/// <summary>
/// Deliver 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class Deliver : public System::Windows::Forms::Form
{
public:
Deliver(void)
{
InitializeComponent();
}
Deliver(infClass * infClsTmp, int intTmp)
{
InitializeComponent();
infClsDeliver = infClsTmp;
iLanguage=infClsDeliver->intLang;
DBDeliver = new DBBase();
intSAP = intTmp;
}
Deliver(infClass * infClsTmp, int intTmp, DataRow *dRowTmp)
{
InitializeComponent();
infClsDeliver = infClsTmp;
iLanguage=infClsDeliver->intLang;
DBDeliver = new DBBase();
intSAP = intTmp;
dRowSAP = dRowTmp;
}
private: System::Windows::Forms::ComboBox * cmbUnit;
private: System::Windows::Forms::Label * label8;
private: System::Windows::Forms::Label * lablot;
public: System::Windows::Forms::Label * labnumber;
private: System::Windows::Forms::ComboBox * comboBox1;
private: System::Windows::Forms::DataGrid * DBGridSim;
public:
void messageShow();
static String * strGetDelFromName(String *,int,DBBase *);
static String * strGetCostmst(String *,int,DBBase *);
String * strGetProName(String * strProCode);
String * strlot;
//检查数量的批次号是不是大于库存数
bool strchecklotnumber(int strstockqty,DBBase * DBTmp,String * strproductcode);
//返回库存的批次号,采用先进先出
void strGetSplitLot(int strstockqty,DBBase * DBTmp,String * strproductcode);
String * strGetprocessno2(String * strProcessCode,DBBase * DBTmp);
static int intGetStockNum(String * strStoreNo,String *strProCode,DBBase *,String *,int);
bool blnRankCheck();
bool blnInsertDel(String * strFactory, String * strOriginCode,
String * strDesCode,String * ProCode,
String * strRank,Single intNum,
int intPartsDiv,String * strDelDate,
String * strShift, String * ,int intpastrna,String * strstrvpe,String * strvteb);
static DataTable * strGetProcessno1(DBBase * dBTMP,String *strfeng);
//返回物料的单位
static DataTable * strGetPartsPC(DBBase * dBTMP,String *strfeng);
String * sinNumber(String * strVLong,String * startS,String * EndS);
void intprintview();
private:bool iflag;
void InitGrid(int intLang);
void setGridPartsMst();
bool CreateViewFAP(String * strFilename);
DataSet* oDataSet;
DataView* oDataView;
void OutputExcel();
String *saG_stock_qty __gc[];
String *saG_stock_ymd __gc[];
private :void begin();
private: System::Windows::Forms::TextBox * txtLot;
private: System::Windows::Forms::ComboBox * txtProCode;
private: System::Windows::Forms::Label * label7;
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Label * lbl_Title;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::Label * label6;
private: System::Windows::Forms::TextBox * txtFromNo;
private: System::Windows::Forms::TextBox * txtDate;
private: System::Windows::Forms::TextBox * txtQuanity;
private: System::Windows::Forms::TextBox * txtRank;
private: System::Windows::Forms::TextBox * txtToNo;
private: System::Windows::Forms::Button * cmdClose;
private: System::Windows::Forms::Button * cmdOK;
private: System::Windows::Forms::TextBox * txtToName;
private: System::Windows::Forms::TextBox * txtFromName;
private: System::Windows::Forms::Button * button1;
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -