📄 stocklist.h
字号:
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Data::OleDb;
#include "DBBase.h"
#include "infClass.h"
#include "ProductResultInput.h"
#include "StockProcess.h"
namespace FAP
{
/// <summary>
/// StockList 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class StockList : public System::Windows::Forms::Form
{
public:
StockList(void)
{
InitializeComponent();
}
StockList(infClass *infTmp)
{
InitializeComponent();
dbStockList = new DBBase() ;
infStockList = infTmp;
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Label * lbl_Title;
private: System::Windows::Forms::Button * button3;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Button * cmdSearch;
private: System::Windows::Forms::ComboBox * txtProCode;
private: System::Windows::Forms::TreeView * trvBOM;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::TextBox * txtProName;
private: DBBase * dbStockList;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::ComboBox * comboBox2;
private: System::Windows::Forms::ComboBox * comboBox3;
private: long sumTotalPlan;
private: int selectFlag;
private: bool flgunit;
private: double sumTotalPlandouble;
public: void setUnit(String * productCode);
public: void doStockTypeSelect();
//DataRow* sumRow;
private: System::Windows::Forms::DataGrid * dGridStockList;
private: System::Windows::Forms::Button * button1;
private: System::Windows::Forms::Button * button5;
private: System::Windows::Forms::TextBox * textBox1;
private: System::Windows::Forms::DataGrid * dataGrid1;
private: System::Windows::Forms::ComboBox * comboBox1;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::TextBox * textBox2;
private: System::Windows::Forms::Button * cmdEdit;
private: System::Windows::Forms::Button * cmdPrint;
private: infClass *infStockList;
private: void FillTreeView(String*);
private: void FillDBGrid(String *);
private: void IniGrid(int);
private: int iflag;
private: void FillDBGrid2(String *strProCode,String * strCheck);
//
private: void IniGrid1(int intLang);
private: void FillDBGrid1();
private: void doSelectProcess();
private: String * strChoosen;
private: void selectProcess();
private: DataTable * dtblGetProcessPro(infClass *infTmp,DBBase * dBTMP);
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::StockList));
this->cmdPrint = new System::Windows::Forms::Button();
this->cmdSearch = new System::Windows::Forms::Button();
this->lbl_Title = new System::Windows::Forms::Label();
this->button3 = new System::Windows::Forms::Button();
this->cmdEdit = new System::Windows::Forms::Button();
this->label2 = new System::Windows::Forms::Label();
this->txtProCode = new System::Windows::Forms::ComboBox();
this->trvBOM = new System::Windows::Forms::TreeView();
this->dGridStockList = new System::Windows::Forms::DataGrid();
this->label1 = new System::Windows::Forms::Label();
this->txtProName = new System::Windows::Forms::TextBox();
this->button1 = new System::Windows::Forms::Button();
this->button5 = new System::Windows::Forms::Button();
this->textBox1 = new System::Windows::Forms::TextBox();
this->textBox2 = new System::Windows::Forms::TextBox();
this->dataGrid1 = new System::Windows::Forms::DataGrid();
this->comboBox1 = new System::Windows::Forms::ComboBox();
this->label3 = new System::Windows::Forms::Label();
this->label4 = new System::Windows::Forms::Label();
this->comboBox2 = new System::Windows::Forms::ComboBox();
this->comboBox3 = new System::Windows::Forms::ComboBox();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dGridStockList))->BeginInit();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGrid1))->BeginInit();
this->SuspendLayout();
//
// cmdPrint
//
this->cmdPrint->AccessibleDescription = resources->GetString(S"cmdPrint.AccessibleDescription");
this->cmdPrint->AccessibleName = resources->GetString(S"cmdPrint.AccessibleName");
this->cmdPrint->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"cmdPrint.Anchor")));
this->cmdPrint->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"cmdPrint.BackgroundImage")));
this->cmdPrint->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"cmdPrint.Dock")));
this->cmdPrint->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"cmdPrint.Enabled")));
this->cmdPrint->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"cmdPrint.FlatStyle")));
this->cmdPrint->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"cmdPrint.Font")));
this->cmdPrint->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"cmdPrint.Image")));
this->cmdPrint->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"cmdPrint.ImageAlign")));
this->cmdPrint->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"cmdPrint.ImageIndex")));
this->cmdPrint->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"cmdPrint.ImeMode")));
this->cmdPrint->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"cmdPrint.Location")));
this->cmdPrint->Name = S"cmdPrint";
this->cmdPrint->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"cmdPrint.RightToLeft")));
this->cmdPrint->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"cmdPrint.Size")));
this->cmdPrint->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"cmdPrint.TabIndex")));
this->cmdPrint->Text = resources->GetString(S"cmdPrint.Text");
this->cmdPrint->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"cmdPrint.TextAlign")));
this->cmdPrint->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"cmdPrint.Visible")));
//
// cmdSearch
//
this->cmdSearch->AccessibleDescription = resources->GetString(S"cmdSearch.AccessibleDescription");
this->cmdSearch->AccessibleName = resources->GetString(S"cmdSearch.AccessibleName");
this->cmdSearch->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"cmdSearch.Anchor")));
this->cmdSearch->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"cmdSearch.BackgroundImage")));
this->cmdSearch->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"cmdSearch.Dock")));
this->cmdSearch->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"cmdSearch.Enabled")));
this->cmdSearch->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"cmdSearch.FlatStyle")));
this->cmdSearch->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"cmdSearch.Font")));
this->cmdSearch->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"cmdSearch.Image")));
this->cmdSearch->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"cmdSearch.ImageAlign")));
this->cmdSearch->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"cmdSearch.ImageIndex")));
this->cmdSearch->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"cmdSearch.ImeMode")));
this->cmdSearch->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"cmdSearch.Location")));
this->cmdSearch->Name = S"cmdSearch";
this->cmdSearch->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"cmdSearch.RightToLeft")));
this->cmdSearch->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"cmdSearch.Size")));
this->cmdSearch->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"cmdSearch.TabIndex")));
this->cmdSearch->Text = resources->GetString(S"cmdSearch.Text");
this->cmdSearch->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"cmdSearch.TextAlign")));
this->cmdSearch->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"cmdSearch.Visible")));
this->cmdSearch->Click += new System::EventHandler(this, cmdSearch_Click);
//
// 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")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -