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

📄 stock.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
📖 第 1 页 / 共 2 页
字号:
			this->btn_Check->Name = S"btn_Check";
			this->btn_Check->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"btn_Check.RightToLeft")));
			this->btn_Check->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"btn_Check.Size")));
			this->btn_Check->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btn_Check.TabIndex")));
			this->btn_Check->Text = resources->GetString(S"btn_Check.Text");
			this->btn_Check->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btn_Check.TextAlign")));
			this->btn_Check->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btn_Check.Visible")));
			this->btn_Check->Click += new System::EventHandler(this, btn_Check_Click);
			// 
			// btn_Close
			// 
			this->btn_Close->AccessibleDescription = resources->GetString(S"btn_Close.AccessibleDescription");
			this->btn_Close->AccessibleName = resources->GetString(S"btn_Close.AccessibleName");
			this->btn_Close->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"btn_Close.Anchor")));
			this->btn_Close->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btn_Close.BackgroundImage")));
			this->btn_Close->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"btn_Close.Dock")));
			this->btn_Close->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btn_Close.Enabled")));
			this->btn_Close->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"btn_Close.FlatStyle")));
			this->btn_Close->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"btn_Close.Font")));
			this->btn_Close->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btn_Close.Image")));
			this->btn_Close->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btn_Close.ImageAlign")));
			this->btn_Close->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btn_Close.ImageIndex")));
			this->btn_Close->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"btn_Close.ImeMode")));
			this->btn_Close->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"btn_Close.Location")));
			this->btn_Close->Name = S"btn_Close";
			this->btn_Close->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"btn_Close.RightToLeft")));
			this->btn_Close->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"btn_Close.Size")));
			this->btn_Close->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btn_Close.TabIndex")));
			this->btn_Close->Text = resources->GetString(S"btn_Close.Text");
			this->btn_Close->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btn_Close.TextAlign")));
			this->btn_Close->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btn_Close.Visible")));
			this->btn_Close->Click += new System::EventHandler(this, btn_Close_Click);
			// 
			// btn_NewData
			// 
			this->btn_NewData->AccessibleDescription = resources->GetString(S"btn_NewData.AccessibleDescription");
			this->btn_NewData->AccessibleName = resources->GetString(S"btn_NewData.AccessibleName");
			this->btn_NewData->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"btn_NewData.Anchor")));
			this->btn_NewData->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btn_NewData.BackgroundImage")));
			this->btn_NewData->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"btn_NewData.Dock")));
			this->btn_NewData->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btn_NewData.Enabled")));
			this->btn_NewData->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"btn_NewData.FlatStyle")));
			this->btn_NewData->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"btn_NewData.Font")));
			this->btn_NewData->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"btn_NewData.Image")));
			this->btn_NewData->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btn_NewData.ImageAlign")));
			this->btn_NewData->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btn_NewData.ImageIndex")));
			this->btn_NewData->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"btn_NewData.ImeMode")));
			this->btn_NewData->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"btn_NewData.Location")));
			this->btn_NewData->Name = S"btn_NewData";
			this->btn_NewData->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"btn_NewData.RightToLeft")));
			this->btn_NewData->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"btn_NewData.Size")));
			this->btn_NewData->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"btn_NewData.TabIndex")));
			this->btn_NewData->Text = resources->GetString(S"btn_NewData.Text");
			this->btn_NewData->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"btn_NewData.TextAlign")));
			this->btn_NewData->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"btn_NewData.Visible")));
			this->btn_NewData->Click += new System::EventHandler(this, btn_NewData_Click);
			// 
			// Stock
			// 
			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->btn_Check);
			this->Controls->Add(this->btn_Close);
			this->Controls->Add(this->dataGridStock);
			this->Controls->Add(this->lbl_Title);
			this->Controls->Add(this->btn_NewData);
			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"Stock";
			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, Stock_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGridStock))->EndInit();
			this->ResumeLayout(false);

		}		


		void InitGrid(void);
		void GetGridData(void);
		void DispStockCheck(int iNew);
		void GetCostName(String* sProcess, String** sName);
	private: System::Void Stock_Load(System::Object *  sender, System::EventArgs *  e)
			 {
				 //GridEvent
				 try{
				 
					dataGridStock->add_Paint(new System::Windows::Forms::PaintEventHandler(this, dataGridStock_Paint));
				 }

				 catch(...){

				 }

				 //Connect DB
				 oDB = new DBBase();
				 oDB->blnCnnOpen();

				 //Initialize Grid
				 InitGrid();

				 //GetData
				 GetGridData();
			 }

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

	private: System::Void dataGridStock_Paint(System::Object *  sender, System::Windows::Forms::PaintEventArgs *  e)
			 {
				 BindingManagerBase* oBM;
				 try{
					 oBM = dataGridStock->BindingContext->get_Item(oDataTable);
						if(oBM->Count > 0){
							dataGridStock->Select(dataGridStock->CurrentCell.RowNumber);
						}
					}
				 catch (...) {
				 }
			 }

	private: System::Void btn_Check_Click(System::Object *  sender, System::EventArgs *  e)
			 {
				 DispStockCheck(0);
			 }

	private: System::Void dataGridStock_DoubleClick(System::Object *  sender, System::EventArgs *  e)
			 {
				 DispStockCheck(0);
			 }

	private: System::Void btn_NewData_Click(System::Object *  sender, System::EventArgs *  e)
			{
				 DispStockCheck(1);
			}

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

};
}

⌨️ 快捷键说明

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