📄 dutyroser1.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 "infClass.h"
#include "DBBase.h"
#include "DutyDetail.h"
namespace FAP
{
/// <summary>
/// Summary for DutyRoser1
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public __gc class DutyRoser1 : public System::Windows::Forms::Form
{
public:
DutyRoser1(void)
{
InitializeComponent();
}
DutyRoser1(infClass *infTmp)
{
InitializeComponent();
dbDutyRoster = new DBBase();
infDutyRoster = infTmp;
}
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Button * button1;
private: System::Windows::Forms::Button * button2;
private: System::Windows::Forms::Button * button3;
private: System::Windows::Forms::DataGrid * dbGridDtl;
private: System::Windows::Forms::Button * button4;
infClass *infDutyRoster;
void setSimple(DateTime ,int); //the second parameter is language version selection
void InitSimpleGird(int intLang); //initializing the format of master datagrid//note added by DongZhaoLiang
void InitDetailGird(int intLang); //initializing the format of detail datagrid//note added by DongZhaoLiang
void setDetail(DateTime dteTmp,String *strProTemp,String *strTeam); //set detail datagrid's content parameter strProTemp is process number,parameter strTeam is for team number
DBBase *dbDutyRoster;
DateTime dteGloab;
DutyDetail *frmDutyDetail;
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::DataGrid * DBGridSim;
private: System::Windows::Forms::DateTimePicker * dtpDate;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::DutyRoser1));
this->DBGridSim = new System::Windows::Forms::DataGrid();
this->dtpDate = new System::Windows::Forms::DateTimePicker();
this->label1 = new System::Windows::Forms::Label();
this->label2 = new System::Windows::Forms::Label();
this->button1 = new System::Windows::Forms::Button();
this->button2 = new System::Windows::Forms::Button();
this->button3 = new System::Windows::Forms::Button();
this->dbGridDtl = new System::Windows::Forms::DataGrid();
this->button4 = new System::Windows::Forms::Button();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->DBGridSim))->BeginInit();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dbGridDtl))->BeginInit();
this->SuspendLayout();
//
// DBGridSim
//
this->DBGridSim->AccessibleDescription = resources->GetString(S"DBGridSim.AccessibleDescription");
this->DBGridSim->AccessibleName = resources->GetString(S"DBGridSim.AccessibleName");
this->DBGridSim->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"DBGridSim.Anchor")));
this->DBGridSim->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"DBGridSim.BackgroundImage")));
this->DBGridSim->CaptionFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"DBGridSim.CaptionFont")));
this->DBGridSim->CaptionText = resources->GetString(S"DBGridSim.CaptionText");
this->DBGridSim->CaptionVisible = false;
this->DBGridSim->DataMember = S"";
this->DBGridSim->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"DBGridSim.Dock")));
this->DBGridSim->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"DBGridSim.Enabled")));
this->DBGridSim->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"DBGridSim.Font")));
this->DBGridSim->HeaderFont = new System::Drawing::Font(S"MS UI Gothic", 14);
this->DBGridSim->HeaderForeColor = System::Drawing::SystemColors::ControlText;
this->DBGridSim->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"DBGridSim.ImeMode")));
this->DBGridSim->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"DBGridSim.Location")));
this->DBGridSim->Name = S"DBGridSim";
this->DBGridSim->ReadOnly = true;
this->DBGridSim->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"DBGridSim.RightToLeft")));
this->DBGridSim->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"DBGridSim.Size")));
this->DBGridSim->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"DBGridSim.TabIndex")));
this->DBGridSim->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"DBGridSim.Visible")));
this->DBGridSim->MouseUp += new System::Windows::Forms::MouseEventHandler(this, DBGridSim_MouseUp);
this->DBGridSim->CurrentCellChanged += new System::EventHandler(this, DBGridSim_CurrentCellChanged);
//
// dtpDate
//
this->dtpDate->AccessibleDescription = resources->GetString(S"dtpDate.AccessibleDescription");
this->dtpDate->AccessibleName = resources->GetString(S"dtpDate.AccessibleName");
this->dtpDate->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"dtpDate.Anchor")));
this->dtpDate->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"dtpDate.BackgroundImage")));
this->dtpDate->CalendarFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dtpDate.CalendarFont")));
this->dtpDate->CustomFormat = S"yyyy - MM";
this->dtpDate->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"dtpDate.Dock")));
this->dtpDate->DropDownAlign = (*__try_cast<__box System::Windows::Forms::LeftRightAlignment * >(resources->GetObject(S"dtpDate.DropDownAlign")));
this->dtpDate->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dtpDate.Enabled")));
this->dtpDate->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dtpDate.Font")));
this->dtpDate->Format = System::Windows::Forms::DateTimePickerFormat::Custom;
this->dtpDate->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"dtpDate.ImeMode")));
this->dtpDate->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"dtpDate.Location")));
this->dtpDate->Name = S"dtpDate";
this->dtpDate->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"dtpDate.RightToLeft")));
this->dtpDate->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"dtpDate.Size")));
this->dtpDate->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"dtpDate.TabIndex")));
this->dtpDate->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dtpDate.Visible")));
//
// label1
//
this->label1->AccessibleDescription = resources->GetString(S"label1.AccessibleDescription");
this->label1->AccessibleName = resources->GetString(S"label1.AccessibleName");
this->label1->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"label1.Anchor")));
this->label1->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label1.AutoSize")));
this->label1->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"label1.Dock")));
this->label1->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label1.Enabled")));
this->label1->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"label1.Font")));
this->label1->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"label1.Image")));
this->label1->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label1.ImageAlign")));
this->label1->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label1.ImageIndex")));
this->label1->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"label1.ImeMode")));
this->label1->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"label1.Location")));
this->label1->Name = S"label1";
this->label1->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"label1.RightToLeft")));
this->label1->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"label1.Size")));
this->label1->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label1.TabIndex")));
this->label1->Text = resources->GetString(S"label1.Text");
this->label1->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label1.TextAlign")));
this->label1->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label1.Visible")));
//
// label2
//
this->label2->AccessibleDescription = resources->GetString(S"label2.AccessibleDescription");
this->label2->AccessibleName = resources->GetString(S"label2.AccessibleName");
this->label2->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"label2.Anchor")));
this->label2->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label2.AutoSize")));
this->label2->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"label2.Dock")));
this->label2->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label2.Enabled")));
this->label2->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"label2.Font")));
this->label2->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"label2.Image")));
this->label2->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label2.ImageAlign")));
this->label2->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label2.ImageIndex")));
this->label2->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"label2.ImeMode")));
this->label2->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"label2.Location")));
this->label2->Name = S"label2";
this->label2->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"label2.RightToLeft")));
this->label2->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"label2.Size")));
this->label2->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label2.TabIndex")));
this->label2->Text = resources->GetString(S"label2.Text");
this->label2->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label2.TextAlign")));
this->label2->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label2.Visible")));
//
// 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")));
this->button1->Click += new System::EventHandler(this, button1_Click);
//
// 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")));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -