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

📄 totallosstable.h

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

#include "DBBase.h"
#include "infClass.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> 
	/// TotalLossTable 偺奣梫
	///
	/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨 
	///          儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪 
	///          曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
	///          僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
	///          惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
	/// </summary>
	public __gc class TotalLossTable : public System::Windows::Forms::Form
	{
	public: 
		TotalLossTable(void)
		{
			InitializeComponent();
		}
		TotalLossTable(infClass * infClsTmp,int rank)//rank is decide which  person of rank enter into this form,value 0 is for worker,1,2 is sequently for mananger and administrator 
		{
			InitializeComponent();
			oInf = infClsTmp;
			iLanguage	= oInf->intLang;
			sFactory	= oInf->strFactoryCode;
			sLine		= oInf->strLine;
			sProcess	= oInf->strProcess;
			iGroup		= oInf->intGroup;
			cShift		= oInf->strShift;
			insiderank = rank;
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::Button *  button1;
	private: System::Windows::Forms::Button *  button2;

	private: System::Windows::Forms::Label *  lbl_Title;
	private: System::Windows::Forms::Label *  label7;


	private: System::Windows::Forms::Button *  button3;
	private: System::Windows::Forms::DataGrid *  dataGridLossTable;
	private: System::Windows::Forms::ComboBox *  comboBoxProcess;
	private: System::Windows::Forms::ComboBox *  comboBoxTime;
	private: System::Windows::Forms::Button *  buttonSearch;

	private: int			insiderank;//decide which  person of rank enter into this form,value 0 is for worker,1,2 is sequently for mananger and administrator 
			 int 			iLanguage;
			 String*		sFactory;
			 String*		sLine;
			 String*		sProcess;
			 int 		    iGroup;
			 String*		cShift;
			 infClass*		oInf;
			 DBBase*		oDB;
			// DataSet*	   oDataSet;
	
	
	
	private:DataGridTableStyle* oTableStyleLossTable;
		    DataSet*			oDataSetLossTable;
	private: System::Windows::Forms::DateTimePicker *  dateTimePickerFrom;
	private: System::Windows::Forms::DateTimePicker *  dateTimePickerTo;
	private: System::Windows::Forms::Label *  label4;
	private: System::Windows::Forms::Label *  label3;
	private: System::Windows::Forms::Label *  label5;
			 //private: System::Windows::Forms::DataGrid *  dataGridLossTable;
			 DataTable*			oDataTableLossTable;

	private: void SetValueDataGridLossTable(String* sProcessNo,int selectedIndex);
             void InitGridDataGridLossTable(int selectedIndex);
			 void SetValueComboBoxProcess(void);
			 void InitComboBoxTime(void);

	private:
		/// <summary>
		/// 昁梫側僨僓僀僫曄悢偱偡丅
		/// </summary>
		System::ComponentModel::Container* components;

		/// <summary>
		/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
		/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
		/// </summary>
		void InitializeComponent(void)
		{
			System::Resources::ResourceManager *  resources = new System::Resources::ResourceManager(__typeof(FAP::TotalLossTable));
			this->button1 = new System::Windows::Forms::Button();
			this->button2 = new System::Windows::Forms::Button();
			this->dataGridLossTable = new System::Windows::Forms::DataGrid();
			this->lbl_Title = new System::Windows::Forms::Label();
			this->label7 = new System::Windows::Forms::Label();
			this->comboBoxProcess = new System::Windows::Forms::ComboBox();
			this->comboBoxTime = new System::Windows::Forms::ComboBox();
			this->button3 = new System::Windows::Forms::Button();
			this->buttonSearch = new System::Windows::Forms::Button();
			this->dateTimePickerFrom = new System::Windows::Forms::DateTimePicker();
			this->dateTimePickerTo = new System::Windows::Forms::DateTimePicker();
			this->label4 = new System::Windows::Forms::Label();
			this->label3 = new System::Windows::Forms::Label();
			this->label5 = new System::Windows::Forms::Label();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGridLossTable))->BeginInit();
			this->SuspendLayout();
			// 
			// button1
			// 
			this->button1->AccessibleDescription = resources->GetString(S"button1.AccessibleDescription");
			this->button1->AccessibleName = resources->GetString(S"button1.AccessibleName");
			this->button1->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"button1.Anchor")));
			this->button1->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"button1.BackgroundImage")));
			this->button1->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"button1.Dock")));
			this->button1->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"button1.Enabled")));
			this->button1->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"button1.FlatStyle")));
			this->button1->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"button1.Font")));
			this->button1->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"button1.Image")));
			this->button1->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"button1.ImageAlign")));
			this->button1->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"button1.ImageIndex")));
			this->button1->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"button1.ImeMode")));
			this->button1->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"button1.Location")));
			this->button1->Name = S"button1";
			this->button1->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"button1.RightToLeft")));
			this->button1->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"button1.Size")));
			this->button1->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"button1.TabIndex")));
			this->button1->Text = resources->GetString(S"button1.Text");
			this->button1->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"button1.TextAlign")));
			this->button1->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"button1.Visible")));
			// 
			// button2
			// 
			this->button2->AccessibleDescription = resources->GetString(S"button2.AccessibleDescription");
			this->button2->AccessibleName = resources->GetString(S"button2.AccessibleName");
			this->button2->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"button2.Anchor")));
			this->button2->BackgroundImage = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"button2.BackgroundImage")));
			this->button2->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle *  >(resources->GetObject(S"button2.Dock")));
			this->button2->Enabled = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"button2.Enabled")));
			this->button2->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle *  >(resources->GetObject(S"button2.FlatStyle")));
			this->button2->Font = (__try_cast<System::Drawing::Font *  >(resources->GetObject(S"button2.Font")));
			this->button2->Image = (__try_cast<System::Drawing::Image *  >(resources->GetObject(S"button2.Image")));
			this->button2->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"button2.ImageAlign")));
			this->button2->ImageIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"button2.ImageIndex")));
			this->button2->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode *  >(resources->GetObject(S"button2.ImeMode")));
			this->button2->Location = (*__try_cast<__box System::Drawing::Point *  >(resources->GetObject(S"button2.Location")));
			this->button2->Name = S"button2";
			this->button2->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft *  >(resources->GetObject(S"button2.RightToLeft")));
			this->button2->Size = (*__try_cast<__box System::Drawing::Size *  >(resources->GetObject(S"button2.Size")));
			this->button2->TabIndex = (*__try_cast<__box System::Int32 *  >(resources->GetObject(S"button2.TabIndex")));
			this->button2->Text = resources->GetString(S"button2.Text");
			this->button2->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment *  >(resources->GetObject(S"button2.TextAlign")));
			this->button2->Visible = (*__try_cast<__box System::Boolean *  >(resources->GetObject(S"button2.Visible")));
			this->button2->Click += new System::EventHandler(this, button2_Click);
			// 
			// dataGridLossTable
			// 
			this->dataGridLossTable->AccessibleDescription = resources->GetString(S"dataGridLossTable.AccessibleDescription");
			this->dataGridLossTable->AccessibleName = resources->GetString(S"dataGridLossTable.AccessibleName");
			this->dataGridLossTable->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles *  >(resources->GetObject(S"dataGridLossTable.Anchor")));

⌨️ 快捷键说明

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