?? medinfo.cs
字號:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data;using System.Data.SqlClient;namespace 醫(yī)院管理系統(tǒng){ public class MedInfo : 醫(yī)院管理系統(tǒng).ParentForm {
private 醫(yī)院管理系統(tǒng).DataSet1 dataSet11;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txt4;
private System.Windows.Forms.TextBox txt5;
private System.Windows.Forms.TextBox txt6;
private System.Windows.Forms.TextBox txt7;
private System.Windows.Forms.TextBox txt8;
private System.Windows.Forms.TextBox txt9;
private System.Windows.Forms.TextBox txt10;
private System.Windows.Forms.TextBox txt11;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.TextBox txt12;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.ComboBox cmb1;
private System.Windows.Forms.TextBox txt15;
private System.Windows.Forms.TextBox txt16;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox txt14;
private System.Windows.Forms.TextBox txt13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.TextBox txt17;
private System.Windows.Forms.Label label18;
private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
private System.Data.SqlClient.SqlConnection sqlConnection1; private System.ComponentModel.IContainer components = null; public MedInfo() { // 該調(diào)用是 Windows 窗體設(shè)計(jì)器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 調(diào)用后添加任何初始化 } /// <summary> /// 清理所有正在使用的資源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region 設(shè)計(jì)器生成的代碼 /// <summary> /// 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改 /// 此方法的內(nèi)容。 /// </summary> private void InitializeComponent() { this.dataSet11 = new 醫(yī)院管理系統(tǒng).DataSet1();
this.label4 = new System.Windows.Forms.Label();
this.txt4 = new System.Windows.Forms.TextBox();
this.txt5 = new System.Windows.Forms.TextBox();
this.txt6 = new System.Windows.Forms.TextBox();
this.txt7 = new System.Windows.Forms.TextBox();
this.txt8 = new System.Windows.Forms.TextBox();
this.txt9 = new System.Windows.Forms.TextBox();
this.txt10 = new System.Windows.Forms.TextBox();
this.txt11 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.txt12 = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.cmb1 = new System.Windows.Forms.ComboBox();
this.txt15 = new System.Windows.Forms.TextBox();
this.txt16 = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.txt14 = new System.Windows.Forms.TextBox();
this.txt13 = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.txt17 = new System.Windows.Forms.TextBox();
this.label18 = new System.Windows.Forms.Label();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
//
// groupBox1
//
this.groupBox1.Name = "groupBox1";
//
// txt2
//
this.txt2.Name = "txt2";
//
// label1
//
this.label1.Name = "label1";
this.label1.Text = "藥品名稱";
//
// btnSearch
//
this.btnSearch.Name = "btnSearch";
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// txt1
//
this.txt1.Name = "txt1";
//
// label2
//
this.label2.Location = new System.Drawing.Point(120, 29);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(48, 16);
this.label2.Text = "拼音碼";
//
// txt3
//
this.txt3.Name = "txt3";
//
// label3
//
this.label3.Name = "label3";
this.label3.Text = "藥品編號";
//
// toolBar1
//
this.toolBar1.Name = "toolBar1";
this.toolBar1.Size = new System.Drawing.Size(728, 41);
//
// dataGrid1
//
this.dataGrid1.DataMember = "藥品資料";
this.dataGrid1.DataSource = this.dataSet11;
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(728, 256);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.cmb1);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.txt4);
this.groupBox2.Controls.Add(this.txt5);
this.groupBox2.Controls.Add(this.txt6);
this.groupBox2.Controls.Add(this.txt7);
this.groupBox2.Controls.Add(this.txt8);
this.groupBox2.Controls.Add(this.txt9);
this.groupBox2.Controls.Add(this.txt10);
this.groupBox2.Controls.Add(this.txt11);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Controls.Add(this.label9);
this.groupBox2.Controls.Add(this.label11);
this.groupBox2.Controls.Add(this.label12);
this.groupBox2.Controls.Add(this.label17);
this.groupBox2.Controls.Add(this.label16);
this.groupBox2.Controls.Add(this.txt12);
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Controls.Add(this.label8);
this.groupBox2.Controls.Add(this.txt15);
this.groupBox2.Controls.Add(this.txt16);
this.groupBox2.Controls.Add(this.label10);
this.groupBox2.Controls.Add(this.label13);
this.groupBox2.Controls.Add(this.txt14);
this.groupBox2.Controls.Add(this.txt13);
this.groupBox2.Controls.Add(this.label14);
this.groupBox2.Controls.Add(this.label15);
this.groupBox2.Controls.Add(this.txt17);
this.groupBox2.Controls.Add(this.label18);
this.groupBox2.Location = new System.Drawing.Point(0, 352);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(728, 144);
//
// da1
//
this.da1.DeleteCommand = this.sqlDeleteCommand1;
this.da1.InsertCommand = this.sqlInsertCommand1;
this.da1.SelectCommand = this.sqlSelectCommand1;
this.da1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
new System.Data.Common.DataTableMapping("Table", "藥品資料", new System.Data.Common.DataColumnMapping[] {
new System.Data.Common.DataColumnMapping("編號", "編號"),
new System.Data.Common.DataColumnMapping("名稱", "名稱"),
new System.Data.Common.DataColumnMapping("規(guī)格", "規(guī)格"),
new System.Data.Common.DataColumnMapping("整量單位", "整量單位"),
new System.Data.Common.DataColumnMapping("散量單位", "散量單位"),
new System.Data.Common.DataColumnMapping("入庫單價(jià)", "入庫單價(jià)"),
new System.Data.Common.DataColumnMapping("出庫單價(jià)", "出庫單價(jià)"),
new System.Data.Common.DataColumnMapping("批發(fā)價(jià)", "批發(fā)價(jià)"),
new System.Data.Common.DataColumnMapping("整散比", "整散比"),
new System.Data.Common.DataColumnMapping("分類", "分類"),
new System.Data.Common.DataColumnMapping("費(fèi)用歸類", "費(fèi)用歸類"),
new System.Data.Common.DataColumnMapping("拼音碼", "拼音碼"),
new System.Data.Common.DataColumnMapping("效期", "效期"),
new System.Data.Common.DataColumnMapping("上限", "上限"),
new System.Data.Common.DataColumnMapping("下限", "下限")})});
this.da1.UpdateCommand = this.sqlUpdateCommand1;
//
// dataSet11
//
this.dataSet11.DataSetName = "DataSet1";
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -