📄 productresult.h
字号:
#pragma once
#include "DBBase.h"
#include "infClass.h"
#include "ProductResultInput.h"
#include "Deliver.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>
/// ProductResult 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class ProductResult : public System::Windows::Forms::Form
{
public:
ProductResult(void)
{
InitializeComponent();
}
ProductResult(infClass *infClsTmp)
{
InitializeComponent();
infClsPrd = infClsTmp;
DBPrdRst = new DBBase();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Label * lbl_Title;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Button * cmdDeliver;
protected private: System::Windows::Forms::DataGrid * DBGridPrd;
private: System::Windows::Forms::Button * cmdEnd;
private: System::Windows::Forms::TextBox * txtProcess;
private: System::Windows::Forms::TextBox * txtLine;
private: System::Windows::Forms::ComboBox * cboProcess;
private: System::Windows::Forms::ComboBox * cboLine;
private: System::Windows::Forms::Button * cmdInput;
private: System::Windows::Forms::DataGrid * DBGridSch;
private: ProductResultInput *pPrdRstIn;
private: DataTable *tblTmp;
private: DataTable *tblTmp1;
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
private: System::Windows::Forms::Button * button2;
infClass *infClsPrd;
void InitSimpleGird(int);
void InitDetailGrid(int);
private: System::Windows::Forms::Button * button1;
DBBase *DBPrdRst;
void setSchedule(String * strProcessNo,String * strLineNo);
void setCalendar(String * strProductCode);
String * strGetProcessName(String * strDelFromNo,int iLanguage);
String * strGetLineName(String * strDelFromNo,int iLanguage);
void setProcessCbo();
void setLineCbo();
String * strOrderNo;
String * strProCode ;
String * strOrderYmd;
String * strOrderLine;
/// <summary>
/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::ProductResult));
this->cmdDeliver = new System::Windows::Forms::Button();
this->DBGridPrd = new System::Windows::Forms::DataGrid();
this->lbl_Title = new System::Windows::Forms::Label();
this->cmdEnd = new System::Windows::Forms::Button();
this->label2 = new System::Windows::Forms::Label();
this->txtProcess = new System::Windows::Forms::TextBox();
this->label1 = new System::Windows::Forms::Label();
this->txtLine = new System::Windows::Forms::TextBox();
this->cboProcess = new System::Windows::Forms::ComboBox();
this->cboLine = new System::Windows::Forms::ComboBox();
this->cmdInput = new System::Windows::Forms::Button();
this->DBGridSch = new System::Windows::Forms::DataGrid();
this->button1 = new System::Windows::Forms::Button();
this->button2 = new System::Windows::Forms::Button();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->DBGridPrd))->BeginInit();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->DBGridSch))->BeginInit();
this->SuspendLayout();
//
// cmdDeliver
//
this->cmdDeliver->AccessibleDescription = resources->GetString(S"cmdDeliver.AccessibleDescription");
this->cmdDeliver->AccessibleName = resources->GetString(S"cmdDeliver.AccessibleName");
this->cmdDeliver->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"cmdDeliver.Anchor")));
this->cmdDeliver->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"cmdDeliver.BackgroundImage")));
this->cmdDeliver->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"cmdDeliver.Dock")));
this->cmdDeliver->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"cmdDeliver.Enabled")));
this->cmdDeliver->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"cmdDeliver.FlatStyle")));
this->cmdDeliver->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"cmdDeliver.Font")));
this->cmdDeliver->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"cmdDeliver.Image")));
this->cmdDeliver->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"cmdDeliver.ImageAlign")));
this->cmdDeliver->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"cmdDeliver.ImageIndex")));
this->cmdDeliver->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"cmdDeliver.ImeMode")));
this->cmdDeliver->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"cmdDeliver.Location")));
this->cmdDeliver->Name = S"cmdDeliver";
this->cmdDeliver->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"cmdDeliver.RightToLeft")));
this->cmdDeliver->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"cmdDeliver.Size")));
this->cmdDeliver->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"cmdDeliver.TabIndex")));
this->cmdDeliver->Text = resources->GetString(S"cmdDeliver.Text");
this->cmdDeliver->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"cmdDeliver.TextAlign")));
this->cmdDeliver->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"cmdDeliver.Visible")));
this->cmdDeliver->Click += new System::EventHandler(this, cmdDeliver_Click);
//
// DBGridPrd
//
this->DBGridPrd->AccessibleDescription = resources->GetString(S"DBGridPrd.AccessibleDescription");
this->DBGridPrd->AccessibleName = resources->GetString(S"DBGridPrd.AccessibleName");
this->DBGridPrd->AlternatingBackColor = System::Drawing::Color::IndianRed;
this->DBGridPrd->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"DBGridPrd.Anchor")));
this->DBGridPrd->BackgroundColor = System::Drawing::Color::LightGray;
this->DBGridPrd->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"DBGridPrd.BackgroundImage")));
this->DBGridPrd->CaptionFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"DBGridPrd.CaptionFont")));
this->DBGridPrd->CaptionText = resources->GetString(S"DBGridPrd.CaptionText");
this->DBGridPrd->CaptionVisible = false;
this->DBGridPrd->DataMember = S"";
this->DBGridPrd->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"DBGridPrd.Dock")));
this->DBGridPrd->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"DBGridPrd.Enabled")));
this->DBGridPrd->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"DBGridPrd.Font")));
this->DBGridPrd->HeaderForeColor = System::Drawing::SystemColors::ControlText;
this->DBGridPrd->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"DBGridPrd.ImeMode")));
this->DBGridPrd->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"DBGridPrd.Location")));
this->DBGridPrd->Name = S"DBGridPrd";
this->DBGridPrd->ReadOnly = true;
this->DBGridPrd->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"DBGridPrd.RightToLeft")));
this->DBGridPrd->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"DBGridPrd.Size")));
this->DBGridPrd->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"DBGridPrd.TabIndex")));
this->DBGridPrd->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"DBGridPrd.Visible")));
this->DBGridPrd->Click += new System::EventHandler(this, DBGridPrd_Click);
this->DBGridPrd->MouseUp += new System::Windows::Forms::MouseEventHandler(this, DBGridPrd_MouseUp);
this->DBGridPrd->Navigate += new System::Windows::Forms::NavigateEventHandler(this, DBGridPrd_Navigate);
this->DBGridPrd->CurrentCellChanged += new System::EventHandler(this, DBGridPrd_CurrentCellChanged);
this->DBGridPrd->Paint += new System::Windows::Forms::PaintEventHandler(this, DBGridPrd_Paint);
//
// 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")));
this->lbl_Title->Name = S"lbl_Title";
this->lbl_Title->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"lbl_Title.RightToLeft")));
this->lbl_Title->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"lbl_Title.Size")));
this->lbl_Title->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbl_Title.TabIndex")));
this->lbl_Title->Text = resources->GetString(S"lbl_Title.Text");
this->lbl_Title->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbl_Title.TextAlign")));
this->lbl_Title->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.Visible")));
//
// cmdEnd
//
this->cmdEnd->AccessibleDescription = resources->GetString(S"cmdEnd.AccessibleDescription");
this->cmdEnd->AccessibleName = resources->GetString(S"cmdEnd.AccessibleName");
this->cmdEnd->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"cmdEnd.Anchor")));
this->cmdEnd->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"cmdEnd.BackgroundImage")));
this->cmdEnd->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"cmdEnd.Dock")));
this->cmdEnd->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"cmdEnd.Enabled")));
this->cmdEnd->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"cmdEnd.FlatStyle")));
this->cmdEnd->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"cmdEnd.Font")));
this->cmdEnd->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"cmdEnd.Image")));
this->cmdEnd->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"cmdEnd.ImageAlign")));
this->cmdEnd->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"cmdEnd.ImageIndex")));
this->cmdEnd->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"cmdEnd.ImeMode")));
this->cmdEnd->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"cmdEnd.Location")));
this->cmdEnd->Name = S"cmdEnd";
this->cmdEnd->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"cmdEnd.RightToLeft")));
this->cmdEnd->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"cmdEnd.Size")));
this->cmdEnd->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"cmdEnd.TabIndex")));
this->cmdEnd->Text = resources->GetString(S"cmdEnd.Text");
this->cmdEnd->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"cmdEnd.TextAlign")));
this->cmdEnd->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"cmdEnd.Visible")));
this->cmdEnd->Click += new System::EventHandler(this, button3_Click);
//
// label2
//
this->label2->AccessibleDescription = resources->GetString(S"label2.AccessibleDescription");
this->label2->AccessibleName = resources->GetString(S"label2.AccessibleName");
this->label2->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"label2.Anchor")));
this->label2->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label2.AutoSize")));
this->label2->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"label2.Dock")));
this->label2->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label2.Enabled")));
this->label2->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"label2.Font")));
this->label2->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"label2.Image")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -