platestocklist.h

来自「这是一个工厂的生产线的仓库管理.有计划,实绩,库存等」· C头文件 代码 · 共 392 行 · 第 1/2 页

H
392
字号
			this->showResultGrid->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"showResultGrid.Enabled")));
			this->showResultGrid->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"showResultGrid.Font")));
			this->showResultGrid->HeaderForeColor = System::Drawing::SystemColors::ControlText;
			this->showResultGrid->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"showResultGrid.ImeMode")));
			this->showResultGrid->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"showResultGrid.Location")));
			this->showResultGrid->Name = S"showResultGrid";
			this->showResultGrid->ReadOnly = true;
			this->showResultGrid->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"showResultGrid.RightToLeft")));
			this->showResultGrid->RowHeadersVisible = false;
			this->showResultGrid->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"showResultGrid.Size")));
			this->showResultGrid->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"showResultGrid.TabIndex")));
			this->showResultGrid->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"showResultGrid.Visible")));
			// 
			// btnPlateProductInput
			// 
			this->btnPlateProductInput->AccessibleDescription = resources->GetString(S"btnPlateProductInput.AccessibleDescription");
			this->btnPlateProductInput->AccessibleName = resources->GetString(S"btnPlateProductInput.AccessibleName");
			this->btnPlateProductInput->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"btnPlateProductInput.Anchor")));
			this->btnPlateProductInput->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btnPlateProductInput.BackgroundImage")));
			this->btnPlateProductInput->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"btnPlateProductInput.Dock")));
			this->btnPlateProductInput->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btnPlateProductInput.Enabled")));
			this->btnPlateProductInput->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"btnPlateProductInput.FlatStyle")));
			this->btnPlateProductInput->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"btnPlateProductInput.Font")));
			this->btnPlateProductInput->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btnPlateProductInput.Image")));
			this->btnPlateProductInput->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btnPlateProductInput.ImageAlign")));
			this->btnPlateProductInput->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btnPlateProductInput.ImageIndex")));
			this->btnPlateProductInput->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"btnPlateProductInput.ImeMode")));
			this->btnPlateProductInput->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"btnPlateProductInput.Location")));
			this->btnPlateProductInput->Name = S"btnPlateProductInput";
			this->btnPlateProductInput->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"btnPlateProductInput.RightToLeft")));
			this->btnPlateProductInput->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"btnPlateProductInput.Size")));
			this->btnPlateProductInput->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btnPlateProductInput.TabIndex")));
			this->btnPlateProductInput->Text = resources->GetString(S"btnPlateProductInput.Text");
			this->btnPlateProductInput->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btnPlateProductInput.TextAlign")));
			this->btnPlateProductInput->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btnPlateProductInput.Visible")));
			this->btnPlateProductInput->Click += new System::EventHandler(this, btnPlateProductInput_Click);
			// 
			// btnPlateUsedInput
			// 
			this->btnPlateUsedInput->AccessibleDescription = resources->GetString(S"btnPlateUsedInput.AccessibleDescription");
			this->btnPlateUsedInput->AccessibleName = resources->GetString(S"btnPlateUsedInput.AccessibleName");
			this->btnPlateUsedInput->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"btnPlateUsedInput.Anchor")));
			this->btnPlateUsedInput->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btnPlateUsedInput.BackgroundImage")));
			this->btnPlateUsedInput->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"btnPlateUsedInput.Dock")));
			this->btnPlateUsedInput->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btnPlateUsedInput.Enabled")));
			this->btnPlateUsedInput->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"btnPlateUsedInput.FlatStyle")));
			this->btnPlateUsedInput->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"btnPlateUsedInput.Font")));
			this->btnPlateUsedInput->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btnPlateUsedInput.Image")));
			this->btnPlateUsedInput->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btnPlateUsedInput.ImageAlign")));
			this->btnPlateUsedInput->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btnPlateUsedInput.ImageIndex")));
			this->btnPlateUsedInput->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"btnPlateUsedInput.ImeMode")));
			this->btnPlateUsedInput->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"btnPlateUsedInput.Location")));
			this->btnPlateUsedInput->Name = S"btnPlateUsedInput";
			this->btnPlateUsedInput->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"btnPlateUsedInput.RightToLeft")));
			this->btnPlateUsedInput->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"btnPlateUsedInput.Size")));
			this->btnPlateUsedInput->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btnPlateUsedInput.TabIndex")));
			this->btnPlateUsedInput->Text = resources->GetString(S"btnPlateUsedInput.Text");
			this->btnPlateUsedInput->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btnPlateUsedInput.TextAlign")));
			this->btnPlateUsedInput->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btnPlateUsedInput.Visible")));
			this->btnPlateUsedInput->Click += new System::EventHandler(this, btnPlateUsedInput_Click);
			// 
			// btnPrintData
			// 
			this->btnPrintData->AccessibleDescription = resources->GetString(S"btnPrintData.AccessibleDescription");
			this->btnPrintData->AccessibleName = resources->GetString(S"btnPrintData.AccessibleName");
			this->btnPrintData->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"btnPrintData.Anchor")));
			this->btnPrintData->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btnPrintData.BackgroundImage")));
			this->btnPrintData->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"btnPrintData.Dock")));
			this->btnPrintData->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btnPrintData.Enabled")));
			this->btnPrintData->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"btnPrintData.FlatStyle")));
			this->btnPrintData->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"btnPrintData.Font")));
			this->btnPrintData->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btnPrintData.Image")));
			this->btnPrintData->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btnPrintData.ImageAlign")));
			this->btnPrintData->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btnPrintData.ImageIndex")));
			this->btnPrintData->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"btnPrintData.ImeMode")));
			this->btnPrintData->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"btnPrintData.Location")));
			this->btnPrintData->Name = S"btnPrintData";
			this->btnPrintData->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"btnPrintData.RightToLeft")));
			this->btnPrintData->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"btnPrintData.Size")));
			this->btnPrintData->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btnPrintData.TabIndex")));
			this->btnPrintData->Text = resources->GetString(S"btnPrintData.Text");
			this->btnPrintData->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btnPrintData.TextAlign")));
			this->btnPrintData->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btnPrintData.Visible")));
			// 
			// btnClose
			// 
			this->btnClose->AccessibleDescription = resources->GetString(S"btnClose.AccessibleDescription");
			this->btnClose->AccessibleName = resources->GetString(S"btnClose.AccessibleName");
			this->btnClose->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"btnClose.Anchor")));
			this->btnClose->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btnClose.BackgroundImage")));
			this->btnClose->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"btnClose.Dock")));
			this->btnClose->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btnClose.Enabled")));
			this->btnClose->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"btnClose.FlatStyle")));
			this->btnClose->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"btnClose.Font")));
			this->btnClose->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btnClose.Image")));
			this->btnClose->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btnClose.ImageAlign")));
			this->btnClose->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btnClose.ImageIndex")));
			this->btnClose->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"btnClose.ImeMode")));
			this->btnClose->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"btnClose.Location")));
			this->btnClose->Name = S"btnClose";
			this->btnClose->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"btnClose.RightToLeft")));
			this->btnClose->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"btnClose.Size")));
			this->btnClose->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btnClose.TabIndex")));
			this->btnClose->Text = resources->GetString(S"btnClose.Text");
			this->btnClose->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btnClose.TextAlign")));
			this->btnClose->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btnClose.Visible")));
			this->btnClose->Click += new System::EventHandler(this, btnClose_Click);
			// 
			// PlateStockList
			// 
			this->AccessibleDescription = resources->GetString(S"$this.AccessibleDescription");
			this->AccessibleName = resources->GetString(S"$this.AccessibleName");
			this->AutoScaleBaseSize = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"$this.AutoScaleBaseSize")));
			this->AutoScroll = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"$this.AutoScroll")));
			this->AutoScrollMargin = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"$this.AutoScrollMargin")));
			this->AutoScrollMinSize = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"$this.AutoScrollMinSize")));
			this->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"$this.BackgroundImage")));
			this->ClientSize = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"$this.ClientSize")));
			this->Controls->Add(this->btnClose);
			this->Controls->Add(this->btnPrintData);
			this->Controls->Add(this->btnPlateUsedInput);
			this->Controls->Add(this->btnPlateProductInput);
			this->Controls->Add(this->showResultGrid);
			this->Controls->Add(this->comboProductCode);
			this->Controls->Add(this->lbProductCode);
			this->Controls->Add(this->lbTitle);
			this->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"$this.Enabled")));
			this->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"$this.Font")));
			this->Icon = (__try_cast<System::Drawing::Icon *  >(resources->GetObject(S"$this.Icon")));
			this->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"$this.ImeMode")));
			this->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"$this.Location")));
			this->MaximizeBox = false;
			this->MaximumSize = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"$this.MaximumSize")));
			this->MinimumSize = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"$this.MinimumSize")));
			this->Name = S"PlateStockList";
			this->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"$this.RightToLeft")));
			this->StartPosition = (*__try_cast<__box System::Windows::Forms::FormStartPosition *  >(resources->GetObject(S"$this.StartPosition")));
			this->Text = resources->GetString(S"$this.Text");
			this->Load += new System::EventHandler(this, PlateStockList_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->showResultGrid))->EndInit();
			this->ResumeLayout(false);

		}       
    private: System::Void btnClose_Click(System::Object *  sender, System::EventArgs *  e)
             {
                 this->Close();
             }

	private: System::Void btnPlateProductInput_Click(System::Object *  sender, System::EventArgs *  e)
			{
				//pPlateProductResult		= new PlateProductResult();//需要加参数
				pPlateProductResult		= new PlateProductResult(oInf,comboProductCode->Text) ;
				pPlateProductResult->ShowDialog(this);
			}

	private: System::Void btnPlateUsedInput_Click(System::Object *  sender, System::EventArgs *  e)
			{
				pPlateUsedInput			= new PlateUsedInput();//需要加参数
				pPlateUsedInput->ShowDialog(this);
			}

	private: System::Void PlateStockList_Load(System::Object *  sender, System::EventArgs *  e)
			{
				//init Plate code data to the comboBox.
				DataTable						*dTmp;
				dTmp							= dtPlateCode(oInf,dbPlateStockList);
				comboProductCode->DataSource	= dTmp;
				comboProductCode->DisplayMember= S"PLATE_CODE";

				//init style of dataGrid.
				initShowResultGrid();
				//init Data of dadtaGrid.
				//initDataShowResultGrid(strProductNo);
			}

private: System::Void comboProductCode_SelectedIndexChanged(System::Object *  sender, System::EventArgs *  e)
		 {
			 String			*strProductNo;
			 strProductNo	= comboProductCode->Text;
			 //init Data of dadtaGrid.
			 initDataShowResultGrid(strProductNo);
		 }



private: System::Void comboProductCode_KeyPress(System::Object *  sender, System::Windows::Forms::KeyPressEventArgs *  e)
		 {
			 if (e->KeyChar==(char)13){
				 //init Data of dadtaGrid.
				initDataShowResultGrid(comboProductCode->Text);
			 }
		 }

};
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?