📄 productsimulation.h
字号:
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
#include "DBBase.h"
#include "infClass.h"
namespace FAP
{
/// <summary>
/// ProductSimulation 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class ProductSimulation : public System::Windows::Forms::Form
{
public:
ProductSimulation(void)
{
InitializeComponent();
}
ProductSimulation(infClass *infTmp)
{
InitializeComponent();
dbProSim = new DBBase();
infProSim = infTmp;
}
DBBase *dbProSim;
private: System::Windows::Forms::TextBox * txtQty;
private: System::Windows::Forms::ComboBox * cboName;
private: System::Windows::Forms::DataGrid * DBGridPrd;
infClass *infProSim;
void iniGrid(int); //initializing the format of datagrid,the parameter is used for different language version's treatment //note added by DongZhaoLiang
void intCombo(int); //use parts master to initialize the product name comobox
void setGrid(int,Single,String *); //get database data and set data in the datagrid,first parameter is for language version,
//second parameter is for number you entered in the comobox ,third parameter is for product name you entered in the comobox
static String * sa_lang[] = {S"C",S"J",S"E"};
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Button * button3;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::Label * label7;
private: System::Windows::Forms::Label * label8;
private: System::Windows::Forms::Button * button1;
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::ProductSimulation));
this->button3 = new System::Windows::Forms::Button();
this->txtQty = new System::Windows::Forms::TextBox();
this->label4 = new System::Windows::Forms::Label();
this->label7 = new System::Windows::Forms::Label();
this->label8 = new System::Windows::Forms::Label();
this->button1 = new System::Windows::Forms::Button();
this->cboName = new System::Windows::Forms::ComboBox();
this->DBGridPrd = new System::Windows::Forms::DataGrid();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->DBGridPrd))->BeginInit();
this->SuspendLayout();
//
// button3
//
this->button3->AccessibleDescription = resources->GetString(S"button3.AccessibleDescription");
this->button3->AccessibleName = resources->GetString(S"button3.AccessibleName");
this->button3->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"button3.Anchor")));
this->button3->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"button3.BackgroundImage")));
this->button3->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"button3.Dock")));
this->button3->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"button3.Enabled")));
this->button3->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"button3.FlatStyle")));
this->button3->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"button3.Font")));
this->button3->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"button3.Image")));
this->button3->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"button3.ImageAlign")));
this->button3->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"button3.ImageIndex")));
this->button3->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"button3.ImeMode")));
this->button3->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"button3.Location")));
this->button3->Name = S"button3";
this->button3->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"button3.RightToLeft")));
this->button3->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"button3.Size")));
this->button3->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"button3.TabIndex")));
this->button3->Text = resources->GetString(S"button3.Text");
this->button3->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"button3.TextAlign")));
this->button3->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"button3.Visible")));
this->button3->Click += new System::EventHandler(this, button3_Click);
//
// txtQty
//
this->txtQty->AccessibleDescription = resources->GetString(S"txtQty.AccessibleDescription");
this->txtQty->AccessibleName = resources->GetString(S"txtQty.AccessibleName");
this->txtQty->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"txtQty.Anchor")));
this->txtQty->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"txtQty.AutoSize")));
this->txtQty->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"txtQty.BackgroundImage")));
this->txtQty->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"txtQty.Dock")));
this->txtQty->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"txtQty.Enabled")));
this->txtQty->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"txtQty.Font")));
this->txtQty->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"txtQty.ImeMode")));
this->txtQty->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"txtQty.Location")));
this->txtQty->MaxLength = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"txtQty.MaxLength")));
this->txtQty->Multiline = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"txtQty.Multiline")));
this->txtQty->Name = S"txtQty";
this->txtQty->PasswordChar = (*__try_cast<__box System::Char * >(resources->GetObject(S"txtQty.PasswordChar")));
this->txtQty->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"txtQty.RightToLeft")));
this->txtQty->ScrollBars = (*__try_cast<__box System::Windows::Forms::ScrollBars * >(resources->GetObject(S"txtQty.ScrollBars")));
this->txtQty->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"txtQty.Size")));
this->txtQty->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"txtQty.TabIndex")));
this->txtQty->Text = resources->GetString(S"txtQty.Text");
this->txtQty->TextAlign = (*__try_cast<__box System::Windows::Forms::HorizontalAlignment * >(resources->GetObject(S"txtQty.TextAlign")));
this->txtQty->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"txtQty.Visible")));
this->txtQty->WordWrap = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"txtQty.WordWrap")));
//
// label4
//
this->label4->AccessibleDescription = resources->GetString(S"label4.AccessibleDescription");
this->label4->AccessibleName = resources->GetString(S"label4.AccessibleName");
this->label4->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"label4.Anchor")));
this->label4->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label4.AutoSize")));
this->label4->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"label4.Dock")));
this->label4->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label4.Enabled")));
this->label4->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"label4.Font")));
this->label4->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"label4.Image")));
this->label4->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label4.ImageAlign")));
this->label4->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label4.ImageIndex")));
this->label4->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"label4.ImeMode")));
this->label4->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"label4.Location")));
this->label4->Name = S"label4";
this->label4->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"label4.RightToLeft")));
this->label4->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"label4.Size")));
this->label4->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label4.TabIndex")));
this->label4->Text = resources->GetString(S"label4.Text");
this->label4->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label4.TextAlign")));
this->label4->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label4.Visible")));
//
// label7
//
this->label7->AccessibleDescription = resources->GetString(S"label7.AccessibleDescription");
this->label7->AccessibleName = resources->GetString(S"label7.AccessibleName");
this->label7->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"label7.Anchor")));
this->label7->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label7.AutoSize")));
this->label7->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"label7.Dock")));
this->label7->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label7.Enabled")));
this->label7->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"label7.Font")));
this->label7->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"label7.Image")));
this->label7->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label7.ImageAlign")));
this->label7->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label7.ImageIndex")));
this->label7->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"label7.ImeMode")));
this->label7->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"label7.Location")));
this->label7->Name = S"label7";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -