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

📄 sapstock.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
📖 第 1 页 / 共 2 页
字号:
			this->label1->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"label1.Size")));
			this->label1->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"label1.TabIndex")));
			this->label1->Text = resources->GetString(S"label1.Text");
			this->label1->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"label1.TextAlign")));
			this->label1->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"label1.Visible")));
			// 
			// txtTmp
			// 
			this->txtTmp->AccessibleDescription = resources->GetString(S"txtTmp.AccessibleDescription");
			this->txtTmp->AccessibleName = resources->GetString(S"txtTmp.AccessibleName");
			this->txtTmp->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"txtTmp.Anchor")));
			this->txtTmp->AutoSize = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"txtTmp.AutoSize")));
			this->txtTmp->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"txtTmp.BackgroundImage")));
			this->txtTmp->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"txtTmp.Dock")));
			this->txtTmp->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"txtTmp.Enabled")));
			this->txtTmp->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"txtTmp.Font")));
			this->txtTmp->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"txtTmp.ImeMode")));
			this->txtTmp->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"txtTmp.Location")));
			this->txtTmp->MaxLength = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"txtTmp.MaxLength")));
			this->txtTmp->Multiline = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"txtTmp.Multiline")));
			this->txtTmp->Name = S"txtTmp";
			this->txtTmp->PasswordChar = (*__try_cast<__box System::Char *  >(resources->GetObject(S"txtTmp.PasswordChar")));
			this->txtTmp->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"txtTmp.RightToLeft")));
			this->txtTmp->ScrollBars = (*__try_cast<__box System::Windows::Forms::ScrollBars *  >(resources->GetObject(S"txtTmp.ScrollBars")));
			this->txtTmp->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"txtTmp.Size")));
			this->txtTmp->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"txtTmp.TabIndex")));
			this->txtTmp->Text = resources->GetString(S"txtTmp.Text");
			this->txtTmp->TextAlign = (*__try_cast<__box System::Windows::Forms::HorizontalAlignment *  >(resources->GetObject(S"txtTmp.TextAlign")));
			this->txtTmp->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"txtTmp.Visible")));
			this->txtTmp->WordWrap = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"txtTmp.WordWrap")));
			// 
			// textBox1
			// 
			this->textBox1->AccessibleDescription = resources->GetString(S"textBox1.AccessibleDescription");
			this->textBox1->AccessibleName = resources->GetString(S"textBox1.AccessibleName");
			this->textBox1->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"textBox1.Anchor")));
			this->textBox1->AutoSize = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"textBox1.AutoSize")));
			this->textBox1->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"textBox1.BackgroundImage")));
			this->textBox1->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"textBox1.Dock")));
			this->textBox1->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"textBox1.Enabled")));
			this->textBox1->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"textBox1.Font")));
			this->textBox1->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"textBox1.ImeMode")));
			this->textBox1->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"textBox1.Location")));
			this->textBox1->MaxLength = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"textBox1.MaxLength")));
			this->textBox1->Multiline = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"textBox1.Multiline")));
			this->textBox1->Name = S"textBox1";
			this->textBox1->PasswordChar = (*__try_cast<__box System::Char *  >(resources->GetObject(S"textBox1.PasswordChar")));
			this->textBox1->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"textBox1.RightToLeft")));
			this->textBox1->ScrollBars = (*__try_cast<__box System::Windows::Forms::ScrollBars *  >(resources->GetObject(S"textBox1.ScrollBars")));
			this->textBox1->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"textBox1.Size")));
			this->textBox1->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"textBox1.TabIndex")));
			this->textBox1->Text = resources->GetString(S"textBox1.Text");
			this->textBox1->TextAlign = (*__try_cast<__box System::Windows::Forms::HorizontalAlignment *  >(resources->GetObject(S"textBox1.TextAlign")));
			this->textBox1->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"textBox1.Visible")));
			this->textBox1->WordWrap = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"textBox1.WordWrap")));
			// 
			// SAPStock
			// 
			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->txtTmp);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->cmdCancel);
			this->Controls->Add(this->cmdOK);
			this->Controls->Add(this->dbGridSAP);
			this->Controls->Add(this->textBox1);
			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"SAPStock";
			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, SAPStock_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dbGridSAP))->EndInit();
			this->ResumeLayout(false);

		}		
	private: System::Void SAPStock_Load(System::Object *  sender, System::EventArgs *  e)
			 {
				 InitGrid(infSAPStock->intLang);
				 GetGrid();
			 }

	private: System::Void cmdOK_Click(System::Object *  sender, System::EventArgs *  e)
			 {
				 String *sTRUE = S"true";
				 String *sFALSE = S"false";
				 //DataGridCell dCellTmp ;
				 //dCellTmp.ColumnNumber  = Int32::Parse(txtTmp->Text);
				 //dCellTmp.RowNumber     = Int32::Parse(textBox1->Text);
//				 
				 //MessageBox::Show(String::Concat(S"'",Convert::ToString(dbGridSAP->get_Item(dCellTmp)),S"'"));
//
				 
				 //DataTable * dTblTmp ;
				 //DataTable * dTbl4Check ;

				 //DataRow * dRowTmp;
				 DataGridCell dCellTmp;
				 int i;

				 //dTblTmp =__try_cast<DataTable*>( __try_cast<DataView*>(dbGridSAP->DataSource)->Table);
				 //
				 //dTbl4Check  = dTblTmp->Clone();

				 //dTbl4Check->Clear();
				
				 String __gc *strSQENO =new String(S"");

				 dCellTmp.ColumnNumber = 8;
				 
				 
				 for (i=0;i<__try_cast<DataView*>(dbGridSAP->DataSource)->Count;i++) {

					 dCellTmp.RowNumber = i;
					 				 
					 //check checkbox
					 if (Convert::ToString(dbGridSAP->get_Item(dCellTmp))->Trim()->ToLower()->CompareTo(sTRUE) == 0) 
					 {
							
						 strSQENO =String::Concat( Convert::ToString(dbGridSAP->get_Item(i,0)),S",",strSQENO);
//							 dRowTmp = dTbl4Check->NewRow();
//
//							 dRowTmp->Item[S"SEQUENCE"] =(Convert::ToString(dbGridSAP->get_Item(i,1)));
////							 dRowTmp->Item[S"DELIVER_YMD"] = __try_cast<DateTime*>(Convert::ToString(dbGridSAP->get_Item(i,2)));
//							 //dRowTmp->Item[S"DELIVER_YMD"] = Convert::ToDateTime(Convert::ToString(dbGridSAP->get_Item(i,2)));
//							 dRowTmp->Item[S"PRODUCT_CODE"] = Convert::ToString(dbGridSAP->get_Item(i,3));
//							 dRowTmp->Item[S"DELIVER_QTY"] =(Convert::ToString(dbGridSAP->get_Item(i,4)));
//							 dRowTmp->Item[S"ORIGIN_CODE"] = Convert::ToString(dbGridSAP->get_Item(i,5));
//							 dRowTmp->Item[S"DESTINATION_CODE"] = Convert::ToString(dbGridSAP->get_Item(i,6));
//							 dRowTmp->Item[S"LOT"] = Convert::ToString(dbGridSAP->get_Item(i,7));
//
//							dTbl4Check->Rows->Add(dRowTmp);
//							// MessageBox::Show(S"d")
					 }
				 }
				
				 if (strSQENO->Trim()->CompareTo(S"")==0) {
					 String *msg[]={S"请选择一行!!",S"一行を選択してください!!",S"Please Select One Row !!"};
					 MessageBox::Show(msg[infSAPStock->intLang]);
					 
					 return;
				 }
				 String *strTmp1 = new String (S",");

				 strSQENO = strSQENO->TrimEnd(strTmp1->ToCharArray());


				SAPStockCheck * frmSCheck = new SAPStockCheck(infSAPStock,strSQENO);

				frmSCheck->ShowDialog(this);

				GetGrid();
				

			 }


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

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

};
}

⌨️ 快捷键说明

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