麻醉记录单背面滚动条问题

术中加药常用剂量维护
上线功能测试调整
This commit is contained in:
leomon 2022-11-11 00:17:41 +08:00
parent 82591fb825
commit da9ac67e4f
49 changed files with 1564 additions and 1485 deletions

View File

@ -28,11 +28,11 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("麻醉药"); System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("麻醉药");
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("精神I类"); System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("精神I类");
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("精神II类"); System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("精神II类");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("普通药"); System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("普通药");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("血液制品"); System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("血液制品");
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.tsbAdd = new System.Windows.Forms.ToolStripButton(); this.tsbAdd = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
@ -49,6 +49,8 @@
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.txtUnit = new System.Windows.Forms.TextBox(); this.txtUnit = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.txtChannel = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.cboDosageUnit = new System.Windows.Forms.ComboBox(); this.cboDosageUnit = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.txtStand = new System.Windows.Forms.TextBox(); this.txtStand = new System.Windows.Forms.TextBox();
@ -57,7 +59,9 @@
this.label12 = new System.Windows.Forms.Label(); this.label12 = new System.Windows.Forms.Label();
this.cboDrugKind = new System.Windows.Forms.ComboBox(); this.cboDrugKind = new System.Windows.Forms.ComboBox();
this.chkIsValid = new System.Windows.Forms.CheckBox(); this.chkIsValid = new System.Windows.Forms.CheckBox();
this.txtRemark = new System.Windows.Forms.TextBox();
this.txtName = new System.Windows.Forms.TextBox(); this.txtName = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
@ -67,10 +71,12 @@
this.treeView1 = new System.Windows.Forms.TreeView(); this.treeView1 = new System.Windows.Forms.TreeView();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.panel6 = new System.Windows.Forms.Panel(); this.panel6 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label(); this.txtUseDose1 = new AIMS.OremrUserControl.NumTextBox();
this.txtRemark = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label();
this.txtChannel = new System.Windows.Forms.ComboBox(); this.txtUseDose2 = new AIMS.OremrUserControl.NumTextBox();
this.label9 = new System.Windows.Forms.Label();
this.txtUseDose3 = new AIMS.OremrUserControl.NumTextBox();
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Code = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Code = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.NameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.NameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -78,6 +84,9 @@
this.DrugKindColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DrugKindColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.StandColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.StandColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DosageUnitColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DosageUnitColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UseDose1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UseDose2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UseDose3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UnitColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.UnitColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.UseRate = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.UseRate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -190,14 +199,20 @@
// //
// panel4 // panel4
// //
this.panel4.Controls.Add(this.txtUseDose3);
this.panel4.Controls.Add(this.txtUseDose2);
this.panel4.Controls.Add(this.txtUseDose1);
this.panel4.Controls.Add(this.txtUseRate); this.panel4.Controls.Add(this.txtUseRate);
this.panel4.Controls.Add(this.label6); this.panel4.Controls.Add(this.label6);
this.panel4.Controls.Add(this.label4); this.panel4.Controls.Add(this.label4);
this.panel4.Controls.Add(this.txtUnit); this.panel4.Controls.Add(this.txtUnit);
this.panel4.Controls.Add(this.label2); this.panel4.Controls.Add(this.label2);
this.panel4.Controls.Add(this.txtChannel); this.panel4.Controls.Add(this.txtChannel);
this.panel4.Controls.Add(this.label9);
this.panel4.Controls.Add(this.label5); this.panel4.Controls.Add(this.label5);
this.panel4.Controls.Add(this.label8);
this.panel4.Controls.Add(this.cboDosageUnit); this.panel4.Controls.Add(this.cboDosageUnit);
this.panel4.Controls.Add(this.label7);
this.panel4.Controls.Add(this.label1); this.panel4.Controls.Add(this.label1);
this.panel4.Controls.Add(this.txtStand); this.panel4.Controls.Add(this.txtStand);
this.panel4.Controls.Add(this.label11); this.panel4.Controls.Add(this.label11);
@ -214,12 +229,12 @@
this.panel4.Font = new System.Drawing.Font("宋体", 10.5F); this.panel4.Font = new System.Drawing.Font("宋体", 10.5F);
this.panel4.Location = new System.Drawing.Point(0, 0); this.panel4.Location = new System.Drawing.Point(0, 0);
this.panel4.Name = "panel4"; this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(691, 185); this.panel4.Size = new System.Drawing.Size(691, 179);
this.panel4.TabIndex = 0; this.panel4.TabIndex = 0;
// //
// txtUseRate // txtUseRate
// //
this.txtUseRate.Location = new System.Drawing.Point(484, 106); this.txtUseRate.Location = new System.Drawing.Point(484, 129);
this.txtUseRate.Name = "txtUseRate"; this.txtUseRate.Name = "txtUseRate";
this.txtUseRate.Size = new System.Drawing.Size(45, 23); this.txtUseRate.Size = new System.Drawing.Size(45, 23);
this.txtUseRate.TabIndex = 563; this.txtUseRate.TabIndex = 563;
@ -227,7 +242,7 @@
// label6 // label6
// //
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(431, 108); this.label6.Location = new System.Drawing.Point(431, 132);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(35, 14); this.label6.Size = new System.Drawing.Size(35, 14);
this.label6.TabIndex = 562; this.label6.TabIndex = 562;
@ -236,14 +251,14 @@
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(485, 104); this.label4.Location = new System.Drawing.Point(485, 129);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(0, 14); this.label4.Size = new System.Drawing.Size(0, 14);
this.label4.TabIndex = 561; this.label4.TabIndex = 561;
// //
// txtUnit // txtUnit
// //
this.txtUnit.Location = new System.Drawing.Point(287, 76); this.txtUnit.Location = new System.Drawing.Point(287, 73);
this.txtUnit.Name = "txtUnit"; this.txtUnit.Name = "txtUnit";
this.txtUnit.Size = new System.Drawing.Size(123, 23); this.txtUnit.Size = new System.Drawing.Size(123, 23);
this.txtUnit.TabIndex = 560; this.txtUnit.TabIndex = 560;
@ -251,16 +266,33 @@
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(246, 80); this.label2.Location = new System.Drawing.Point(246, 77);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(35, 14); this.label2.Size = new System.Drawing.Size(35, 14);
this.label2.TabIndex = 559; this.label2.TabIndex = 559;
this.label2.Text = "单位"; this.label2.Text = "单位";
// //
// txtChannel
//
this.txtChannel.FormattingEnabled = true;
this.txtChannel.Location = new System.Drawing.Point(484, 73);
this.txtChannel.Name = "txtChannel";
this.txtChannel.Size = new System.Drawing.Size(121, 22);
this.txtChannel.TabIndex = 558;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(431, 77);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(35, 14);
this.label5.TabIndex = 557;
this.label5.Text = "途径";
//
// cboDosageUnit // cboDosageUnit
// //
this.cboDosageUnit.FormattingEnabled = true; this.cboDosageUnit.FormattingEnabled = true;
this.cboDosageUnit.Location = new System.Drawing.Point(102, 76); this.cboDosageUnit.Location = new System.Drawing.Point(102, 72);
this.cboDosageUnit.Name = "cboDosageUnit"; this.cboDosageUnit.Name = "cboDosageUnit";
this.cboDosageUnit.Size = new System.Drawing.Size(121, 22); this.cboDosageUnit.Size = new System.Drawing.Size(121, 22);
this.cboDosageUnit.TabIndex = 558; this.cboDosageUnit.TabIndex = 558;
@ -268,7 +300,7 @@
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(31, 80); this.label1.Location = new System.Drawing.Point(31, 78);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(63, 14); this.label1.Size = new System.Drawing.Size(63, 14);
this.label1.TabIndex = 557; this.label1.TabIndex = 557;
@ -276,7 +308,7 @@
// //
// txtStand // txtStand
// //
this.txtStand.Location = new System.Drawing.Point(287, 46); this.txtStand.Location = new System.Drawing.Point(287, 43);
this.txtStand.Name = "txtStand"; this.txtStand.Name = "txtStand";
this.txtStand.Size = new System.Drawing.Size(123, 23); this.txtStand.Size = new System.Drawing.Size(123, 23);
this.txtStand.TabIndex = 554; this.txtStand.TabIndex = 554;
@ -284,7 +316,7 @@
// label11 // label11
// //
this.label11.AutoSize = true; this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(246, 52); this.label11.Location = new System.Drawing.Point(246, 49);
this.label11.Name = "label11"; this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(35, 14); this.label11.Size = new System.Drawing.Size(35, 14);
this.label11.TabIndex = 553; this.label11.TabIndex = 553;
@ -316,7 +348,7 @@
"精神II类", "精神II类",
"普通药", "普通药",
"血液制品"}); "血液制品"});
this.cboDrugKind.Location = new System.Drawing.Point(102, 46); this.cboDrugKind.Location = new System.Drawing.Point(102, 44);
this.cboDrugKind.Name = "cboDrugKind"; this.cboDrugKind.Name = "cboDrugKind";
this.cboDrugKind.Size = new System.Drawing.Size(121, 22); this.cboDrugKind.Size = new System.Drawing.Size(121, 22);
this.cboDrugKind.TabIndex = 550; this.cboDrugKind.TabIndex = 550;
@ -324,13 +356,21 @@
// chkIsValid // chkIsValid
// //
this.chkIsValid.AutoSize = true; this.chkIsValid.AutoSize = true;
this.chkIsValid.Location = new System.Drawing.Point(549, 106); this.chkIsValid.Location = new System.Drawing.Point(549, 132);
this.chkIsValid.Name = "chkIsValid"; this.chkIsValid.Name = "chkIsValid";
this.chkIsValid.Size = new System.Drawing.Size(68, 18); this.chkIsValid.Size = new System.Drawing.Size(68, 18);
this.chkIsValid.TabIndex = 549; this.chkIsValid.TabIndex = 549;
this.chkIsValid.Text = "有效性"; this.chkIsValid.Text = "有效性";
this.chkIsValid.UseVisualStyleBackColor = true; this.chkIsValid.UseVisualStyleBackColor = true;
// //
// txtRemark
//
this.txtRemark.Location = new System.Drawing.Point(102, 129);
this.txtRemark.Name = "txtRemark";
this.txtRemark.Size = new System.Drawing.Size(308, 23);
this.txtRemark.TabIndex = 548;
this.txtRemark.TextChanged += new System.EventHandler(this.txtName_TextChanged);
//
// txtName // txtName
// //
this.txtName.Location = new System.Drawing.Point(102, 15); this.txtName.Location = new System.Drawing.Point(102, 15);
@ -339,10 +379,19 @@
this.txtName.TabIndex = 548; this.txtName.TabIndex = 548;
this.txtName.TextChanged += new System.EventHandler(this.txtName_TextChanged); this.txtName.TextChanged += new System.EventHandler(this.txtName_TextChanged);
// //
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(31, 132);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(63, 14);
this.label3.TabIndex = 546;
this.label3.Text = "药品备注";
//
// label13 // label13
// //
this.label13.AutoSize = true; this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(31, 52); this.label13.Location = new System.Drawing.Point(31, 51);
this.label13.Name = "label13"; this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(63, 14); this.label13.Size = new System.Drawing.Size(63, 14);
this.label13.TabIndex = 547; this.label13.TabIndex = 547;
@ -369,9 +418,9 @@
// //
this.panel5.Controls.Add(this.dgv); this.panel5.Controls.Add(this.dgv);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(0, 185); this.panel5.Location = new System.Drawing.Point(0, 179);
this.panel5.Name = "panel5"; this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(691, 242); this.panel5.Size = new System.Drawing.Size(691, 248);
this.panel5.TabIndex = 1; this.panel5.TabIndex = 1;
// //
// dgv // dgv
@ -387,6 +436,9 @@
this.DrugKindColumn, this.DrugKindColumn,
this.StandColumn, this.StandColumn,
this.DosageUnitColumn, this.DosageUnitColumn,
this.UseDose1,
this.UseDose2,
this.UseDose3,
this.UnitColumn, this.UnitColumn,
this.UseRate, this.UseRate,
this.Remark, this.Remark,
@ -398,7 +450,7 @@
this.dgv.RowHeadersVisible = false; this.dgv.RowHeadersVisible = false;
this.dgv.RowTemplate.Height = 23; this.dgv.RowTemplate.Height = 23;
this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgv.Size = new System.Drawing.Size(691, 242); this.dgv.Size = new System.Drawing.Size(691, 248);
this.dgv.TabIndex = 1; this.dgv.TabIndex = 1;
// //
// panel3 // panel3
@ -417,27 +469,27 @@
this.treeView1.Font = new System.Drawing.Font("宋体", 11F); this.treeView1.Font = new System.Drawing.Font("宋体", 11F);
this.treeView1.Location = new System.Drawing.Point(0, 0); this.treeView1.Location = new System.Drawing.Point(0, 0);
this.treeView1.Name = "treeView1"; this.treeView1.Name = "treeView1";
treeNode1.Name = "麻醉药"; treeNode6.Name = "麻醉药";
treeNode1.Text = "麻醉药"; treeNode6.Text = "麻醉药";
treeNode1.ToolTipText = "麻醉药"; treeNode6.ToolTipText = "麻醉药";
treeNode2.Name = "精神I类"; treeNode7.Name = "精神I类";
treeNode2.Text = "精神I类"; treeNode7.Text = "精神I类";
treeNode2.ToolTipText = "精神I类"; treeNode7.ToolTipText = "精神I类";
treeNode3.Name = "精神II类"; treeNode8.Name = "精神II类";
treeNode3.Text = "精神II类"; treeNode8.Text = "精神II类";
treeNode3.ToolTipText = "精神II类"; treeNode8.ToolTipText = "精神II类";
treeNode4.Name = "普通药"; treeNode9.Name = "普通药";
treeNode4.Text = "普通药"; treeNode9.Text = "普通药";
treeNode4.ToolTipText = "普通药"; treeNode9.ToolTipText = "普通药";
treeNode5.Name = "血液制品"; treeNode10.Name = "血液制品";
treeNode5.Text = "血液制品"; treeNode10.Text = "血液制品";
treeNode5.ToolTipText = "血液制品"; treeNode10.ToolTipText = "血液制品";
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode1, treeNode6,
treeNode2, treeNode7,
treeNode3, treeNode8,
treeNode4, treeNode9,
treeNode5}); treeNode10});
this.treeView1.Size = new System.Drawing.Size(181, 427); this.treeView1.Size = new System.Drawing.Size(181, 427);
this.treeView1.TabIndex = 0; this.treeView1.TabIndex = 0;
this.treeView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.treeView1_MouseDoubleClick); this.treeView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.treeView1_MouseDoubleClick);
@ -460,39 +512,53 @@
this.panel6.Size = new System.Drawing.Size(872, 47); this.panel6.Size = new System.Drawing.Size(872, 47);
this.panel6.TabIndex = 9; this.panel6.TabIndex = 9;
// //
// label3 // txtUseDose1
// //
this.label3.AutoSize = true; this.txtUseDose1.Location = new System.Drawing.Point(102, 100);
this.label3.Location = new System.Drawing.Point(31, 108); this.txtUseDose1.Name = "txtUseDose1";
this.label3.Name = "label3"; this.txtUseDose1.Size = new System.Drawing.Size(80, 23);
this.label3.Size = new System.Drawing.Size(63, 14); this.txtUseDose1.TabIndex = 564;
this.label3.TabIndex = 546;
this.label3.Text = "药品备注";
// //
// txtRemark // label7
// //
this.txtRemark.Location = new System.Drawing.Point(102, 106); this.label7.AutoSize = true;
this.txtRemark.Name = "txtRemark"; this.label7.Location = new System.Drawing.Point(31, 105);
this.txtRemark.Size = new System.Drawing.Size(308, 23); this.label7.Name = "label7";
this.txtRemark.TabIndex = 548; this.label7.Size = new System.Drawing.Size(63, 14);
this.txtRemark.TextChanged += new System.EventHandler(this.txtName_TextChanged); this.label7.TabIndex = 557;
this.label7.Text = "常用剂量";
// //
// label5 // label8
// //
this.label5.AutoSize = true; this.label8.AutoSize = true;
this.label5.Location = new System.Drawing.Point(431, 80); this.label8.Location = new System.Drawing.Point(215, 105);
this.label5.Name = "label5"; this.label8.Name = "label8";
this.label5.Size = new System.Drawing.Size(35, 14); this.label8.Size = new System.Drawing.Size(70, 14);
this.label5.TabIndex = 557; this.label8.TabIndex = 557;
this.label5.Text = "途径"; this.label8.Text = "常用剂量2";
// //
// txtChannel // txtUseDose2
// //
this.txtChannel.FormattingEnabled = true; this.txtUseDose2.Location = new System.Drawing.Point(290, 100);
this.txtChannel.Location = new System.Drawing.Point(484, 76); this.txtUseDose2.Name = "txtUseDose2";
this.txtChannel.Name = "txtChannel"; this.txtUseDose2.Size = new System.Drawing.Size(80, 23);
this.txtChannel.Size = new System.Drawing.Size(121, 22); this.txtUseDose2.TabIndex = 564;
this.txtChannel.TabIndex = 558; //
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(408, 105);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(70, 14);
this.label9.TabIndex = 557;
this.label9.Text = "常用剂量3";
//
// txtUseDose3
//
this.txtUseDose3.Location = new System.Drawing.Point(485, 100);
this.txtUseDose3.Name = "txtUseDose3";
this.txtUseDose3.Size = new System.Drawing.Size(80, 23);
this.txtUseDose3.TabIndex = 564;
// //
// Id // Id
// //
@ -508,6 +574,7 @@
this.Code.DataPropertyName = "Code"; this.Code.DataPropertyName = "Code";
this.Code.HeaderText = "编码"; this.Code.HeaderText = "编码";
this.Code.Name = "Code"; this.Code.Name = "Code";
this.Code.Width = 80;
// //
// NameColumn // NameColumn
// //
@ -544,18 +611,41 @@
this.DosageUnitColumn.HeaderText = "剂量单位"; this.DosageUnitColumn.HeaderText = "剂量单位";
this.DosageUnitColumn.Name = "DosageUnitColumn"; this.DosageUnitColumn.Name = "DosageUnitColumn";
// //
// UseDose1
//
this.UseDose1.DataPropertyName = "UseDose1";
this.UseDose1.HeaderText = "常用剂量1";
this.UseDose1.Name = "UseDose1";
this.UseDose1.Width = 70;
//
// UseDose2
//
this.UseDose2.DataPropertyName = "UseDose2";
this.UseDose2.HeaderText = "常用剂量2";
this.UseDose2.Name = "UseDose2";
this.UseDose2.Width = 70;
//
// UseDose3
//
this.UseDose3.DataPropertyName = "UseDose3";
this.UseDose3.HeaderText = "常用剂量3";
this.UseDose3.Name = "UseDose3";
this.UseDose3.Width = 70;
//
// UnitColumn // UnitColumn
// //
this.UnitColumn.DataPropertyName = "Unit"; this.UnitColumn.DataPropertyName = "Unit";
this.UnitColumn.HeaderText = "单位"; this.UnitColumn.HeaderText = "单位";
this.UnitColumn.Name = "UnitColumn"; this.UnitColumn.Name = "UnitColumn";
this.UnitColumn.ReadOnly = true; this.UnitColumn.ReadOnly = true;
this.UnitColumn.Width = 80;
// //
// UseRate // UseRate
// //
this.UseRate.DataPropertyName = "UseRate"; this.UseRate.DataPropertyName = "UseRate";
this.UseRate.HeaderText = "频次"; this.UseRate.HeaderText = "频次";
this.UseRate.Name = "UseRate"; this.UseRate.Name = "UseRate";
this.UseRate.Width = 80;
// //
// Remark // Remark
// //
@ -644,6 +734,12 @@
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtRemark; private System.Windows.Forms.TextBox txtRemark;
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private AIMS.OremrUserControl.NumTextBox txtUseDose3;
private AIMS.OremrUserControl.NumTextBox txtUseDose2;
private AIMS.OremrUserControl.NumTextBox txtUseDose1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.DataGridViewTextBoxColumn Id; private System.Windows.Forms.DataGridViewTextBoxColumn Id;
private System.Windows.Forms.DataGridViewTextBoxColumn Code; private System.Windows.Forms.DataGridViewTextBoxColumn Code;
private System.Windows.Forms.DataGridViewTextBoxColumn NameColumn; private System.Windows.Forms.DataGridViewTextBoxColumn NameColumn;
@ -651,6 +747,9 @@
private System.Windows.Forms.DataGridViewTextBoxColumn DrugKindColumn; private System.Windows.Forms.DataGridViewTextBoxColumn DrugKindColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn StandColumn; private System.Windows.Forms.DataGridViewTextBoxColumn StandColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn DosageUnitColumn; private System.Windows.Forms.DataGridViewTextBoxColumn DosageUnitColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn UseDose1;
private System.Windows.Forms.DataGridViewTextBoxColumn UseDose2;
private System.Windows.Forms.DataGridViewTextBoxColumn UseDose3;
private System.Windows.Forms.DataGridViewTextBoxColumn UnitColumn; private System.Windows.Forms.DataGridViewTextBoxColumn UnitColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn UseRate; private System.Windows.Forms.DataGridViewTextBoxColumn UseRate;
private System.Windows.Forms.DataGridViewTextBoxColumn Remark; private System.Windows.Forms.DataGridViewTextBoxColumn Remark;

View File

@ -65,6 +65,9 @@ namespace DataDictionary.UI
txtUseRate.Text = dgv.CurrentRow.Cells["UseRate"].Value.ToString(); txtUseRate.Text = dgv.CurrentRow.Cells["UseRate"].Value.ToString();
txtRemark.Text = dgv.CurrentRow.Cells["Remark"].Value.ToString(); txtRemark.Text = dgv.CurrentRow.Cells["Remark"].Value.ToString();
txtChannel.Text = dgv.CurrentRow.Cells["Channel"].Value.ToString(); txtChannel.Text = dgv.CurrentRow.Cells["Channel"].Value.ToString();
txtUseDose1.Text = dgv.CurrentRow.Cells["UseDose1"].Value.ToString();
txtUseDose2.Text = dgv.CurrentRow.Cells["UseDose2"].Value.ToString();
txtUseDose3.Text = dgv.CurrentRow.Cells["UseDose3"].Value.ToString();
if (dgv.CurrentRow.Cells["IsValidColumn"].Value.ToString() == "有效") if (dgv.CurrentRow.Cells["IsValidColumn"].Value.ToString() == "有效")
{ {
@ -108,6 +111,9 @@ namespace DataDictionary.UI
DrugsObj.OperatorName = AIMSExtension.PublicMethod.OperatorName; DrugsObj.OperatorName = AIMSExtension.PublicMethod.OperatorName;
DrugsObj.OperateDate = AIMSExtension.PublicMethod.SystemDate(); DrugsObj.OperateDate = AIMSExtension.PublicMethod.SystemDate();
DrugsObj.UseDose1 = txtUseDose1.Text.Trim();
DrugsObj.UseDose2 = txtUseDose2.Text.Trim();
DrugsObj.UseDose3 = txtUseDose3.Text.Trim();
if (chkIsValid.Checked) if (chkIsValid.Checked)
{ {
DrugsObj.IsValid = 1; DrugsObj.IsValid = 1;
@ -135,6 +141,9 @@ namespace DataDictionary.UI
dgv.CurrentRow.Cells["HelpCodeColumn"].Value = txtHelpCode.Text; dgv.CurrentRow.Cells["HelpCodeColumn"].Value = txtHelpCode.Text;
dgv.CurrentRow.Cells["UseRate"].Value = txtUseRate.Text; dgv.CurrentRow.Cells["UseRate"].Value = txtUseRate.Text;
dgv.CurrentRow.Cells["Remark"].Value = txtRemark.Text; dgv.CurrentRow.Cells["Remark"].Value = txtRemark.Text;
dgv.CurrentRow.Cells["UseDose1"].Value = txtUseDose1.Text;
dgv.CurrentRow.Cells["UseDose2"].Value = txtUseDose2.Text;
dgv.CurrentRow.Cells["UseDose3"].Value = txtUseDose3.Text;
dgv.CurrentRow.Cells["Channel"].Value = txtChannel.Text; dgv.CurrentRow.Cells["Channel"].Value = txtChannel.Text;
dgv.CurrentRow.Cells["IsValidColumn"].Value = chkIsValid.Checked == true ? "有效" : "无效"; dgv.CurrentRow.Cells["IsValidColumn"].Value = chkIsValid.Checked == true ? "有效" : "无效";
AIMSExtension.PublicMethod.EnabledControl(panel4, false); AIMSExtension.PublicMethod.EnabledControl(panel4, false);
@ -168,6 +177,9 @@ namespace DataDictionary.UI
dt.Rows[i]["DrugKind"].ToString(), dt.Rows[i]["DrugKind"].ToString(),
dt.Rows[i]["Stand"].ToString(), dt.Rows[i]["Stand"].ToString(),
dt.Rows[i]["DosageUnit"].ToString(), dt.Rows[i]["DosageUnit"].ToString(),
dt.Rows[i]["UseDose1"].ToString(),
dt.Rows[i]["UseDose2"].ToString(),
dt.Rows[i]["UseDose3"].ToString(),
dt.Rows[i]["Unit"].ToString(), dt.Rows[i]["Unit"].ToString(),
dt.Rows[i]["UseRate"].ToString(), dt.Rows[i]["UseRate"].ToString(),
dt.Rows[i]["Remark"].ToString(), dt.Rows[i]["Remark"].ToString(),

View File

@ -141,6 +141,15 @@
<metadata name="DosageUnitColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="DosageUnitColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="UseDose1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="UseDose2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="UseDose3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="UnitColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="UnitColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>

View File

@ -175,7 +175,7 @@ namespace DataDictionary.UI
} }
if (num > 0) if (num > 0)
{ {
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
PublicMethod.EnabledControl(panel1, false); PublicMethod.EnabledControl(panel1, false);
PublicMethod.ClearControl(panel1); PublicMethod.ClearControl(panel1);
list = BOperationRoom.Select(" order by Site,[RoomOrder] asc", new ParameterList(), RecursiveType.None, 0); ; list = BOperationRoom.Select(" order by Site,[RoomOrder] asc", new ParameterList(), RecursiveType.None, 0); ;

View File

@ -852,6 +852,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
if (templateManage != null) if (templateManage != null)
templateManage.SetPYL(); templateManage.SetPYL();
} }
int lastpanel82VerticalScrollValue = -1;//为鼠标滚动事件提供一个静态变量用来存储上次滚动后的VerticalScroll.Value
private void panel82_MouseWheel(object sender, MouseEventArgs e) private void panel82_MouseWheel(object sender, MouseEventArgs e)
{ {
if (templateManage2 != null) if (templateManage2 != null)
@ -1844,6 +1845,11 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
templateManage2.OpeRecord = templateManage.OpeRecord; templateManage2.OpeRecord = templateManage.OpeRecord;
templateManage.BindOperationRecordValueAll(templateManage.OpeRecord); templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
templateManage2.BindOperationRecordValueAll(templateManage2.OpeRecord); templateManage2.BindOperationRecordValueAll(templateManage2.OpeRecord);
foreach (AreaManageBase area in templateManage2.ManageList)
{
area.MouseWheelParam += Area_MouseWheelParam;
}
reDrawEvent(); reDrawEvent();
templateManage.Bind(); templateManage.Bind();
templateManage2.Bind(); templateManage2.Bind();
@ -1854,6 +1860,30 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
} }
} }
private void Area_MouseWheelParam(object sender, MouseEventArgs e)
{
//if (!(panel82.VerticalScroll.Visible == false || (panel82.VerticalScroll.Value == 0 && e.Delta > 0) || (panel82.VerticalScroll.Value == lastpanel82VerticalScrollValue && e.Delta < 0)))
//{
string value = e.Delta.ToString();
if (value.Contains("-"))
{
value = value.Replace("-", "");
panel82.VerticalScroll.Value += int.Parse(value);
}
else
{
if (panel82.VerticalScroll.Value - e.Delta < 0)
panel82.VerticalScroll.Value = 0;
else
panel82.VerticalScroll.Value -= e.Delta;
}
panel82.Refresh();
panel82.Invalidate();
panel82.Update();
//}
}
private void DrawEvent() private void DrawEvent()
{ {
reDrawEvent(); reDrawEvent();

View File

@ -1,4 +1,5 @@
using AIMSBLL; using AIMSBLL;
using AIMSExtension;
using DrawGraph; using DrawGraph;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -397,7 +398,7 @@ namespace AIMS.PublicUI.UI
} }
} }
BAnaseDataQualityRecord.UpdateAnaseDataQualityRecord(_record.AnaseDataQualityRecordList, Convert.ToInt32(_record.Id)); BAnaseDataQualityRecord.UpdateAnaseDataQualityRecord(_record.AnaseDataQualityRecordList, Convert.ToInt32(_record.Id));
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
this.Close(); this.Close();
} }
public void SetDefultNo() public void SetDefultNo()

File diff suppressed because it is too large Load Diff

View File

@ -16,9 +16,8 @@ namespace AIMS.PublicUI.UI
{ {
public partial class frmFactDrugNew : OfficeForm public partial class frmFactDrugNew : OfficeForm
{ {
public static int rightcount = 0;
public static object valueTime; public static object valueTime;
public int currentTabIndex = 2; public int currentTabIndex = 1;
public bool isCVhageAllSapDose = false; public bool isCVhageAllSapDose = false;
public int DrugTypeId; public int DrugTypeId;
@ -84,7 +83,6 @@ namespace AIMS.PublicUI.UI
SetDGVNotSort(); SetDGVNotSort();
Initial(); Initial();
FullALLDGV(); FullALLDGV();
rightcount = 3;
tabDrugs.SelectedTabIndex = currentTabIndex; tabDrugs.SelectedTabIndex = currentTabIndex;
_dataGridView = dgvDrugsSZ; _dataGridView = dgvDrugsSZ;
BindAnaesthesiaEvents(); BindAnaesthesiaEvents();
@ -111,14 +109,6 @@ namespace AIMS.PublicUI.UI
{ {
dgvDrugsSH.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; dgvDrugsSH.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable;
} }
for (int i = 0; i < dgvDrugsKJ.Columns.Count; i++)
{
dgvDrugsKJ.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable;
}
for (int i = 0; i < dgvDrugsYD.Columns.Count; i++)
{
dgvDrugsYD.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable;
}
} }
private void SetDGVEvent(DataGridView dgv) private void SetDGVEvent(DataGridView dgv)
{ {
@ -176,7 +166,11 @@ namespace AIMS.PublicUI.UI
private void FullCommonlyDrugs(DataTable dt, Panel panelleft) private void FullCommonlyDrugs(DataTable dt, Panel panelleft)
{ {
if (panelleft.Controls != null) panelleft.Controls.Clear(); if (panelleft.Controls != null) panelleft.Controls.Clear();
page = (dt.Rows.Count / 18) + 1; if ((dt.Rows.Count / 18) == 1 || (dt.Rows.Count / 18) == 2 || (dt.Rows.Count / 18) == 3)
page = (dt.Rows.Count / 18);
else
page = (dt.Rows.Count / 18) + 1;
currpage = 1; currpage = 1;
drugdt = dt; drugdt = dt;
int y = -28; int y = -28;
@ -244,12 +238,20 @@ namespace AIMS.PublicUI.UI
for (int i = 0; i < 18; i++) for (int i = 0; i < 18; i++)
{ {
if (row + i >= drugdt.Rows.Count) break; if (row + i >= drugdt.Rows.Count) break;
int usedose = 0;
ButtonX lb = new ButtonX(); ButtonX lb = new ButtonX();
lb.Text = drugdt.Rows[row + i]["Name"].ToString().Trim() + " " +drugdt.Rows[row + i]["Stand"].ToString().Trim(); lb.Text = drugdt.Rows[row + i]["Name"].ToString().Trim() + " " + drugdt.Rows[row + i]["Stand"].ToString().Trim();
lb.Tag = drugdt.Rows[row + i]["Id"].ToString(); lb.Tag = drugdt.Rows[row + i]["Id"].ToString();
//设定位置 lb.Font = new System.Drawing.Font("微软雅黑", 9.5f, FontStyle.Bold);
lb.Size = new System.Drawing.Size(panelleftsel.Width - 10, 30);
lb.Font = new System.Drawing.Font("微软雅黑", 10f, FontStyle.Bold); if (drugdt.Rows[row + i]["UseDose1"].ToString() != "")
usedose++;
if (drugdt.Rows[row + i]["UseDose2"].ToString() != "")
usedose++;
if (drugdt.Rows[row + i]["UseDose3"].ToString() != "")
usedose++;
lb.Size = new System.Drawing.Size(panelleftsel.Width - (usedose * 43) - 8, 30);
lb.Cursor = Cursors.Hand; lb.Cursor = Cursors.Hand;
lb.ColorTable = eButtonColor.Orange;// Flat; lb.ColorTable = eButtonColor.Orange;// Flat;
lb.BackColor = Color.SkyBlue; lb.BackColor = Color.SkyBlue;
@ -259,8 +261,68 @@ namespace AIMS.PublicUI.UI
y += 32; y += 32;
lb.Location = new Point(4, y); lb.Location = new Point(4, y);
lb.Click += new EventHandler(lb_Click); lb.Click += new EventHandler(lb_Click);
int count = 0;
if (drugdt.Rows[row + i]["UseDose1"].ToString() != "")
{
ButtonX lb1 = new ButtonX();
lb1.Text = drugdt.Rows[row + i]["UseDose1"].ToString().Trim();
lb1.Tag = drugdt.Rows[row + i]["Id"].ToString();
//设定位置
lb1.Size = new System.Drawing.Size(38, 30);
lb1.Location = new Point(lb.Width + 8, y);
lb1.Font = new System.Drawing.Font("微软雅黑", 9f);
lb1.Cursor = Cursors.Hand;
lb1.ColorTable = eButtonColor.Orange;
lb1.BackColor = Color.SkyBlue;
lb1.TextAlignment = eButtonTextAlignment.Left;
lb1.Parent = panelleftsel;
lb1.TextColor = System.Drawing.Color.Black;
lb1.Click += new EventHandler(lb_Click);
panelleftsel.Controls.Add(lb1);
count++;
}
if (drugdt.Rows[row + i]["UseDose2"].ToString() != "")
{
ButtonX lb2 = new ButtonX();
lb2.Text = drugdt.Rows[row + i]["UseDose2"].ToString().Trim();
lb2.Tag = drugdt.Rows[row + i]["Id"].ToString();
//设定位置
lb2.Size = new System.Drawing.Size(38, 30);
lb2.Location = new Point((43 * count) + 8 + lb.Width, y);
lb2.Font = new System.Drawing.Font("微软雅黑", 9f);
lb2.Cursor = Cursors.Hand;
lb2.ColorTable = eButtonColor.Orange;
lb2.BackColor = Color.SkyBlue;
lb2.TextAlignment = eButtonTextAlignment.Left;
lb2.Parent = panelleftsel;
lb2.TextColor = System.Drawing.Color.Black;
lb2.Click += new EventHandler(lb_Click);
panelleftsel.Controls.Add(lb2);
count++;
}
if (drugdt.Rows[row + i]["UseDose3"].ToString() != "")
{
ButtonX lb3 = new ButtonX();
lb3.Text = drugdt.Rows[row + i]["UseDose3"].ToString().Trim();
lb3.Tag = drugdt.Rows[row + i]["Id"].ToString();
//设定位置
lb3.Size = new System.Drawing.Size(38, 30);
lb3.Location = new Point((43 * count) + 8 + lb.Width, y);
lb3.Font = new System.Drawing.Font("微软雅黑", 9f);
lb3.Cursor = Cursors.Hand;
lb3.ColorTable = eButtonColor.Orange;
lb3.BackColor = Color.SkyBlue;
lb3.TextAlignment = eButtonTextAlignment.Left;
lb3.Parent = panelleftsel;
lb3.TextColor = System.Drawing.Color.Black;
lb3.Click += new EventHandler(lb_Click);
panelleftsel.Controls.Add(lb3);
}
panelleftsel.Controls.Add(lb); panelleftsel.Controls.Add(lb);
} }
} }
@ -274,8 +336,8 @@ namespace AIMS.PublicUI.UI
dr.Cells[2].Value = drug.DrugKind; dr.Cells[2].Value = drug.DrugKind;
dr.Cells[3].Tag = drug.Id; dr.Cells[3].Tag = drug.Id;
dr.Cells[3].Value = drug.Name; dr.Cells[3].Value = drug.Name;
dr.Cells[4].Value = drug.Remark; dr.Cells[4].Value = drug.Remark;
dr.Cells[5].Value = drug.Channel; dr.Cells[5].Value = drug.Channel;
if (tabDrugs.SelectedTab.Name == "P3") dr.Cells[5].Value = "泵入"; if (tabDrugs.SelectedTab.Name == "P3") dr.Cells[5].Value = "泵入";
if (dr.Cells[2].Value.ToString() == "血液制品") if (dr.Cells[2].Value.ToString() == "血液制品")
{ {
@ -294,26 +356,15 @@ namespace AIMS.PublicUI.UI
{ {
dr.Cells[10].Value = outValue; dr.Cells[10].Value = outValue;
} }
//if (char.IsNumber(Convert.ToChar(send.Text.Substring(0, 1))))
//{
// dr.Cells[10].Value = Convert.ToDouble(send.Text);
//}
} }
dr.Cells[11].Value = drug.DosageUnit.Trim(); dr.Cells[11].Value = drug.DosageUnit.Trim();
if (_dataGridView != null && _dataGridView == dgvDrugsYD && _record.AnesthesiaBeginTime != null) //开始时间默认手术当天日期
dr.Cells[14].Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm");//默认当前时间‘
TimeSpan tsp = DateTime.Now - _record.InRoomTime.Value;
if (tsp.TotalHours > 12)
{ {
dr.Cells[14].Value = _record.AnesthesiaBeginTime; DateTime begindate = new DateTime(_record.InRoomTime.Value.Year, _record.InRoomTime.Value.Month, _record.InRoomTime.Value.Day, DateTime.Now.Hour, DateTime.Now.Minute, 0);
} dr.Cells[14].Value = begindate;
else
{
//开始时间默认手术当天日期
dr.Cells[14].Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm");//默认当前时间‘
TimeSpan tsp = DateTime.Now - _record.InRoomTime.Value;
if (tsp.TotalHours > 12)
{
DateTime begindate = new DateTime(_record.InRoomTime.Value.Year, _record.InRoomTime.Value.Month, _record.InRoomTime.Value.Day, DateTime.Now.Hour, DateTime.Now.Minute, 0);
dr.Cells[14].Value = begindate;
}
} }
if (_lineNumber > 0) if (_lineNumber > 0)
@ -1019,19 +1070,15 @@ namespace AIMS.PublicUI.UI
try try
{ {
btnSave.Focus(); btnSave.Focus();
if (SaveValid(dgvDrugsKJ, 0)) Save(dgvDrugsKJ, 0);
else return;
if (SaveValid(dgvDrugsSQ, 1)) Save(dgvDrugsSQ, 1); if (SaveValid(dgvDrugsSQ, 1)) Save(dgvDrugsSQ, 1);
else return; else return;
if (SaveValid(dgvDrugsSZ, 2)) Save(dgvDrugsSZ, 2); if (SaveValid(dgvDrugsSZ, 2)) Save(dgvDrugsSZ, 2);
else return; else return;
if (SaveValid(dgvDrugsSH, 3)) Save(dgvDrugsSH, 3); if (SaveValid(dgvDrugsSH, 3)) Save(dgvDrugsSH, 3);
else return; else return;
if (SaveValid(dgvDrugsYD, 4)) Save(dgvDrugsYD, 4);
else return;
new frmMessageBox().Show();
if (DrugsParam != null) DrugsParam(); if (DrugsParam != null) DrugsParam();
MessageBox.Show("保存成功!");
} }
catch (Exception exp) catch (Exception exp)
{ {
@ -1145,22 +1192,6 @@ namespace AIMS.PublicUI.UI
//dgvDrugs_RowsAdded(null, null); //dgvDrugs_RowsAdded(null, null);
FullDrugsData(sList); FullDrugsData(sList);
} }
if (bd.Name == "麻醉诱导用药")
{
List<FactDrug> sList = _record.FactDrugList.Where(p => p.GiveDrugType == bd.Name).ToList();
_dataGridView = dgvDrugsYD;
SetDGVEvent(_dataGridView);
//dgvDrugs_RowsAdded(null, null);
FullDrugsData(sList);
}
if (bd.Name == "术前加抗菌药")
{
List<FactDrug> sList = _record.FactDrugList.Where(p => p.GiveDrugType == bd.Name).ToList();
_dataGridView = dgvDrugsKJ;
SetDGVEvent(_dataGridView);
//dgvDrugs_RowsAdded(null, null);
FullDrugsData(sList);
}
} }
} }
private void frmFactDrugNew_Paint(object sender, PaintEventArgs e) private void frmFactDrugNew_Paint(object sender, PaintEventArgs e)
@ -1203,14 +1234,6 @@ namespace AIMS.PublicUI.UI
{ {
_dataGridView = dgvDrugsSH; _dataGridView = dgvDrugsSH;
} }
else if (tabDrugs.SelectedTab.Name == "P4")
{
_dataGridView = dgvDrugsYD;
}
else if (tabDrugs.SelectedTab.Name == "P5")
{
_dataGridView = dgvDrugsKJ;
}
_dataGridView.Columns[1].ReadOnly = true; _dataGridView.Columns[1].ReadOnly = true;
_dataGridView.Columns[2].ReadOnly = true; _dataGridView.Columns[2].ReadOnly = true;
@ -1547,8 +1570,8 @@ namespace AIMS.PublicUI.UI
_dataGridView.CurrentRow.Cells[3].Value = dgvYP.Rows[index].Cells["DrugName"].Value.ToString();//药品名称 _dataGridView.CurrentRow.Cells[3].Value = dgvYP.Rows[index].Cells["DrugName"].Value.ToString();//药品名称
_dataGridView.CurrentRow.Cells[11].Value = dgvYP.Rows[index].Cells["DoseUnit"].Value.ToString().Trim(); ;//备注名称 _dataGridView.CurrentRow.Cells[11].Value = dgvYP.Rows[index].Cells["DoseUnit"].Value.ToString().Trim(); ;//备注名称
_dataGridView.CurrentRow.Cells[4].Value = dgvYP.Rows[index].Cells["Remark"].Value.ToString(); _dataGridView.CurrentRow.Cells[4].Value = dgvYP.Rows[index].Cells["Remark"].Value.ToString();
_dataGridView.CurrentRow.Cells[5].Value = dgvYP.Rows[index].Cells["Channel"].Value.ToString(); _dataGridView.CurrentRow.Cells[5].Value = dgvYP.Rows[index].Cells["Channel"].Value.ToString();
if (_dataGridView.CurrentRow.Cells[2].Value.ToString() == "血液制品") if (_dataGridView.CurrentRow.Cells[2].Value.ToString() == "血液制品")
{ {
_dataGridView.CurrentRow.Cells[12].ReadOnly = false;//血型 _dataGridView.CurrentRow.Cells[12].ReadOnly = false;//血型
@ -1561,20 +1584,13 @@ namespace AIMS.PublicUI.UI
//{ //{
// _dataGridView.CurrentRow.Cells[11].Value = BBasicDictionary.GetDrugsUntiIdByUnitName(dgvYP.Rows[index].Cells["DosageUnit"].Value.ToString().Trim()); // _dataGridView.CurrentRow.Cells[11].Value = BBasicDictionary.GetDrugsUntiIdByUnitName(dgvYP.Rows[index].Cells["DosageUnit"].Value.ToString().Trim());
//} //}
if (_dataGridView != null && _dataGridView == dgvDrugsYD && _record.AnesthesiaBeginTime != null) //开始时间默认手术当天日期
_dataGridView.CurrentRow.Cells[14].Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm");//默认当前时间‘
TimeSpan tsp = DateTime.Now - _record.InRoomTime.Value;
if (tsp.TotalHours > 12)
{ {
_dataGridView.CurrentRow.Cells[14].Value = _record.AnesthesiaBeginTime; DateTime begindate = new DateTime(_record.InRoomTime.Value.Year, _record.InRoomTime.Value.Month, _record.InRoomTime.Value.Day, DateTime.Now.Hour, DateTime.Now.Minute, 0);
} _dataGridView.CurrentRow.Cells[14].Value = begindate;
else
{
//开始时间默认手术当天日期
_dataGridView.CurrentRow.Cells[14].Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm");//默认当前时间‘
TimeSpan tsp = DateTime.Now - _record.InRoomTime.Value;
if (tsp.TotalHours > 12)
{
DateTime begindate = new DateTime(_record.InRoomTime.Value.Year, _record.InRoomTime.Value.Month, _record.InRoomTime.Value.Day, DateTime.Now.Hour, DateTime.Now.Minute, 0);
_dataGridView.CurrentRow.Cells[14].Value = begindate;
}
} }
index = 0; index = 0;
dgvYP.Visible = false; dgvYP.Visible = false;

View File

@ -136,9 +136,9 @@
<value> <value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAA0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAu
CAAAAk1TRnQBSQFMAgEBAgEAARgBBgEYAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ CAAAAk1TRnQBSQFMAgEBAgEAAUABBgFAAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
AwABFAMAAQEBAAEgBgABGS4AA1UBrwKAAXIB/gMrAfwDKwH8AZkBiwFAAf0BoQGSAQAB/wGTAYIBAAH/ AwABFAMAAQEBAAEgBgABGS4AA1UBrwKAAXcB/gMrAfwDKwH8AZkBiwFAAf0BoQGSAQAB/wGTAYIBAAH/
AZYBhwFAAf0BowGUAQAB/wGjAZQBAAH/AaMBlAEAAf8DKwH8A2AB6P8ADQABkwGCAQAB/wNiAfYDbQH3 AZYBhwFAAf0BowGUAQAB/wGjAZQBAAH/AaMBlAEAAf8DKwH8A2AB6P8ADQABkwGCAQAB/wNiAfYDbQH3
A20B9wNcAfgDgAH+AZcBhgEAAf8DbQH3AewB5wHkAf8B7AHnAeQB/wHsAecB5AH/A20B9wGTAYIBAAH/ A20B9wNcAfgDgAH+AZcBhgEAAf8DbQH3AewB5wHkAf8B7AHnAeQB/wHsAecB5AH/A20B9wGTAYIBAAH/
/wANAAGTAYIBAAH/A2cB8gH/Av0C/wL9Av8C/QL/Av0B/wGbAYsBAAH/AysB/AH/Av0C/wL9Av8C/QL/ /wANAAGTAYIBAAH/A2cB8gH/Av0C/wL9Av8C/QL/Av0B/wGbAYsBAAH/AysB/AH/Av0C/wL9Av8C/QL/
@ -149,8 +149,8 @@
Af0C/wH8Af0C/wH8Af0C/wL+Af8BkwGCAQAB//8ADQABkwGCAQAB/wNgAfMB/gH7AfwB/wH+AfsB/AH/ Af0C/wH8Af0C/wH8Af0C/wL+Af8BkwGCAQAB//8ADQABkwGCAQAB/wNgAfMB/gH7AfwB/wH+AfsB/AH/
Af4B+wH8Af8B/gH7AfwB/wGbAYsBAAH/AysB/AH+AfsB/AH/Af4B+wH8Af8B/gH7AfwC/wL9Af8BkwGC Af4B+wH8Af8B/gH7AfwB/wGbAYsBAAH/AysB/AH+AfsB/AH/Af4B+wH8Af8B/gH7AfwC/wL9Af8BkwGC
AQAB//QAA0cBgQNHAYIDRwGCA0cBggNHAYIDRwGCAYkCAAH/A00B+gNfAfsDXwH7A18B+wNfAfsBjQIA AQAB//QAA0cBgQNHAYIDRwGCA0cBggNHAYIDRwGCAYkCAAH/A00B+gNfAfsDXwH7A18B+wNfAfsBjQIA
Af8BpwGgAZAB/QNfAfsDXwH7A18B+wKoAZ8B/QGTAYIBAAH/8AADBgEIAmABVAHzAW0BUgFRAfcCWgFK Af8BpwGgAZAB/QNfAfsDXwH7A18B+wKoAZ8B/QGTAYIBAAH/8AADBgEIAmABWwHzAW0BUgFRAfcCWgFR
AfUCWgFKAfUCWgFKAfUCWgFKAfUBgQIAAf8DAAH/AV8BXgEyAfsBXwFeATIB+wFfAV4BMgH7Al8BMgH7 AfUCWgFRAfUCWgFRAfUCWgFRAfUBgQIAAf8DAAH/AV8BXgEyAfsBXwFeATIB+wFfAV4BMgH7Al8BMgH7
AYECAAH/A2AB4wNeAdMDXgHTA14B0wNdAdEDYAHU8AADCQELA00B+gJtAVEB9wHwAaIBAAH/AfABogEA AYECAAH/A2AB4wNeAdMDXgHTA14B0wNdAdEDYAHU8AADCQELA00B+gJtAVEB9wHwAaIBAAH/AfABogEA
Af8B8AGiAQAB/wHwAaIBAAH/AYcCAAH/A1wB+AHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wHwAaIBAAH/ Af8B8AGiAQAB/wHwAaIBAAH/AYcCAAH/A1wB+AHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wHwAaIBAAH/
AwAB/wM4AVwMAAM+AWoDDgES8AADCQELA00B+gNcAfgB6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8B6gGe AwAB/wM4AVwMAAM+AWoDDgES8AADCQELA00B+gNcAfgB6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8B6gGe
@ -159,20 +159,19 @@
AfkDagH5AwAB/wM4AVwMAAM1AVYDRgF98AADBwEJA00B+gGDAkAB/QFqAWgBRwH5AWoBaAFHAfkBagFo AfkDagH5AwAB/wM4AVwMAAM1AVYDRgF98AADBwEJA00B+gGDAkAB/QFqAWgBRwH5AWoBaAFHAfkBagFo
AUcB+QFqAWgBRwH5AYECAAH/A00B+gFqAWgBRwH5AWoBaAFHAfkBagFoAUcB+QFqAWkBRgH5AYECAAH/ AUcB+QFqAWgBRwH5AYECAAH/A00B+gFqAWgBRwH5AWoBaAFHAfkBagFoAUcB+QFqAWkBRgH5AYECAAH/
A1kBvgNPAZkDTwGZA08BmQNYAbcDUQGf8AAEAgNJAYUDSQGIA0kBiANJAYgDSQGIA0kBiAGLAgAB/wGP A1kBvgNPAZkDTwGZA08BmQNYAbcDUQGf8AAEAgNJAYUDSQGIA0kBiANJAYgDSQGIA0kBiAGLAgAB/wGP
AkAB/QKAAX4B/gKAAX4B/gKAAX4B/gGkAY0BQAH9AYsCAAH/AaYBmQGDAf0BqAGlAZYB/QGoAaUBlgH9 AkAB/QOAAf4DgAH+A4AB/gGkAY0BQAH9AYsCAAH/AaYBmQGDAf0BqAGlAZYB/QGoAaUBlgH9AagBpQGW
AagBpQGWAf0DgAH+AZMBggEAAf//AA0AAZMBggEAAf8DYAHzAf4B+gH7Af8B/gH6AfsB/wH+AfoB+wH/ Af0DgAH+AZMBggEAAf//AA0AAZMBggEAAf8DYAHzAf4B+gH7Af8B/gH6AfsB/wH+AfoB+wH/Af4B+gH7
Af4B+gH7Af8BmwGLAQAB/wMrAfwB/gH6AfsB/wH+AfoB+wH/Af4B+gH7Av8C/QH/AZMBggEAAf//AA0A Af8BmwGLAQAB/wMrAfwB/gH6AfsB/wH+AfoB+wH/Af4B+gH7Av8C/QH/AZMBggEAAf//AA0AAZMBggEA
AZMBggEAAf8DYAHzAf4B+wH8Af8B/gH7AfwB/wH+AfsB/AH/AfsB+AH5Af8BmwGLAQAB/wMrAfwB/gH7 Af8DYAHzAf4B+wH8Af8B/gH7AfwB/wH+AfsB/AH/AfsB+AH5Af8BmwGLAQAB/wMrAfwB/gH7AfwB/wH+
AfwB/wH+AfsB/AH/Af4B+wH8Av8C/QH/AZMBggEAAf//AA0AAm0BbAH3A1wB+AOAAf4DgAH+A4AB/gOA AfsB/AH/Af4B+wH8Av8C/QH/AZMBggEAAf//AA0AAm0BbAH3A1wB+AOAAf4DgAH+A4AB/gOAAf4BmAGH
Af4BmAGHAQAB/wMrAfwB1AHNAcIB/wHUAc0BwgH/AdQBzQHCAf8DgAH+AZMBggEAAf//AAkAAwMBBANQ AQAB/wMrAfwB1AHNAcIB/wHUAc0BwgH/AdQBzQHCAf8DgAH+AZMBggEAAf//AAkAAwMBBANQAZoBkgGC
AZoBkgGCAQAB/wKAAW4B/gKAAW4B/gKAAW4B/gGTAYIBAAH/AZMBggEAAf8BjgGBAQAB/wGTAYIBAAH/ AQAB/wKAAXMB/gKAAXMB/gKAAXMB/gGTAYIBAAH/AZMBggEAAf8BjgGBAQAB/wGTAYIBAAH/AZMBggEA
AZMBggEAAf8BkwGCAQAB/wKAAW4B/gNaAb3/AAkAAwMBBAMSARcDIwEzAyMBMwMjATMDIwEzAyMBMwMj Af8BkwGCAQAB/wKAAXMB/gNaAb3/AAkAAwMBBAMSARcDIwEzAyMBMwMjATMDIwEzAyMBMwMjATMDIwEz
ATMDIwEzAyMBMwMjATMDIwEzAyMBMwMWAR7/AA0AAwUBBgMEAQUDBAEFAwQBBQMEBAUBBgMFAQYDBQEG AyMBMwMjATMDIwEzAyMBMwMWAR7/AA0AAwUBBgMEAQUDBAEFAwQBBQMEBAUBBgMFAQYDBQEGAwUBBgMF
AwUBBgMFAQYDBQEGAwUBBgMDAQTwAAFCAU0BPgcAAT4DAAEoAwABUAMAARQDAAEBAQABAQUAAfAXAAP/ AQYDBQEGAwUBBgMDAQTwAAFCAU0BPgcAAT4DAAEoAwABUAMAARQDAAEBAQABAQUAAfAXAAP/AQAB/gEA
AQAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/ AQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEA
BwAB/gEAAQ8C/wcAAYABAAEPAv8JAAEPAv8IAAEBAc8C/wgAAQEBzwL/CAABAQHPAv8JAAEPAv8JAAEP AQ8C/wcAAYABAAEPAv8JAAEPAv8IAAEBAc8C/wgAAQEBzwL/CAABAQHPAv8JAAEPAv8JAAEPAv8HAAH+
Av8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH8AQABDwL/BwAB/AEAAQ8C/wcAAf4BAAEP AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH8AQABDwL/BwAB/AEAAQ8C/wcAAf4BAAEPAv8HAAs=
Av8HAAs=
</value> </value>
</data> </data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View File

@ -609,8 +609,8 @@ namespace AIMS.PublicUI.UI
events.UseRate += 1; events.UseRate += 1;
BEvents.Update(events); BEvents.Update(events);
} }
new frmMessageBox().Show();
EventParam(); EventParam();
MessageBox.Show("保存成功!");
//this.Close(); //this.Close();
} }

View File

@ -322,7 +322,6 @@ namespace AIMS.PublicUI.UI
} }
} }
#endregion #endregion
#region 2016-08-5 GZ
foreach (DataGridViewRow dr in dgvOutput.Rows) foreach (DataGridViewRow dr in dgvOutput.Rows)
{ {
if (dr.Cells["OutputName"].EditedFormattedValue.ToString() == "" || dr.Cells["Dose"].EditedFormattedValue.ToString() == "") if (dr.Cells["OutputName"].EditedFormattedValue.ToString() == "" || dr.Cells["Dose"].EditedFormattedValue.ToString() == "")
@ -391,9 +390,8 @@ namespace AIMS.PublicUI.UI
} }
} }
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
//this.Close(); //this.Close();
#endregion
} }
#region DataGridView数字单元格验证 GZ #region DataGridView数字单元格验证 GZ
public DataGridViewTextBoxEditingControl dgvTxt = null; // 声明 一个文本 CellEdit public DataGridViewTextBoxEditingControl dgvTxt = null; // 声明 一个文本 CellEdit

View File

@ -766,7 +766,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
} }
if (num > 0) if (num > 0)
{ {
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
LoadDate(); LoadDate();
} }
} }
@ -854,7 +854,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
} }
if(num>0) if(num>0)
{ {
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
} }
} }

View File

@ -102,7 +102,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
num = BInstrumentRegistration.Insert(ir); num = BInstrumentRegistration.Insert(ir);
if (num > 0) if (num > 0)
{ {
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
if (selname != "" && selNumbers != "" && selname == ir.Name && selNumbers == ir.Numbers) if (selname != "" && selNumbers != "" && selname == ir.Name && selNumbers == ir.Numbers)
{ {
BinddgvInstrument(); BinddgvInstrument();

View File

@ -237,7 +237,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
// if (n > 0) // if (n > 0)
// { // {
// MessageBox.Show("保存成功!"); // new frmMessageBox().Show();
// } // }
// else // else
// { // {

View File

@ -214,7 +214,7 @@
// //
// txtMdrecNo // txtMdrecNo
// //
this.txtMdrecNo.Location = new System.Drawing.Point(582, 9); this.txtMdrecNo.Location = new System.Drawing.Point(591, 9);
this.txtMdrecNo.Name = "txtMdrecNo"; this.txtMdrecNo.Name = "txtMdrecNo";
this.txtMdrecNo.Size = new System.Drawing.Size(100, 23); this.txtMdrecNo.Size = new System.Drawing.Size(100, 23);
this.txtMdrecNo.TabIndex = 15; this.txtMdrecNo.TabIndex = 15;
@ -222,7 +222,7 @@
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(534, 18); this.label4.Location = new System.Drawing.Point(532, 13);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(49, 14); this.label4.Size = new System.Drawing.Size(49, 14);
this.label4.TabIndex = 14; this.label4.TabIndex = 14;
@ -232,7 +232,7 @@
// //
this.dtpEndDate.CustomFormat = "yyyy-MM-dd"; this.dtpEndDate.CustomFormat = "yyyy-MM-dd";
this.dtpEndDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpEndDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpEndDate.Location = new System.Drawing.Point(405, 9); this.dtpEndDate.Location = new System.Drawing.Point(417, 9);
this.dtpEndDate.Name = "dtpEndDate"; this.dtpEndDate.Name = "dtpEndDate";
this.dtpEndDate.Size = new System.Drawing.Size(97, 23); this.dtpEndDate.Size = new System.Drawing.Size(97, 23);
this.dtpEndDate.TabIndex = 13; this.dtpEndDate.TabIndex = 13;
@ -240,7 +240,7 @@
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(382, 18); this.label3.Location = new System.Drawing.Point(386, 13);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(21, 14); this.label3.Size = new System.Drawing.Size(21, 14);
this.label3.TabIndex = 12; this.label3.TabIndex = 12;
@ -250,7 +250,7 @@
// //
this.dtpBegInDate.CustomFormat = "yyyy-MM-dd"; this.dtpBegInDate.CustomFormat = "yyyy-MM-dd";
this.dtpBegInDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpBegInDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpBegInDate.Location = new System.Drawing.Point(283, 9); this.dtpBegInDate.Location = new System.Drawing.Point(271, 9);
this.dtpBegInDate.Name = "dtpBegInDate"; this.dtpBegInDate.Name = "dtpBegInDate";
this.dtpBegInDate.Size = new System.Drawing.Size(97, 23); this.dtpBegInDate.Size = new System.Drawing.Size(97, 23);
this.dtpBegInDate.TabIndex = 11; this.dtpBegInDate.TabIndex = 11;
@ -258,7 +258,7 @@
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(219, 18); this.label2.Location = new System.Drawing.Point(198, 13);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(63, 14); this.label2.Size = new System.Drawing.Size(63, 14);
this.label2.TabIndex = 10; this.label2.TabIndex = 10;
@ -268,7 +268,7 @@
// //
this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboDepartment.FormattingEnabled = true; this.cboDepartment.FormattingEnabled = true;
this.cboDepartment.Location = new System.Drawing.Point(55, 10); this.cboDepartment.Location = new System.Drawing.Point(59, 10);
this.cboDepartment.Name = "cboDepartment"; this.cboDepartment.Name = "cboDepartment";
this.cboDepartment.Size = new System.Drawing.Size(121, 22); this.cboDepartment.Size = new System.Drawing.Size(121, 22);
this.cboDepartment.TabIndex = 9; this.cboDepartment.TabIndex = 9;
@ -276,7 +276,7 @@
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(19, 18); this.label1.Location = new System.Drawing.Point(14, 13);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 14); this.label1.Size = new System.Drawing.Size(35, 14);
this.label1.TabIndex = 8; this.label1.TabIndex = 8;
@ -303,7 +303,7 @@
// //
// btnFind // btnFind
// //
this.btnFind.Location = new System.Drawing.Point(717, 9); this.btnFind.Location = new System.Drawing.Point(714, 9);
this.btnFind.Name = "btnFind"; this.btnFind.Name = "btnFind";
this.btnFind.Size = new System.Drawing.Size(66, 23); this.btnFind.Size = new System.Drawing.Size(66, 23);
this.btnFind.TabIndex = 16; this.btnFind.TabIndex = 16;

View File

@ -30,12 +30,21 @@ namespace AIMS.OperationFront.UI
dtpBegInDate.Value = DateTime.Parse(dtpBegInDate.Value.ToString("yyyy-MM-dd")); dtpBegInDate.Value = DateTime.Parse(dtpBegInDate.Value.ToString("yyyy-MM-dd"));
dtpEndDate.Value = DateTime.Parse(dtpEndDate.Value.ToString("yyyy-MM-dd")).AddDays(4); dtpEndDate.Value = DateTime.Parse(dtpEndDate.Value.ToString("yyyy-MM-dd")).AddDays(4);
List<Department> list = new List<Department>();
list = BDepartment.GetDepartmentAllList();
list.Insert(0, new Department
{
Id = -1,
Name = "全部科室"
});
cboDepartment.DataSource = list;
cboDepartment.DisplayMember = "Name"; cboDepartment.DisplayMember = "Name";
cboDepartment.ValueMember = "Id"; cboDepartment.ValueMember = "Id";
cboDepartment.DataSource = BDepartment.GetDepartmentDataTable("IsValid=1 ");
cboDepartment.SelectedIndex = -1; cboDepartment.SelectedIndex = -1;
cboDepartment.Text = "全部科室";
cboDepartment.Text = BDepartment.GetModel(AIMSExtension.PublicMethod.DepId).Name; if (AIMSExtension.PublicMethod.RoleId == 5)
cboDepartment.Text = BDepartment.GetModel(AIMSExtension.PublicMethod.DepId).Name;
btnFind_Click(null, null); btnFind_Click(null, null);
} }
@ -75,8 +84,12 @@ namespace AIMS.OperationFront.UI
private void btnFind_Click(object sender, EventArgs e) private void btnFind_Click(object sender, EventArgs e)
{ {
DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd")); DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd"));
string dept = "";
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "State IN ('已申请','已审核') and ApplyDepName LIKE '%" + cboDepartment.Text + "%' AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", ""); if (cboDepartment.Text!="" && cboDepartment.Text!="全部科室")
{
dept = " and ApplyDepName LIKE '%" + cboDepartment.Text + "%' ";
}
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "State IN ('已申请','已审核') "+dept+"AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", "");
dgv.DataSource = Newdt; dgv.DataSource = Newdt;
for (int i = 0; i < dgv.Rows.Count; i++) for (int i = 0; i < dgv.Rows.Count; i++)
{ {

View File

@ -40,7 +40,7 @@ namespace AIMS.OperationFront.UI
private Panel panel3; private Panel panel3;
private GroupBox groupBox1; private GroupBox groupBox1;
private Panel panel2; private Panel panel2;
private DataGridViewX dgvWorkers; private DataGridView dgvWorkers;
private GroupBox v; private GroupBox v;
private Panel panel5; private Panel panel5;
private GroupBox groupBox2; private GroupBox groupBox2;
@ -114,8 +114,8 @@ namespace AIMS.OperationFront.UI
private DataGridViewTextBoxColumn dataGridViewTextBoxColumn46; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn46;
private DataGridViewTextBoxColumn dataGridViewTextBoxColumn47; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn47;
private DataGridViewTextBoxColumn dataGridViewTextBoxColumn48; private DataGridViewTextBoxColumn dataGridViewTextBoxColumn48;
private DataGridViewX dgvInstrumentNurse; private DataGridView dgvInstrumentNurse;
private DataGridViewX dgvTourNurse; private DataGridView dgvTourNurse;
private Panel tcOperationRoomsPage; private Panel tcOperationRoomsPage;
private Panel tcOperationRoomsPage2; private Panel tcOperationRoomsPage2;
private Panel tcOperationRoomsPage1; private Panel tcOperationRoomsPage1;
@ -377,7 +377,7 @@ namespace AIMS.OperationFront.UI
this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem(); this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
this.navigationPanePanel4 = new DevComponents.DotNetBar.NavigationPanePanel(); this.navigationPanePanel4 = new DevComponents.DotNetBar.NavigationPanePanel();
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.dgvInstrumentNurse = new DevComponents.DotNetBar.Controls.DataGridViewX(); this.dgvInstrumentNurse = new DataGridView();
this.dataGridViewCheckBoxColumn3 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.dataGridViewCheckBoxColumn3 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewTextBoxColumn49 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn49 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.iName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.iName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -399,7 +399,7 @@ namespace AIMS.OperationFront.UI
this.buttonInstrumentNurse = new DevComponents.DotNetBar.ButtonItem(); this.buttonInstrumentNurse = new DevComponents.DotNetBar.ButtonItem();
this.navigationPanePanel5 = new DevComponents.DotNetBar.NavigationPanePanel(); this.navigationPanePanel5 = new DevComponents.DotNetBar.NavigationPanePanel();
this.v = new System.Windows.Forms.GroupBox(); this.v = new System.Windows.Forms.GroupBox();
this.dgvTourNurse = new DevComponents.DotNetBar.Controls.DataGridViewX(); this.dgvTourNurse = new DataGridView();
this.dataGridViewCheckBoxColumn4 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.dataGridViewCheckBoxColumn4 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewTextBoxColumn60 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn60 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.tName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -421,7 +421,7 @@ namespace AIMS.OperationFront.UI
this.buttonItemTourNurse = new DevComponents.DotNetBar.ButtonItem(); this.buttonItemTourNurse = new DevComponents.DotNetBar.ButtonItem();
this.navigationPanePanel2 = new DevComponents.DotNetBar.NavigationPanePanel(); this.navigationPanePanel2 = new DevComponents.DotNetBar.NavigationPanePanel();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dgvWorkers = new DevComponents.DotNetBar.Controls.DataGridViewX(); this.dgvWorkers = new DataGridView();
this.Check = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -1010,7 +1010,6 @@ namespace AIMS.OperationFront.UI
this.dgvInstrumentNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvInstrumentNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvInstrumentNurse.Size = new System.Drawing.Size(295, 450); this.dgvInstrumentNurse.Size = new System.Drawing.Size(295, 450);
this.dgvInstrumentNurse.TabIndex = 4; this.dgvInstrumentNurse.TabIndex = 4;
this.dgvInstrumentNurse.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv_CellClick);
this.dgvInstrumentNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); this.dgvInstrumentNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick);
// //
// dataGridViewCheckBoxColumn3 // dataGridViewCheckBoxColumn3
@ -1352,7 +1351,6 @@ namespace AIMS.OperationFront.UI
this.dgvTourNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvTourNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvTourNurse.Size = new System.Drawing.Size(295, 450); this.dgvTourNurse.Size = new System.Drawing.Size(295, 450);
this.dgvTourNurse.TabIndex = 4; this.dgvTourNurse.TabIndex = 4;
this.dgvTourNurse.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv_CellClick);
this.dgvTourNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); this.dgvTourNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick);
// //
// dataGridViewCheckBoxColumn4 // dataGridViewCheckBoxColumn4
@ -1692,7 +1690,6 @@ namespace AIMS.OperationFront.UI
this.dgvWorkers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvWorkers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvWorkers.Size = new System.Drawing.Size(295, 453); this.dgvWorkers.Size = new System.Drawing.Size(295, 453);
this.dgvWorkers.TabIndex = 3; this.dgvWorkers.TabIndex = 3;
this.dgvWorkers.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv_CellClick);
this.dgvWorkers.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); this.dgvWorkers.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick);
// //
// Check // Check
@ -3814,19 +3811,19 @@ namespace AIMS.OperationFront.UI
private readonly static object _Sync = new object(); private readonly static object _Sync = new object();
public void LoadOperationInfo() public void LoadOperationInfo()
{ {
Task.Factory.StartNew(() => //Task.Factory.StartNew(() =>
//{
// lock (_Sync)
// {
foreach (ucPlanOperationRoomCard item in ucOpeRooms)
{ {
lock (_Sync) item.PlanOperationTime = dtpSearchTime.Value;
{ DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(NowPatientDataTable, "OperationRoomId ='" + item.OperationRoomId + "' and State <> 'ÍËťŘ' ", "");
foreach (ucPlanOperationRoomCard item in ucOpeRooms) item.LoadInfo(Newdt);
{ }
item.PlanOperationTime = dtpSearchTime.Value; //SelectPanel.Invalidate();
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(NowPatientDataTable, "OperationRoomId ='" + item.OperationRoomId + "' and State <> 'ÍË»Ø' ", ""); // }
item.LoadInfo(Newdt); //});
}
SelectPanel.Invalidate();
}
});
} }
public void LoadOperationInfo(int UpdateRoom) public void LoadOperationInfo(int UpdateRoom)
@ -3839,7 +3836,7 @@ namespace AIMS.OperationFront.UI
DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(NowPatientDataTable, "OperationRoomId ='" + item.OperationRoomId + "' and State <> '退回' ", ""); DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(NowPatientDataTable, "OperationRoomId ='" + item.OperationRoomId + "' and State <> '退回' ", "");
item.LoadInfo(Newdt); item.LoadInfo(Newdt);
} }
SelectPanel.Invalidate(); //SelectPanel.Invalidate();
} }
public void LoadOperationInfoDgv(int UpdateRoom) public void LoadOperationInfoDgv(int UpdateRoom)
{ {
@ -3852,7 +3849,7 @@ namespace AIMS.OperationFront.UI
item.LoadInfo(Newdt); item.LoadInfo(Newdt);
item.FillRoomDetail(); item.FillRoomDetail();
} }
SelectPanel.Invalidate(); //SelectPanel.Invalidate();
} }
@ -3933,21 +3930,21 @@ namespace AIMS.OperationFront.UI
#region dgv选择人员患者 #region dgv选择人员患者
private void dgv_CellClick(object sender, DataGridViewCellEventArgs e) private void dgv_CellClick(object sender, DataGridViewCellEventArgs e)
{ {
RoomCardManage.SelectDgv = sender as DataGridView; //RoomCardManage.SelectDgv = sender as DataGridView;
if (RoomCardManage.SelectDgv.CurrentRow == null || e.RowIndex <= -1) return; //if (RoomCardManage.SelectDgv.CurrentRow == null || e.RowIndex <= -1) return;
foreach (DataGridViewRow item in RoomCardManage.SelectDgv.SelectedRows) //foreach (DataGridViewRow item in RoomCardManage.SelectDgv.SelectedRows)
{ //{
DataGridViewCell senderdgvr = item.Cells[0]; // DataGridViewCell senderdgvr = item.Cells[0];
senderdgvr.Value = (senderdgvr.EditedFormattedValue.ToString() == "True") ? false : true; // senderdgvr.Value = (senderdgvr.EditedFormattedValue.ToString() == "True") ? false : true;
} //}
if (RoomCardManage.SelectDgv.CurrentRow == null) return; //if (RoomCardManage.SelectDgv.CurrentRow == null) return;
if (RoomCardManage.SelectIds == null) RoomCardManage.SelectIds = new List<int>(); //if (RoomCardManage.SelectIds == null) RoomCardManage.SelectIds = new List<int>();
int id = Convert.ToInt32(RoomCardManage.SelectDgv.CurrentRow.Cells[1].Value); //int id = Convert.ToInt32(RoomCardManage.SelectDgv.CurrentRow.Cells[1].Value);
RoomCardManage.SelectIds.Clear(); //RoomCardManage.SelectIds.Clear();
RoomCardManage.SelectIds.Add(id); //RoomCardManage.SelectIds.Add(id);
//RoomCardManage.SelectIds = GetSelectIds(); ////RoomCardManage.SelectIds = GetSelectIds();
} }
/// <summary> /// <summary>
@ -4426,14 +4423,14 @@ namespace AIMS.OperationFront.UI
private List<string> lstOrderStr = new List<string> { "台", "患者", "住院号", "床号", "手术医生", "手术名称", "手术时间" }; private List<string> lstOrderStr = new List<string> { "台", "患者", "住院号", "床号", "手术医生", "手术名称", "手术时间" };
private void dgvWorkers_CellDoubleClick(object sender, DataGridViewCellEventArgs e) private void dgvWorkers_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{ {
if (RoomCardManage.lastSelectOpeRoom == null) return;
if (RoomCardManage.SelectIds == null) RoomCardManage.SelectIds = new List<int>();
int id = Convert.ToInt32(RoomCardManage.SelectDgv.CurrentRow.Cells[1].Value);
RoomCardManage.SelectIds.Clear();
RoomCardManage.SelectIds.Add(id);
int iRet = 0; int iRet = 0;
if (RoomCardManage.SelectIds.Count() == 0)
return;
if (RoomCardManage.lastSelectOpeRoom == null) return;
//if (dgvDetail.PrimaryGrid.Rows.Count == 0)
//{
// return;
//}
int rowId = e.RowIndex; int rowId = e.RowIndex;
CurrentRoom = RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value; CurrentRoom = RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value;
if (RoomCardManage.SelectDgv != dgvApplyOrDoctor) if (RoomCardManage.SelectDgv != dgvApplyOrDoctor)
@ -4480,11 +4477,11 @@ namespace AIMS.OperationFront.UI
RoomCardManage.WriteMsg(rtbLog, outMsg); RoomCardManage.WriteMsg(rtbLog, outMsg);
LoadOperationInfoDgv(CurrentRoom); LoadOperationInfoDgv(CurrentRoom);
RoomCardManage.SelectDgv.Rows[rowId].Selected = true; //RoomCardManage.SelectDgv.Rows[rowId].Selected = true;
if (RoomCardManage.SelectDgv.Rows[rowId].Displayed == false) //if (RoomCardManage.SelectDgv.Rows[rowId].Displayed == false)
{ //{
RoomCardManage.SelectDgv.FirstDisplayedScrollingRowIndex = rowId; // RoomCardManage.SelectDgv.FirstDisplayedScrollingRowIndex = rowId;
} //}
#endregion #endregion
} }
} }

View File

@ -1,5 +1,6 @@
using AIMS.DocManager; using AIMS.DocManager;
using AIMSBLL; using AIMSBLL;
using AIMSExtension;
using DCSoft.Writer; using DCSoft.Writer;
using DCSoft.Writer.Data; using DCSoft.Writer.Data;
using DCSoft.Writer.Dom; using DCSoft.Writer.Dom;
@ -290,7 +291,7 @@ namespace AIMS.OremrUserControl
else else
{ {
DocumentDAL.InsertPrintDocument(this.DModel); DocumentDAL.InsertPrintDocument(this.DModel);
//MessageBox.Show("保存成功!"); //new frmMessageBox().Show();
} }
if (RefreshUc != null) if (RefreshUc != null)
{ {
@ -312,6 +313,8 @@ namespace AIMS.OremrUserControl
string strH = hf == null ? "" : hf.Text; string strH = hf == null ? "" : hf.Text;
BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH); BOperationApply.UpdateASA(Patient.ApplyId, strASA, strH);
} }
new frmMessageBox().Show();
} }
catch catch
{ {

View File

@ -66,10 +66,10 @@ namespace AIMS.PublicUI.UI
int index = this.dgvY.Rows.Add(); int index = this.dgvY.Rows.Add();
this.dgvY.Rows[index].Cells["yId"].Value = dr["Id"].ToString(); this.dgvY.Rows[index].Cells["yId"].Value = dr["Id"].ToString();
this.dgvY.Rows[index].Cells["yName"].Value = dr["Name"].ToString(); this.dgvY.Rows[index].Cells["yName"].Value = dr["Name"].ToString();
//if (dr["DOSEPER"] != null && dr["DOSEPER"].ToString() != "") this.dgvY.Rows[index].Cells["DOSEPER"].Value = SetDOSEPER(dr["DOSEPER"].ToString());
//if (dr["DOSEPER2"] != null && dr["DOSEPER2"].ToString() != "") this.dgvY.Rows[index].Cells["DOSEPER2"].Value = SetDOSEPER(dr["DOSEPER2"].ToString());
//if (dr["DOSEPER3"] != null && dr["DOSEPER3"].ToString() != "") this.dgvY.Rows[index].Cells["DOSEPER3"].Value = SetDOSEPER(dr["DOSEPER3"].ToString());
this.dgvY.Rows[index].Cells["yspec"].Value = dr["Stand"].ToString(); this.dgvY.Rows[index].Cells["yspec"].Value = dr["Stand"].ToString();
if (dr["UseDose1"] != null && dr["UseDose1"].ToString() != "") this.dgvY.Rows[index].Cells["DOSEPER"].Value = SetDOSEPER(dr["UseDose1"].ToString());
if (dr["UseDose2"] != null && dr["UseDose2"].ToString() != "") this.dgvY.Rows[index].Cells["DOSEPER2"].Value = SetDOSEPER(dr["UseDose2"].ToString());
if (dr["UseDose3"] != null && dr["UseDose3"].ToString() != "") this.dgvY.Rows[index].Cells["DOSEPER3"].Value = SetDOSEPER(dr["UseDose3"].ToString());
} }
} }
private void BindDgv(DataTable dt) private void BindDgv(DataTable dt)
@ -84,9 +84,9 @@ namespace AIMS.PublicUI.UI
this.dgvD.Rows[index].Cells["Index"].Value = num; this.dgvD.Rows[index].Cells["Index"].Value = num;
num++; num++;
this.dgvD.Rows[index].Cells["oName"].Value = dr["Name"].ToString(); this.dgvD.Rows[index].Cells["oName"].Value = dr["Name"].ToString();
//this.dgvD.Rows[index].Cells["dDOSEPER"].Value = dr["DOSEPER"].ToString(); this.dgvD.Rows[index].Cells["dDOSEPER"].Value = dr["UseDose1"].ToString();
//this.dgvD.Rows[index].Cells["dDOSEPER2"].Value = dr["DOSEPER2"].ToString(); this.dgvD.Rows[index].Cells["dDOSEPER2"].Value = dr["UseDose2"].ToString();
//this.dgvD.Rows[index].Cells["dDOSEPER3"].Value = dr["DOSEPER3"].ToString(); this.dgvD.Rows[index].Cells["dDOSEPER3"].Value = dr["UseDose3"].ToString();
this.dgvD.Rows[index].Cells["ospec"].Value = dr["Stand"].ToString(); this.dgvD.Rows[index].Cells["ospec"].Value = dr["Stand"].ToString();
} }
} }
@ -130,9 +130,9 @@ namespace AIMS.PublicUI.UI
DataRow dr = pdt.NewRow(); DataRow dr = pdt.NewRow();
dr["Id"] = Convert.ToInt32(dt.Rows[i]["Id"]); dr["Id"] = Convert.ToInt32(dt.Rows[i]["Id"]);
dr["Name"] = dt.Rows[i]["Name"].ToString(); dr["Name"] = dt.Rows[i]["Name"].ToString();
//dr["DOSEPER"] = dt.Rows[i]["DOSEPER"]; dr["UseDose1"] = dt.Rows[i]["UseDose1"];
//dr["DOSEPER2"] = dt.Rows[i]["DOSEPER2"]; dr["UseDose2"] = dt.Rows[i]["UseDose2"];
//dr["DOSEPER3"] = dt.Rows[i]["DOSEPER3"]; dr["UseDose3"] = dt.Rows[i]["UseDose3"];
dr["Stand"] = dt.Rows[i]["Stand"]; dr["Stand"] = dt.Rows[i]["Stand"];
pdt.Rows.Add(dr); pdt.Rows.Add(dr);
} }
@ -205,10 +205,10 @@ namespace AIMS.PublicUI.UI
{ {
ydr["Id"] = Convert.ToInt32(dr["Id"]); ydr["Id"] = Convert.ToInt32(dr["Id"]);
ydr["Name"] = dr["Name"].ToString(); ydr["Name"] = dr["Name"].ToString();
//if (dr["DOSEPER"] != null && dr["DOSEPER"].ToString() != "") ydr["DOSEPER"] = SetDOSEPER(dr["DOSEPER"].ToString());
//if (dr["DOSEPER2"] != null && dr["DOSEPER2"].ToString() != "") ydr["DOSEPER2"] = SetDOSEPER(dr["DOSEPER2"].ToString());
//if (dr["DOSEPER3"] != null && dr["DOSEPER3"].ToString() != "") ydr["DOSEPER3"] = SetDOSEPER(dr["DOSEPER3"].ToString());
if (dr["Stand"] != null && dr["Stand"].ToString() != "") ydr["Stand"] = dr["Stand"].ToString(); if (dr["Stand"] != null && dr["Stand"].ToString() != "") ydr["Stand"] = dr["Stand"].ToString();
if (dr["UseDose1"] != null && dr["UseDose1"].ToString() != "") ydr["DOSEPER"] = SetDOSEPER(dr["UseDose1"].ToString());
if (dr["UseDose2"] != null && dr["UseDose2"].ToString() != "") ydr["DOSEPER2"] = SetDOSEPER(dr["UseDose2"].ToString());
if (dr["UseDose3"] != null && dr["UseDose3"].ToString() != "") ydr["DOSEPER3"] = SetDOSEPER(dr["UseDose3"].ToString());
ydt.Rows.Add(ydr); ydt.Rows.Add(ydr);
break; break;
} }
@ -290,10 +290,10 @@ namespace AIMS.PublicUI.UI
{ {
ydr["Id"] = row["Id"]; ydr["Id"] = row["Id"];
ydr["Name"] = row["Name"]; ydr["Name"] = row["Name"];
//ydr["DOSEPER"] = row["DOSEPER"];
//ydr["DOSEPER2"] = row["DOSEPER2"];
//ydr["DOSEPER3"] = row["DOSEPER3"];
ydr["Stand"] = row["Stand"]; ydr["Stand"] = row["Stand"];
ydr["UseDose1"] = row["UseDose1"];
ydr["UseDose2"] = row["UseDose2"];
ydr["UseDose3"] = row["UseDose3"];
} }
ydt.Rows.Add(ydr); ydt.Rows.Add(ydr);
break; break;
@ -309,7 +309,9 @@ namespace AIMS.PublicUI.UI
//判断类型 //判断类型
if (dgvY.CurrentCell != null) if (dgvY.CurrentCell != null)
{ {
if (dgvY.CurrentCell.ColumnIndex == 3) dgvTxtName = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格
int id = Convert.ToInt32(dgvY.CurrentRow.Cells["yId"].Value);
if (dgvY.CurrentCell.ColumnIndex == 4 || dgvY.CurrentCell.ColumnIndex == 5 || dgvY.CurrentCell.ColumnIndex == 6)
{ {
dgvTxtName = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格 dgvTxtName = (DataGridViewTextBoxEditingControl)e.Control; // 得到单元格
dgvTxtName.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件 dgvTxtName.KeyPress -= new KeyPressEventHandler(dgvTxt_KeyPress); // 绑定事件
@ -397,6 +399,28 @@ namespace AIMS.PublicUI.UI
} }
}
private void dgvY_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
//判断类型
if (e.ColumnIndex ==4 ||e.ColumnIndex ==5 || e.ColumnIndex ==6 )
{
int id = Convert.ToInt32(dgvY.Rows[e.RowIndex].Cells["yId"].Value);
string value = dgvY.Rows[e.RowIndex].Cells[e.ColumnIndex].Value==null?"":dgvY.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
if (e.ColumnIndex == 4)
{
BDrugs.Update(" UseDose1=@UseDose1 where Id=@Id", new ParameterList("@UseDose1", value, "@Id", id));
}
else if (e.ColumnIndex == 5)
{
BDrugs.Update(" UseDose2=@UseDose2 where Id=@Id", new ParameterList("@UseDose2", value, "@Id", id));
}
else if (e.ColumnIndex == 6)
{
BDrugs.Update(" UseDose3=@UseDose3 where Id=@Id", new ParameterList("@UseDose3", value, "@Id", id));
}
}
} }
} }
} }

View File

@ -32,11 +32,11 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAnaesthesiaDrugSelect)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAnaesthesiaDrugSelect));
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.buttonX3 = new DevComponents.DotNetBar.ButtonX();
this.buttonX4 = new DevComponents.DotNetBar.ButtonX();
this.txtQuery = new DevComponents.DotNetBar.Controls.TextBoxX(); this.txtQuery = new DevComponents.DotNetBar.Controls.TextBoxX();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.btnCancel = new DevComponents.DotNetBar.ButtonX(); this.btnCancel = new DevComponents.DotNetBar.ButtonX();
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.btnSave = new DevComponents.DotNetBar.ButtonX(); this.btnSave = new DevComponents.DotNetBar.ButtonX();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.lblPage = new System.Windows.Forms.Label(); this.lblPage = new System.Windows.Forms.Label();
@ -49,20 +49,20 @@
this.ySelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.ySelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.yId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.yId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.yName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.yName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.yspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DOSEPER = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DOSEPER = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DOSEPER2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DOSEPER2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DOSEPER3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DOSEPER3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.yspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dgvD = new DevComponents.DotNetBar.Controls.DataGridViewX(); this.dgvD = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dDOSEPER = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dDOSEPER2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dDOSEPER3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Index = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Select = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.Select = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.oName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ospec = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ospec = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dDOSEPER = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dDOSEPER2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dDOSEPER3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
@ -75,19 +75,43 @@
// //
this.panel1.BackColor = System.Drawing.Color.AliceBlue; this.panel1.BackColor = System.Drawing.Color.AliceBlue;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.buttonX3);
this.panel1.Controls.Add(this.buttonX4);
this.panel1.Controls.Add(this.txtQuery); this.panel1.Controls.Add(this.txtQuery);
this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.btnCancel); this.panel1.Controls.Add(this.btnCancel);
this.panel1.Controls.Add(this.buttonX2);
this.panel1.Controls.Add(this.buttonX1);
this.panel1.Controls.Add(this.btnSave); this.panel1.Controls.Add(this.btnSave);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.panel1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(964, 53); this.panel1.Size = new System.Drawing.Size(1101, 53);
this.panel1.TabIndex = 13; this.panel1.TabIndex = 13;
// //
// buttonX3
//
this.buttonX3.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX3.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX3.Location = new System.Drawing.Point(552, 10);
this.buttonX3.Name = "buttonX3";
this.buttonX3.Size = new System.Drawing.Size(34, 30);
this.buttonX3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX3.TabIndex = 6;
this.buttonX3.Text = "↓";
this.buttonX3.Click += new System.EventHandler(this.buttonX2_Click);
//
// buttonX4
//
this.buttonX4.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX4.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX4.Location = new System.Drawing.Point(512, 10);
this.buttonX4.Name = "buttonX4";
this.buttonX4.Size = new System.Drawing.Size(34, 30);
this.buttonX4.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX4.TabIndex = 7;
this.buttonX4.Text = "↑";
this.buttonX4.Click += new System.EventHandler(this.buttonX1_Click);
//
// txtQuery // txtQuery
// //
// //
@ -100,7 +124,7 @@
this.txtQuery.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.txtQuery.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.txtQuery.Location = new System.Drawing.Point(82, 15); this.txtQuery.Location = new System.Drawing.Point(82, 15);
this.txtQuery.Name = "txtQuery"; this.txtQuery.Name = "txtQuery";
this.txtQuery.Size = new System.Drawing.Size(295, 21); this.txtQuery.Size = new System.Drawing.Size(392, 21);
this.txtQuery.TabIndex = 4; this.txtQuery.TabIndex = 4;
this.txtQuery.TextChanged += new System.EventHandler(this.txtQuery_TextChanged); this.txtQuery.TextChanged += new System.EventHandler(this.txtQuery_TextChanged);
// //
@ -116,39 +140,17 @@
// btnCancel // btnCancel
// //
this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnCancel.Location = new System.Drawing.Point(621, 10); this.btnCancel.Location = new System.Drawing.Point(716, 10);
this.btnCancel.Name = "btnCancel"; this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 30); this.btnCancel.Size = new System.Drawing.Size(75, 30);
this.btnCancel.TabIndex = 2; this.btnCancel.TabIndex = 2;
this.btnCancel.Text = "取消"; this.btnCancel.Text = "取消";
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
// //
// buttonX2
//
this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX2.ImageFixedSize = new System.Drawing.Size(30, 30);
this.buttonX2.Location = new System.Drawing.Point(486, 10);
this.buttonX2.Name = "buttonX2";
this.buttonX2.Size = new System.Drawing.Size(34, 30);
this.buttonX2.TabIndex = 2;
this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click);
//
// buttonX1
//
this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.buttonX1.ImageFixedSize = new System.Drawing.Size(30, 30);
this.buttonX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
this.buttonX1.Location = new System.Drawing.Point(434, 10);
this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(40, 30);
this.buttonX1.TabIndex = 2;
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// btnSave // btnSave
// //
this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSave.Location = new System.Drawing.Point(540, 10); this.btnSave.Location = new System.Drawing.Point(635, 10);
this.btnSave.Name = "btnSave"; this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(75, 30); this.btnSave.Size = new System.Drawing.Size(75, 30);
this.btnSave.TabIndex = 2; this.btnSave.TabIndex = 2;
@ -170,7 +172,7 @@
this.panel2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.panel2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel2.Location = new System.Drawing.Point(0, 53); this.panel2.Location = new System.Drawing.Point(0, 53);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(964, 331); this.panel2.Size = new System.Drawing.Size(1101, 331);
this.panel2.TabIndex = 14; this.panel2.TabIndex = 14;
// //
// lblPage // lblPage
@ -231,7 +233,7 @@
this.groupBox2.Controls.Add(this.dgvY); this.groupBox2.Controls.Add(this.dgvY);
this.groupBox2.Location = new System.Drawing.Point(519, 24); this.groupBox2.Location = new System.Drawing.Point(519, 24);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(434, 293); this.groupBox2.Size = new System.Drawing.Size(569, 293);
this.groupBox2.TabIndex = 0; this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "已选"; this.groupBox2.Text = "已选";
@ -247,10 +249,10 @@
this.ySelect, this.ySelect,
this.yId, this.yId,
this.yName, this.yName,
this.yspec,
this.DOSEPER, this.DOSEPER,
this.DOSEPER2, this.DOSEPER2,
this.DOSEPER3, this.DOSEPER3});
this.yspec});
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -266,8 +268,9 @@
this.dgvY.RowHeadersVisible = false; this.dgvY.RowHeadersVisible = false;
this.dgvY.RowTemplate.Height = 23; this.dgvY.RowTemplate.Height = 23;
this.dgvY.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvY.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvY.Size = new System.Drawing.Size(428, 268); this.dgvY.Size = new System.Drawing.Size(563, 268);
this.dgvY.TabIndex = 0; this.dgvY.TabIndex = 0;
this.dgvY.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvY_CellEndEdit);
this.dgvY.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvY_EditingControlShowing); this.dgvY.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvY_EditingControlShowing);
// //
// ySelect // ySelect
@ -291,12 +294,16 @@
this.yName.Name = "yName"; this.yName.Name = "yName";
this.yName.ReadOnly = true; this.yName.ReadOnly = true;
// //
// yspec
//
this.yspec.HeaderText = "规格";
this.yspec.Name = "yspec";
//
// DOSEPER // DOSEPER
// //
this.DOSEPER.HeaderText = "剂量1"; this.DOSEPER.HeaderText = "剂量1";
this.DOSEPER.Name = "DOSEPER"; this.DOSEPER.Name = "DOSEPER";
this.DOSEPER.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; this.DOSEPER.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.DOSEPER.Visible = false;
this.DOSEPER.Width = 60; this.DOSEPER.Width = 60;
// //
// DOSEPER2 // DOSEPER2
@ -304,7 +311,6 @@
this.DOSEPER2.HeaderText = "剂量2"; this.DOSEPER2.HeaderText = "剂量2";
this.DOSEPER2.Name = "DOSEPER2"; this.DOSEPER2.Name = "DOSEPER2";
this.DOSEPER2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; this.DOSEPER2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.DOSEPER2.Visible = false;
this.DOSEPER2.Width = 60; this.DOSEPER2.Width = 60;
// //
// DOSEPER3 // DOSEPER3
@ -312,14 +318,8 @@
this.DOSEPER3.HeaderText = "剂量3"; this.DOSEPER3.HeaderText = "剂量3";
this.DOSEPER3.Name = "DOSEPER3"; this.DOSEPER3.Name = "DOSEPER3";
this.DOSEPER3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; this.DOSEPER3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.DOSEPER3.Visible = false;
this.DOSEPER3.Width = 60; this.DOSEPER3.Width = 60;
// //
// yspec
//
this.yspec.HeaderText = "规格";
this.yspec.Name = "yspec";
//
// groupBox1 // groupBox1
// //
this.groupBox1.Controls.Add(this.dgvD); this.groupBox1.Controls.Add(this.dgvD);
@ -339,13 +339,13 @@
this.dgvD.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvD.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dgvD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Id, this.Id,
this.dDOSEPER,
this.dDOSEPER2,
this.dDOSEPER3,
this.Index, this.Index,
this.Select, this.Select,
this.oName, this.oName,
this.ospec}); this.ospec,
this.dDOSEPER,
this.dDOSEPER2,
this.dDOSEPER3});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -372,24 +372,6 @@
this.Id.Name = "Id"; this.Id.Name = "Id";
this.Id.Visible = false; this.Id.Visible = false;
// //
// dDOSEPER
//
this.dDOSEPER.HeaderText = "剂量1";
this.dDOSEPER.Name = "dDOSEPER";
this.dDOSEPER.Visible = false;
//
// dDOSEPER2
//
this.dDOSEPER2.HeaderText = "剂量2";
this.dDOSEPER2.Name = "dDOSEPER2";
this.dDOSEPER2.Visible = false;
//
// dDOSEPER3
//
this.dDOSEPER3.HeaderText = "剂量3";
this.dDOSEPER3.Name = "dDOSEPER3";
this.dDOSEPER3.Visible = false;
//
// Index // Index
// //
this.Index.HeaderText = "序号"; this.Index.HeaderText = "序号";
@ -417,11 +399,29 @@
this.ospec.HeaderText = "规格"; this.ospec.HeaderText = "规格";
this.ospec.Name = "ospec"; this.ospec.Name = "ospec";
// //
// dDOSEPER
//
this.dDOSEPER.HeaderText = "剂量1";
this.dDOSEPER.Name = "dDOSEPER";
this.dDOSEPER.Visible = false;
//
// dDOSEPER2
//
this.dDOSEPER2.HeaderText = "剂量2";
this.dDOSEPER2.Name = "dDOSEPER2";
this.dDOSEPER2.Visible = false;
//
// dDOSEPER3
//
this.dDOSEPER3.HeaderText = "剂量3";
this.dDOSEPER3.Name = "dDOSEPER3";
this.dDOSEPER3.Visible = false;
//
// frmAnaesthesiaDrugSelect // frmAnaesthesiaDrugSelect
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(964, 384); this.ClientSize = new System.Drawing.Size(1101, 384);
this.Controls.Add(this.panel2); this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
@ -459,22 +459,22 @@
private DevComponents.DotNetBar.ButtonX btnSave; private DevComponents.DotNetBar.ButtonX btnSave;
private DevComponents.DotNetBar.Controls.TextBoxX txtQuery; private DevComponents.DotNetBar.Controls.TextBoxX txtQuery;
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private DevComponents.DotNetBar.ButtonX buttonX2; private System.Windows.Forms.DataGridViewCheckBoxColumn ySelect;
private DevComponents.DotNetBar.ButtonX buttonX1; private System.Windows.Forms.DataGridViewTextBoxColumn yId;
private System.Windows.Forms.DataGridViewTextBoxColumn yName;
private System.Windows.Forms.DataGridViewTextBoxColumn yspec;
private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER;
private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER2;
private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER3;
private System.Windows.Forms.DataGridViewTextBoxColumn Id; private System.Windows.Forms.DataGridViewTextBoxColumn Id;
private System.Windows.Forms.DataGridViewTextBoxColumn dDOSEPER;
private System.Windows.Forms.DataGridViewTextBoxColumn dDOSEPER2;
private System.Windows.Forms.DataGridViewTextBoxColumn dDOSEPER3;
private System.Windows.Forms.DataGridViewTextBoxColumn Index; private System.Windows.Forms.DataGridViewTextBoxColumn Index;
private System.Windows.Forms.DataGridViewCheckBoxColumn Select; private System.Windows.Forms.DataGridViewCheckBoxColumn Select;
private System.Windows.Forms.DataGridViewTextBoxColumn oName; private System.Windows.Forms.DataGridViewTextBoxColumn oName;
private System.Windows.Forms.DataGridViewTextBoxColumn ospec; private System.Windows.Forms.DataGridViewTextBoxColumn ospec;
private System.Windows.Forms.DataGridViewCheckBoxColumn ySelect; private System.Windows.Forms.DataGridViewTextBoxColumn dDOSEPER;
private System.Windows.Forms.DataGridViewTextBoxColumn yId; private System.Windows.Forms.DataGridViewTextBoxColumn dDOSEPER2;
private System.Windows.Forms.DataGridViewTextBoxColumn yName; private System.Windows.Forms.DataGridViewTextBoxColumn dDOSEPER3;
private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER; private DevComponents.DotNetBar.ButtonX buttonX3;
private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER2; private DevComponents.DotNetBar.ButtonX buttonX4;
private System.Windows.Forms.DataGridViewTextBoxColumn DOSEPER3;
private System.Windows.Forms.DataGridViewTextBoxColumn yspec;
} }
} }

View File

@ -126,6 +126,9 @@
<metadata name="yName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="yName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="yspec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DOSEPER.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="DOSEPER.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
@ -135,21 +138,9 @@
<metadata name="DOSEPER3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="DOSEPER3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="yspec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="dDOSEPER.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dDOSEPER2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dDOSEPER3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Index.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="Index.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
@ -162,6 +153,15 @@
<metadata name="ospec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="ospec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="dDOSEPER.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dDOSEPER2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dDOSEPER3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>

View File

@ -83,23 +83,25 @@
// buttonX2 // buttonX2
// //
this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX2.ImageFixedSize = new System.Drawing.Size(30, 30); this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX2.Location = new System.Drawing.Point(479, 10); this.buttonX2.Location = new System.Drawing.Point(467, 10);
this.buttonX2.Name = "buttonX2"; this.buttonX2.Name = "buttonX2";
this.buttonX2.Size = new System.Drawing.Size(34, 30); this.buttonX2.Size = new System.Drawing.Size(34, 30);
this.buttonX2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX2.TabIndex = 5; this.buttonX2.TabIndex = 5;
this.buttonX2.Text = "↓";
this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click); this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click);
// //
// buttonX1 // buttonX1
// //
this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX1.ImageFixedSize = new System.Drawing.Size(30, 30);
this.buttonX1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
this.buttonX1.Location = new System.Drawing.Point(427, 10); this.buttonX1.Location = new System.Drawing.Point(427, 10);
this.buttonX1.Name = "buttonX1"; this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(40, 30); this.buttonX1.Size = new System.Drawing.Size(34, 30);
this.buttonX1.TabIndex = 6; this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX1.TabIndex = 5;
this.buttonX1.Text = "↑";
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click); this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
// //
// txtQuery // txtQuery

View File

@ -171,7 +171,7 @@ namespace AIMS.PublicUI.UI
} }
if (num > 0) if (num > 0)
{ {
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
tsbCancel_Click(null, null); tsbCancel_Click(null, null);
} }
} }

View File

@ -210,7 +210,7 @@ namespace AIMS.PublicUI.UI
num = BAppliance.Insert(app); num = BAppliance.Insert(app);
if (num > 0) if (num > 0)
{ {
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
tsbCancel_Click(null, null); tsbCancel_Click(null, null);
} }
} }

View File

@ -7,6 +7,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using AIMSBLL; using AIMSBLL;
using AIMSExtension;
using AIMSModel; using AIMSModel;
namespace AIMS.PublicUI.UI namespace AIMS.PublicUI.UI
@ -281,7 +282,7 @@ namespace AIMS.PublicUI.UI
int num = BApplianceUseType.Update(_applianceUseType); int num = BApplianceUseType.Update(_applianceUseType);
if (num > 0) if (num > 0)
{ {
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
this.Close(); this.Close();
} }
} }

View File

@ -192,7 +192,7 @@ namespace AIMS.PublicUI.UI
} }
if (num > 0) if (num > 0)
{ {
MessageBox.Show("保存成功!"); new frmMessageBox().Show();
tsbCancel_Click(null, null); tsbCancel_Click(null, null);
} }
} }

View File

@ -23,11 +23,11 @@ namespace AIMSBLL
string sql = string.Empty; string sql = string.Empty;
if (str == "") if (str == "")
{ {
sql = string.Format("select Id,HelpCode,Name,Id code,Stand from Drugs where IsValid = 1"); sql = string.Format("select Id,HelpCode,Name,Id code,Stand,UseDose1,UseDose2,UseDose3 from Drugs where IsValid = 1");
} }
else else
{ {
sql = string.Format("SELECT Top 26 e.Id,e.Name,Id code, Stand FROM Drugs e WHERE (Lower(Name) like '%{0}%' OR Lower(HelpCode) like '%{0}%') and IsValid = 1", str); sql = string.Format("SELECT Top 26 e.Id,e.Name,Id code, Stand,UseDose1,UseDose2,UseDose3 FROM Drugs e WHERE (Lower(Name) like '%{0}%' OR Lower(HelpCode) like '%{0}%') and IsValid = 1", str);
} }
return DBHelper.GetDataTable(sql); return DBHelper.GetDataTable(sql);
} }
@ -62,23 +62,10 @@ namespace AIMSBLL
return DDrugs.GetModel(Id); return DDrugs.GetModel(Id);
} }
public static DataTable GetDataTable(string DrugKind)
{
return DDrugs.GetDataTable(DrugKind);
}
public static DataTable GetDataTable(string DrugKind,string Name) public static DataTable GetDataTable(string DrugKind,string Name)
{ {
return DDrugs.GetDataTable(DrugKind,Name); return DDrugs.GetDataTable(DrugKind,Name);
} }
public static DataTable GetDosageUnitDataTable(int UnitType)
{
return DDrugs.GetDosageUnitDataTable(UnitType);
}
public static DataTable GetDataTableByHelpCode(string HelpCode)
{
return DDrugs.GetDataTableByHelpCode(HelpCode);
}
public static DataTable GetDrugsDataTable() public static DataTable GetDrugsDataTable()
{ {

View File

@ -178,7 +178,7 @@ namespace AIMSDAL
/// <returns>影响的记录行数</returns> /// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, Drugs drugs) internal static int ExcuteUpdateCommand(SqlCommand cmd, Drugs drugs)
{ {
cmd.CommandText = "update Drugs set Name=@Name,HelpCode=@HelpCode,DrugKind=@DrugKind,Stand=@Stand,DosageUnit=@DosageUnit,Unit=@Unit,UseRate=@UseRate,IsValid=@IsValid,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,Remark=@Remark,Channel=@Channel where Id=@Id"; cmd.CommandText = "update Drugs set Name=@Name,HelpCode=@HelpCode,DrugKind=@DrugKind,Stand=@Stand,DosageUnit=@DosageUnit,Unit=@Unit,UseRate=@UseRate,IsValid=@IsValid,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,Remark=@Remark,Channel=@Channel,UseDose1=@UseDose1,UseDose2=@UseDose2,UseDose3=@UseDose3 where Id=@Id";
//从实体中取出值放入Command的参数列表 //从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@Name", drugs.Name == null ? (object)DBNull.Value : (object)drugs.Name)); cmd.Parameters.Add(new SqlParameter("@Name", drugs.Name == null ? (object)DBNull.Value : (object)drugs.Name));
cmd.Parameters.Add(new SqlParameter("@HelpCode", drugs.HelpCode == null ? (object)DBNull.Value : (object)drugs.HelpCode)); cmd.Parameters.Add(new SqlParameter("@HelpCode", drugs.HelpCode == null ? (object)DBNull.Value : (object)drugs.HelpCode));
@ -193,6 +193,9 @@ namespace AIMSDAL
cmd.Parameters.Add(new SqlParameter("@OperateDate", drugs.OperateDate.HasValue ? (object)drugs.OperateDate.Value : (object)DBNull.Value)); cmd.Parameters.Add(new SqlParameter("@OperateDate", drugs.OperateDate.HasValue ? (object)drugs.OperateDate.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@Remark", drugs.Remark == null ? (object)DBNull.Value : (object)drugs.Remark)); cmd.Parameters.Add(new SqlParameter("@Remark", drugs.Remark == null ? (object)DBNull.Value : (object)drugs.Remark));
cmd.Parameters.Add(new SqlParameter("@Channel", drugs.Channel == null ? (object)DBNull.Value : (object)drugs.Channel)); cmd.Parameters.Add(new SqlParameter("@Channel", drugs.Channel == null ? (object)DBNull.Value : (object)drugs.Channel));
cmd.Parameters.Add(new SqlParameter("@UseDose1", drugs.UseDose1 == null ? (object)DBNull.Value : (object)drugs.UseDose1));
cmd.Parameters.Add(new SqlParameter("@UseDose2", drugs.UseDose2 == null ? (object)DBNull.Value : (object)drugs.UseDose2));
cmd.Parameters.Add(new SqlParameter("@UseDose3", drugs.UseDose3 == null ? (object)DBNull.Value : (object)drugs.UseDose3));
cmd.Parameters.Add(new SqlParameter("@Id", drugs.Id)); cmd.Parameters.Add(new SqlParameter("@Id", drugs.Id));
return cmd.ExecuteNonQuery(); return cmd.ExecuteNonQuery();
} }
@ -649,6 +652,18 @@ namespace AIMSDAL
{ {
entity.Channel = dr["Channel"].ToString(); entity.Channel = dr["Channel"].ToString();
} }
if (dr["UseDose1"] != System.DBNull.Value)
{
entity.UseDose1 = dr["UseDose1"].ToString();
}
if (dr["UseDose2"] != System.DBNull.Value)
{
entity.UseDose2 = dr["UseDose2"].ToString();
}
if (dr["UseDose3"] != System.DBNull.Value)
{
entity.UseDose3 = dr["UseDose3"].ToString();
}
return entity; return entity;
} }
} }

View File

@ -15,7 +15,7 @@ namespace AIMSDAL
{ {
StringBuilder strSql = new StringBuilder(); StringBuilder strSql = new StringBuilder();
strSql.Append("insert into [Drugs]("); strSql.Append("insert into [Drugs](");
strSql.Append("Name,HelpCode,DrugKind,Stand,DosageUnit,Unit,UseRate,IsValid,OperatorNo,OperatorName,OperateDate,Remark,Channel "); strSql.Append("Name,HelpCode,DrugKind,Stand,DosageUnit,Unit,UseRate,IsValid,OperatorNo,OperatorName,OperateDate,Remark,Channel,UseDose1,UseDose2,UseDose3 ");
strSql.Append(")"); strSql.Append(")");
strSql.Append(" values ("); strSql.Append(" values (");
strSql.Append("'" + DrugsObj.Name + "',"); strSql.Append("'" + DrugsObj.Name + "',");
@ -30,7 +30,10 @@ namespace AIMSDAL
strSql.Append("'" + DrugsObj.OperatorName + "',"); strSql.Append("'" + DrugsObj.OperatorName + "',");
strSql.Append("'" + DrugsObj.OperateDate + "',"); strSql.Append("'" + DrugsObj.OperateDate + "',");
strSql.Append("'" + DrugsObj.Remark + "',"); strSql.Append("'" + DrugsObj.Remark + "',");
strSql.Append("'" + DrugsObj.Channel + "'"); strSql.Append("'" + DrugsObj.Channel + "',");
strSql.Append("'" + DrugsObj.UseDose1 + "',");
strSql.Append("'" + DrugsObj.UseDose2 + "',");
strSql.Append("'" + DrugsObj.UseDose3 + "'");
strSql.Append(")"); strSql.Append(")");
HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString()); HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
@ -41,7 +44,7 @@ namespace AIMSDAL
Drugs DrugsObj = new Drugs(); Drugs DrugsObj = new Drugs();
StringBuilder strSql = new StringBuilder(); StringBuilder strSql = new StringBuilder();
strSql.Append("select "); strSql.Append("select ");
strSql.Append("Id,Name,HelpCode,DrugKind,Stand,DosageUnit,Unit,UseRate,IsValid,OperatorNo,OperatorName,OperateDate,Code,Remark,Channel "); strSql.Append("Id,Name,HelpCode,DrugKind,Stand,DosageUnit,Unit,UseRate,IsValid,OperatorNo,OperatorName,OperateDate,Code,Remark,Channel,UseDose1,UseDose2,UseDose3 ");
strSql.Append(" from Drugs "); strSql.Append(" from Drugs ");
strSql.Append(" where Id=" + Id + ""); strSql.Append(" where Id=" + Id + "");
DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString()); DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
@ -70,6 +73,9 @@ namespace AIMSDAL
DrugsObj.Channel = ds.Tables[0].Rows[0]["Channel"].ToString(); DrugsObj.Channel = ds.Tables[0].Rows[0]["Channel"].ToString();
DrugsObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString(); DrugsObj.OperatorNo = ds.Tables[0].Rows[0]["OperatorNo"].ToString();
DrugsObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString(); DrugsObj.OperatorName = ds.Tables[0].Rows[0]["OperatorName"].ToString();
DrugsObj.UseDose1 = ds.Tables[0].Rows[0]["UseDose1"].ToString();
DrugsObj.UseDose2 = ds.Tables[0].Rows[0]["UseDose2"].ToString();
DrugsObj.UseDose3 = ds.Tables[0].Rows[0]["UseDose3"].ToString();
if (ds.Tables[0].Rows[0]["OperateDate"].ToString() != "") if (ds.Tables[0].Rows[0]["OperateDate"].ToString() != "")
{ {
DrugsObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString()); DrugsObj.OperateDate = DateTime.Parse(ds.Tables[0].Rows[0]["OperateDate"].ToString());
@ -81,7 +87,7 @@ namespace AIMSDAL
public static DataTable GetDataTable(string DrugKind) public static DataTable GetDataTable(string DrugKind)
{ {
StringBuilder strSql = new StringBuilder(); StringBuilder strSql = new StringBuilder();
strSql.Append("select [Id],[Name],[HelpCode],[DrugKind],[Stand],[DosageUnit],[Unit],CASE IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid,UseRate,Code,Remark,Channel"); strSql.Append("select [Id],[Name],[HelpCode],[DrugKind],[Stand],[DosageUnit],[Unit],CASE IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid,UseRate,Code,Remark,Channel,UseDose1,UseDose2,UseDose3");
strSql.Append(" FROM Drugs where DrugKind like '%" + DrugKind + "%'"); strSql.Append(" FROM Drugs where DrugKind like '%" + DrugKind + "%'");
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
@ -89,7 +95,7 @@ namespace AIMSDAL
public static DataTable GetDataTable(string DrugKind, string Name) public static DataTable GetDataTable(string DrugKind, string Name)
{ {
StringBuilder strSql = new StringBuilder(); StringBuilder strSql = new StringBuilder();
strSql.Append("select [Id],[Name],[HelpCode],[DrugKind],[Stand],[DosageUnit],[Unit],CASE IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid,UseRate,Code,Remark,Channel"); strSql.Append("select [Id],[Name],[HelpCode],[DrugKind],[Stand],[DosageUnit],[Unit],CASE IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid,UseRate,Code,Remark,Channel,UseDose1,UseDose2,UseDose3");
strSql.Append(" FROM Drugs where DrugKind like '%" + DrugKind + "%' " + (Name == "" ? "" : "and (NAME LIKE '%" + Name + "%' OR HelpCode LIKE '%" + Name + "%') ")); strSql.Append(" FROM Drugs where DrugKind like '%" + DrugKind + "%' " + (Name == "" ? "" : "and (NAME LIKE '%" + Name + "%' OR HelpCode LIKE '%" + Name + "%') "));
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
@ -97,20 +103,20 @@ namespace AIMSDAL
public static DataTable GetDosageUnitDataTable(int UnitType) public static DataTable GetDosageUnitDataTable(int UnitType)
{ {
StringBuilder strSql = new StringBuilder(); StringBuilder strSql = new StringBuilder();
strSql.Append("select [Id],[Name],[HelpCode],CASE UnitType WHEN 1 THEN '剂量单位' when 2 then '包装单位' end as UnitType,CASE IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid ,Code,Remark,Channel"); strSql.Append("select [Id],[Name],[HelpCode],CASE UnitType WHEN 1 THEN '剂量单位' when 2 then '包装单位' end as UnitType,CASE IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid ,Code,Remark,Channel,UseDose1,UseDose2,UseDose3");
strSql.Append(" FROM DosageUnit WHERE UnitType=" + UnitType + " and IsValid=1"); strSql.Append(" FROM DosageUnit WHERE UnitType=" + UnitType + " and IsValid=1");
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
} }
public static DataTable GetDataTableByHelpCode(string HelpCode) public static DataTable GetDataTableByHelpCode(string HelpCode)
{ {
string strSql = "SELECT Id,Name,Stand,DosageUnit FROM dbo.Drugs WHERE (NAME LIKE '%" + HelpCode + "%' OR HelpCode LIKE '%" + HelpCode + "%')"; string strSql = "SELECT Id,Name,Stand,DosageUnit,UseDose1,UseDose2,UseDose3 FROM dbo.Drugs WHERE (NAME LIKE '%" + HelpCode + "%' OR HelpCode LIKE '%" + HelpCode + "%')";
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
} }
public static DataTable GetDrugsDataTable() public static DataTable GetDrugsDataTable()
{ {
string strSql = "SELECT TOP 21 e.Id, e.Name,e.Stand FROM Drugs e WHERE e.IsValid=1 ORDER BY e.UseRate DESC "; string strSql = "SELECT TOP 21 e.Id, e.Name,e.Stand,e.UseDose1,e.UseDose2,e.UseDose3 FROM Drugs e WHERE e.IsValid=1 ORDER BY e.UseRate DESC ";
return HelperDB.DbHelperSQL.GetDataTable(strSql); return HelperDB.DbHelperSQL.GetDataTable(strSql);
} }

View File

@ -30,7 +30,7 @@ namespace AIMSDAL
strSql.Append("" + OperationApplyObj.IsNotPlanReturnOperation + ","); strSql.Append("" + OperationApplyObj.IsNotPlanReturnOperation + ",");
strSql.Append("'" + OperationApplyObj.DiagnoseRemark + "',"); strSql.Append("'" + OperationApplyObj.DiagnoseRemark + "',");
strSql.Append("'" + OperationApplyObj.OperationRemark + "',"); strSql.Append("'" + OperationApplyObj.OperationRemark + "',");
strSql.Append("" + OperationApplyObj.OperationLevelId + ","); strSql.Append("'" + OperationApplyObj.OperationLevelId + "',");
strSql.Append("'" + OperationApplyObj.Contagion + "',"); strSql.Append("'" + OperationApplyObj.Contagion + "',");
strSql.Append("'" + OperationApplyObj.Intern + "',"); strSql.Append("'" + OperationApplyObj.Intern + "',");
strSql.Append("'" + OperationApplyObj.Other + "',"); strSql.Append("'" + OperationApplyObj.Other + "',");

View File

@ -39,8 +39,8 @@ namespace AIMSDAL
strSql.Append("'" + Oris_PatientObj.ContactsPhone + "',"); strSql.Append("'" + Oris_PatientObj.ContactsPhone + "',");
strSql.Append("'" + Oris_PatientObj.OperatorNo + "',"); strSql.Append("'" + Oris_PatientObj.OperatorNo + "',");
strSql.Append("'" + Oris_PatientObj.OperatorName + "',"); strSql.Append("'" + Oris_PatientObj.OperatorName + "',");
strSql.Append("'" + Oris_PatientObj.OperateDate + "'"); strSql.Append("'" + Oris_PatientObj.OperateDate + "',");
strSql.Append("'" + Oris_PatientObj.PatientType + "',"); strSql.Append("'" + Oris_PatientObj.PatientType + "'");
strSql.Append(")"); strSql.Append(")");
HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString()); HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString());
} }

View File

@ -24,6 +24,9 @@ namespace AIMSModel
public string Code { get; set; } public string Code { get; set; }
public string Remark { get; set; } public string Remark { get; set; }
public string Channel { get; set; } public string Channel { get; set; }
public string UseDose1 { get; set; }
public string UseDose2 { get; set; }
public string UseDose3 { get; set; }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>

View File

@ -21,6 +21,11 @@ namespace AIMSObjectQuery
dictionary.Add("operatorno", "OperatorNo"); dictionary.Add("operatorno", "OperatorNo");
dictionary.Add("operatorname", "OperatorName"); dictionary.Add("operatorname", "OperatorName");
dictionary.Add("operatedate", "OperateDate"); dictionary.Add("operatedate", "OperateDate");
dictionary.Add("remark", "Remark");
dictionary.Add("channel", "Channel");
dictionary.Add("usedose1", "UseDose1");
dictionary.Add("usedose2", "UseDose2");
dictionary.Add("usedose3", "UseDose3");
} }
#region IMap #region IMap

View File

@ -66,6 +66,12 @@
<Compile Include="DocumentEntityMethod.cs" /> <Compile Include="DocumentEntityMethod.cs" />
<Compile Include="EditState.cs" /> <Compile Include="EditState.cs" />
<Compile Include="ErrorInfo.cs" /> <Compile Include="ErrorInfo.cs" />
<Compile Include="frmMessageBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmMessageBox.designer.cs">
<DependentUpon>frmMessageBox.cs</DependentUpon>
</Compile>
<Compile Include="FTPTransmission.cs" /> <Compile Include="FTPTransmission.cs" />
<Compile Include="GoldPrinter.ExcelConstants\BordersEdge.cs" /> <Compile Include="GoldPrinter.ExcelConstants\BordersEdge.cs" />
<Compile Include="GoldPrinter.ExcelConstants\BordersLineStyle.cs" /> <Compile Include="GoldPrinter.ExcelConstants\BordersLineStyle.cs" />
@ -143,6 +149,9 @@
<Compile Include="XmlUse.cs" /> <Compile Include="XmlUse.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="frmMessageBox.resx">
<DependentUpon>frmMessageBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>

View File

@ -0,0 +1,76 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace AIMSExtension
{
public partial class frmMessageBox : Form
{
public frmMessageBox()
{
InitializeComponent();
this.FormBorderStyle= FormBorderStyle.None;
}
public int Interval = 1200;
public frmMessageBox(string text, int _Interval = 1000)
{
InitializeComponent();
Interval = _Interval;
panelEx1.Text = text;
}
private void FrmDetermine_Load(object sender, EventArgs e)
{
System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
timer.Tick += new System.EventHandler(this.timer_Tick);
timer.Interval = Interval;//2000毫秒
timer.Enabled = true;//控件生效
}
private void timer_Tick(object sender, EventArgs e)
{
this.Close();
}
//private void SetWindowRegion()
//{
// GraphicsPath FormPath = new GraphicsPath();
// Rectangle rect = new Rectangle(0, 4, this.Width, this.Height - 4);
// FormPath = GetRoundedRectPath(rect, 10);
// this.Region = new Region(FormPath);
//}
//private GraphicsPath GetRoundedRectPath(Rectangle rect, int radius)
//{
// int diameter = radius;
// Rectangle arcRect = new Rectangle(rect.Location, new Size(diameter, diameter));
// GraphicsPath path = new GraphicsPath();
// //左上角
// path.AddArc(arcRect, 180, 90);
// //右上角
// arcRect.X = rect.Right - diameter;
// path.AddArc(arcRect, 270, 90);
// //右下角
// arcRect.Y = rect.Bottom - diameter;
// path.AddArc(arcRect, 0, 90);
// //左下角
// arcRect.X = rect.Left;
// path.AddArc(arcRect, 90, 90);
// path.CloseFigure();
// return path;
//}
//protected override void OnResize(System.EventArgs e)
//{
// this.Region = null;
// SetWindowRegion();
//}
}
}

79
AIMSExtension/frmMessageBox.designer.cs generated Normal file
View File

@ -0,0 +1,79 @@
namespace AIMSExtension
{
partial class frmMessageBox
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
this.SuspendLayout();
//
// panelEx1
//
this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2010;
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelEx1.Font = new System.Drawing.Font("微软雅黑", 13F);
this.panelEx1.Location = new System.Drawing.Point(0, 0);
this.panelEx1.Name = "panelEx1";
this.panelEx1.Size = new System.Drawing.Size(177, 87);
this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx1.Style.BackColor1.Color = System.Drawing.SystemColors.GradientActiveCaption;
this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.panelEx1.Style.GradientAngle = 90;
this.panelEx1.TabIndex = 1;
this.panelEx1.Text = "保存成功!";
//
// frmMessageBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.ClientSize = new System.Drawing.Size(177, 87);
this.ControlBox = false;
this.Controls.Add(this.panelEx1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmMessageBox";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "系统提示";
this.Load += new System.EventHandler(this.FrmDetermine_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Timer timer1;
private DevComponents.DotNetBar.PanelEx panelEx1;
}
}

View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@ -429,7 +429,7 @@
<data name="tsbSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tsbSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAS
cgAAEnIBXmVb4wAAAZtJREFUOE+tkjFLw0AUx/sR/Ah+hIxCl4BLxyxCF6EgQlGE4FQKQlAKLkJw6iIE cQAAEnEB89x6jgAAAZtJREFUOE+tkjFLw0AUx/sR/Ah+hIxCl4BLxyxCF6EgQlGE4FQKQlAKLkJw6iIE
JxfhEASXwi2COIVWJ5fDtm5ikqYRB/373iVt0ppB0IM/l9y93//evXuVfxmOp/BbtU582F2S6yPDUwP5 JxfhEASXwi2COIVWJ5fDtm5ikqYRB/373iVt0ppB0IM/l9y93//evXuVfxmOp/BbtU582F2S6yPDUwP5
CLjXwMcXkJAmn0CYib95LaDZOpCo7wmtDM8Njs8DHRhnIAMRaZrBQRzDbEsYZgNWq8SA55iCGZrB/J/C CLjXwMcXkJAmn0CYib95LaDZOpCo7wmtDM8Njs8DHRhnIAMRaZrBQRzDbEsYZgNWq8SA55iCGZrB/J/C
Uzy/RTDaAq1TBWvX+2lgn6k5zBlwJhqeJhgGE/RHIYx9oe9fbkAbxXtrOEkwCmMMxiHkk8LqjocGFbLU Uzy/RTDaAq1TBWvX+2lgn6k5zBlwJhqeJhgGE/RHIYx9oe9fbkAbxXtrOEkwCmMMxiHkk8LqjocGFbLU
@ -992,7 +992,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACO ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACO
GAAAAk1TRnQBSQFMAgEBIQEAAYgBCQGIAQkBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo GAAAAk1TRnQBSQFMAgEBIQEAAZABCQGQAQkBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAAZADAAEBAQABCAYAASQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AwABQAMAAZADAAEBAQABCAYAASQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
@ -3367,7 +3367,7 @@
<data name="toolStripMenuItem51.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripMenuItem51.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAVZJREFUOE+tkMFLAkEUxv2DBO952EMX8TLnPS2B4EKHOQpdtsvacZcgvAgSSpAY vwAADr8BOAVTJAAAAVZJREFUOE+tkMFLAkEUxv2DBO952EMX8TLnPS2B4EKHOQpdtsvacZcgvAgSSpAY
22KIB0EYqCQqsUsgiMNCm0W0UHTq8LVvCqGDq4IfDMO8+b7fezOpjWs0GqPpd/F3VJJS4qTl/6st1Mtb 22KIB0EYqCQqsUsgiMNCm0W0UHTq8LVvCqGDq4IfDMO8+b7fezOpjWs0GqPpd/F3VJJS4qTl/6st1Mtb
BKdSw3v0MQ94Xh9icL8agORUPHTFrQrI5wgGt0BTqMtV1G4LOE4NYRiifz0EM/h6gJ54UM9onnfALQe6 BKdSw3v0MQ94Xh9icL8agORUPHTFrQrI5wgGt0BTqMtV1G4LOE4NYRiifz0EM/h6gJ54UM9onnfALQe6
bq4eJgVBqII0OnXf27fXA5DMUlmFWdFCT6zxgXL2Dbf1CWZNYR9PwEpD6NYI7qmEGL4mgyhsHkXQyxL5 bq4eJgVBqII0OnXf27fXA5DMUlmFWdFCT6zxgXL2Dbf1CWZNYR9PwEpD6NYI7qmEGL4mgyhsHkXQyxL5
@ -3385,7 +3385,7 @@
<data name="toolStripMenuItem52.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripMenuItem52.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAT5JREFUOE+9kSFPxEAQhftT+hPuJ1RWViIrkSuRK5ErK1eeXFm5ssmZNYSSQNgL vwAADr8BOAVTJAAAAT5JREFUOE+9kSFPxEAQhftT+hPuJ1RWViIrkSuRK5ErK1eeXFm5ssmZNYSSQNgL
CSFBsA7cY2b27not5CpIeMkzzc733kyLP8v5iOyQ3QdYF/D4/IrDk8vi4aWs82i1xfi0X4dw6lJm6+GH CSFBsA7cY2b27not5CpIeMkzzc733kyLP8v5iOyQ3QdYF/D4/IrDk8vi4aWs82i1xfi0X4dw6lJm6+GH
gFaZdQhXZvkRoOYIMcFYBzckWinb9vTNZd+/fM6BXPekLyAlIL7RIAGW0tuEzbXH7uFjgliqy7IDVack gFaZdQhXZvkRoOYIMcFYBzckWinb9vTNZd+/fM6BXPekLyAlIL7RIAGW0tuEzbXH7uFjgliqy7IDVack
7SKUjbCUvJTqMnhz5bC7e88Q3peVJD1JOq9h+3xc47LDmNCaKMPssrEHAO3Lw8dkcRfokPO/w28Y7gPB 7SKUjbCUvJTqMnhz5bC7e88Q3peVJD1JOq9h+3xc47LDmNCaKMPssrEHAO3Lw8dkcRfokPO/w28Y7gPB
@ -3402,7 +3402,7 @@
<data name="toolStripMenuItem53.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripMenuItem53.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAZRJREFUOE+1kqFuHDEURecP9hP2ExYWGgYaLjQMNAw0CFgVGQ40XGi40HBQZThS vwAADr8BOAVTJAAAAZRJREFUOE+1kqFuHDEURecP9hP2ExYWGgYaLjQMNAw0CFgVGQ40XGi40HBQZThS
qtRRChYals3tfXYm2aQbVapUS0eWZuae5/c8w39ZKToIMTj8fHrEy+Pr6/v8DfHoXwneoJ5Do8we9lbB qtRRChYals3tfXYm2aQbVapUS0eWZuae5/c8w39ZKToIMTj8fHrEy+Pr6/v8DfHoXwneoJ5Do8we9lbB
HyxxbX9+engvlFCtEQupNSCMtu1f7y3y5OCshjM71ETxaQtr9J8CCQv+YBii8OxZ3aFMBnHUMHuF4LbI HyxxbX9+engvlFCtEQupNSCMtu1f7y3y5OCshjM71ETxaQtr9J8CCQv+YBii8OxZ3aFMBnHUMHuF4LbI
foDdfxSEVRDgnWFFQfPoL7CipcDbLjA36r0grALpu7B65tHD5o2RMLiivuw+CEbXh1a4z+w/a9S4gQ9s foDdfxSEVRDgnWFFQfPoL7CipcDbLjA36r0grALpu7B65tHD5o2RMLiivuw+CEbXh1a4z+w/a9S4gQ9s
@ -3678,7 +3678,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACW ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACW
BQAAAk1TRnQBSQFMAwEBAAFIAQQBSAEEARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMA BQAAAk1TRnQBSQFMAwEBAAFQAQQBUAEEARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMA
ARADAAEBAQABGAYAAQwVAAGcAZABigF7AWwBYwFyAWEBWAFxAWABVwFxAWABVwFxAWABVwFxAWABVwFx ARADAAEBAQABGAYAAQwVAAGcAZABigF7AWwBYwFyAWEBWAFxAWABVwFxAWABVwFxAWABVwFxAWABVwFx
AWABVwFxAWABVwFyAWEBWAF7AWwBYwGcAZABigHOAckBxpYAAa4BfAFvAdkBrQGdAdYBqAGaAdMBpgGY AWABVwFxAWABVwFyAWEBWAF7AWwBYwGcAZABigHOAckBxpYAAa4BfAFvAdkBrQGdAdYBqAGaAdMBpgGY
AdIBpAGXAcwBoQGZAckBngGXAcYBnAGWAcQBmQGVAcEBlgGTAbYBkQGLAbgBjgGLAXwBbQFkAb8BtwG0 AdIBpAGXAcwBoQGZAckBngGXAcYBnAGWAcQBmQGVAcEBlgGTAbYBkQGLAbgBjgGLAXwBbQFkAb8BtwG0

View File

@ -62,6 +62,9 @@ namespace DrawGraph
private string nameSpace = ""; private string nameSpace = "";
private string instanceName = ""; private string instanceName = "";
public delegate void MouseWheelHandler(object sender, MouseEventArgs e);
public event MouseWheelHandler MouseWheelParam;
[JsonIgnore] [JsonIgnore]
[XmlIgnore] [XmlIgnore]
/// <summary> /// <summary>
@ -275,9 +278,7 @@ namespace DrawGraph
public virtual void KeyUp(ZedGraphControl sender, KeyEventArgs e) public virtual void KeyUp(ZedGraphControl sender, KeyEventArgs e)
{ {
} }
public virtual void zgcAnaesRecord_ContextMenuBuilder(ZedGraphControl sender, ContextMenuStrip menuStrip, Point mousePt, ZedGraphControl.ContextMenuObjectState objState)
{
}
/// <summary> /// <summary>
/// 验证数据,正确返回真,如果子类不继承就直接返回真 /// 验证数据,正确返回真,如果子类不继承就直接返回真
/// </summary> /// </summary>
@ -286,6 +287,12 @@ namespace DrawGraph
{ {
return true; return true;
} }
//取消滚轮事件
public void numericUpDown1_MouseWheel(object sender, MouseEventArgs e)
{
MouseWheelParam(sender,e);
}
/// <summary> /// <summary>
/// 把OperationRecord 里的数据绑定到到画板上 /// 把OperationRecord 里的数据绑定到到画板上
/// </summary> /// </summary>
@ -371,7 +378,7 @@ namespace DrawGraph
{ {
GetFileName(); GetFileName();
reVal = packManage.SaveFile(packManagerFileName,Id); reVal = packManage.SaveFile(packManagerFileName, Id);
msgStr = packManage.MsgStr; msgStr = packManage.MsgStr;
} }
return reVal; return reVal;
@ -398,7 +405,7 @@ namespace DrawGraph
ParentId = parentId; ParentId = parentId;
packManage = new PackObjManager(zedControl); packManage = new PackObjManager(zedControl);
packManage.AllClear(); packManage.AllClear();
reVal = packManage.LoadContent(packManagerFileName,ParentId ); reVal = packManage.LoadContent(packManagerFileName, ParentId);
packManage.ClassName = className; packManage.ClassName = className;
msgStr = packManage.MsgStr; msgStr = packManage.MsgStr;

View File

@ -156,8 +156,8 @@ namespace DrawGraph
ableEdit.CControl.GotFocus -= new EventHandler(txt_Focus); ableEdit.CControl.GotFocus -= new EventHandler(txt_Focus);
ableEdit.CControl.GotFocus += new EventHandler(txt_Focus); ableEdit.CControl.GotFocus += new EventHandler(txt_Focus);
((TextBox)ableEdit.CControl).BorderStyle = BorderStyle.Fixed3D; ((TextBox)ableEdit.CControl).BorderStyle = BorderStyle.Fixed3D;
//ableEdit.CControl.MouseWheel += new MouseEventHandler(numericUpDown1_MouseWheel);
//ableEdit.CControl.MouseEnter += CControl_MouseEnter; ableEdit.CControl.MouseWheel += new MouseEventHandler(numericUpDown1_MouseWheel);
} }
ableEdit.CControl.Leave -= new EventHandler(txt_Leave); ableEdit.CControl.Leave -= new EventHandler(txt_Leave);
ableEdit.CControl.Leave += new EventHandler(txt_Leave); ableEdit.CControl.Leave += new EventHandler(txt_Leave);
@ -167,23 +167,10 @@ namespace DrawGraph
} }
} }
//private void CControl_MouseEnter(object sender, EventArgs e)
//{
// if (sender is TextBox)
// {
// ((TextBox)sender).Parent.Focus();
// //h.Handled = false;
// }
//}
////取消滚轮事件 ////取消滚轮事件
//void numericUpDown1_MouseWheel(object sender, MouseEventArgs e) //void numericUpDown1_MouseWheel(object sender, MouseEventArgs e)
//{ //{
// if (sender is TextBox) // base.MouseWheelParam();
// {
// ((TextBox)sender).Parent.Focus();
// //h.Handled = false;
// }
//} //}
private void txt_Focus(object sender, EventArgs e) private void txt_Focus(object sender, EventArgs e)
@ -197,6 +184,7 @@ namespace DrawGraph
} }
private void text_keyDown(object sender, KeyEventArgs e) private void text_keyDown(object sender, KeyEventArgs e)
{ {
((TextBox)sender).Enabled = true;
if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.V) if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.V)
{ {
string val = Clipboard.GetText(); string val = Clipboard.GetText();

View File

@ -63,7 +63,7 @@ namespace DrawGraph
this.Resize += new System.EventHandler( this.ZedGraphControl_ReSize ); this.Resize += new System.EventHandler( this.ZedGraphControl_ReSize );
this.KeyUp += new System.Windows.Forms.KeyEventHandler( this.ZedGraphControl_KeyUp ); this.KeyUp += new System.Windows.Forms.KeyEventHandler( this.ZedGraphControl_KeyUp );
this.KeyDown += new System.Windows.Forms.KeyEventHandler( this.ZedGraphControl_KeyDown ); this.KeyDown += new System.Windows.Forms.KeyEventHandler( this.ZedGraphControl_KeyDown );
this.MouseWheel += new System.Windows.Forms.MouseEventHandler( this.ZedGraphControl_MouseWheel ); //this.MouseWheel += new System.Windows.Forms.MouseEventHandler( this.ZedGraphControl_MouseWheel );
this.ResumeLayout( false ); this.ResumeLayout( false );
} }

View File

@ -96,6 +96,12 @@
<DependentUpon>AreaManageForm.cs</DependentUpon> <DependentUpon>AreaManageForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="DocumentParent.cs" /> <Compile Include="DocumentParent.cs" />
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="frmTemplateD.cs"> <Compile Include="frmTemplateD.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -129,6 +135,9 @@
<EmbeddedResource Include="AreaManageForm.resx"> <EmbeddedResource Include="AreaManageForm.resx">
<DependentUpon>AreaManageForm.cs</DependentUpon> <DependentUpon>AreaManageForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmTemplateD.resx"> <EmbeddedResource Include="frmTemplateD.resx">
<DependentUpon>frmTemplateD.cs</DependentUpon> <DependentUpon>frmTemplateD.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

105
DrawGraphManagement/Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,105 @@
namespace DrawGraphManagement
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.TextBox textBox1;
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX();
textBox1 = new System.Windows.Forms.TextBox();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(752, 613);
this.panel1.TabIndex = 0;
//
// panel2
//
this.panel2.Controls.Add(this.textBoxX1);
this.panel2.Controls.Add(textBox1);
this.panel2.Location = new System.Drawing.Point(296, 53);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(200, 896);
this.panel2.TabIndex = 0;
//
// textBox1
//
textBox1.CausesValidation = false;
textBox1.Enabled = false;
textBox1.HideSelection = false;
textBox1.Location = new System.Drawing.Point(29, 419);
textBox1.Name = "textBox1";
textBox1.ShortcutsEnabled = false;
textBox1.Size = new System.Drawing.Size(152, 21);
textBox1.TabIndex = 0;
textBox1.TabStop = false;
//
// textBoxX1
//
//
//
//
this.textBoxX1.Border.Class = "TextBoxBorder";
this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.textBoxX1.Location = new System.Drawing.Point(39, 554);
this.textBoxX1.Multiline = true;
this.textBoxX1.Name = "textBoxX1";
this.textBoxX1.Size = new System.Drawing.Size(142, 97);
this.textBoxX1.TabIndex = 1;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(752, 613);
this.Controls.Add(this.panel1);
this.Name = "Form1";
this.Text = "Form1";
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1;
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace DrawGraphManagement
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}

View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="textBox1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>

View File

@ -1,4 +1,5 @@
using AIMSBLL; using AIMSBLL;
using AIMSExtension;
using AIMSModel; using AIMSModel;
using DrawGraph; using DrawGraph;
using HelperDB; using HelperDB;
@ -221,7 +222,7 @@ namespace DrawGraphManagement
bool reVal = templateManage.Save(); bool reVal = templateManage.Save();
if (reVal) if (reVal)
{ {
MessageBox.Show("保存成功"); new frmMessageBox().Show();
} }
else else
{ {

View File

@ -15,7 +15,7 @@ namespace DrawGraphManagement
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
PreLoad(); PreLoad();
Application.Run(new Main()); Application.Run(new Form1());
} }
static void PreLoad() static void PreLoad()
{ {