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

📄 productresult.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
📖 第 1 页 / 共 3 页
字号:
			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->cboProcess);
			this->Controls->Add(this->button2);
			this->Controls->Add(this->txtProcess);
			this->Controls->Add(this->txtLine);
			this->Controls->Add(this->cboLine);
			this->Controls->Add(this->button1);
			this->Controls->Add(this->DBGridSch);
			this->Controls->Add(this->label2);
			this->Controls->Add(this->cmdDeliver);
			this->Controls->Add(this->DBGridPrd);
			this->Controls->Add(this->lbl_Title);
			this->Controls->Add(this->cmdEnd);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->cmdInput);
			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"ProductResult";
			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, ProductResult_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->DBGridPrd))->EndInit();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->DBGridSch))->EndInit();
			this->ResumeLayout(false);

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

private: System::Void ProductResult_Load(System::Object *  sender, System::EventArgs *  e)
		 {
			this->cboProcess->Text =  infClsPrd->strProcess;
			this->txtProcess->Text = strGetProcessName(infClsPrd->strProcess,infClsPrd->intLang);
			this->cboLine->Text = infClsPrd->strLine;
			this->txtLine->Text = strGetLineName(infClsPrd->strLine,infClsPrd->intLang);

			InitSimpleGird(infClsPrd->intLang);
			InitDetailGrid(infClsPrd->intLang);
			
			setSchedule(infClsPrd->strProcess,infClsPrd->strLine);

			if (DBGridPrd->VisibleRowCount<3)
			{
			//DBGridPrd->CurrentRowIndex=0;
			}
			else
			{
				DBGridPrd->CurrentRowIndex=2;
			}			
				
//			void setProcessCbo();
//			void setLineCbo();

			
			
		 }


private: System::Void DBGridPrd_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 button1_Click( sender, e);
		 }

private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)
		 {	
			
			DataGridCell  dCellTmp ;

			dCellTmp.RowNumber = DBGridPrd->CurrentCell.RowNumber;

			dCellTmp.ColumnNumber = 2;

			strOrderNo = DBGridPrd->Item[dCellTmp]->ToString();
			
			dCellTmp.ColumnNumber = 1;

			strProCode = DBGridPrd->Item[dCellTmp]->ToString();
			
			setCalendar(strProCode);
		 }

private: System::Void cmdInput_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 BindingManagerBase* oBM;
			if(DBGridPrd->DataSource == NULL)
			 {
				 return;
			 }
			if(DBGridPrd->DataSource != NULL)
			{
				oBM = DBGridPrd->BindingContext->get_Item(tblTmp);
				if (oBM->Count==0)
				{
					return;
				}

			}

			 String * strlotnumber;
			 String * strShift;
			 String * strLine;
			 String * strymd;
			 String * strproduct;

			 DataGridCell oCell;

			 oCell = DBGridPrd->CurrentCell;
			 oCell.ColumnNumber=2;
			 strlotnumber = DBGridPrd->Item[oCell]->ToString();
			 
			 oCell.ColumnNumber=1;
			 strproduct = DBGridPrd->Item[oCell]->ToString();

 			 oCell.ColumnNumber=0;
			 strymd =String::Format("{0:yyyy-MM-dd}",(DBGridPrd->Item[oCell]));

			 oCell.ColumnNumber=3;
			 strLine = DBGridPrd->Item[oCell]->ToString();

			 oCell.ColumnNumber=4;
			 strShift = DBGridPrd->Item[oCell]->ToString();


			 pPrdRstIn = new ProductResultInput(infClsPrd,strlotnumber,strShift,strLine,strymd,strproduct);

			

			 pPrdRstIn->ShowDialog(this);
		 }

private: System::Void cmdDeliver_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			Deliver *frmDeliver = new Deliver(infClsPrd,0);

			frmDeliver->ShowDialog(this);

			
		 }

private: System::Void button2_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 //DBGridPrd->clea
			 setSchedule(infClsPrd->strProcess,infClsPrd->strLine);

		 }



private: System::Void DBGridPrd_CurrentCellChanged(System::Object *  sender, System::EventArgs *  e)
		 {
			 button1_Click( sender, e);
		 }

private: System::Void DBGridPrd_MouseUp(System::Object *  sender, System::Windows::Forms::MouseEventArgs *  e)
		 {
			 try 
			 {
				 this->DBGridPrd->Select(DBGridPrd->CurrentRowIndex);
			 }
			 catch (...) {
			 }
		 }

private: System::Void DBGridSch_MouseUp(System::Object *  sender, System::Windows::Forms::MouseEventArgs *  e)
		 {
			 try 
			 {
				 this->DBGridSch->Select(DBGridSch->CurrentRowIndex);
			 }
			 catch (...) {
			 }
		 }

private: System::Void DBGridPrd_Navigate(System::Object *  sender, System::Windows::Forms::NavigateEventArgs *  ne)
		 {
		 }

private: System::Void DBGridPrd_Paint(System::Object *  sender, System::Windows::Forms::PaintEventArgs *  e)
		 {
			 ////////////////////////////////////////////////////////
				BindingManagerBase* oBM;

				if(DBGridPrd->DataSource != NULL){
					oBM = DBGridPrd->BindingContext->get_Item(tblTmp);
					if(oBM->Count > 0){//oBM->Count gets the number of rows managed by the BindingManagerBase
						
						DBGridPrd->Select(DBGridPrd->CurrentCell.RowNumber);
						//dataGridMainForDay->set_ForeColor(System::Drawing::Color::Black);
					}
				}
			

			 //////////////////////////////////////////////////////
		 }

private: System::Void DBGridSch_Paint(System::Object *  sender, System::Windows::Forms::PaintEventArgs *  e)
		 {
			 ////////////////////////////////////////////////////////
				BindingManagerBase* oBM;

				if(DBGridSch->DataSource != NULL){
					oBM = DBGridSch->BindingContext->get_Item(tblTmp1);
					if(oBM->Count > 0){//oBM->Count gets the number of rows managed by the BindingManagerBase
						
						DBGridSch->Select(DBGridSch->CurrentCell.RowNumber);
						//dataGridMainForDay->set_ForeColor(System::Drawing::Color::Black);
					}
				}
			

			 //////////////////////////////////////////////////////
		 }

};
}

⌨️ 快捷键说明

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