📄 amendstafferinfo.h
字号:
#pragma once
#include "LinkDataBase.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>
/// AmendStafferInfo 摘要
///
/// 警告: 如果您更改该类的名称,则将需要更改
/// 与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。 否则,
/// 设计器将不能与此窗体关联的
/// 本地化资源正确交互。
/// </summary>
public __gc class AmendStafferInfo : public System::Windows::Forms::Form
{
//--------------------成员声明------------------------
private:
LinkDataBase* MyDataBase; //数据库连接类
DataSet* ds;
String* strTableName;
String* strSQL;
CurrencyManager* cmAmend;
protected: System::Windows::Forms::ImageList * imageList1;
SqlDataAdapter* OrgInfoAdapter;
//-------------------成员声明结束-----------------------
public:
AmendStafferInfo(void)
{
InitializeComponent();
this->MyDataBase = new LinkDataBase();
this->strSQL = S"SELECT * FROM 职员基本信息表";
this->strTableName = S"职员基本信息表";
this->ds = this->MyDataBase->SelectDataBase(this->strSQL,this->strTableName);
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::ToolBar * toolBar1;
private: System::Windows::Forms::GroupBox * groupBox1;
private: System::Windows::Forms::DataGrid * dgrdStafferInfo;
private: System::Windows::Forms::TextBox * tBoxStaffMemo;
private: System::Windows::Forms::TextBox * tBoxStaffAccount;
private: System::Windows::Forms::TextBox * tBoxStaffEmail;
private: System::Windows::Forms::TextBox * tBoxStaffMobileNumber;
private: System::Windows::Forms::TextBox * tBoxStaffOfficeNumber;
private: System::Windows::Forms::TextBox * tBoxStaffFamilyNumber;
private: System::Windows::Forms::TextBox * tBoxStaffIndividualID;
private: System::Windows::Forms::TextBox * tBoxStaffMarriage;
private: System::Windows::Forms::TextBox * tBoxStaffHealth;
private: System::Windows::Forms::TextBox * tBoxStaffGraduatedSchool;
private: System::Windows::Forms::TextBox * tBoxStaffEducation;
private: System::Windows::Forms::TextBox * tBoxStaffAge;
private: System::Windows::Forms::TextBox * tBoxStafBirthDay;
private: System::Windows::Forms::ComboBox * cmbStaffNativePlace;
private: System::Windows::Forms::ComboBox * cmbStaffNation;
private: System::Windows::Forms::ComboBox * cmbStaffSex;
private: System::Windows::Forms::TextBox * tBoxStaffNameCode;
private: System::Windows::Forms::TextBox * tBoxStaffName;
private: System::Windows::Forms::TextBox * tBoxStaffID;
private: System::Windows::Forms::ComboBox * cmbStaffDepartmentID;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::Label * label6;
private: System::Windows::Forms::Label * label7;
private: System::Windows::Forms::Label * label8;
private: System::Windows::Forms::Label * label9;
private: System::Windows::Forms::Label * label10;
private: System::Windows::Forms::Label * label11;
private: System::Windows::Forms::Label * label12;
private: System::Windows::Forms::Label * label13;
private: System::Windows::Forms::Label * label14;
private: System::Windows::Forms::Label * label15;
private: System::Windows::Forms::Label * label16;
private: System::Windows::Forms::Label * label17;
private: System::Windows::Forms::Label * label18;
private: System::Windows::Forms::Label * label19;
private: System::Windows::Forms::Label * label20;
private: System::Windows::Forms::Label * label21;
private: System::Windows::Forms::TextBox * tBoxStaffDepartment;
private: System::Windows::Forms::ToolBarButton * tBtnFirstRecord;
private: System::Windows::Forms::ToolBarButton * tBtnPreviousRecord;
private: System::Windows::Forms::ToolBarButton * tBtnNextRecord;
private: System::Windows::Forms::ToolBarButton * tBtnLastRecord;
private: System::Windows::Forms::ToolBarButton * tBtnAddRecord;
private: System::Windows::Forms::ToolBarButton * tBtnDeleteRecord;
private: System::Windows::Forms::ToolBarButton * tBtnModifyRecord;
private: System::Windows::Forms::ToolBarButton * tBtnCancelModify;
private: System::Windows::Forms::ToolBarButton * tBtnQuit;
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::AmendStafferInfo));
this->toolBar1 = new System::Windows::Forms::ToolBar();
this->tBtnFirstRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnPreviousRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnNextRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnLastRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnAddRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnDeleteRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnModifyRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnCancelModify = new System::Windows::Forms::ToolBarButton();
this->tBtnQuit = new System::Windows::Forms::ToolBarButton();
this->imageList1 = new System::Windows::Forms::ImageList(this->components);
this->dgrdStafferInfo = new System::Windows::Forms::DataGrid();
this->groupBox1 = new System::Windows::Forms::GroupBox();
this->label21 = new System::Windows::Forms::Label();
this->label20 = new System::Windows::Forms::Label();
this->label19 = new System::Windows::Forms::Label();
this->label18 = new System::Windows::Forms::Label();
this->label17 = new System::Windows::Forms::Label();
this->label16 = new System::Windows::Forms::Label();
this->label15 = new System::Windows::Forms::Label();
this->label14 = new System::Windows::Forms::Label();
this->label13 = new System::Windows::Forms::Label();
this->label12 = new System::Windows::Forms::Label();
this->label11 = new System::Windows::Forms::Label();
this->label10 = new System::Windows::Forms::Label();
this->label9 = new System::Windows::Forms::Label();
this->label8 = new System::Windows::Forms::Label();
this->label7 = new System::Windows::Forms::Label();
this->label6 = new System::Windows::Forms::Label();
this->label5 = new System::Windows::Forms::Label();
this->label4 = new System::Windows::Forms::Label();
this->label3 = new System::Windows::Forms::Label();
this->label2 = new System::Windows::Forms::Label();
this->tBoxStaffMemo = new System::Windows::Forms::TextBox();
this->cmbStaffDepartmentID = new System::Windows::Forms::ComboBox();
this->tBoxStaffDepartment = new System::Windows::Forms::TextBox();
this->tBoxStaffAccount = new System::Windows::Forms::TextBox();
this->tBoxStaffEmail = new System::Windows::Forms::TextBox();
this->tBoxStaffMobileNumber = new System::Windows::Forms::TextBox();
this->tBoxStaffOfficeNumber = new System::Windows::Forms::TextBox();
this->tBoxStaffFamilyNumber = new System::Windows::Forms::TextBox();
this->tBoxStaffIndividualID = new System::Windows::Forms::TextBox();
this->tBoxStaffMarriage = new System::Windows::Forms::TextBox();
this->tBoxStaffHealth = new System::Windows::Forms::TextBox();
this->tBoxStaffGraduatedSchool = new System::Windows::Forms::TextBox();
this->label1 = new System::Windows::Forms::Label();
this->tBoxStaffEducation = new System::Windows::Forms::TextBox();
this->tBoxStaffAge = new System::Windows::Forms::TextBox();
this->tBoxStafBirthDay = new System::Windows::Forms::TextBox();
this->cmbStaffNativePlace = new System::Windows::Forms::ComboBox();
this->cmbStaffNation = new System::Windows::Forms::ComboBox();
this->cmbStaffSex = new System::Windows::Forms::ComboBox();
this->tBoxStaffNameCode = new System::Windows::Forms::TextBox();
this->tBoxStaffName = new System::Windows::Forms::TextBox();
this->tBoxStaffID = new System::Windows::Forms::TextBox();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dgrdStafferInfo))->BeginInit();
this->groupBox1->SuspendLayout();
this->SuspendLayout();
//
// toolBar1
//
System::Windows::Forms::ToolBarButton* __mcTemp__1[] = new System::Windows::Forms::ToolBarButton*[9];
__mcTemp__1[0] = this->tBtnFirstRecord;
__mcTemp__1[1] = this->tBtnPreviousRecord;
__mcTemp__1[2] = this->tBtnNextRecord;
__mcTemp__1[3] = this->tBtnLastRecord;
__mcTemp__1[4] = this->tBtnAddRecord;
__mcTemp__1[5] = this->tBtnDeleteRecord;
__mcTemp__1[6] = this->tBtnModifyRecord;
__mcTemp__1[7] = this->tBtnCancelModify;
__mcTemp__1[8] = this->tBtnQuit;
this->toolBar1->Buttons->AddRange(__mcTemp__1);
this->toolBar1->DropDownArrows = true;
this->toolBar1->ImageList = this->imageList1;
this->toolBar1->Location = System::Drawing::Point(0, 0);
this->toolBar1->Name = S"toolBar1";
this->toolBar1->ShowToolTips = true;
this->toolBar1->Size = System::Drawing::Size(664, 41);
this->toolBar1->TabIndex = 0;
this->toolBar1->ButtonClick += new System::Windows::Forms::ToolBarButtonClickEventHandler(this, toolBar1_ButtonClick);
//
// tBtnFirstRecord
//
this->tBtnFirstRecord->ImageIndex = 5;
this->tBtnFirstRecord->Text = S"首记录";
this->tBtnFirstRecord->ToolTipText = S"首记录";
//
// tBtnPreviousRecord
//
this->tBtnPreviousRecord->ImageIndex = 4;
this->tBtnPreviousRecord->Text = S"上一记录";
this->tBtnPreviousRecord->ToolTipText = S"上一记录";
//
// tBtnNextRecord
//
this->tBtnNextRecord->ImageIndex = 8;
this->tBtnNextRecord->Text = S"下一记录";
this->tBtnNextRecord->ToolTipText = S"下一记录";
//
// tBtnLastRecord
//
this->tBtnLastRecord->ImageIndex = 7;
this->tBtnLastRecord->Text = S"尾记录";
this->tBtnLastRecord->ToolTipText = S"尾记录";
//
// tBtnAddRecord
//
this->tBtnAddRecord->ImageIndex = 9;
this->tBtnAddRecord->Text = S"新增记录";
this->tBtnAddRecord->ToolTipText = S"新增记录";
//
// tBtnDeleteRecord
//
this->tBtnDeleteRecord->ImageIndex = 3;
this->tBtnDeleteRecord->Text = S"删除记录";
this->tBtnDeleteRecord->ToolTipText = S"删除记录";
//
// tBtnModifyRecord
//
this->tBtnModifyRecord->ImageIndex = 0;
this->tBtnModifyRecord->Text = S"保存修改";
this->tBtnModifyRecord->ToolTipText = S"保存修改";
//
// 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"退出";
//
// imageList1
//
this->imageList1->ImageSize = System::Drawing::Size(16, 16);
this->imageList1->ImageStream = (__try_cast<System::Windows::Forms::ImageListStreamer * >(resources->GetObject(S"imageList1.ImageStream")));
this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
//
// dgrdStafferInfo
//
this->dgrdStafferInfo->DataMember = S"";
this->dgrdStafferInfo->Dock = System::Windows::Forms::DockStyle::Fill;
this->dgrdStafferInfo->HeaderForeColor = System::Drawing::SystemColors::ControlText;
this->dgrdStafferInfo->Location = System::Drawing::Point(0, 41);
this->dgrdStafferInfo->Name = S"dgrdStafferInfo";
this->dgrdStafferInfo->Size = System::Drawing::Size(664, 380);
this->dgrdStafferInfo->TabIndex = 1;
//
// groupBox1
//
this->groupBox1->Controls->Add(this->label21);
this->groupBox1->Controls->Add(this->label20);
this->groupBox1->Controls->Add(this->label19);
this->groupBox1->Controls->Add(this->label18);
this->groupBox1->Controls->Add(this->label17);
this->groupBox1->Controls->Add(this->label16);
this->groupBox1->Controls->Add(this->label15);
this->groupBox1->Controls->Add(this->label14);
this->groupBox1->Controls->Add(this->label13);
this->groupBox1->Controls->Add(this->label12);
this->groupBox1->Controls->Add(this->label11);
this->groupBox1->Controls->Add(this->label10);
this->groupBox1->Controls->Add(this->label9);
this->groupBox1->Controls->Add(this->label8);
this->groupBox1->Controls->Add(this->label7);
this->groupBox1->Controls->Add(this->label6);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -