📄 stockdeliverlist.h
字号:
#pragma once
#include "DBBase.h"
#include "infClass.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>
/// StockDeliverList 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class StockDeliverList : public System::Windows::Forms::Form
{
public:
StockDeliverList(void)
{
InitializeComponent();
}
StockDeliverList(infClass * infClsTmp,int iRank)
{
InitializeComponent();
oInf = infClsTmp;
flag=true;
iLanguage = oInf->intLang;
sFactory = oInf->strFactoryCode;
sLine = oInf->strLine;
sProcess = oInf->strProcess;
iGroup = oInf->intGroup;
cShift = oInf->strShift;
insideRank = iRank;
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
//special defined variable
private:
int iLanguage;
int insideRank;
String* sFactory;
String* sLine;
String* sProcess;
int iGroup;
String* cShift;
infClass* oInf;
DataSet* oDSet;
DBBase* oDB;
DataSet* oDataSet;
DataView* oDataView;
DataGridTableStyle* oTableStyle;
bool bfirstRun;
bool flag;
String * cFlag;
String * btnFlag;
//bool flagSelect;
static String* saShift[]= {S"'A','B'",S"'A'",S"'B'"};
int iLineIndex;//the value is when worker login ,it preserve original value of comboboxline's selection which decided by comboboxProcess
private: System::Windows::Forms::Button * button2;
private: System::Windows::Forms::Label * lbl_Title;
private: System::Windows::Forms::Button * button3;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::ComboBox * comboBoxLine;
private: System::Windows::Forms::ComboBox * comboBoxProcess;
private: System::Windows::Forms::ComboBox * comboBoxShift;
private: System::Windows::Forms::DataGrid * dataGridStockDeliverList;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::ComboBox * comboBox1;
private: System::Windows::Forms::DateTimePicker * dateTimePicker1;
private: System::Windows::Forms::DateTimePicker * dateTimePicker2;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::Label * label6;
private: System::Windows::Forms::Button * button1;
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::StockDeliverList));
this->button2 = new System::Windows::Forms::Button();
this->dataGridStockDeliverList = new System::Windows::Forms::DataGrid();
this->lbl_Title = new System::Windows::Forms::Label();
this->button3 = new System::Windows::Forms::Button();
this->comboBoxLine = new System::Windows::Forms::ComboBox();
this->label1 = new System::Windows::Forms::Label();
this->label2 = new System::Windows::Forms::Label();
this->comboBoxProcess = new System::Windows::Forms::ComboBox();
this->comboBoxShift = new System::Windows::Forms::ComboBox();
this->label3 = new System::Windows::Forms::Label();
this->label4 = new System::Windows::Forms::Label();
this->comboBox1 = new System::Windows::Forms::ComboBox();
this->dateTimePicker1 = new System::Windows::Forms::DateTimePicker();
this->dateTimePicker2 = new System::Windows::Forms::DateTimePicker();
this->label5 = new System::Windows::Forms::Label();
this->label6 = new System::Windows::Forms::Label();
this->button1 = new System::Windows::Forms::Button();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGridStockDeliverList))->BeginInit();
this->SuspendLayout();
//
// button2
//
this->button2->AccessibleDescription = resources->GetString(S"button2.AccessibleDescription");
this->button2->AccessibleName = resources->GetString(S"button2.AccessibleName");
this->button2->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"button2.Anchor")));
this->button2->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"button2.BackgroundImage")));
this->button2->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"button2.Dock")));
this->button2->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"button2.Enabled")));
this->button2->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"button2.FlatStyle")));
this->button2->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"button2.Font")));
this->button2->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"button2.Image")));
this->button2->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"button2.ImageAlign")));
this->button2->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"button2.ImageIndex")));
this->button2->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"button2.ImeMode")));
this->button2->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"button2.Location")));
this->button2->Name = S"button2";
this->button2->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"button2.RightToLeft")));
this->button2->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"button2.Size")));
this->button2->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"button2.TabIndex")));
this->button2->Text = resources->GetString(S"button2.Text");
this->button2->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"button2.TextAlign")));
this->button2->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"button2.Visible")));
this->button2->Click += new System::EventHandler(this, button2_Click);
//
// dataGridStockDeliverList
//
this->dataGridStockDeliverList->AccessibleDescription = resources->GetString(S"dataGridStockDeliverList.AccessibleDescription");
this->dataGridStockDeliverList->AccessibleName = resources->GetString(S"dataGridStockDeliverList.AccessibleName");
this->dataGridStockDeliverList->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"dataGridStockDeliverList.Anchor")));
this->dataGridStockDeliverList->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"dataGridStockDeliverList.BackgroundImage")));
this->dataGridStockDeliverList->CaptionFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dataGridStockDeliverList.CaptionFont")));
this->dataGridStockDeliverList->CaptionText = resources->GetString(S"dataGridStockDeliverList.CaptionText");
this->dataGridStockDeliverList->CaptionVisible = false;
this->dataGridStockDeliverList->DataMember = S"";
this->dataGridStockDeliverList->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"dataGridStockDeliverList.Dock")));
this->dataGridStockDeliverList->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dataGridStockDeliverList.Enabled")));
this->dataGridStockDeliverList->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dataGridStockDeliverList.Font")));
this->dataGridStockDeliverList->HeaderForeColor = System::Drawing::SystemColors::ControlText;
this->dataGridStockDeliverList->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"dataGridStockDeliverList.ImeMode")));
this->dataGridStockDeliverList->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"dataGridStockDeliverList.Location")));
this->dataGridStockDeliverList->Name = S"dataGridStockDeliverList";
this->dataGridStockDeliverList->ReadOnly = true;
this->dataGridStockDeliverList->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"dataGridStockDeliverList.RightToLeft")));
this->dataGridStockDeliverList->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"dataGridStockDeliverList.Size")));
this->dataGridStockDeliverList->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"dataGridStockDeliverList.TabIndex")));
this->dataGridStockDeliverList->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dataGridStockDeliverList.Visible")));
//
// lbl_Title
//
this->lbl_Title->AccessibleDescription = resources->GetString(S"lbl_Title.AccessibleDescription");
this->lbl_Title->AccessibleName = resources->GetString(S"lbl_Title.AccessibleName");
this->lbl_Title->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"lbl_Title.Anchor")));
this->lbl_Title->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.AutoSize")));
this->lbl_Title->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"lbl_Title.Dock")));
this->lbl_Title->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.Enabled")));
this->lbl_Title->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"lbl_Title.Font")));
this->lbl_Title->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"lbl_Title.Image")));
this->lbl_Title->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbl_Title.ImageAlign")));
this->lbl_Title->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbl_Title.ImageIndex")));
this->lbl_Title->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"lbl_Title.ImeMode")));
this->lbl_Title->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"lbl_Title.Location")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -