📄 clinicreg.h
字号:
#pragma once
#include "LinkDataBase.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>
/// ClinicReg 摘要
///
/// 警告: 如果您更改该类的名称,则将需要更改
/// 与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。 否则,
/// 设计器将不能与此窗体关联的
/// 本地化资源正确交互。
/// </summary>
public __gc class ClinicReg : public System::Windows::Forms::Form
{
//--------------------成员声明------------------------
private:
LinkDataBase* MyDataBase; //数据库连接类
SqlDataAdapter* ServiceAdapter;
DataSet* ds;
String* strTableName;
String* strSQL;
DataView* DoctorView;
//门诊挂号编号
String* RegID;
//病人信息库编号
String* infoID;
//-------------------成员声明结束-----------------------
public:
ClinicReg(void)
{
InitializeComponent();
this->MyDataBase = new LinkDataBase();
this->ds = new DataSet();
this->DoctorView = new DataView();
//填充[挂号科室]的选项
String* tempSQL = S"Select 名称,编号 from 科室资料";
this->MyDataBase->SelectDataBase(this->ds,tempSQL,S"科室资料");
this->cmbRoom->DataSource = this->ds->Tables->Item[S"科室资料"];
this->cmbRoom->DisplayMember = S"名称";
this->cmbRoom->ValueMember = S"编号";
//this->cmbRoom->SelectedIndex = 0;
//填充[医生]的选项
tempSQL = S"Select * from 医生资料";
this->MyDataBase->SelectDataBase(this->ds,tempSQL,S"医生资料");
this->DoctorView->Table = this->ds->Tables->Item[S"医生资料"];
this->cmbDoctor->DataSource = this->DoctorView;
this->cmbDoctor->DisplayMember = S"姓名";
this->cmbDoctor->ValueMember = S"编号";
String* Filter = String::Format(S"科室 Like '{0}'",this->cmbRoom->Text);
this->DoctorView->RowFilter = Filter;
this->SetModify(false);
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::ToolBar * toolBar1;
private: System::Windows::Forms::ToolBarButton * tBtnNewRecord;
private: System::Windows::Forms::ToolBarButton * tBtnPostModified;
private: System::Windows::Forms::ToolBarButton * tBtnCancleModified;
private: System::Windows::Forms::ToolBarButton * tBtnQuit;
protected: System::Windows::Forms::ImageList * imageList1;
private: System::Windows::Forms::GroupBox * groupBox1;
private: System::Windows::Forms::Label * label16;
private: System::Windows::Forms::Label * label18;
private: System::Windows::Forms::Label * label26;
private: System::Windows::Forms::Label * label6;
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 * label7;
private: System::Windows::Forms::Panel * panel1;
private: System::Windows::Forms::TextBox * textBox3;
private: System::Windows::Forms::TextBox * textBox4;
private: System::Windows::Forms::TextBox * textBox5;
private: System::Windows::Forms::TextBox * textBox6;
private: System::Windows::Forms::TextBox * tBoxName;
private: System::Windows::Forms::ComboBox * cmbSex;
private: System::Windows::Forms::TextBox * tBoxAge;
private: System::Windows::Forms::ComboBox * cmbPeople;
private: System::Windows::Forms::ComboBox * cmbFeeKind;
private: System::Windows::Forms::ComboBox * cmbRedKind;
private: System::Windows::Forms::ComboBox * cmbRoom;
private: System::Windows::Forms::ComboBox * cmbDoctor;
private: System::Windows::Forms::TextBox * tBoxTime;
private: System::Windows::Forms::TextBox * tBoxFee;
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::ClinicReg));
this->toolBar1 = new System::Windows::Forms::ToolBar();
this->tBtnNewRecord = new System::Windows::Forms::ToolBarButton();
this->tBtnPostModified = new System::Windows::Forms::ToolBarButton();
this->tBtnCancleModified = new System::Windows::Forms::ToolBarButton();
this->tBtnQuit = new System::Windows::Forms::ToolBarButton();
this->imageList1 = new System::Windows::Forms::ImageList(this->components);
this->groupBox1 = new System::Windows::Forms::GroupBox();
this->cmbFeeKind = new System::Windows::Forms::ComboBox();
this->cmbSex = new System::Windows::Forms::ComboBox();
this->tBoxAge = new System::Windows::Forms::TextBox();
this->label16 = new System::Windows::Forms::Label();
this->tBoxName = new System::Windows::Forms::TextBox();
this->label18 = new System::Windows::Forms::Label();
this->label26 = new System::Windows::Forms::Label();
this->label6 = new System::Windows::Forms::Label();
this->cmbPeople = new System::Windows::Forms::ComboBox();
this->cmbRedKind = new System::Windows::Forms::ComboBox();
this->cmbRoom = new System::Windows::Forms::ComboBox();
this->cmbDoctor = 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->label4 = new System::Windows::Forms::Label();
this->label5 = new System::Windows::Forms::Label();
this->tBoxTime = new System::Windows::Forms::TextBox();
this->label7 = new System::Windows::Forms::Label();
this->tBoxFee = new System::Windows::Forms::TextBox();
this->panel1 = new System::Windows::Forms::Panel();
this->textBox3 = new System::Windows::Forms::TextBox();
this->textBox4 = new System::Windows::Forms::TextBox();
this->textBox5 = new System::Windows::Forms::TextBox();
this->textBox6 = new System::Windows::Forms::TextBox();
this->groupBox1->SuspendLayout();
this->panel1->SuspendLayout();
this->SuspendLayout();
//
// toolBar1
//
System::Windows::Forms::ToolBarButton* __mcTemp__1[] = new System::Windows::Forms::ToolBarButton*[4];
__mcTemp__1[0] = this->tBtnNewRecord;
__mcTemp__1[1] = this->tBtnPostModified;
__mcTemp__1[2] = this->tBtnCancleModified;
__mcTemp__1[3] = 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(792, 41);
this->toolBar1->TabIndex = 1;
this->toolBar1->ButtonClick += new System::Windows::Forms::ToolBarButtonClickEventHandler(this, toolBar1_ButtonClick);
//
// tBtnNewRecord
//
this->tBtnNewRecord->ImageIndex = 9;
this->tBtnNewRecord->Text = S"新增";
this->tBtnNewRecord->ToolTipText = S"新增";
//
// tBtnPostModified
//
this->tBtnPostModified->ImageIndex = 0;
this->tBtnPostModified->Text = S"提交";
this->tBtnPostModified->ToolTipText = S"提交";
//
// tBtnCancleModified
//
this->tBtnCancleModified->ImageIndex = 2;
this->tBtnCancleModified->Text = S"取消";
this->tBtnCancleModified->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;
//
// groupBox1
//
this->groupBox1->Controls->Add(this->cmbFeeKind);
this->groupBox1->Controls->Add(this->cmbSex);
this->groupBox1->Controls->Add(this->tBoxAge);
this->groupBox1->Controls->Add(this->label16);
this->groupBox1->Controls->Add(this->tBoxName);
this->groupBox1->Controls->Add(this->label18);
this->groupBox1->Controls->Add(this->label26);
this->groupBox1->Controls->Add(this->label6);
this->groupBox1->Controls->Add(this->cmbPeople);
this->groupBox1->Controls->Add(this->cmbRedKind);
this->groupBox1->Controls->Add(this->cmbRoom);
this->groupBox1->Controls->Add(this->cmbDoctor);
this->groupBox1->Controls->Add(this->label1);
this->groupBox1->Controls->Add(this->label2);
this->groupBox1->Controls->Add(this->label3);
this->groupBox1->Controls->Add(this->label4);
this->groupBox1->Controls->Add(this->label5);
this->groupBox1->Controls->Add(this->tBoxTime);
this->groupBox1->Controls->Add(this->label7);
this->groupBox1->Controls->Add(this->tBoxFee);
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(792, 412);
this->groupBox1->TabIndex = 2;
this->groupBox1->TabStop = false;
//
// cmbFeeKind
//
this->cmbFeeKind->BackColor = System::Drawing::SystemColors::Desktop;
System::Object* __mcTemp__2[] = new System::Object*[3];
__mcTemp__2[0] = S"自费";
__mcTemp__2[1] = S"公费";
__mcTemp__2[2] = S"离休";
this->cmbFeeKind->Items->AddRange(__mcTemp__2);
this->cmbFeeKind->Location = System::Drawing::Point(104, 168);
this->cmbFeeKind->Name = S"cmbFeeKind";
this->cmbFeeKind->Size = System::Drawing::Size(192, 20);
this->cmbFeeKind->TabIndex = 91;
//
// cmbSex
//
System::Object* __mcTemp__3[] = new System::Object*[2];
__mcTemp__3[0] = S"男";
__mcTemp__3[1] = S"女";
this->cmbSex->Items->AddRange(__mcTemp__3);
this->cmbSex->Location = System::Drawing::Point(304, 56);
this->cmbSex->Name = S"cmbSex";
this->cmbSex->Size = System::Drawing::Size(48, 20);
this->cmbSex->TabIndex = 90;
//
// tBoxAge
//
this->tBoxAge->Location = System::Drawing::Point(376, 56);
this->tBoxAge->Name = S"tBoxAge";
this->tBoxAge->Size = System::Drawing::Size(112, 21);
this->tBoxAge->TabIndex = 89;
this->tBoxAge->Text = S"";
//
// label16
//
this->label16->Location = System::Drawing::Point(104, 40);
this->label16->Name = S"label16";
this->label16->Size = System::Drawing::Size(56, 11);
this->label16->TabIndex = 87;
this->label16->Text = S"姓名";
//
// tBoxName
//
this->tBoxName->BackColor = System::Drawing::SystemColors::Desktop;
this->tBoxName->Location = System::Drawing::Point(104, 56);
this->tBoxName->Name = S"tBoxName";
this->tBoxName->Size = System::Drawing::Size(168, 21);
this->tBoxName->TabIndex = 88;
this->tBoxName->Text = S"";
//
// label18
//
this->label18->Location = System::Drawing::Point(376, 40);
this->label18->Name = S"label18";
this->label18->Size = System::Drawing::Size(56, 11);
this->label18->TabIndex = 86;
this->label18->Text = S"年龄";
//
// label26
//
this->label26->Location = System::Drawing::Point(520, 40);
this->label26->Name = S"label26";
this->label26->Size = System::Drawing::Size(120, 11);
this->label26->TabIndex = 84;
this->label26->Text = S"民族";
//
// label6
//
this->label6->Location = System::Drawing::Point(304, 40);
this->label6->Name = S"label6";
this->label6->Size = System::Drawing::Size(56, 11);
this->label6->TabIndex = 81;
this->label6->Text = S"性别";
//
// cmbPeople
//
System::Object* __mcTemp__4[] = new System::Object*[7];
__mcTemp__4[0] = S"汉族";
__mcTemp__4[1] = S"满族";
__mcTemp__4[2] = S"蒙古族";
__mcTemp__4[3] = S"回族";
__mcTemp__4[4] = S"藏族";
__mcTemp__4[5] = S"维吾尔族";
__mcTemp__4[6] = S"哈萨克族";
this->cmbPeople->Items->AddRange(__mcTemp__4);
this->cmbPeople->Location = System::Drawing::Point(520, 56);
this->cmbPeople->Name = S"cmbPeople";
this->cmbPeople->Size = System::Drawing::Size(184, 20);
this->cmbPeople->TabIndex = 82;
//
// cmbRedKind
//
System::Object* __mcTemp__5[] = new System::Object*[3];
__mcTemp__5[0] = S"普通";
__mcTemp__5[1] = S"专家号5元";
__mcTemp__5[2] = S"专家号10元";
this->cmbRedKind->Items->AddRange(__mcTemp__5);
this->cmbRedKind->Location = System::Drawing::Point(520, 168);
this->cmbRedKind->Name = S"cmbRedKind";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -