📄 calendarinput.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
{
#define MaxDateLine 6;
#define MaxTeam 4;
/// <summary>
/// CalendarInput 偺奣梫
///
/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨
/// 儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪
/// 曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄
/// 僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
/// 惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅
/// </summary>
public __gc class CalendarInput : public System::Windows::Forms::Form
{
public:
CalendarInput(void)
{
InitializeComponent();
}
CalendarInput(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;
DataSet* oDataSet;
DataTable* oDataTable;
DataGridTableStyle* oTableStyle;
DataTable* oGridTable;
DataSet* oGridSet;
DataRow* oGridRow;
String* sSelShift;
int iSelYear;
int iSelMonth;
String* sSelProcess;
private: System::Windows::Forms::Label * lbl_Title;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::Button * buttonSerch;
private: System::Windows::Forms::Button * buttonSubmit;
private: System::Windows::Forms::Button * buttonClose;
private: System::Windows::Forms::DataGrid * dataGridCal;
private: System::Windows::Forms::ComboBox * comboBoxYear;
private: System::Windows::Forms::ComboBox * comboBoxMonth;
private: System::Windows::Forms::ComboBox * comboBoxProcess;
private: System::Windows::Forms::GroupBox * groupBoxShift;
private: System::Windows::Forms::RadioButton * radioButtonDay;
private: System::Windows::Forms::RadioButton * radioButtonNight;
private: System::Windows::Forms::RadioButton * radioButtonOff;
private: System::Windows::Forms::Panel * panel1;
private:
/// <summary>
/// 昁梫側僨僓僀僫曄悢偱偡丅
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
/// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::CalendarInput));
this->lbl_Title = new System::Windows::Forms::Label();
this->comboBoxYear = new System::Windows::Forms::ComboBox();
this->comboBoxMonth = new System::Windows::Forms::ComboBox();
this->comboBoxProcess = new System::Windows::Forms::ComboBox();
this->label1 = new System::Windows::Forms::Label();
this->label2 = new System::Windows::Forms::Label();
this->label3 = new System::Windows::Forms::Label();
this->buttonSerch = new System::Windows::Forms::Button();
this->groupBoxShift = new System::Windows::Forms::GroupBox();
this->radioButtonDay = new System::Windows::Forms::RadioButton();
this->radioButtonNight = new System::Windows::Forms::RadioButton();
this->radioButtonOff = new System::Windows::Forms::RadioButton();
this->buttonSubmit = new System::Windows::Forms::Button();
this->buttonClose = new System::Windows::Forms::Button();
this->dataGridCal = new System::Windows::Forms::DataGrid();
this->panel1 = new System::Windows::Forms::Panel();
this->groupBoxShift->SuspendLayout();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGridCal))->BeginInit();
this->panel1->SuspendLayout();
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")));
//
// comboBoxYear
//
this->comboBoxYear->AccessibleDescription = resources->GetString(S"comboBoxYear.AccessibleDescription");
this->comboBoxYear->AccessibleName = resources->GetString(S"comboBoxYear.AccessibleName");
this->comboBoxYear->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"comboBoxYear.Anchor")));
this->comboBoxYear->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"comboBoxYear.BackgroundImage")));
this->comboBoxYear->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"comboBoxYear.Dock")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -