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

📄 dutydetail.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
📖 第 1 页 / 共 3 页
字号:
			this->cboProcess->IntegralHeight = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cboProcess.IntegralHeight")));
			this->cboProcess->ItemHeight = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cboProcess.ItemHeight")));
			this->cboProcess->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"cboProcess.Location")));
			this->cboProcess->MaxDropDownItems = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cboProcess.MaxDropDownItems")));
			this->cboProcess->MaxLength = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cboProcess.MaxLength")));
			this->cboProcess->Name = S"cboProcess";
			this->cboProcess->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"cboProcess.RightToLeft")));
			this->cboProcess->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"cboProcess.Size")));
			this->cboProcess->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cboProcess.TabIndex")));
			this->cboProcess->Text = resources->GetString(S"cboProcess.Text");
			this->cboProcess->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cboProcess.Visible")));
			// 
			// dataGrid1
			// 
			this->dataGrid1->AccessibleDescription = resources->GetString(S"dataGrid1.AccessibleDescription");
			this->dataGrid1->AccessibleName = resources->GetString(S"dataGrid1.AccessibleName");
			this->dataGrid1->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"dataGrid1.Anchor")));
			this->dataGrid1->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"dataGrid1.BackgroundImage")));
			this->dataGrid1->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
			this->dataGrid1->CaptionFont = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"dataGrid1.CaptionFont")));
			this->dataGrid1->CaptionText = resources->GetString(S"dataGrid1.CaptionText");
			this->dataGrid1->CaptionVisible = false;
			this->dataGrid1->DataMember = S"";
			this->dataGrid1->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"dataGrid1.Dock")));
			this->dataGrid1->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"dataGrid1.Enabled")));
			this->dataGrid1->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"dataGrid1.Font")));
			this->dataGrid1->HeaderForeColor = System::Drawing::SystemColors::ControlText;
			this->dataGrid1->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"dataGrid1.ImeMode")));
			this->dataGrid1->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"dataGrid1.Location")));
			this->dataGrid1->Name = S"dataGrid1";
			this->dataGrid1->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"dataGrid1.RightToLeft")));
			this->dataGrid1->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"dataGrid1.Size")));
			this->dataGrid1->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"dataGrid1.TabIndex")));
			this->dataGrid1->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"dataGrid1.Visible")));
			this->dataGrid1->CurrentCellChanged += new System::EventHandler(this, dataGrid1_CurrentCellChanged);
			this->dataGrid1->Leave += new System::EventHandler(this, dataGrid1_Leave);
			// 
			// ComboBoxTeam
			// 
			this->ComboBoxTeam->AccessibleDescription = resources->GetString(S"ComboBoxTeam.AccessibleDescription");
			this->ComboBoxTeam->AccessibleName = resources->GetString(S"ComboBoxTeam.AccessibleName");
			this->ComboBoxTeam->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"ComboBoxTeam.Anchor")));
			this->ComboBoxTeam->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"ComboBoxTeam.BackgroundImage")));
			this->ComboBoxTeam->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"ComboBoxTeam.Dock")));
			this->ComboBoxTeam->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->ComboBoxTeam->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"ComboBoxTeam.Enabled")));
			this->ComboBoxTeam->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"ComboBoxTeam.Font")));
			this->ComboBoxTeam->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"ComboBoxTeam.ImeMode")));
			this->ComboBoxTeam->IntegralHeight = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"ComboBoxTeam.IntegralHeight")));
			this->ComboBoxTeam->ItemHeight = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"ComboBoxTeam.ItemHeight")));
			System::Object* __mcTemp__1[] = new System::Object*[3];
			__mcTemp__1[0] = resources->GetString(S"ComboBoxTeam.Items");
			__mcTemp__1[1] = resources->GetString(S"ComboBoxTeam.Items1");
			__mcTemp__1[2] = resources->GetString(S"ComboBoxTeam.Items2");
			this->ComboBoxTeam->Items->AddRange(__mcTemp__1);
			this->ComboBoxTeam->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"ComboBoxTeam.Location")));
			this->ComboBoxTeam->MaxDropDownItems = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"ComboBoxTeam.MaxDropDownItems")));
			this->ComboBoxTeam->MaxLength = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"ComboBoxTeam.MaxLength")));
			this->ComboBoxTeam->Name = S"ComboBoxTeam";
			this->ComboBoxTeam->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"ComboBoxTeam.RightToLeft")));
			this->ComboBoxTeam->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"ComboBoxTeam.Size")));
			this->ComboBoxTeam->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"ComboBoxTeam.TabIndex")));
			this->ComboBoxTeam->Text = resources->GetString(S"ComboBoxTeam.Text");
			this->ComboBoxTeam->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"ComboBoxTeam.Visible")));
			// 
			// DutyDetail
			// 
			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->dataGrid1);
			this->Controls->Add(this->cboProcess);
			this->Controls->Add(this->txtTotal);
			this->Controls->Add(this->label5);
			this->Controls->Add(this->label4);
			this->Controls->Add(this->label3);
			this->Controls->Add(this->label2);
			this->Controls->Add(this->dtpDetail);
			this->Controls->Add(this->cmdLog);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->cmdCancel);
			this->Controls->Add(this->ComboBoxTeam);
			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->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"DutyDetail";
			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, DutyDetail_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGrid1))->EndInit();
			this->ResumeLayout(false);

		}		
	private: System::Void DutyDetail_Load(System::Object *  sender, System::EventArgs *  e)
			 {
				 begin();
				 InitProcess(infDutyDetail->intLang);

				 InitGrid(infDutyDetail->intLang);

				 ComboBoxTeam->SelectedIndex = 0;

				 dtpDetail->Value = DateTime::Today;																							//let the timepicker display current time
			 }

private: System::Void cmdLog_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 if ((MessageBox::Show(arrayStringInputDataJustify[0],S"Login", MessageBoxButtons::YesNo,MessageBoxIcon::Information))== DialogResult::No) {
				return;
			 }
			 else if (txtTotal->Text->Length == 0) {
				 MessageBox::Show(arrayStringInputDataJustify[1]);
				 
				 return;
			 }
			
			 txtTotal->Text = dblCntCost().ToString();

			 dbDutyDetail->blnCnnOpen();

			 dbDutyDetail->blnBeginTrans();


			 if (blnUpdDB(Single::Parse(txtTotal->Text),dtpDetail->Value,ComboBoxTeam->Text,cboProcess->SelectedValue->ToString())) {						//cboProcess use back value
				dbDutyDetail->blnCommit();
				MessageBox::Show(arrayStringInputDataJustify[2]);
     			dbDutyDetail->blnCnnClose();
				this->Close();
			 }
			 else
			 {
				 dbDutyDetail->blnRollBack();
				 dbDutyDetail->blnCnnClose();
			 }
			 
			 
			
			

			 // MessageBox::Show(cboProcess->SelectedValue->ToString());
		 }

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

private: System::Void dataGrid1_Leave(System::Object *  sender, System::EventArgs *  e)																					//the input focus leaves the control dataGrid1
		 {	
			 txtTotal->Text = dblCntCost().ToString();
		 }

private: System::Void dataGrid1_CurrentCellChanged(System::Object *  sender, System::EventArgs *  e)																	//change current cell will invoke this function
		 {
			 txtTotal->Text = dblCntCost().ToString();																													//input the sum cost of human from the datagrid to txtbox txtTotal
		 }

private: System::Void label5_Click(System::Object *  sender, System::EventArgs *  e)
		 {
		 }

private: System::Void label4_Click(System::Object *  sender, System::EventArgs *  e)
		 {
		 }

};
}

⌨️ 快捷键说明

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