📄 calendarinput.h
字号:
this->buttonClose->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"buttonClose.TabIndex")));
this->buttonClose->Text = resources->GetString(S"buttonClose.Text");
this->buttonClose->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"buttonClose.TextAlign")));
this->buttonClose->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"buttonClose.Visible")));
this->buttonClose->Click += new System::EventHandler(this, buttonClose_Click);
//
// dataGridCal
//
this->dataGridCal->AccessibleDescription = resources->GetString(S"dataGridCal.AccessibleDescription");
this->dataGridCal->AccessibleName = resources->GetString(S"dataGridCal.AccessibleName");
this->dataGridCal->AllowSorting = false;
this->dataGridCal->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"dataGridCal.Anchor")));
this->dataGridCal->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"dataGridCal.BackgroundImage")));
this->dataGridCal->CaptionFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dataGridCal.CaptionFont")));
this->dataGridCal->CaptionText = resources->GetString(S"dataGridCal.CaptionText");
this->dataGridCal->CaptionVisible = false;
this->dataGridCal->DataMember = S"";
this->dataGridCal->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"dataGridCal.Dock")));
this->dataGridCal->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dataGridCal.Enabled")));
this->dataGridCal->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dataGridCal.Font")));
this->dataGridCal->HeaderForeColor = System::Drawing::SystemColors::ControlText;
this->dataGridCal->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"dataGridCal.ImeMode")));
this->dataGridCal->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"dataGridCal.Location")));
this->dataGridCal->Name = S"dataGridCal";
this->dataGridCal->ParentRowsVisible = false;
this->dataGridCal->ReadOnly = true;
this->dataGridCal->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"dataGridCal.RightToLeft")));
this->dataGridCal->RowHeaderWidth = 0;
this->dataGridCal->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"dataGridCal.Size")));
this->dataGridCal->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"dataGridCal.TabIndex")));
this->dataGridCal->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dataGridCal.Visible")));
this->dataGridCal->CurrentCellChanged += new System::EventHandler(this, dataGridCal_CurrentCellChanged);
//
// panel1
//
this->panel1->AccessibleDescription = resources->GetString(S"panel1.AccessibleDescription");
this->panel1->AccessibleName = resources->GetString(S"panel1.AccessibleName");
this->panel1->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"panel1.Anchor")));
this->panel1->AutoScroll = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"panel1.AutoScroll")));
this->panel1->AutoScrollMargin = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"panel1.AutoScrollMargin")));
this->panel1->AutoScrollMinSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"panel1.AutoScrollMinSize")));
this->panel1->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"panel1.BackgroundImage")));
this->panel1->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
this->panel1->Controls->Add(this->comboBoxYear);
this->panel1->Controls->Add(this->label1);
this->panel1->Controls->Add(this->comboBoxMonth);
this->panel1->Controls->Add(this->label2);
this->panel1->Controls->Add(this->buttonSerch);
this->panel1->Controls->Add(this->comboBoxProcess);
this->panel1->Controls->Add(this->label3);
this->panel1->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"panel1.Dock")));
this->panel1->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"panel1.Enabled")));
this->panel1->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"panel1.Font")));
this->panel1->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"panel1.ImeMode")));
this->panel1->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"panel1.Location")));
this->panel1->Name = S"panel1";
this->panel1->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"panel1.RightToLeft")));
this->panel1->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"panel1.Size")));
this->panel1->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"panel1.TabIndex")));
this->panel1->Text = resources->GetString(S"panel1.Text");
this->panel1->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"panel1.Visible")));
//
// CalendarInput
//
this->AccessibleDescription = resources->GetString(S"$this.AccessibleDescription");
this->AccessibleName = resources->GetString(S"$this.AccessibleName");
this->AutoScaleBaseSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.AutoScaleBaseSize")));
this->AutoScroll = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"$this.AutoScroll")));
this->AutoScrollMargin = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.AutoScrollMargin")));
this->AutoScrollMinSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.AutoScrollMinSize")));
this->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"$this.BackgroundImage")));
this->ClientSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.ClientSize")));
this->Controls->Add(this->panel1);
this->Controls->Add(this->dataGridCal);
this->Controls->Add(this->groupBoxShift);
this->Controls->Add(this->lbl_Title);
this->Controls->Add(this->buttonSubmit);
this->Controls->Add(this->buttonClose);
this->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"$this.Enabled")));
this->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"$this.Font")));
this->Icon = (__try_cast<System::Drawing::Icon * >(resources->GetObject(S"$this.Icon")));
this->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"$this.ImeMode")));
this->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"$this.Location")));
this->MaximumSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.MaximumSize")));
this->MinimumSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.MinimumSize")));
this->Name = S"CalendarInput";
this->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"$this.RightToLeft")));
this->StartPosition = (*__try_cast<__box System::Windows::Forms::FormStartPosition * >(resources->GetObject(S"$this.StartPosition")));
this->Text = resources->GetString(S"$this.Text");
this->Load += new System::EventHandler(this, CalendarInput_Load);
this->groupBoxShift->ResumeLayout(false);
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGridCal))->EndInit();
this->panel1->ResumeLayout(false);
this->ResumeLayout(false);
}
void InitDisp(void);
void InitGrid(void);
void SetGridCalender(void);
bool GetGridData(int iYear, int iMonth);
bool MakeNewCalender(int iYear, int iMonth);
void WriteGridData(void);
void EditCalender(void);
private: System::Void CalendarInput_Load(System::Object * sender, System::EventArgs * e)
{
// Init Param
sSelShift = S"A";
//Connect DB
oDB = new DBBase();
oDB->blnCnnOpen();
//Initialize Disp
InitDisp();
//Initialize Grid
InitGrid();
}
private: System::Void buttonClose_Click(System::Object * sender, System::EventArgs * e)
{
this->Close();
}
private: System::Void buttonSerch_Click(System::Object * sender, System::EventArgs * e)
{
//GetData
SetGridCalender();
}
private: System::Void dataGridCal_CurrentCellChanged(System::Object * sender, System::EventArgs * e)
{
EditCalender();
}
private: System::Void radioButtonShift_CheckedChanged(System::Object * sender, System::EventArgs * e)
{
sSelShift = dynamic_cast<System::Windows::Forms::RadioButton*>(sender)->Tag->ToString();
}
private: System::Void buttonSubmit_Click(System::Object * sender, System::EventArgs * e)
{
WriteGridData();
}
};
public __gc class ColorDataGridTextBoxColumn : public System::Windows::Forms::DataGridTextBoxColumn
{
protected: void Paint(Graphics *g, Rectangle bounds, CurrencyManager *source, int rowNum, Brush *backBrush, Brush *foreBrush, bool alignToRight);
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -