📄 stockcheck.h
字号:
#pragma once
#include "DBBase.h"
//Insert By KasenHOo @ 2005/12/16
#include "infClass.h"
#include "StockProcess.h"
//End By KasenHOo @ 2005/12/16
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>
/// StockCheck 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class StockCheck : public System::Windows::Forms::Form
{
private:
//Global Palameter
int iLanguage;
String* sFactory;
String* sLine;
String* sProcess;
int iGroup;
String* cShift;
int iNew;
String* sD_CD; //Deliver from
String* sD_Name;
String* sS_CD; //Stock to
String* sS_Name;
String* sP_CD;
String* sP_Name;
String* sDeliver_ymd;
String* sStock_ymd;
Decimal iD_QTY;
String* sLot;
String* sRank;
String* srowid1;
int iPart_Div;
int iSAP;
//Insert By KasenHOo @ 2005/12/16
infClass * infStockCheck;
//End By KasenHOo @ 2005/12/16
private: System::Windows::Forms::TextBox * textDestName;
private: System::Windows::Forms::Label * label6;
private: System::Windows::Forms::TextBox * textFrom;
private: System::Windows::Forms::TextBox * textFromName;
private: System::Windows::Forms::TextBox * textChkDate;
private: System::Windows::Forms::TextBox * textDelDate;
private: System::Windows::Forms::Label * label7;
private: System::Windows::Forms::TextBox * txtLot;
private: System::Windows::Forms::Label * label8;
private: System::Windows::Forms::TextBox * textBox3;
DBBase* DB;
private:
void InitSystem(void);
void SetDeliverStockData();
int CheckOriginStock(void);
int CheckDestStock(void);
bool InsertDeliver(void);
bool UpdateDeliver(void);
bool InsertOriginStock(void);
bool UpdateOriginStock(void);
bool InsertDestStock(void);
bool UpdateDestStock(void);
/* Add by KasenHOo @ 2005/11/29 */
bool blnUpdateLotNull();
public:
StockCheck(void)
{
InitializeComponent();
iNew = 1;
}
StockCheck(int intNew,
String* strD_CD, String* strD_Name, String* strS_CD,
String* strS_Name, String* strP_CD, String* strP_Name,
String* strDeliver_ymd, Decimal intD_QTY,
String* strLot, String* strRank, String* strFactory, String* chrShift,infClass * infTmp,String* strrowid)
{
InitializeComponent();
iNew = intNew;
sD_CD = strD_CD;
sD_Name = strD_Name;
sS_CD = strS_CD;
sS_Name = strS_Name;
sP_CD = strP_CD;
sP_Name = strP_Name;
sDeliver_ymd = strDeliver_ymd;
iD_QTY = intD_QTY;
sLot = strLot;
sRank = strRank;
sFactory = strFactory;
cShift = chrShift;
srowid1 =strrowid;
if (strD_CD->CompareTo(S"MA00")==0) {
iSAP = 1;
}
else{
iSAP = 0;
}
//Insert By KasenHOo @ 2005/12/16
infStockCheck = infTmp;
//End By KasenHOo @ 2005/12/16
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
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::TextBox * textDest;
private: System::Windows::Forms::TextBox * textProdCode;
private: System::Windows::Forms::TextBox * textQty;
private: System::Windows::Forms::TextBox * textRank;
private: System::Windows::Forms::TextBox * textProdName;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -