📄 frmmodifyresult.h
字号:
#pragma once
#include "infClass.h"
#include "DBBase.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>
/// Summary for frmModifyResult
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public __gc class frmModifyResult : public System::Windows::Forms::Form
{
public:
frmModifyResult(void)
{
InitializeComponent();
}
frmModifyResult(infClass * infClsTmp)
{
InitializeComponent();
oDB = new DBBase() ;
oDB1= new DBBase() ;
oInf = infClsTmp;
iLanguage = oInf->intLang;
sFactory = oInf->strFactoryCode;
sLine = oInf->strLine;
sProcess = oInf->strProcess;
iGroup = oInf->intGroup;
cShift = oInf->strShift;
}
//
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Label * label6;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Button * button1;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private: int insiderank;//decide which person of rank enter into this form,value 0 is for worker,1,2 is sequently for mananger and administrator
int iLanguage;
String* sFactory;
String* sLine;
String* sProcess;
int iGroup;
String* cShift;
infClass* oInf;
public:
DBBase* oDB;
DBBase* oDB1;
private: System::Windows::Forms::DataGrid * GModifyResult;
private: System::Windows::Forms::DateTimePicker * DtpEnd;
private: System::Windows::Forms::DateTimePicker * Dtpstart;
private: System::Windows::Forms::ComboBox * cmbShift;
private: System::Windows::Forms::ComboBox * cmbLine;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::Label * label7;
private: System::Windows::Forms::ComboBox * cmbproduct;
private: System::Windows::Forms::TextBox * txtProName;
private: System::Windows::Forms::Label * label8;
private: System::Windows::Forms::TextBox * txtQuantity;
private: System::Windows::Forms::Label * label9;
private: System::Windows::Forms::Label * label10;
private: System::Windows::Forms::Label * label11;
private: System::Windows::Forms::Label * label12;
private: System::Windows::Forms::Label * label13;
private: System::Windows::Forms::ComboBox * cmbproduct1;
private: System::Windows::Forms::ComboBox * cmbLine1;
private: System::Windows::Forms::ComboBox * cmbShift1;
private: System::Windows::Forms::ComboBox * cmbTeam1;
private: System::Windows::Forms::TextBox * txtLot1;
private: System::Windows::Forms::Button * btnOK;
private: System::Windows::Forms::Button * btnmodify;
private: System::Windows::Forms::Button * btnClose;
private: System::Windows::Forms::Label * labproduct;
private: System::Windows::Forms::Label * labqty;
private: System::Windows::Forms::Button * btncancl;
private: System::Windows::Forms::Label * labYmd;
private: System::Windows::Forms::ComboBox * cmbTeam;
void InitGrid(int intLang);
void InitcmbTeam(int intLang);
void InitcmbLine(int intLang);
void InitcmbShift(int intLang);
bool EditGridoCell();
void setGridProudct(DBBase * DBTmp,int intLang,String * PsMMstart,String * PsMMEnd,int PsShift,int PsLine,int PsTeam);
bool updateresult(DBBase * DBTmp,String * PsLot);
bool updateresultStockdata(DBBase * DBTmp,String * PsLot);
bool updateYStockdata(DBBase * DBTmp,String * partscode,String * productcode,Single sngCNum);
bool updateYStockdata1(DBBase * DBTmp,String * partscode,String * productcode,String * sngCNum);
bool deleteresult(DBBase * DBTmp,String * partscode);
bool deleteYf_result_note(DBBase * DBTmp);
bool blnChkCPart(String * strProcessNo,Single intInNum,String * strInRank, String * strProCode);
bool blnInstStockData(String *strProCode,String *strRank,Single intNum,String *strLot);
bool blnInstProData(String *strProCode,String * strRank,Single intNum,String *strOrder);
String * strGetStoreNo(String * strProcessCode,DBBase * DBTmp);
String * strPLine(int imidex);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -