📄 returnstockcheck.h
字号:
#pragma once
#include "DBBase.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>
/// ReturnStockCheck 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class ReturnStockCheck : public System::Windows::Forms::Form
{
public:
ReturnStockCheck(void)
{
InitializeComponent();
}
ReturnStockCheck(String* strD_CD, String* strD_Name, String* strS_CD,
String* strS_Name, String* strP_CD, String* strP_Name,
String* strDeliver_ymd, Decimal intD_QTY,
Decimal intType, String* strRank, String* strFactory, String* chrShift,String* strD_LOT)
{
InitializeComponent();
sFrom_Code = strD_CD;
sFrom_Name = strD_Name;
sStock_Code = strS_CD;
sStock_Name = strS_Name;
sProd_Code = strP_CD;
sProd_Name = strP_Name;
sDeliver_ymd = strDeliver_ymd;
iQTY = intD_QTY;
iType = intType;
sRank = strRank;
sFactory = strFactory;
cShift = chrShift;
sFrom_LOT = strD_LOT;
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private:
//Global Palameter
int iLanguage;
String* sFactory;
String* sLine;
String* sProcess;
int iGroup;
String* cShift;
String* sFrom_Code; //Return from
String* sFrom_Name;
String* sStock_Code; //Stock to
String* sStock_Name;
String* sProd_Code;
String* sProd_Name;
String* sDeliver_ymd;
String* sStock_ymd;
Decimal iQTY;
Decimal iType;
String* sRank;
String* sFrom_LOT;
int iPart_Div;
String* sMemo;
DBBase* DB;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::Label * label6;
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::Button * btnAccept;
private: System::Windows::Forms::TextBox * textRank;
private: System::Windows::Forms::TextBox * textMemo;
private: System::Windows::Forms::Button * btnClose;
private: System::Windows::Forms::TextBox * textFrom;
private: System::Windows::Forms::TextBox * textFromName;
private: System::Windows::Forms::TextBox * textProdName;
private: System::Windows::Forms::TextBox * textProdCode;
private: System::Windows::Forms::TextBox * textChkDate;
private: System::Windows::Forms::TextBox * textQty;
private: System::Windows::Forms::TextBox * textRetDate;
private: System::Windows::Forms::Label * label7;
private: System::Windows::Forms::TextBox * txtstockLot;
private: System::Windows::Forms::Label * label8;
private:
void InitSystem(void);
void SetReturnData(void);
int CheckOriginStock(void);
int CheckDestStock(void);
bool UpdateReturn(void);
bool InsertOriginStock(void);
bool UpdateOriginStock(void);
bool InsertDestStock(void);
bool UpdateDestStock(void);
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::ReturnStockCheck));
this->btnAccept = new System::Windows::Forms::Button();
this->label5 = new System::Windows::Forms::Label();
this->label6 = new System::Windows::Forms::Label();
this->textChkDate = new System::Windows::Forms::TextBox();
this->textQty = new System::Windows::Forms::TextBox();
this->textRank = new System::Windows::Forms::TextBox();
this->textMemo = new System::Windows::Forms::TextBox();
this->btnClose = new System::Windows::Forms::Button();
this->label1 = new System::Windows::Forms::Label();
this->label2 = new System::Windows::Forms::Label();
this->label3 = new System::Windows::Forms::Label();
this->label4 = new System::Windows::Forms::Label();
this->textFrom = new System::Windows::Forms::TextBox();
this->textProdCode = new System::Windows::Forms::TextBox();
this->textFromName = new System::Windows::Forms::TextBox();
this->textProdName = new System::Windows::Forms::TextBox();
this->textRetDate = new System::Windows::Forms::TextBox();
this->label8 = new System::Windows::Forms::Label();
this->label7 = new System::Windows::Forms::Label();
this->txtstockLot = new System::Windows::Forms::TextBox();
this->SuspendLayout();
//
// btnAccept
//
this->btnAccept->AccessibleDescription = resources->GetString(S"btnAccept.AccessibleDescription");
this->btnAccept->AccessibleName = resources->GetString(S"btnAccept.AccessibleName");
this->btnAccept->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"btnAccept.Anchor")));
this->btnAccept->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"btnAccept.BackgroundImage")));
this->btnAccept->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"btnAccept.Dock")));
this->btnAccept->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"btnAccept.Enabled")));
this->btnAccept->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"btnAccept.FlatStyle")));
this->btnAccept->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"btnAccept.Font")));
this->btnAccept->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"btnAccept.Image")));
this->btnAccept->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"btnAccept.ImageAlign")));
this->btnAccept->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"btnAccept.ImageIndex")));
this->btnAccept->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"btnAccept.ImeMode")));
this->btnAccept->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"btnAccept.Location")));
this->btnAccept->Name = S"btnAccept";
this->btnAccept->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"btnAccept.RightToLeft")));
this->btnAccept->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"btnAccept.Size")));
this->btnAccept->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"btnAccept.TabIndex")));
this->btnAccept->Text = resources->GetString(S"btnAccept.Text");
this->btnAccept->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"btnAccept.TextAlign")));
this->btnAccept->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"btnAccept.Visible")));
this->btnAccept->Click += new System::EventHandler(this, btnAccept_Click);
//
// label5
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -