platestocklist.h
来自「这是一个工厂的生产线的仓库管理.有计划,实绩,库存等」· C头文件 代码 · 共 392 行 · 第 1/2 页
H
392 行
#pragma once
#include "DBBase.h"
#include "infClass.h"
#include "PlateProductResult.h"
#include "PlateUsedInput.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;
using namespace System::Data::OleDb;
namespace FAP
{
/// <summary>
/// PlateStockList 摘要
///
/// 警告: 如果您更改该类的名称,则将需要更改
/// 与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。 否则,
/// 设计器将不能与此窗体关联的
/// 本地化资源正确交互。
/// </summary>
public __gc class PlateStockList : public System::Windows::Forms::Form
{
private:
PlateProductResult *pPlateProductResult;
PlateUsedInput *pPlateUsedInput;
//Global Palameter
infClass *oInf;
int iLanguage;
String *sFactory;
String *sLine;
String *sProcess;
int iGroup;
String *cShift;
//数据库
DBBase *dbPlateStockList;
//Begin funtions.
DataTable *dtPlateCode(infClass *infTmp,DBBase *dBTMP);
void initShowResultGrid();
void initDataShowResultGrid(String * strProductNo);
//read plate name
//String __gc * strPlateName(String * strPlateCode,DBBase * DBbTmp);
public:
PlateStockList(void)
{
InitializeComponent();
}
PlateStockList(infClass *infClsTmp)//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();
dbPlateStockList = new DBBase() ;
oInf = infClsTmp;
iLanguage = oInf->intLang;
sFactory = oInf->strFactoryCode;
sLine = oInf->strLine;
sProcess = oInf->strProcess;
iGroup = oInf->intGroup;
cShift = oInf->strShift;
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Label * lbTitle;
private: System::Windows::Forms::Label * lbProductCode;
private: System::Windows::Forms::ComboBox * comboProductCode;
private: System::Windows::Forms::DataGrid * showResultGrid;
private: System::Windows::Forms::Button * btnPlateProductInput;
private: System::Windows::Forms::Button * btnPlateUsedInput;
private: System::Windows::Forms::Button * btnPrintData;
private: System::Windows::Forms::Button * btnClose;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::PlateStockList));
this->lbTitle = new System::Windows::Forms::Label();
this->lbProductCode = new System::Windows::Forms::Label();
this->comboProductCode = new System::Windows::Forms::ComboBox();
this->showResultGrid = new System::Windows::Forms::DataGrid();
this->btnPlateProductInput = new System::Windows::Forms::Button();
this->btnPlateUsedInput = new System::Windows::Forms::Button();
this->btnPrintData = new System::Windows::Forms::Button();
this->btnClose = new System::Windows::Forms::Button();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->showResultGrid))->BeginInit();
this->SuspendLayout();
//
// lbTitle
//
this->lbTitle->AccessibleDescription = resources->GetString(S"lbTitle.AccessibleDescription");
this->lbTitle->AccessibleName = resources->GetString(S"lbTitle.AccessibleName");
this->lbTitle->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"lbTitle.Anchor")));
this->lbTitle->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbTitle.AutoSize")));
this->lbTitle->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"lbTitle.Dock")));
this->lbTitle->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbTitle.Enabled")));
this->lbTitle->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"lbTitle.Font")));
this->lbTitle->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"lbTitle.Image")));
this->lbTitle->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbTitle.ImageAlign")));
this->lbTitle->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbTitle.ImageIndex")));
this->lbTitle->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"lbTitle.ImeMode")));
this->lbTitle->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"lbTitle.Location")));
this->lbTitle->Name = S"lbTitle";
this->lbTitle->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"lbTitle.RightToLeft")));
this->lbTitle->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"lbTitle.Size")));
this->lbTitle->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbTitle.TabIndex")));
this->lbTitle->Text = resources->GetString(S"lbTitle.Text");
this->lbTitle->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbTitle.TextAlign")));
this->lbTitle->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbTitle.Visible")));
//
// lbProductCode
//
this->lbProductCode->AccessibleDescription = resources->GetString(S"lbProductCode.AccessibleDescription");
this->lbProductCode->AccessibleName = resources->GetString(S"lbProductCode.AccessibleName");
this->lbProductCode->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"lbProductCode.Anchor")));
this->lbProductCode->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbProductCode.AutoSize")));
this->lbProductCode->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"lbProductCode.Dock")));
this->lbProductCode->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbProductCode.Enabled")));
this->lbProductCode->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"lbProductCode.Font")));
this->lbProductCode->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"lbProductCode.Image")));
this->lbProductCode->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbProductCode.ImageAlign")));
this->lbProductCode->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbProductCode.ImageIndex")));
this->lbProductCode->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"lbProductCode.ImeMode")));
this->lbProductCode->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"lbProductCode.Location")));
this->lbProductCode->Name = S"lbProductCode";
this->lbProductCode->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"lbProductCode.RightToLeft")));
this->lbProductCode->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"lbProductCode.Size")));
this->lbProductCode->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbProductCode.TabIndex")));
this->lbProductCode->Text = resources->GetString(S"lbProductCode.Text");
this->lbProductCode->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbProductCode.TextAlign")));
this->lbProductCode->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbProductCode.Visible")));
//
// comboProductCode
//
this->comboProductCode->AccessibleDescription = resources->GetString(S"comboProductCode.AccessibleDescription");
this->comboProductCode->AccessibleName = resources->GetString(S"comboProductCode.AccessibleName");
this->comboProductCode->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"comboProductCode.Anchor")));
this->comboProductCode->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"comboProductCode.BackgroundImage")));
this->comboProductCode->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"comboProductCode.Dock")));
this->comboProductCode->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"comboProductCode.Enabled")));
this->comboProductCode->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"comboProductCode.Font")));
this->comboProductCode->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"comboProductCode.ImeMode")));
this->comboProductCode->IntegralHeight = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"comboProductCode.IntegralHeight")));
this->comboProductCode->ItemHeight = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"comboProductCode.ItemHeight")));
this->comboProductCode->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"comboProductCode.Location")));
this->comboProductCode->MaxDropDownItems = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"comboProductCode.MaxDropDownItems")));
this->comboProductCode->MaxLength = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"comboProductCode.MaxLength")));
this->comboProductCode->Name = S"comboProductCode";
this->comboProductCode->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"comboProductCode.RightToLeft")));
this->comboProductCode->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"comboProductCode.Size")));
this->comboProductCode->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"comboProductCode.TabIndex")));
this->comboProductCode->Text = resources->GetString(S"comboProductCode.Text");
this->comboProductCode->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"comboProductCode.Visible")));
this->comboProductCode->KeyPress += new System::Windows::Forms::KeyPressEventHandler(this, comboProductCode_KeyPress);
this->comboProductCode->SelectedIndexChanged += new System::EventHandler(this, comboProductCode_SelectedIndexChanged);
//
// showResultGrid
//
this->showResultGrid->AccessibleDescription = resources->GetString(S"showResultGrid.AccessibleDescription");
this->showResultGrid->AccessibleName = resources->GetString(S"showResultGrid.AccessibleName");
this->showResultGrid->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"showResultGrid.Anchor")));
this->showResultGrid->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"showResultGrid.BackgroundImage")));
this->showResultGrid->CaptionFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"showResultGrid.CaptionFont")));
this->showResultGrid->CaptionText = resources->GetString(S"showResultGrid.CaptionText");
this->showResultGrid->CaptionVisible = false;
this->showResultGrid->DataMember = S"";
this->showResultGrid->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"showResultGrid.Dock")));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?