📄 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 HMS{ public class MedInfo : HMS.ParentForm {
private System.Data.SqlClient.SqlConnection sqlConnection1;
private System.Windows.Forms.ComboBox cmb1;
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.TextBox txt12;
private System.Windows.Forms.TextBox txt15;
private System.Windows.Forms.TextBox txt16;
private System.Windows.Forms.TextBox txt14;
private System.Windows.Forms.TextBox txt13;
private System.Windows.Forms.TextBox txt17;
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.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
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 HMS.DataSet1 dataSet11;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label18;
private System.Data.SqlClient.SqlCommand sqlSelectCommand2;
private System.Data.SqlClient.SqlCommand sqlInsertCommand2;
private System.Data.SqlClient.SqlCommand sqlUpdateCommand2;
private System.Data.SqlClient.SqlCommand sqlDeleteCommand2;
private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1; private System.ComponentModel.IContainer components = null; public MedInfo() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region 设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
this.cmb1 = new System.Windows.Forms.ComboBox();
this.dataSet11 = new HMS.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.txt12 = new System.Windows.Forms.TextBox();
this.txt15 = new System.Windows.Forms.TextBox();
this.txt16 = new System.Windows.Forms.TextBox();
this.txt14 = new System.Windows.Forms.TextBox();
this.txt13 = new System.Windows.Forms.TextBox();
this.txt17 = 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.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.label15 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
this.sqlInsertCommand2 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand2 = new System.Data.SqlClient.SqlCommand();
this.sqlDeleteCommand2 = new System.Data.SqlClient.SqlCommand();
this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
this.SuspendLayout();
//
// toolBar1
//
this.toolBar1.Name = "toolBar1";
this.toolBar1.Size = new System.Drawing.Size(888, 41);
//
// txt2
//
this.txt2.Name = "txt2";
//
// label1
//
this.label1.Name = "label1";
this.label1.Text = "药品名称";
//
// txt1
//
this.txt1.Name = "txt1";
//
// label2
//
this.label2.Name = "label2";
this.label2.Text = "拼音码";
//
// txt3
//
this.txt3.Name = "txt3";
//
// label3
//
this.label3.Name = "label3";
this.label3.Text = "药品编号";
//
// btnSearch
//
this.btnSearch.Name = "btnSearch";
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// dataGrid1
//
this.dataGrid1.DataMember = "药品资料";
this.dataGrid1.DataSource = this.dataSet11;
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(728, 224);
//
// 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("规格", "规格"),
new System.Data.Common.DataColumnMapping("整量单位", "整量单位"),
new System.Data.Common.DataColumnMapping("散量单位", "散量单位"),
new System.Data.Common.DataColumnMapping("入库单价", "入库单价"),
new System.Data.Common.DataColumnMapping("出库单价", "出库单价"),
new System.Data.Common.DataColumnMapping("批发价", "批发价"),
new System.Data.Common.DataColumnMapping("整散比", "整散比"),
new System.Data.Common.DataColumnMapping("分类", "分类"),
new System.Data.Common.DataColumnMapping("费用归类", "费用归类"),
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;
//
// sqlConnection1
//
this.sqlConnection1.ConnectionString = "workstation id=BRIGHT;packet size=4096;user id=sa;data source=BRIGHT;persist secu" +
"rity info=False;initial catalog=hospitalms";
//
// cmb1
//
this.cmb1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "药品资料.分类"));
this.cmb1.Enabled = false;
this.cmb1.Location = new System.Drawing.Point(112, 408);
this.cmb1.Name = "cmb1";
this.cmb1.Size = new System.Drawing.Size(120, 20);
this.cmb1.TabIndex = 69;
//
// dataSet11
//
this.dataSet11.DataSetName = "DataSet1";
this.dataSet11.Locale = new System.Globalization.CultureInfo("en-US");
//
// label4
//
this.label4.Location = new System.Drawing.Point(24, 328);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 16);
this.label4.TabIndex = 50;
this.label4.Text = "编号";
//
// txt4
//
this.txt4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "药品资料.编号"));
this.txt4.Location = new System.Drawing.Point(24, 344);
this.txt4.Name = "txt4";
this.txt4.ReadOnly = true;
this.txt4.Size = new System.Drawing.Size(64, 21);
this.txt4.TabIndex = 59;
this.txt4.Text = "";
//
// txt5
//
this.txt5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "药品资料.名称"));
this.txt5.Location = new System.Drawing.Point(104, 344);
this.txt5.Name = "txt5";
this.txt5.ReadOnly = true;
this.txt5.Size = new System.Drawing.Size(152, 21);
this.txt5.TabIndex = 58;
this.txt5.Text = "";
//
// txt6
//
this.txt6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "药品资料.规格"));
this.txt6.Location = new System.Drawing.Point(272, 344);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -