📄 punishmentmanage.h
字号:
#pragma once
#include "LinkDataBase.h"
#include "DataGridComboboxColumn.h"
#include "DataGridNoActiveCellColumn.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 My
{
/// <summary>
/// PunishmentManage 摘要
///
/// 警告: 如果您更改该类的名称,则将需要更改
/// 与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。 否则,
/// 设计器将不能与此窗体关联的
/// 本地化资源正确交互。
/// </summary>
public __gc class PunishmentManage : public System::Windows::Forms::Form
{
//--------------------成员声明------------------------
private:
LinkDataBase* MyDataBase; //数据库连接类
DataSet* ds;
String* strTableName;
String* strSQL;
protected: System::Windows::Forms::ImageList * imageList1;
CurrencyManager* cmPunishment;
//-------------------成员声明结束-----------------------
public:
PunishmentManage(void)
{
InitializeComponent();
this->MyDataBase = new LinkDataBase();
this->strSQL = S"SELECT * FROM 职员惩罚表";
this->strTableName = S"职员惩罚表";
this->ds = this->MyDataBase->SelectDataBase(this->strSQL,this->strTableName);
this->cmPunishment = __try_cast<CurrencyManager*>(this->BindingContext->Item[this->ds->Tables->Item[S"职员惩罚表"]]);
this->DataBidings();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::ToolBarButton * tBtnCancelModify;
private: System::Windows::Forms::ToolBarButton * tBtnQuit;
private: System::Windows::Forms::GroupBox * groupBox1;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::Label * label12;
private: System::Windows::Forms::Label * label11;
private: System::Windows::Forms::Label * label9;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::TextBox * tBoxDepartmentComment;
private: System::Windows::Forms::TextBox * tBoxCause;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::TextBox * tBoxIsInSalary;
private: System::Windows::Forms::TextBox * tBoxStaffID;
private: System::Windows::Forms::ToolBarButton * tBtnAddRecord;
private: System::Windows::Forms::ToolBarButton * tBtnDeleteRecord;
private: System::Windows::Forms::ToolBarButton * tBtnModifyRecord;
private: System::Windows::Forms::ToolBarButton * tBtnLastRecord;
private: System::Windows::Forms::ToolBarButton * tBtnPreviousRecord;
private: System::Windows::Forms::ToolBarButton * tBtnNextRecord;
private: System::Windows::Forms::ToolBarButton * tBtnFirstRecord;
private: System::Windows::Forms::ToolBar * toolBar1;
private: System::Windows::Forms::TextBox * tBoxPunishmentDate;
private: System::Windows::Forms::TextBox * tBoxPunishment;
private: System::Windows::Forms::TextBox * tBoxPunishmentType;
private: System::ComponentModel::IContainer * components;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->components = new System::ComponentModel::Container();
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(My::PunishmentManage));
this->tBtnCancelModify = new System::Windows::Forms::ToolBarButton();
this->tBtnQuit = new System::Windows::Forms::ToolBarButton();
this->groupBox1 = new System::Windows::Forms::GroupBox();
this->label4 = new System::Windows::Forms::Label();
this->label3 = new System::Windows::Forms::Label();
this->label12 = new System::Windows::Forms::Label();
this->label11 = new System::Windows::Forms::Label();
this->label9 = new System::Windows::Forms::Label();
this->label2 = new System::Windows::Forms::Label();
this->tBoxDepartmentComment = new System::Windows::Forms::TextBox();
this->tBoxCause = new System::Windows::Forms::TextBox();
this->label1 = new System::Windows::Forms::Label();
this->tBoxIsInSalary = new System::Windows::Forms::TextBox();
this->tBoxPunishmentDate = new System::Windows::Forms::TextBox();
this->tBoxPunishment = new System::Windows::Forms::TextBox();
this->tBoxPunishmentType = new System::Windows::Forms::TextBox();
this->tBoxStaffID = new System::Windows::Forms::TextBox();
this->tBtnAddRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnDeleteRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnModifyRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnLastRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnPreviousRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnNextRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnFirstRecord = new System::Windows::Forms::ToolBarButton();
this->toolBar1 = new System::Windows::Forms::ToolBar();
this->imageList1 = new System::Windows::Forms::ImageList(this->components);
this->groupBox1->SuspendLayout();
this->SuspendLayout();
//
// tBtnCancelModify
//
this->tBtnCancelModify->ImageIndex = 2;
this->tBtnCancelModify->Text = S"取消修改";
this->tBtnCancelModify->ToolTipText = S"取消修改";
//
// tBtnQuit
//
this->tBtnQuit->ImageIndex = 11;
this->tBtnQuit->Text = S"退出";
this->tBtnQuit->ToolTipText = S"退出";
//
// groupBox1
//
this->groupBox1->Controls->Add(this->label4);
this->groupBox1->Controls->Add(this->label3);
this->groupBox1->Controls->Add(this->label12);
this->groupBox1->Controls->Add(this->label11);
this->groupBox1->Controls->Add(this->label9);
this->groupBox1->Controls->Add(this->label2);
this->groupBox1->Controls->Add(this->tBoxDepartmentComment);
this->groupBox1->Controls->Add(this->tBoxCause);
this->groupBox1->Controls->Add(this->label1);
this->groupBox1->Controls->Add(this->tBoxIsInSalary);
this->groupBox1->Controls->Add(this->tBoxPunishmentDate);
this->groupBox1->Controls->Add(this->tBoxPunishment);
this->groupBox1->Controls->Add(this->tBoxPunishmentType);
this->groupBox1->Controls->Add(this->tBoxStaffID);
this->groupBox1->Dock = System::Windows::Forms::DockStyle::Fill;
this->groupBox1->Location = System::Drawing::Point(0, 41);
this->groupBox1->Name = S"groupBox1";
this->groupBox1->Size = System::Drawing::Size(608, 292);
this->groupBox1->TabIndex = 4;
this->groupBox1->TabStop = false;
//
// label4
//
this->label4->Location = System::Drawing::Point(208, 112);
this->label4->Name = S"label4";
this->label4->Size = System::Drawing::Size(56, 16);
this->label4->TabIndex = 46;
this->label4->Text = S"惩罚日期";
//
// label3
//
this->label3->Location = System::Drawing::Point(112, 112);
this->label3->Name = S"label3";
this->label3->Size = System::Drawing::Size(56, 16);
this->label3->TabIndex = 45;
this->label3->Text = S"惩罚金额";
//
// label12
//
this->label12->Location = System::Drawing::Point(360, 168);
this->label12->Name = S"label12";
this->label12->Size = System::Drawing::Size(56, 16);
this->label12->TabIndex = 44;
this->label12->Text = S"部门意见";
//
// label11
//
this->label11->Location = System::Drawing::Point(112, 168);
this->label11->Name = S"label11";
this->label11->Size = System::Drawing::Size(56, 16);
this->label11->TabIndex = 43;
this->label11->Text = S"惩罚原因";
//
// label9
//
this->label9->Location = System::Drawing::Point(392, 112);
this->label9->Name = S"label9";
this->label9->Size = System::Drawing::Size(96, 16);
this->label9->TabIndex = 42;
this->label9->Text = S"是否计入工资";
//
// label2
//
this->label2->Location = System::Drawing::Point(208, 56);
this->label2->Name = S"label2";
this->label2->Size = System::Drawing::Size(56, 16);
this->label2->TabIndex = 41;
this->label2->Text = S"惩罚类型";
//
// tBoxDepartmentComment
//
this->tBoxDepartmentComment->Location = System::Drawing::Point(360, 192);
this->tBoxDepartmentComment->Name = S"tBoxDepartmentComment";
this->tBoxDepartmentComment->Size = System::Drawing::Size(208, 21);
this->tBoxDepartmentComment->TabIndex = 40;
this->tBoxDepartmentComment->Text = S"";
//
// tBoxCause
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -