📄 stock.h
字号:
#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>
/// Stock 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class Stock : public System::Windows::Forms::Form
{
public:
Stock(void)
{
InitializeComponent();
}
Stock(infClass * infClsTmp)
{
InitializeComponent();
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:
//Global Palameter
int iLanguage;
String* sFactory;
String* sLine;
String* sProcess;
int iGroup;
String* cShift;
infClass* oInf;
DBBase* oDB;
int iSAP;
DataSet* oDataSet;
DataTable* oDataTable;
DataGridTableStyle* oTableStyle;
private: System::Windows::Forms::Label * lbl_Title;
private: System::Windows::Forms::Button * btn_Check;
private: System::Windows::Forms::Button * btn_Close;
private: System::Windows::Forms::DataGrid * dataGridStock;
private: System::Windows::Forms::Button * btn_NewData;
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::Stock));
this->lbl_Title = new System::Windows::Forms::Label();
this->dataGridStock = new System::Windows::Forms::DataGrid();
this->btn_Check = new System::Windows::Forms::Button();
this->btn_Close = new System::Windows::Forms::Button();
this->btn_NewData = new System::Windows::Forms::Button();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGridStock))->BeginInit();
this->SuspendLayout();
//
// lbl_Title
//
this->lbl_Title->AccessibleDescription = resources->GetString(S"lbl_Title.AccessibleDescription");
this->lbl_Title->AccessibleName = resources->GetString(S"lbl_Title.AccessibleName");
this->lbl_Title->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"lbl_Title.Anchor")));
this->lbl_Title->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.AutoSize")));
this->lbl_Title->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"lbl_Title.Dock")));
this->lbl_Title->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.Enabled")));
this->lbl_Title->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"lbl_Title.Font")));
this->lbl_Title->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"lbl_Title.Image")));
this->lbl_Title->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbl_Title.ImageAlign")));
this->lbl_Title->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbl_Title.ImageIndex")));
this->lbl_Title->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"lbl_Title.ImeMode")));
this->lbl_Title->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"lbl_Title.Location")));
this->lbl_Title->Name = S"lbl_Title";
this->lbl_Title->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"lbl_Title.RightToLeft")));
this->lbl_Title->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"lbl_Title.Size")));
this->lbl_Title->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbl_Title.TabIndex")));
this->lbl_Title->Text = resources->GetString(S"lbl_Title.Text");
this->lbl_Title->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbl_Title.TextAlign")));
this->lbl_Title->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.Visible")));
//
// dataGridStock
//
this->dataGridStock->AccessibleDescription = resources->GetString(S"dataGridStock.AccessibleDescription");
this->dataGridStock->AccessibleName = resources->GetString(S"dataGridStock.AccessibleName");
this->dataGridStock->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"dataGridStock.Anchor")));
this->dataGridStock->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"dataGridStock.BackgroundImage")));
this->dataGridStock->CaptionFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dataGridStock.CaptionFont")));
this->dataGridStock->CaptionText = resources->GetString(S"dataGridStock.CaptionText");
this->dataGridStock->CaptionVisible = false;
this->dataGridStock->DataMember = S"";
this->dataGridStock->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"dataGridStock.Dock")));
this->dataGridStock->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dataGridStock.Enabled")));
this->dataGridStock->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dataGridStock.Font")));
this->dataGridStock->HeaderFont = new System::Drawing::Font(S"MS UI Gothic", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, (System::Byte)0);
this->dataGridStock->HeaderForeColor = System::Drawing::SystemColors::ControlText;
this->dataGridStock->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"dataGridStock.ImeMode")));
this->dataGridStock->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"dataGridStock.Location")));
this->dataGridStock->Name = S"dataGridStock";
this->dataGridStock->ReadOnly = true;
this->dataGridStock->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"dataGridStock.RightToLeft")));
this->dataGridStock->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"dataGridStock.Size")));
this->dataGridStock->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"dataGridStock.TabIndex")));
this->dataGridStock->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dataGridStock.Visible")));
this->dataGridStock->DoubleClick += new System::EventHandler(this, dataGridStock_DoubleClick);
this->dataGridStock->Navigate += new System::Windows::Forms::NavigateEventHandler(this, dataGridStock_Navigate);
//
// btn_Check
//
this->btn_Check->AccessibleDescription = resources->GetString(S"btn_Check.AccessibleDescription");
this->btn_Check->AccessibleName = resources->GetString(S"btn_Check.AccessibleName");
this->btn_Check->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"btn_Check.Anchor")));
this->btn_Check->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"btn_Check.BackgroundImage")));
this->btn_Check->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"btn_Check.Dock")));
this->btn_Check->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"btn_Check.Enabled")));
this->btn_Check->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"btn_Check.FlatStyle")));
this->btn_Check->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"btn_Check.Font")));
this->btn_Check->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"btn_Check.Image")));
this->btn_Check->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"btn_Check.ImageAlign")));
this->btn_Check->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"btn_Check.ImageIndex")));
this->btn_Check->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"btn_Check.ImeMode")));
this->btn_Check->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"btn_Check.Location")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -