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

📄 stocklist.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
📖 第 1 页 / 共 5 页
字号:
			this->comboBox2->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"comboBox2.Anchor")));
			this->comboBox2->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"comboBox2.BackgroundImage")));
			this->comboBox2->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"comboBox2.Dock")));
			this->comboBox2->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"comboBox2.Enabled")));
			this->comboBox2->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"comboBox2.Font")));
			this->comboBox2->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"comboBox2.ImeMode")));
			this->comboBox2->IntegralHeight = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"comboBox2.IntegralHeight")));
			this->comboBox2->ItemHeight = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"comboBox2.ItemHeight")));
			System::Object* __mcTemp__1[] = new System::Object*[3];
			__mcTemp__1[0] = resources->GetString(S"comboBox2.Items");
			__mcTemp__1[1] = resources->GetString(S"comboBox2.Items1");
			__mcTemp__1[2] = resources->GetString(S"comboBox2.Items2");
			this->comboBox2->Items->AddRange(__mcTemp__1);
			this->comboBox2->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"comboBox2.Location")));
			this->comboBox2->MaxDropDownItems = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"comboBox2.MaxDropDownItems")));
			this->comboBox2->MaxLength = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"comboBox2.MaxLength")));
			this->comboBox2->Name = S"comboBox2";
			this->comboBox2->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"comboBox2.RightToLeft")));
			this->comboBox2->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"comboBox2.Size")));
			this->comboBox2->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"comboBox2.TabIndex")));
			this->comboBox2->Text = resources->GetString(S"comboBox2.Text");
			this->comboBox2->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"comboBox2.Visible")));
			this->comboBox2->SelectedIndexChanged += new System::EventHandler(this, comboBox2_SelectedIndexChanged);
			// 
			// comboBox3
			// 
			this->comboBox3->AccessibleDescription = resources->GetString(S"comboBox3.AccessibleDescription");
			this->comboBox3->AccessibleName = resources->GetString(S"comboBox3.AccessibleName");
			this->comboBox3->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"comboBox3.Anchor")));
			this->comboBox3->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"comboBox3.BackgroundImage")));
			this->comboBox3->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"comboBox3.Dock")));
			this->comboBox3->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"comboBox3.Enabled")));
			this->comboBox3->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"comboBox3.Font")));
			this->comboBox3->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"comboBox3.ImeMode")));
			this->comboBox3->IntegralHeight = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"comboBox3.IntegralHeight")));
			this->comboBox3->ItemHeight = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"comboBox3.ItemHeight")));
			this->comboBox3->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"comboBox3.Location")));
			this->comboBox3->MaxDropDownItems = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"comboBox3.MaxDropDownItems")));
			this->comboBox3->MaxLength = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"comboBox3.MaxLength")));
			this->comboBox3->Name = S"comboBox3";
			this->comboBox3->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"comboBox3.RightToLeft")));
			this->comboBox3->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"comboBox3.Size")));
			this->comboBox3->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"comboBox3.TabIndex")));
			this->comboBox3->Text = resources->GetString(S"comboBox3.Text");
			this->comboBox3->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"comboBox3.Visible")));
			// 
			// StockList
			// 
			this->AcceptButton = this->cmdSearch;
			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->comboBox3);
			this->Controls->Add(this->comboBox2);
			this->Controls->Add(this->label4);
			this->Controls->Add(this->label3);
			this->Controls->Add(this->comboBox1);
			this->Controls->Add(this->dataGrid1);
			this->Controls->Add(this->textBox2);
			this->Controls->Add(this->textBox1);
			this->Controls->Add(this->button5);
			this->Controls->Add(this->button1);
			this->Controls->Add(this->txtProName);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->dGridStockList);
			this->Controls->Add(this->trvBOM);
			this->Controls->Add(this->txtProCode);
			this->Controls->Add(this->label2);
			this->Controls->Add(this->cmdPrint);
			this->Controls->Add(this->cmdSearch);
			this->Controls->Add(this->lbl_Title);
			this->Controls->Add(this->button3);
			this->Controls->Add(this->cmdEdit);
			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"StockList";
			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, StockList_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dGridStockList))->EndInit();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGrid1))->EndInit();
			this->ResumeLayout(false);

		}		

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

private: System::Void cmdSearch_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 comboBox1->Enabled=true;
			 comboBox2->Enabled=true;
			 comboBox2->SelectedIndex=0;

			 flgunit=false;
			 iflag=1;
			 strChoosen=(txtProCode->Text->Trim());
			 
			if (txtProCode->Text->ToString()->CompareTo(S"") == 0) {
				MessageBox::Show(S"Please Input Right Product Code!!");
				iflag=0;
				return;
			}
			 
			txtProName->Text = ProductResultInput::strGetProName(txtProCode->Text->Trim(),infStockList->intLang,dbStockList);
			
			if (txtProName->Text->Trim()->CompareTo(S"")==0) {
				comboBox2->Enabled=false;
				comboBox1->Enabled=false;
				String *msg[]={S"读取产品信息失败!!",S"製品の情報を読み取りに失敗しました!!",S"Fail To Read Product Information !!"};
				MessageBox::Show(msg[infStockList->intLang]);	
				iflag=0;

				return;
			}

			
			
			FillTreeView(txtProCode->Text->Trim());
			setUnit(txtProCode->Text->Trim());
			

			FillDBGrid(txtProCode->Text->Trim());
			FillDBGrid1();
			
			selectProcess();

			selectFlag=1;
			


			
			

			

			

			


			
		 }

private: System::Void StockList_Load(System::Object *  sender, System::EventArgs *  e)
		 {
			 comboBox1->Enabled=false;
			 comboBox2->Enabled=false;
			 flgunit=false;
			 selectFlag=0;
			 iflag=0;
			 strChoosen=S"";
			 txtProCode->Text = S"";
			 txtProName->Text = S"";
			 
			 cmdPrint->Enabled = false;

			 IniGrid(infStockList->intLang);
			 IniGrid1(infStockList->intLang);

			DataTable *dTmp1;
			dTmp1 = FAP::StockProcess::dtblGetYProcessPro(infStockList,dbStockList);
		

			txtProCode->DataSource = dTmp1;

			txtProCode->DisplayMember = S"PRODUCT_NO";

		 }





private: System::Void cmdEdit_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 //DataGridCell dCellTmp;
			int intPos;

			String *strSQL;
			String *strModify;
			String *strLot;

⌨️ 快捷键说明

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