⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clinicpriceconfirm.h

📁 医院管理系统 本系统包括说明文件,运行文件,希望站长接受如此好的系统.
💻 H
📖 第 1 页 / 共 2 页
字号:
#pragma once
#include "LinkDataBase.h"
#include "DataGridNoActiveCellColumn.h"
#include "MedPinYin.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> 
	/// ClinicPriceConfirm 摘要
	///
	/// 警告: 如果您更改该类的名称,则将需要更改 
	///          与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的 
	///          “资源文件名”属性。  否则,
	///          设计器将不能与此窗体关联的
	///          本地化资源正确交互。
	/// </summary>
	public __gc class ClinicPriceConfirm : public System::Windows::Forms::Form
	{
		//--------------------成员声明------------------------
	private:
		LinkDataBase* MyDataBase;	//数据库连接类
		SqlDataAdapter* PriceAdapter;
		DataSet* ds;
		String* strTableName;
		String* strSQL;
		DataView* dvRoom;
	private: System::Windows::Forms::ComboBox *  cmbRegID;
			 DataView* dvMed;
		//-------------------成员声明结束-----------------------
	public: 
		ClinicPriceConfirm(void)
		{
			InitializeComponent();
			//初始化
			this->MyDataBase = new LinkDataBase();
			this->ds = new DataSet();
			this->PriceAdapter = new SqlDataAdapter();	
			this->dvRoom = new DataView();
			this->dvMed = new DataView();

			DataTable* newTable = new DataTable();
			newTable->Columns->Add(S"药品编号",System::Type::GetType(S"System.String"));
			newTable->Columns->Add(S"名称",System::Type::GetType(S"System.String"));
			newTable->Columns->Add(S"规格",System::Type::GetType(S"System.String"));
			newTable->Columns->Add(S"单位",System::Type::GetType(S"System.String"));
			newTable->Columns->Add(S"单价",System::Type::GetType(S"System.Decimal"));
			newTable->Columns->Add(S"数量",System::Type::GetType(S"System.Int32"));
			newTable->Columns->Add(S"金额",System::Type::GetType(S"System.Decimal"));
			newTable->TableName = S"门诊划价明细";
			this->ds->Tables->Add(newTable);
			this->dgrdPrice->DataSource = newTable;
			this->DataGridStatePrice();
			this->ds->Tables->Item[S"门诊划价明细"]->add_RowChanged(new DataRowChangeEventHandler(this,Money_RowChange));

			//查询门诊挂号
			this->strSQL = S"Select * from 门诊挂号 where (是否已划价 = '否')";
			this->strTableName = S"门诊挂号";
			this->MyDataBase->SelectDataBase(this->PriceAdapter,this->ds,this->strSQL,this->strTableName);

			//查询药品资料
			this->strSQL = S"Select * from 药品资料";
			this->strTableName = S"药品资料";
			this->MyDataBase->SelectDataBase(this->PriceAdapter,this->ds,this->strSQL,this->strTableName);

			//设置DataGrid
			this->dvRoom->Table = this->ds->Tables->Item[S"门诊挂号"];
			this->dgrdRoomID->DataSource = this->dvRoom;
			this->dvMed->Table = this->ds->Tables->Item[S"药品资料"];
			this->dgrdMed->DataSource = this->dvMed;

			this->DataGridStateRoom();
			this->DataGridStateMed();
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}

	private: System::Windows::Forms::GroupBox *  groupBox2;
	private: System::Windows::Forms::Label *  label5;

	private: System::Windows::Forms::Label *  label7;
	private: System::Windows::Forms::Label *  label16;
	private: System::ComponentModel::IContainer *  components;
			 




	private: System::Windows::Forms::Label *  label2;

	private: System::Windows::Forms::Label *  label1;

	private: System::Windows::Forms::Label *  label4;
	private: System::Windows::Forms::GroupBox *  groupBox1;

	private: System::Windows::Forms::TextBox *  tBoxName;
	private: System::Windows::Forms::TextBox *  tBoxSex;


	private: System::Windows::Forms::Button *  btnSave;
	protected: System::Windows::Forms::ImageList *  imageList1;
	private: System::Windows::Forms::Button *  btnCancel;
	private: System::Windows::Forms::TextBox *  tBoxRoom;
	private: System::Windows::Forms::TextBox *  tBoxDoctor;
	private: System::Windows::Forms::TextBox *  tBoxTotal;
	private: System::Windows::Forms::DataGrid *  dgrdPrice;
	private: System::Windows::Forms::DataGrid *  dgrdRoomID;

	private: System::Windows::Forms::DataGrid *  dgrdMed;




	private:
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>


		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = new System::ComponentModel::Container();
			System::Resources::ResourceManager *  resources = new System::Resources::ResourceManager(__typeof(My::ClinicPriceConfirm));
			this->dgrdPrice = new System::Windows::Forms::DataGrid();
			this->groupBox2 = new System::Windows::Forms::GroupBox();
			this->btnCancel = new System::Windows::Forms::Button();
			this->imageList1 = new System::Windows::Forms::ImageList(this->components);
			this->btnSave = new System::Windows::Forms::Button();
			this->label16 = new System::Windows::Forms::Label();
			this->tBoxTotal = new System::Windows::Forms::TextBox();
			this->tBoxDoctor = new System::Windows::Forms::TextBox();
			this->tBoxRoom = new System::Windows::Forms::TextBox();
			this->label5 = new System::Windows::Forms::Label();
			this->label7 = new System::Windows::Forms::Label();
			this->tBoxName = new System::Windows::Forms::TextBox();
			this->label2 = new System::Windows::Forms::Label();
			this->label1 = new System::Windows::Forms::Label();
			this->tBoxSex = new System::Windows::Forms::TextBox();
			this->label4 = new System::Windows::Forms::Label();
			this->groupBox1 = new System::Windows::Forms::GroupBox();
			this->cmbRegID = new System::Windows::Forms::ComboBox();
			this->dgrdRoomID = new System::Windows::Forms::DataGrid();
			this->dgrdMed = new System::Windows::Forms::DataGrid();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dgrdPrice))->BeginInit();
			this->groupBox2->SuspendLayout();
			this->groupBox1->SuspendLayout();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dgrdRoomID))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dgrdMed))->BeginInit();
			this->SuspendLayout();
			// 
			// dgrdPrice
			// 
			this->dgrdPrice->DataMember = S"";
			this->dgrdPrice->Dock = System::Windows::Forms::DockStyle::Fill;
			this->dgrdPrice->HeaderForeColor = System::Drawing::SystemColors::ControlText;
			this->dgrdPrice->Location = System::Drawing::Point(0, 79);
			this->dgrdPrice->Name = S"dgrdPrice";
			this->dgrdPrice->Size = System::Drawing::Size(784, 294);
			this->dgrdPrice->TabIndex = 2;
			// 
			// groupBox2
			// 
			this->groupBox2->Controls->Add(this->btnCancel);
			this->groupBox2->Controls->Add(this->btnSave);
			this->groupBox2->Controls->Add(this->label16);
			this->groupBox2->Controls->Add(this->tBoxTotal);
			this->groupBox2->Controls->Add(this->tBoxDoctor);
			this->groupBox2->Controls->Add(this->tBoxRoom);
			this->groupBox2->Controls->Add(this->label5);
			this->groupBox2->Controls->Add(this->label7);
			this->groupBox2->Dock = System::Windows::Forms::DockStyle::Bottom;
			this->groupBox2->Location = System::Drawing::Point(0, 373);
			this->groupBox2->Name = S"groupBox2";
			this->groupBox2->Size = System::Drawing::Size(784, 96);
			this->groupBox2->TabIndex = 3;
			this->groupBox2->TabStop = false;
			// 
			// btnCancel
			// 
			this->btnCancel->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
			this->btnCancel->ImageIndex = 2;
			this->btnCancel->ImageList = this->imageList1;
			this->btnCancel->Location = System::Drawing::Point(656, 48);
			this->btnCancel->Name = S"btnCancel";
			this->btnCancel->Size = System::Drawing::Size(56, 24);
			this->btnCancel->TabIndex = 72;
			this->btnCancel->Text = S"取消";
			this->btnCancel->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			this->btnCancel->Click += new System::EventHandler(this, btnCancel_Click);
			// 
			// 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;
			// 
			// btnSave
			// 
			this->btnSave->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
			this->btnSave->ImageIndex = 0;
			this->btnSave->ImageList = this->imageList1;
			this->btnSave->Location = System::Drawing::Point(544, 48);
			this->btnSave->Name = S"btnSave";
			this->btnSave->Size = System::Drawing::Size(56, 24);
			this->btnSave->TabIndex = 71;
			this->btnSave->Text = S"保存";
			this->btnSave->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			this->btnSave->Click += new System::EventHandler(this, btnSave_Click);
			// 
			// label16
			// 
			this->label16->Location = System::Drawing::Point(360, 32);
			this->label16->Name = S"label16";
			this->label16->Size = System::Drawing::Size(56, 11);
			this->label16->TabIndex = 66;
			this->label16->Text = S"金额合计";
			// 
			// tBoxTotal
			// 
			this->tBoxTotal->Location = System::Drawing::Point(360, 48);
			this->tBoxTotal->Name = S"tBoxTotal";
			this->tBoxTotal->Size = System::Drawing::Size(112, 21);
			this->tBoxTotal->TabIndex = 70;
			this->tBoxTotal->Text = S"";
			// 
			// tBoxDoctor
			// 
			this->tBoxDoctor->Location = System::Drawing::Point(168, 48);
			this->tBoxDoctor->Name = S"tBoxDoctor";
			this->tBoxDoctor->Size = System::Drawing::Size(184, 21);
			this->tBoxDoctor->TabIndex = 49;
			this->tBoxDoctor->Text = S"";
			// 
			// tBoxRoom
			// 
			this->tBoxRoom->Location = System::Drawing::Point(16, 48);
			this->tBoxRoom->Name = S"tBoxRoom";
			this->tBoxRoom->Size = System::Drawing::Size(144, 21);
			this->tBoxRoom->TabIndex = 2;
			this->tBoxRoom->Text = S"";
			// 
			// label5
			// 
			this->label5->Location = System::Drawing::Point(16, 32);
			this->label5->Name = S"label5";
			this->label5->Size = System::Drawing::Size(56, 11);
			this->label5->TabIndex = 1;
			this->label5->Text = S"科室";
			// 
			// label7
			// 
			this->label7->Location = System::Drawing::Point(168, 32);
			this->label7->Name = S"label7";
			this->label7->Size = System::Drawing::Size(56, 11);
			this->label7->TabIndex = 3;
			this->label7->Text = S"医生";
			// 
			// tBoxName
			// 
			this->tBoxName->Location = System::Drawing::Point(328, 40);
			this->tBoxName->Name = S"tBoxName";
			this->tBoxName->Size = System::Drawing::Size(120, 21);
			this->tBoxName->TabIndex = 4;
			this->tBoxName->Text = S"";
			// 
			// label2
			// 
			this->label2->Location = System::Drawing::Point(288, 40);
			this->label2->Name = S"label2";
			this->label2->Size = System::Drawing::Size(32, 11);
			this->label2->TabIndex = 3;
			this->label2->Text = S"姓名";
			// 
			// label1
			// 
			this->label1->Location = System::Drawing::Point(64, 40);
			this->label1->Name = S"label1";
			this->label1->Size = System::Drawing::Size(56, 11);
			this->label1->TabIndex = 1;
			this->label1->Text = S"门诊号";
			// 
			// tBoxSex
			// 
			this->tBoxSex->Location = System::Drawing::Point(528, 40);
			this->tBoxSex->Name = S"tBoxSex";
			this->tBoxSex->Size = System::Drawing::Size(120, 21);
			this->tBoxSex->TabIndex = 6;
			this->tBoxSex->Text = S"";
			// 
			// label4
			// 
			this->label4->Location = System::Drawing::Point(480, 40);
			this->label4->Name = S"label4";
			this->label4->Size = System::Drawing::Size(32, 11);
			this->label4->TabIndex = 5;
			this->label4->Text = S"性别";
			// 
			// groupBox1
			// 
			this->groupBox1->Controls->Add(this->cmbRegID);
			this->groupBox1->Controls->Add(this->tBoxName);
			this->groupBox1->Controls->Add(this->label2);
			this->groupBox1->Controls->Add(this->label1);
			this->groupBox1->Controls->Add(this->tBoxSex);
			this->groupBox1->Controls->Add(this->label4);
			this->groupBox1->Dock = System::Windows::Forms::DockStyle::Top;
			this->groupBox1->Location = System::Drawing::Point(0, 0);
			this->groupBox1->Name = S"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(784, 79);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -