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

📄 stockdeliverlist.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
📖 第 1 页 / 共 4 页
字号:
			 }


private: System::Void StockDeliverList_Load(System::Object *  sender, System::EventArgs *  e)
		 {
			 btnFlag=S"";
			 

			 String *vstrDate1;
			 vstrDate1=String::Format("{0:yyyy-MM-01}",__box(DateTime::Today));
			 dateTimePicker1->Text=vstrDate1;
			 //String __gc *saG_Code[];
	   //      saG_Code	 = new String __gc * [3];
			 //saG_Code[0]=S"全部";
			 //saG_Code[1]=S"全部";
			 //saG_Code[2]=S"All";
			 

			 bfirstRun=true;
			 ////flagSelect=true;
			 oDB = new DBBase();
			 oDB->blnCnnOpen();
			
			 InitGridStockDeliverList();
			 InitializeGridValueStockDeliverList();
			
			 InitializeValueComboProcess();
			
			 oDB->blnCnnClose();
			
			 SetValueComboBoxLine();
			 SetValueComboBoxShift();
			
			 bfirstRun=false;

			 comboBox1->SelectedIndex=2;
		 }


private: System::Void comboBoxLine_SelectedIndexChanged(System::Object *  sender, System::EventArgs *  e)
		 {
			 /*	if (sender == comboBoxLine)
    {
        String* ps = String::Concat(S"New index is ",__box(comboBoxLine->SelectedIndex)->ToString());
        MessageBox::Show(ps, S"Index Change");
    }*/
			 if(bfirstRun==false)
			{
				if(insideRank==0)
				{
					comboBoxLine->SelectedIndex=iLineIndex;
				  
				}
				else
				{
					String* saLine[]   = {S"'L001','L002'", S"'L001'", S"'L002'"};//l001 is r line ,l002 is v line
				SetValueComboProcess(saLine[comboBoxLine->SelectedIndex]);
				}
			}
		 }

private: System::Void comboBoxProcess_SelectedIndexChanged(System::Object *  sender, System::EventArgs *  e)
		 {
			 if(bfirstRun==false)
			 {	
				 
				 SetGridValueStockDeliverList(comboBoxProcess->SelectedValue->ToString(),saShift[comboBoxShift->SelectedIndex]);
			 }	
		 }

private: System::Void comboBoxShift_SelectedIndexChanged(System::Object *  sender, System::EventArgs *  e)
		 {
			  if(bfirstRun==false)
				SetGridValueStockDeliverList(comboBoxProcess->SelectedValue->ToString(),saShift[comboBoxShift->SelectedIndex]);
		 }

private: System::Void comboBox1_SelectedIndexChanged(System::Object *  sender, System::EventArgs *  e)
		 {
			 //已出库
			 if(comboBox1->SelectedIndex==0)
			 {
				 flag=true;
				 cFlag=S"notnull";
				 //MessageBox::Show(S"0");
				 			 bfirstRun=true;
			
			 oDB = new DBBase();
			 oDB->blnCnnOpen();


			
			 //InitGridStockDeliverList();
			 InitializeGridValueStockDeliverList();
			
			 //InitializeValueComboProcess();
			
			 oDB->blnCnnClose();
			
			 SetValueComboBoxLine();
			 SetValueComboBoxShift();
			
			 bfirstRun=false;
			 }
			 //未出库
			 if(comboBox1->SelectedIndex==1)
			 {
				 flag=true;
				 cFlag=S"isnull";
				// MessageBox::Show(S"1");
				 			 bfirstRun=true;
			
			 oDB = new DBBase();
			 oDB->blnCnnOpen();


			
			 //InitGridStockDeliverList();
			 InitializeGridValueStockDeliverList();
			
			 //InitializeValueComboProcess();
			
			 oDB->blnCnnClose();
			
			 SetValueComboBoxLine();
			 SetValueComboBoxShift();
			
			 bfirstRun=false;
			 }
			 //全部
			 if(comboBox1->SelectedIndex==2)
			 {
				 if(flag==false){
					 //return;
				 }else{
					 cFlag=S"all";
				 }
				 
				 //MessageBox::Show(S"2");
				 			 

			 bfirstRun=true;
			
			 oDB = new DBBase();
			 oDB->blnCnnOpen();


			
			 //InitGridStockDeliverList();
			 InitializeGridValueStockDeliverList();
			
			 //InitializeValueComboProcess();
			
			 oDB->blnCnnClose();
			
			 SetValueComboBoxLine();
			 SetValueComboBoxShift();
			
			 bfirstRun=false;

				 
			 }
		 }

private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)
		 { 
			 flag=false;
			
				 btnFlag=S"btnsearch";
				 //MessageBox::Show(S"0");
			bfirstRun=true;
			
			 oDB = new DBBase();
			 oDB->blnCnnOpen();


			
			 //InitGridStockDeliverList();
			 InitializeGridValueStockDeliverList();
			
			 //InitializeValueComboProcess();
			
			 oDB->blnCnnClose();
			
			 SetValueComboBoxLine();
			 SetValueComboBoxShift();
			
			 bfirstRun=false;

			 comboBox1->SelectedIndex=2;
			

		 }

};
}

⌨️ 快捷键说明

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