📄 plateusedinput.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>
/// PlateUsedInput 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class PlateUsedInput : public System::Windows::Forms::Form
{
public:
PlateUsedInput(void)
{
InitializeComponent();
}
PlateUsedInput(infClass * infClsTmp)
{
InitializeComponent();
DBBPlateList =new DBBase();
oInf = infClsTmp;
iLanguage = oInf->intLang;
sFactory = oInf->strFactoryCode;
sLine = oInf->strLine;
sProcess = oInf->strProcess;
iGroup = oInf->intGroup;
cShift = oInf->strShift;
}
private:
static String * strGetProName(String * strDelFromNo,
int iLanguage,
DBBase * DBbTmp); //get product name according to product code
//检查是否是数字
bool isNumber(String *strNumer);
void begin(void);
/*--------------------------------------
//判断生产实际数据是否有俩条相等的记录
(PRODUCT_RESULT_DATA)
return true 有
return false 无
----------------------------------------*/
bool strGetPRODUCTRESULTDATA(String * strDelFromNo,int iLanguage,DBBase * DBbTmp);
/*--------------------------------------
//部品表里面(PARTS_MST)是否有部件
return true 有
return false 无
----------------------------------------*/
bool strGetPARTSMST(String * strDelFromNo,int iLanguage,DBBase * DBbTmp);
/*--------------------------------------
//型号表里面(PLATE_DATA)是否有相同的连续号
return true 有
return false 无
----------------------------------------*/
bool strGetPLATEDATA(String * strDelFromNo,int iLanguage,DBBase * DBbTmp);
String *strGetLineName(String *strSelectComLine,DBBase * DBbTmp);
//更新生产实际表
bool strUpdatePRODUCTRESULTDATA();
//更新型号表
bool strUpdatePLATEDATA();
private:
//Global Palameter
int iLanguage;
String* sFactory;
String* sLine;
String* sProcess;
int iGroup;
String* cShift;
infClass* oInf;
DBBase * DBBPlateList;
DBBase * DBBRstInExec; //For SQL Execute with transation
String __gc *abc[];
String * SdayTime;
int iinf;
String *strcombLine;
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::Label * label6;
private: System::Windows::Forms::Button * button2;
private: System::Windows::Forms::Button * button3;
private: System::Windows::Forms::Label * lbl_Title;
private: System::Windows::Forms::Label * label7;
private: System::Windows::Forms::Label * label8;
private: System::Windows::Forms::TextBox * txtToday;
private: System::Windows::Forms::ComboBox * combTeam;
private: System::Windows::Forms::ComboBox * combLine;
private: System::Windows::Forms::TextBox * textProductName;
private: System::Windows::Forms::TextBox * txtProName;
private: System::Windows::Forms::TextBox * textlot;
private: System::Windows::Forms::TextBox * textSerialStart;
private: System::Windows::Forms::TextBox * textSerialEnd;
private: System::Windows::Forms::TextBox * textQTY;
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::PlateUsedInput));
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->label5 = new System::Windows::Forms::Label();
this->label6 = new System::Windows::Forms::Label();
this->textProductName = new System::Windows::Forms::TextBox();
this->txtToday = new System::Windows::Forms::TextBox();
this->textQTY = new System::Windows::Forms::TextBox();
this->textlot = new System::Windows::Forms::TextBox();
this->txtProName = new System::Windows::Forms::TextBox();
this->button2 = new System::Windows::Forms::Button();
this->button3 = new System::Windows::Forms::Button();
this->lbl_Title = new System::Windows::Forms::Label();
this->label7 = new System::Windows::Forms::Label();
this->textSerialStart = new System::Windows::Forms::TextBox();
this->textSerialEnd = new System::Windows::Forms::TextBox();
this->label8 = new System::Windows::Forms::Label();
this->combTeam = new System::Windows::Forms::ComboBox();
this->combLine = new System::Windows::Forms::ComboBox();
this->SuspendLayout();
//
// label1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -