⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productsimulation.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
📖 第 1 页 / 共 2 页
字号:
			this->label7->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"label7.RightToLeft")));
			this->label7->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"label7.Size")));
			this->label7->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"label7.TabIndex")));
			this->label7->Text = resources->GetString(S"label7.Text");
			this->label7->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"label7.TextAlign")));
			this->label7->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"label7.Visible")));
			// 
			// label8
			// 
			this->label8->AccessibleDescription = resources->GetString(S"label8.AccessibleDescription");
			this->label8->AccessibleName = resources->GetString(S"label8.AccessibleName");
			this->label8->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"label8.Anchor")));
			this->label8->AutoSize = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"label8.AutoSize")));
			this->label8->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"label8.Dock")));
			this->label8->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"label8.Enabled")));
			this->label8->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"label8.Font")));
			this->label8->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"label8.Image")));
			this->label8->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"label8.ImageAlign")));
			this->label8->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"label8.ImageIndex")));
			this->label8->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"label8.ImeMode")));
			this->label8->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"label8.Location")));
			this->label8->Name = S"label8";
			this->label8->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"label8.RightToLeft")));
			this->label8->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"label8.Size")));
			this->label8->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"label8.TabIndex")));
			this->label8->Text = resources->GetString(S"label8.Text");
			this->label8->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"label8.TextAlign")));
			this->label8->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"label8.Visible")));
			// 
			// button1
			// 
			this->button1->AccessibleDescription = resources->GetString(S"button1.AccessibleDescription");
			this->button1->AccessibleName = resources->GetString(S"button1.AccessibleName");
			this->button1->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"button1.Anchor")));
			this->button1->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"button1.BackgroundImage")));
			this->button1->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"button1.Dock")));
			this->button1->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"button1.Enabled")));
			this->button1->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"button1.FlatStyle")));
			this->button1->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"button1.Font")));
			this->button1->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"button1.Image")));
			this->button1->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"button1.ImageAlign")));
			this->button1->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"button1.ImageIndex")));
			this->button1->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"button1.ImeMode")));
			this->button1->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"button1.Location")));
			this->button1->Name = S"button1";
			this->button1->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"button1.RightToLeft")));
			this->button1->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"button1.Size")));
			this->button1->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"button1.TabIndex")));
			this->button1->Text = resources->GetString(S"button1.Text");
			this->button1->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"button1.TextAlign")));
			this->button1->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"button1.Visible")));
			this->button1->Click += new System::EventHandler(this, button1_Click);
			// 
			// cboName
			// 
			this->cboName->AccessibleDescription = resources->GetString(S"cboName.AccessibleDescription");
			this->cboName->AccessibleName = resources->GetString(S"cboName.AccessibleName");
			this->cboName->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"cboName.Anchor")));
			this->cboName->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"cboName.BackgroundImage")));
			this->cboName->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"cboName.Dock")));
			this->cboName->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cboName.Enabled")));
			this->cboName->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"cboName.Font")));
			this->cboName->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"cboName.ImeMode")));
			this->cboName->IntegralHeight = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cboName.IntegralHeight")));
			this->cboName->ItemHeight = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cboName.ItemHeight")));
			this->cboName->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"cboName.Location")));
			this->cboName->MaxDropDownItems = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cboName.MaxDropDownItems")));
			this->cboName->MaxLength = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cboName.MaxLength")));
			this->cboName->Name = S"cboName";
			this->cboName->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"cboName.RightToLeft")));
			this->cboName->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"cboName.Size")));
			this->cboName->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cboName.TabIndex")));
			this->cboName->Text = resources->GetString(S"cboName.Text");
			this->cboName->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cboName.Visible")));
			// 
			// DBGridPrd
			// 
			this->DBGridPrd->AccessibleDescription = resources->GetString(S"DBGridPrd.AccessibleDescription");
			this->DBGridPrd->AccessibleName = resources->GetString(S"DBGridPrd.AccessibleName");
			this->DBGridPrd->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"DBGridPrd.Anchor")));
			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->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")));
			// 
			// ProductSimulation
			// 
			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->DBGridPrd);
			this->Controls->Add(this->cboName);
			this->Controls->Add(this->button1);
			this->Controls->Add(this->label8);
			this->Controls->Add(this->label4);
			this->Controls->Add(this->txtQty);
			this->Controls->Add(this->button3);
			this->Controls->Add(this->label7);
			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"ProductSimulation";
			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, ProductSimulation_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->DBGridPrd))->EndInit();
			this->ResumeLayout(false);

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

	private: System::Void ProductSimulation_Load(System::Object *  sender, System::EventArgs *  e)
			 {
				 txtQty->Text = S"";                                                                          //let the form's quantity's text display nothing//note added by DongZhaoLiang

				 iniGrid(infProSim->intLang);

				 intCombo(infProSim->intLang);

				 
			 }

private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 try{
				 Single sngTmp = Single::Parse(txtQty->Text);                                                 //decide whether the inputed data is number//note added by DongZhaoLiang

			 }
			 catch (...) {
				 String *msg[]={S"请输入数字!!",S"数字を入力してください!!",S"Please Input Number!!"};
				 MessageBox::Show(msg[infProSim->intLang]);
				 txtQty->Focus();
				 return;
			 }

			 setGrid(infProSim->intLang,Single::Parse(txtQty->Text),cboName->SelectedValue->ToString());

		 }



private: System::Void DBGridPrd_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 //DBGridPrd->Select(DBGridPrd->CurrentRowIndex);
		 }

private: System::Void DBGridPrd_CurrentCellChanged(System::Object *  sender, System::EventArgs *  e)
		 {
			 //DBGridPrd->Select(DBGridPrd->CurrentRowIndex);
		 }

private: System::Void DBGridPrd_MouseUp(System::Object *  sender, System::Windows::Forms::MouseEventArgs *  e)
		 {
			DBGridPrd->Select(DBGridPrd->CurrentRowIndex);                                                     //you select the datagrid's frame in the foreside ,you can select 
		 }																									   //you can select whole row

};
}

⌨️ 快捷键说明

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