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

📄 sapstockcheck.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
字号:
#pragma once

#include "DBBase.h"
#include "infClass.h"
#include "Deliver.h"
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;


namespace FAP
{
	/// <summary> 
	/// Summary for SAPStockCheck
	///
	/// WARNING: If you change the name of this class, you will need to change the 
	///          'Resource File Name' property for the managed resource compiler tool 
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// </summary>
public __gc class SAPStockCheck : public System::Windows::Forms::Form
	{
	public: 
		SAPStockCheck(void)
		{
			InitializeComponent();
		}
        
		SAPStockCheck(infClass *infTmp,String *strTMP)
		{
			InitializeComponent();
			dbBSapCheck = new DBBase();
			infSAPCheck = infTmp;
			strSEQ = strTMP;
		}

		void InitGrid(int);
		
		void GetGrid(String *);

		infClass *infSAPCheck;
		DBBase *dbBSapCheck;

		DataGridTableStyle*	oTableStyle;

		DataTable *dbTblSap;
	private: System::Windows::Forms::Label *  label1;
	private: System::Windows::Forms::Button *  cmdCancel;
	private: System::Windows::Forms::Button *  cmdOK;

		String *strSEQ;

	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::DataGrid *  dbGridSap;

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container* components;

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			System::Resources::ResourceManager *  resources = new System::Resources::ResourceManager(__typeof(FAP::SAPStockCheck));
			this->dbGridSap = new System::Windows::Forms::DataGrid();
			this->label1 = new System::Windows::Forms::Label();
			this->cmdCancel = new System::Windows::Forms::Button();
			this->cmdOK = new System::Windows::Forms::Button();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dbGridSap))->BeginInit();
			this->SuspendLayout();
			// 
			// dbGridSap
			// 
			this->dbGridSap->AccessibleDescription = resources->GetString(S"dbGridSap.AccessibleDescription");
			this->dbGridSap->AccessibleName = resources->GetString(S"dbGridSap.AccessibleName");
			this->dbGridSap->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"dbGridSap.Anchor")));
			this->dbGridSap->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"dbGridSap.BackgroundImage")));
			this->dbGridSap->CaptionFont = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"dbGridSap.CaptionFont")));
			this->dbGridSap->CaptionText = resources->GetString(S"dbGridSap.CaptionText");
			this->dbGridSap->CaptionVisible = false;
			this->dbGridSap->DataMember = S"";
			this->dbGridSap->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"dbGridSap.Dock")));
			this->dbGridSap->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"dbGridSap.Enabled")));
			this->dbGridSap->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"dbGridSap.Font")));
			this->dbGridSap->HeaderForeColor = System::Drawing::SystemColors::ControlText;
			this->dbGridSap->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"dbGridSap.ImeMode")));
			this->dbGridSap->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"dbGridSap.Location")));
			this->dbGridSap->Name = S"dbGridSap";
			this->dbGridSap->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"dbGridSap.RightToLeft")));
			this->dbGridSap->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"dbGridSap.Size")));
			this->dbGridSap->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"dbGridSap.TabIndex")));
			this->dbGridSap->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"dbGridSap.Visible")));
			// 
			// label1
			// 
			this->label1->AccessibleDescription = resources->GetString(S"label1.AccessibleDescription");
			this->label1->AccessibleName = resources->GetString(S"label1.AccessibleName");
			this->label1->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"label1.Anchor")));
			this->label1->AutoSize = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"label1.AutoSize")));
			this->label1->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"label1.Dock")));
			this->label1->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"label1.Enabled")));
			this->label1->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"label1.Font")));
			this->label1->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"label1.Image")));
			this->label1->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"label1.ImageAlign")));
			this->label1->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"label1.ImageIndex")));
			this->label1->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"label1.ImeMode")));
			this->label1->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"label1.Location")));
			this->label1->Name = S"label1";
			this->label1->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"label1.RightToLeft")));
			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")));
			// 
			// cmdCancel
			// 
			this->cmdCancel->AccessibleDescription = resources->GetString(S"cmdCancel.AccessibleDescription");
			this->cmdCancel->AccessibleName = resources->GetString(S"cmdCancel.AccessibleName");
			this->cmdCancel->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"cmdCancel.Anchor")));
			this->cmdCancel->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"cmdCancel.BackgroundImage")));
			this->cmdCancel->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"cmdCancel.Dock")));
			this->cmdCancel->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cmdCancel.Enabled")));
			this->cmdCancel->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"cmdCancel.FlatStyle")));
			this->cmdCancel->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"cmdCancel.Font")));
			this->cmdCancel->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"cmdCancel.Image")));
			this->cmdCancel->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"cmdCancel.ImageAlign")));
			this->cmdCancel->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cmdCancel.ImageIndex")));
			this->cmdCancel->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"cmdCancel.ImeMode")));
			this->cmdCancel->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"cmdCancel.Location")));
			this->cmdCancel->Name = S"cmdCancel";
			this->cmdCancel->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"cmdCancel.RightToLeft")));
			this->cmdCancel->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"cmdCancel.Size")));
			this->cmdCancel->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cmdCancel.TabIndex")));
			this->cmdCancel->Text = resources->GetString(S"cmdCancel.Text");
			this->cmdCancel->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"cmdCancel.TextAlign")));
			this->cmdCancel->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cmdCancel.Visible")));
			this->cmdCancel->Click += new System::EventHandler(this, cmdCancel_Click);
			// 
			// cmdOK
			// 
			this->cmdOK->AccessibleDescription = resources->GetString(S"cmdOK.AccessibleDescription");
			this->cmdOK->AccessibleName = resources->GetString(S"cmdOK.AccessibleName");
			this->cmdOK->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"cmdOK.Anchor")));
			this->cmdOK->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"cmdOK.BackgroundImage")));
			this->cmdOK->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"cmdOK.Dock")));
			this->cmdOK->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cmdOK.Enabled")));
			this->cmdOK->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"cmdOK.FlatStyle")));
			this->cmdOK->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"cmdOK.Font")));
			this->cmdOK->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"cmdOK.Image")));
			this->cmdOK->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"cmdOK.ImageAlign")));
			this->cmdOK->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cmdOK.ImageIndex")));
			this->cmdOK->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"cmdOK.ImeMode")));
			this->cmdOK->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"cmdOK.Location")));
			this->cmdOK->Name = S"cmdOK";
			this->cmdOK->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"cmdOK.RightToLeft")));
			this->cmdOK->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"cmdOK.Size")));
			this->cmdOK->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"cmdOK.TabIndex")));
			this->cmdOK->Text = resources->GetString(S"cmdOK.Text");
			this->cmdOK->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"cmdOK.TextAlign")));
			this->cmdOK->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"cmdOK.Visible")));
			this->cmdOK->Click += new System::EventHandler(this, cmdOK_Click);
			// 
			// SAPStockCheck
			// 
			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->cmdCancel);
			this->Controls->Add(this->cmdOK);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->dbGridSap);
			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->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"SAPStockCheck";
			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, SAPStockCheck_Load);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dbGridSap))->EndInit();
			this->ResumeLayout(false);

		}		
	private: System::Void SAPStockCheck_Load(System::Object *  sender, System::EventArgs *  e)
			 {

				 InitGrid(infSAPCheck->intLang);

				 GetGrid(strSEQ);			 
				 				 
			 }

	private: System::Void cmdOK_Click(System::Object *  sender, System::EventArgs *  e)
			 {
				 DataRow *dRowTmp;
				
				 String *strSQL;

				 //DataCell *dCellTmp;

				if ((dbGridSap->CurrentCell.RowNumber<0) || (dbGridSap->CurrentCell.ColumnNumber<0))  {
					String *msg[]={S"请选择一行!!",S"一行を選択してください!!",S"Please select row!!"};
					MessageBox::Show(msg[infSAPCheck->intLang]);
					return;
				}
				
				strSQL =String::Concat(S"select distinct * from deliver_Data_temp where sequence = ",Convert::ToString(dbGridSap->get_Item(dbGridSap->CurrentCell.RowNumber,0)));

				dbBSapCheck->blnCnnOpen();

				dRowTmp = dbBSapCheck->dRowSQL_Select(strSQL);
				
				Deliver *frmDeliver = new Deliver(infSAPCheck,1,dRowTmp);

				frmDeliver->ShowDialog(this);

				GetGrid(strSEQ);
			 }

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

};
}

⌨️ 快捷键说明

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