diff --git a/AIMS/FormMainManage.cs b/AIMS/FormMainManage.cs index 4eb1bb9..4ce9e22 100644 --- a/AIMS/FormMainManage.cs +++ b/AIMS/FormMainManage.cs @@ -2,6 +2,7 @@ using AIMS.DocManager; using AIMS.OperationDoing.AnasRecordBill; using AIMS.OperationDoing.AnasRecordBill.UI; using AIMSBLL; +using AIMSExtension; using AIMSModel; using DCSoftDotfuscate; using DevComponents.DotNetBar; @@ -202,8 +203,8 @@ namespace AIMS private System.Windows.Forms.Timer timerLoadRescue; public void LoadDataRescue() - { - timerLoadRescue = new System.Windows.Forms.Timer(components); + { + timerLoadRescue = new System.Windows.Forms.Timer(); timerLoadRescue.Enabled = true;//调试时设置为FALSE , timerLoadRescue.Interval = 300; timerLoadRescue.Tick -= timerLoadRescue_Tick; @@ -212,20 +213,21 @@ namespace AIMS } private void timerLoadRescue_Tick(object sender, EventArgs e) { - timerLoadRescue.Dispose(); + timerLoadRescue.Dispose(); //Task.Factory.StartNew(() => //{ - BindOperationsList(lv1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labTa, true); - BindOperationsList(lv3, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2), labTo, true); - BindOperationsList(lv5, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(-7), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labWeek, true, true); + BindOperationsList(lv1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labTa, true); + BindOperationsList(lv3, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2), labTo, true); + BindOperationsList(lv5, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(-7), DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(1), labWeek, true, true); //}); //Task.Factory.StartNew(() => //{ - BindOperationsListChart(); - BindOperationsListChart2(); - BindfrmNoticeMain(); + BindOperationsListChart(); + SetBackColor(expandablePanel5.Controls.Find("button" + DateTime.Now.Month, false)[0] as Button); + BindOperationsListChart2(DateTime.Now.Month.ToString()); + BindfrmNoticeMain(); //}); } @@ -286,15 +288,16 @@ namespace AIMS { } } - public void BindOperationsListChart2() + public void BindOperationsListChart2(string Months) { - DataTable dt = SelectPatient.GetSelectPatientChart2(); + DateTime dateTime = new DateTime(DateTime.Now.Year, int.Parse(Months), 1); + DataTable dt = SelectPatient.GetSelectPatientChart2(dateTime); List xData = new List(); List yData = new List(); foreach (DataRow item in dt.Rows) { - xData.Add(item["dat"].ToString() + "月"); + xData.Add(item["dat"].ToString()); yData.Add(int.Parse(item["con"].ToString())); } chart2.Series[0]["PieLabelStyle"] = "Outside";//将文字移到外侧 @@ -310,29 +313,36 @@ namespace AIMS selsideNavItem = sideNavItem; sideNavItem.Text = sideNavItem.Text + " →"; AIMSModel.Menu menu = sideNavItem.Tag as AIMSModel.Menu; - string path = menu.Path; - if (path.Length > 0) + if (menu.Name == "报表统计") { - try - { - Form frm = GetForm(path); - if (menu.IsAloneOpen == 1) - sideNav1.IsMenuExpanded = false; - frm.TopLevel = false; - frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - frm.WindowState = FormWindowState.Maximized; - sideNavItem.Panel.Controls.Clear(); - sideNavItem.Panel.Controls.Add(frm); - frm.Show(); - frm.BringToFront(); - } - catch (Exception ex) + BrowserHelper.OpenBrowserUrlChrome(menu.Path); + } + else + { + string path = menu.Path; + if (path.Length > 0) { - if (path.Contains("MainFormManage")) + try { - MainFormManage frm = new MainFormManage(); + Form frm = GetForm(path); + if (menu.IsAloneOpen == 1) + sideNav1.IsMenuExpanded = false; + frm.TopLevel = false; + frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + frm.WindowState = FormWindowState.Maximized; + sideNavItem.Panel.Controls.Clear(); + sideNavItem.Panel.Controls.Add(frm); frm.Show(); - frm.BringToFront(); + frm.BringToFront(); + } + catch (Exception ex) + { + if (path.Contains("MainFormManage")) + { + MainFormManage frm = new MainFormManage(); + frm.Show(); + frm.BringToFront(); + } } } } @@ -522,5 +532,24 @@ namespace AIMS dg.AlternatingRowsDefaultCellStyle.BackColor = Color.AliceBlue; } } + + private void button1_Click(object sender, EventArgs e) + { + SetBackColor(sender as Button); + BindOperationsListChart2((sender as Button).Text.Replace("月", "")); + } + + public void SetBackColor(Button btn) + { + btn.BackColor = Color.DeepSkyBlue; + foreach (var item in btn.Parent.Controls) + { + if (item != btn) + if (item is Button) + { + (item as Button).BackColor = Color.White; + } + } + } } } \ No newline at end of file diff --git a/AIMS/FormMainManage.designer.cs b/AIMS/FormMainManage.designer.cs index 510d6cb..2b79c6a 100644 Binary files a/AIMS/FormMainManage.designer.cs and b/AIMS/FormMainManage.designer.cs differ diff --git a/AIMS/FormMainManage.resx b/AIMS/FormMainManage.resx index d8d297b..1ebcd4e 100644 --- a/AIMS/FormMainManage.resx +++ b/AIMS/FormMainManage.resx @@ -178,30 +178,6 @@ MwW6KkGb9Hmsq0MogxZksYGRWGdJ3RrGveY7/uufywXhBhmZbeQU/ileAAAAAElFTkSuQmCC - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6 @@ -274,6 +250,30 @@ MwW6KkGb9Hmsq0MogxZksYGRWGdJ3RrGveY7/uufywXhBhmZbeQU/ileAAAAAElFTkSuQmCC + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + True diff --git a/AIMS/OperationAfter/frmOperationManage.cs b/AIMS/OperationAfter/frmOperationManage.cs index d06fe08..86c038f 100644 --- a/AIMS/OperationAfter/frmOperationManage.cs +++ b/AIMS/OperationAfter/frmOperationManage.cs @@ -52,8 +52,8 @@ namespace AIMS.OperationAfter.UI tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("4,5", "宸叉帓绋")); tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("6,7", "鎵嬫湳涓")); tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("8,9", "鎵嬫湳缁撴潫")); - tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("10", "閫鍥")); - tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("11", "浣滃簾")); + tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("10", "浣滃簾")); + tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("11", "鏈腑鍋滄")); tokenEditor1.SelectedTokens.Add(tokenEditor1.Tokens[1]); diff --git a/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs b/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs index bfefd4e..977344a 100644 --- a/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs +++ b/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs @@ -9,6 +9,11 @@ using System.Windows.Forms; using System.Drawing.Drawing2D; using AIMSModel; using AIMSBLL; +using AIMSExtension; +using DCSoftDotfuscate; +using DrawGraph; +using System.Reflection; +using Newtonsoft.Json; namespace AIMS.OperationAfter.UI { @@ -27,11 +32,12 @@ namespace AIMS.OperationAfter.UI /// 鍒濆鍖栨暟鎹 /// private void Initial() - { + { List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='鎵嬫湳瀹'"); - SetTabPages(rooms ); - //DataTable dt = BLL.BPatients.GetPatientOperationInfo(); - //FullUCControlData(dt); + SetTabPages(rooms); + DataTable dt = SelectPatient.GetTodayDoOpePatientDataTable + (DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd"))); + FullUCControlData(dt); timer1.Enabled = true; timer1.Start(); } @@ -76,6 +82,7 @@ namespace AIMS.OperationAfter.UI { AIMS.OremrUserControl.UCPatientPhysiology uc = new AIMS.OremrUserControl.UCPatientPhysiology(); uc.OperationRoom = room.Name; + uc.OperationRoomIp = room.Ip; uc.lblRoom.Tag = room.Id; uc.panel2.Visible = false; uc.Location = new Point(j * (this.Width / 5) + 10, i * (uc.Height + 20) + 10); @@ -103,14 +110,14 @@ namespace AIMS.OperationAfter.UI AIMS.OremrUserControl.UCPatientPhysiology uc = ctl as AIMS.OremrUserControl.UCPatientPhysiology; foreach (DataRow dr in dt.Rows) { - if (dr["SZOperationRoomId"].ToString() == uc.lblRoom.Tag.ToString()) + if (dr["OperationRoomId"].ToString() == uc.lblRoom.Tag.ToString()) { - uc.panel2.Visible = true; - uc.Tag = dr["OperationRecordId"].ToString(); + uc.panel2.Visible = true; + uc.Tag = dr["Id"].ToString(); uc.PatientName = dr["PatientName"].ToString(); - uc.OperationName = dr["SZOperation"].ToString(); - uc.AnaesthesiaMethod = dr["SZAnaesthesiaMethod"].ToString(); - uc.OperationDoctor = dr["SZOperationDoctor"].ToString(); + uc.OperationName = dr["ApplyOperationInfoName"].ToString(); + uc.AnaesthesiaMethod = dr["AnaesthesiaMethodName"].ToString(); + uc.OperationDoctor = dr["OperationDoctor"].ToString(); uc.OperationTime = dr["InRoomTime"].ToString(); FullPatientPhysiology(uc, Convert.ToInt32(uc.Tag)); break; @@ -126,42 +133,41 @@ namespace AIMS.OperationAfter.UI /// private void RefreshPatientPhysiology() { - //DataTable dt = BLL.BPatients.GetPatientOperationInfo(); - //for (int i = 0; i < tabControl.TabPages.Count; i++) - //{ - // foreach (Control ctl in tabControl.TabPages[i].Controls) - // { - // if (ctl is AIMS.OremrUserControl.UCPatientPhysiology) - // { - // bool key = false; - // AIMS.OremrUserControl.UCPatientPhysiology uc = ctl as AIMS.OremrUserControl.UCPatientPhysiology; - // if (uc.Tag == null) continue; - // foreach (DataRow dr in dt.Rows) - // { - // if (uc.lblRoom.Tag.ToString() == dr["SZOperationRoomId"].ToString()) - // { - // key = true; - // //濉厖鎺т欢淇℃伅 - // uc.panel2.Visible = true; - // uc.pictureBox1.Image = Image.FromFile(Application.StartupPath + @"\Resources\蹇冭剰璺冲姩.gif"); - // uc.Tag = dr["OperationRecordId"].ToString(); - // uc.PatientName = dr["PatientName"].ToString(); - // uc.OperationName = dr["SZOperation"].ToString(); - // uc.AnaesthesiaMethod = dr["SZAnaesthesiaMethod"].ToString(); - // uc.OperationDoctor = dr["SZOperationDoctor"].ToString(); - // uc.OperationTime = dr["InRoomTime"].ToString(); - // //鍒锋柊鐢熷懡浣撳緛鏁版嵁 - // FullPatientPhysiology(uc, Convert.ToInt32(uc.Tag)); - // break; - // } - // } - // if (!key) - // { - // uc.panel2.Visible = false; - // } - // } - // } - //} + DataTable dt = SelectPatient.GetTodayDoOpePatientDataTable + (DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd"))); + for (int i = 0; i < tabControl.TabPages.Count; i++) + { + foreach (Control ctl in tabControl.TabPages[i].Controls) + { + if (ctl is AIMS.OremrUserControl.UCPatientPhysiology) + { + bool key = false; + AIMS.OremrUserControl.UCPatientPhysiology uc = ctl as AIMS.OremrUserControl.UCPatientPhysiology; + if (uc.Tag == null) continue; + foreach (DataRow dr in dt.Rows) + { + if (uc.lblRoom.Tag.ToString() == dr["OperationRoomId"].ToString()) + { + key = true; + uc.panel2.Visible = true; + uc.Tag = dr["Id"].ToString(); + uc.PatientName = dr["PatientName"].ToString(); + uc.OperationName = dr["ApplyOperationInfoName"].ToString(); + uc.AnaesthesiaMethod = dr["AnaesthesiaMethodName"].ToString(); + uc.OperationDoctor = dr["OperationDoctor"].ToString(); + uc.OperationTime = dr["InRoomTime"].ToString(); + //鍒锋柊鐢熷懡浣撳緛鏁版嵁 + FullPatientPhysiology(uc, Convert.ToInt32(uc.Tag)); + break; + } + } + if (!key) + { + uc.panel2.Visible = false; + } + } + } + } } /// /// 涓烘帶浠跺~鍏呯敓鍛戒綋寰佹暟鎹 @@ -170,81 +176,106 @@ namespace AIMS.OperationAfter.UI /// 鎵嬫湳缂栧彿 private void FullPatientPhysiology(AIMS.OremrUserControl.UCPatientPhysiology uc, int operationRecordId) { - //DataTable dtPhysioData = BLL.BOperationRecord.GetByOpeIDIsPhysioData(int.Parse(uc.lblRoom.Tag.ToString())); - //string hr = string.Empty; - //string spo2 = string.Empty; - //string br = string.Empty; - //string etco2 = string.Empty; - //string dia = string.Empty; - //string sys = string.Empty; - //foreach (DataRow dr in dtPhysioData.Rows) - //{ - // if (dr["ParamValue"].ToString() == "" || dr["ParamValue"].ToString() == "0" || dr["ParamValue"].ToString().Contains("-")) continue; - // if (dr["ParameterName"].ToString().Equals("蹇冪巼")) - // { - // hr = dr["ParamValue"].ToString(); - // } - // if (dr["ParameterName"].ToString().Equals("姘чケ鍜屽害")) - // { - // spo2 = dr["ParamValue"].ToString(); - // } - // if (dr["ParameterName"].ToString().Equals("鑷富鍛煎惛")) - // { - // br = dr["ParamValue"].ToString(); - // } - // if (dr["ParameterName"].ToString().Equals("EtCO2")) - // { - // etco2 = dr["ParamValue"].ToString(); - // } - // if (dr["ParameterName"].ToString().Equals("鏃犲垱鏀剁缉鍘")) - // { - // dia = dr["ParamValue"].ToString(); - // } - // if (dr["ParameterName"].ToString().Equals("鏃犲垱鑸掑紶鍘")) - // { - // sys = dr["ParamValue"].ToString(); - // } - //} - //if (hr.Length > 0) - //{ - // uc.HR = hr.Substring(0, hr.IndexOf(".")); - //} - //else - //{ - // uc.HR = "--"; - //} - //if (spo2.Length > 0) - //{ - // uc.SpO2 = spo2.Substring(0, spo2.IndexOf(".")); - //} - //else - //{ - // uc.SpO2 = "--"; - //} - //if (br.Length > 0) - //{ - // uc.BR = br.Substring(0, br.IndexOf(".")); - //} - //else - //{ - // uc.BR = "--"; - //} - //if (etco2.Length > 0) - //{ - // uc.T = etco2.Substring(0, etco2.IndexOf(".") + 2); - //} - //else - //{ - // uc.T = "--"; - //} - //if (dia.Length > 0 && sys.Length > 0) - //{ - // uc.SYS = dia.Substring(0, dia.IndexOf(".")) + "/" + sys.Substring(0, sys.IndexOf(".")); - //} - //else - //{ - // uc.SYS = "---/--"; - //} + List lists = DeviceCacheData.Select(" IPAddress='" + uc.OperationRoomIp + "' and UpdateTime>='" + DateTime.Now.AddSeconds(-300) + "'"); + string hr = string.Empty; + string spo2 = string.Empty; + string br = string.Empty; + string pr = string.Empty; + string etco2 = string.Empty; + string dia = string.Empty; + string sys = string.Empty; + if (lists != null && lists.Count > 0) + { + DeviceCacheData deviceCacheData = lists[0]; + NowPhysioData nowPhysioData = JsonConvert.DeserializeObject(deviceCacheData.JsonData); + foreach (PropertyInfo p in nowPhysioData.GetType().GetProperties()) + { + object paramValue = p.GetValue(nowPhysioData, null); + if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL") + { + double value = Double.Parse(paramValue.ToString()); + value = Convert.ToInt32(value); + + if (p.Name.ToUpper() == "HR") + { + hr = value <= 0 ? "--" : value.ToString(); + + } + else if (p.Name.ToUpper() == "RESP") + { + br = value <= 0 ? "--" : value.ToString(); + } + else if (p.Name.ToUpper() == "SPO2") + { + spo2 = value <= 0 ? "--" : value.ToString(); + } + else if (p.Name.ToUpper() == "PR") + { + pr = value <= 0 ? "--" : value.ToString(); + } + else if (p.Name.ToUpper() == "ETCO2") + { + spo2 = value <= 0 ? "--" : value.ToString(); + } + else if (p.Name.ToUpper() == "DIA") + { + dia = value <= 0 ? "" : value.ToString(); + } + else if (p.Name.ToUpper() == "SYS") + { + sys = value <= 0 ? "" : value.ToString(); + } + else if (p.Name.ToUpper() == "DIA_H") + { + dia = value <= 0 ? "" : value.ToString(); + } + else if (p.Name.ToUpper() == "SYS_H") + { + sys = value <= 0 ? "" : value.ToString(); + } + } + } + } + if (hr.Length > 0) + { + uc.HR = hr; + } + else + { + uc.HR = "--"; + } + if (spo2.Length > 0) + { + uc.SpO2 = spo2; + } + else + { + uc.SpO2 = "--"; + } + if (br.Length > 0) + { + uc.BR = br; + } + else + { + uc.BR = "--"; + } + if (etco2.Length > 0) + { + uc.T = etco2; + } + else + { + uc.T = "--"; + } + if (dia.Length > 0 && sys.Length > 0) + { + uc.SYS = dia + "/" + sys; + } + else + { + uc.SYS = "---/--"; + } } /// /// 鏇存柊鐢熷懡浣撳緛 @@ -255,6 +286,6 @@ namespace AIMS.OperationAfter.UI { RefreshPatientPhysiology(); } - + } } diff --git a/AIMS/OperationAfter/frmPhysiologyLargeScreen.designer.cs b/AIMS/OperationAfter/frmPhysiologyLargeScreen.designer.cs index a2fbdf4..c54240c 100644 --- a/AIMS/OperationAfter/frmPhysiologyLargeScreen.designer.cs +++ b/AIMS/OperationAfter/frmPhysiologyLargeScreen.designer.cs @@ -61,7 +61,8 @@ this.cboRoom.Name = "cboRoom"; this.cboRoom.Size = new System.Drawing.Size(150, 26); this.cboRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cboRoom.TabIndex = 32; + this.cboRoom.TabIndex = 32; + this.cboRoom.Visible = false; // // label22 // @@ -71,6 +72,7 @@ this.label22.Size = new System.Drawing.Size(41, 12); this.label22.TabIndex = 31; this.label22.Text = "鎵嬫湳闂"; + this.label22.Visible = false; // // frmPhysiologyLargeScreen // diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs index cdf4a39..dcbafdf 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs @@ -1550,7 +1550,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { if (_record.SpileInTime != null && _record.SpileOutTime != null) { - if (time >= _record.SpileInTime && time <= _record.SpileOutTime) + if (time >= _record.SpileInTime && time < _record.SpileOutTime.Value.AddMinutes(-3)) b = true; } if (_record.SpileInTime != null && _record.SpileOutTime == null) @@ -1563,7 +1563,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { if (_record.SpileInTime != null && _record.SpileOutTime != null) { - if (time < _record.SpileInTime || time > _record.SpileOutTime) + if (time < _record.SpileInTime || time >= _record.SpileOutTime) b = true; } if (_record.SpileInTime != null && _record.SpileOutTime == null) @@ -2246,11 +2246,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } private void btnsjzx_Click(object sender, EventArgs e) - { - //MessageBox.Show("鏈繛鎺ュ埌鏈嶅姟鍣 璇疯仈绯荤鐞嗗憳鎴栫◢鍚庡啀璇曪紒", "绯荤粺鎻愮ず"); - frmLISResult lISResult = new frmLISResult(); - //lISResult.PatientNo = _record.InHospitalNo; - //lISResult.Show(); + { if (PublicMethod.GetHospitalName().Contains("绉︾殗宀")) { try diff --git a/AIMS/OperationFront/frmOperationApply.Designer.cs b/AIMS/OperationFront/frmOperationApply.Designer.cs index 89d1e6e..05c6135 100644 --- a/AIMS/OperationFront/frmOperationApply.Designer.cs +++ b/AIMS/OperationFront/frmOperationApply.Designer.cs @@ -48,57 +48,63 @@ this.cboDepartment = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.panel2 = new System.Windows.Forms.Panel(); + this.CHK10 = new System.Windows.Forms.CheckBox(); this.btnFind = new System.Windows.Forms.Button(); this.panel3 = new System.Windows.Forms.Panel(); this.dgv = new System.Windows.Forms.DataGridView(); + this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn25 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.CheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.ApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.MdrecNoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ArchivesNoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.StateColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ApplyDepNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientKindColume = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.SickBedColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.MdrecNoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.PatientNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BirthDayColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.HeightColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.WeightColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BloodTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.RHBloodTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IlldistrictColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SickBedColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Age = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.OperationTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.OrderOperationTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationTimeLeightColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.StateColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IsReturnOperationColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IsPlanReturnOperationColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDiagnoseInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DiagnoseRemarkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationRemarkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationLevelNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationCutTypeNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationPositionNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnaesthesiaMethodNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ContagionColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyOperatorNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.OperationDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Assistant1Column = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant2Column = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant3Column = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InternColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OtherColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperatorNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.VerifyTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.VerifyOperatorNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PlanOperationTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationRoomColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyDiagnoseInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyOperationInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AnaesthesiaMethodNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyOperationPositionNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationLevelNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyOperationCutTypeNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.AnesthesiaDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InstrumentNurseColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.TourNurseColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnesthesiaDoctorSucceedColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InstrumentNurseSucceedColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TourNurseSucceedColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.InstrumentNurseColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationRoomColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PlanOrder = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.RemarkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panel1.SuspendLayout(); this.toolStrip1.SuspendLayout(); @@ -285,6 +291,7 @@ // panel2 // this.panel2.BackColor = System.Drawing.Color.AliceBlue; + this.panel2.Controls.Add(this.CHK10); this.panel2.Controls.Add(this.btnFind); this.panel2.Controls.Add(this.txtMdrecNo); this.panel2.Controls.Add(this.dtpBegInDate); @@ -301,9 +308,19 @@ this.panel2.Size = new System.Drawing.Size(942, 40); this.panel2.TabIndex = 16; // + // CHK10 + // + this.CHK10.AutoSize = true; + this.CHK10.Location = new System.Drawing.Point(709, 13); + this.CHK10.Name = "CHK10"; + this.CHK10.Size = new System.Drawing.Size(68, 18); + this.CHK10.TabIndex = 17; + this.CHK10.Text = "宸蹭綔搴"; + this.CHK10.UseVisualStyleBackColor = true; + // // btnFind // - this.btnFind.Location = new System.Drawing.Point(714, 9); + this.btnFind.Location = new System.Drawing.Point(783, 11); this.btnFind.Name = "btnFind"; this.btnFind.Size = new System.Drawing.Size(66, 23); this.btnFind.TabIndex = 16; @@ -329,52 +346,30 @@ this.dgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.CheckBoxColumn, this.ApplyId, - this.MdrecNoColumn, - this.ArchivesNoColumn, + this.StateColumn, this.ApplyDepNameColumn, - this.PatientKindColume, + this.SickBedColumn, + this.MdrecNoColumn, this.PatientNameColumn, this.SexColumn, - this.BirthDayColumn, - this.HeightColumn, - this.WeightColumn, - this.BloodTypeColumn, - this.RHBloodTypeColumn, - this.IlldistrictColumn, - this.SickBedColumn, + this.Age, this.OperationTypeColumn, + this.ApplyTimeColumn, this.OrderOperationTimeColumn, - this.OperationTimeLeightColumn, - this.StateColumn, - this.IsReturnOperationColumn, - this.IsPlanReturnOperationColumn, - this.ApplyDiagnoseInfoNameColumn, - this.DiagnoseRemarkColumn, - this.ApplyOperationInfoNameColumn, - this.OperationRemarkColumn, - this.OperationLevelNameColumn, - this.ApplyOperationCutTypeNameColumn, - this.ApplyOperationPositionNameColumn, - this.AnaesthesiaMethodNameColumn, - this.ContagionColumn, + this.ApplyOperatorNameColumn, this.OperationDoctorColumn, this.Assistant1Column, - this.Assistant2Column, - this.Assistant3Column, - this.InternColumn, - this.OtherColumn, - this.ApplyTimeColumn, - this.ApplyOperatorNameColumn, - this.VerifyTimeColumn, - this.VerifyOperatorNameColumn, - this.PlanOperationTimeColumn, - this.OperationRoomColumn, + this.ApplyDiagnoseInfoNameColumn, + this.ApplyOperationInfoNameColumn, + this.AnaesthesiaMethodNameColumn, + this.ApplyOperationPositionNameColumn, + this.OperationLevelNameColumn, + this.ApplyOperationCutTypeNameColumn, this.AnesthesiaDoctorColumn, - this.InstrumentNurseColumn, this.TourNurseColumn, - this.AnesthesiaDoctorSucceedColumn, - this.InstrumentNurseSucceedColumn, - this.TourNurseSucceedColumn, + this.InstrumentNurseColumn, + this.OperationRoomColumn, + this.PlanOrder, this.RemarkColumn}); this.dgv.Dock = System.Windows.Forms.DockStyle.Fill; this.dgv.Location = new System.Drawing.Point(0, 0); @@ -383,6 +378,214 @@ this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.dgv.Size = new System.Drawing.Size(942, 436); this.dgv.TabIndex = 3; + this.dgv.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgv_RowPostPaint); + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.DataPropertyName = "ApplyId"; + this.dataGridViewTextBoxColumn1.HeaderText = "ApplyId"; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.ReadOnly = true; + this.dataGridViewTextBoxColumn1.Visible = false; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.DataPropertyName = "State"; + this.dataGridViewTextBoxColumn2.HeaderText = "鐘舵"; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.ReadOnly = true; + this.dataGridViewTextBoxColumn2.Width = 70; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.DataPropertyName = "ApplyDepName"; + this.dataGridViewTextBoxColumn3.HeaderText = "鐢宠绉戝"; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.ReadOnly = true; + this.dataGridViewTextBoxColumn3.Width = 80; + // + // dataGridViewTextBoxColumn4 + // + this.dataGridViewTextBoxColumn4.DataPropertyName = "SickBed"; + this.dataGridViewTextBoxColumn4.HeaderText = "搴婁綅"; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + this.dataGridViewTextBoxColumn4.ReadOnly = true; + this.dataGridViewTextBoxColumn4.Width = 70; + // + // dataGridViewTextBoxColumn5 + // + this.dataGridViewTextBoxColumn5.DataPropertyName = "MdrecNo"; + this.dataGridViewTextBoxColumn5.HeaderText = "浣忛櫌鍙"; + this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; + this.dataGridViewTextBoxColumn5.ReadOnly = true; + this.dataGridViewTextBoxColumn5.Width = 80; + // + // dataGridViewTextBoxColumn6 + // + this.dataGridViewTextBoxColumn6.DataPropertyName = "PatientName"; + this.dataGridViewTextBoxColumn6.HeaderText = "鎮h呭鍚"; + this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; + this.dataGridViewTextBoxColumn6.ReadOnly = true; + this.dataGridViewTextBoxColumn6.Width = 80; + // + // dataGridViewTextBoxColumn7 + // + this.dataGridViewTextBoxColumn7.DataPropertyName = "Sex"; + this.dataGridViewTextBoxColumn7.HeaderText = "鎬у埆"; + this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; + this.dataGridViewTextBoxColumn7.ReadOnly = true; + this.dataGridViewTextBoxColumn7.Width = 60; + // + // dataGridViewTextBoxColumn8 + // + this.dataGridViewTextBoxColumn8.DataPropertyName = "Age"; + this.dataGridViewTextBoxColumn8.HeaderText = "骞撮緞"; + this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; + this.dataGridViewTextBoxColumn8.ReadOnly = true; + this.dataGridViewTextBoxColumn8.Width = 40; + // + // dataGridViewTextBoxColumn9 + // + this.dataGridViewTextBoxColumn9.DataPropertyName = "OperationType"; + this.dataGridViewTextBoxColumn9.HeaderText = "鎵嬫湳绫诲瀷"; + this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; + this.dataGridViewTextBoxColumn9.ReadOnly = true; + this.dataGridViewTextBoxColumn9.Width = 80; + // + // dataGridViewTextBoxColumn10 + // + this.dataGridViewTextBoxColumn10.DataPropertyName = "ApplyTime"; + this.dataGridViewTextBoxColumn10.HeaderText = "鐢宠鏃堕棿"; + this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; + this.dataGridViewTextBoxColumn10.ReadOnly = true; + this.dataGridViewTextBoxColumn10.Width = 60; + // + // dataGridViewTextBoxColumn11 + // + this.dataGridViewTextBoxColumn11.DataPropertyName = "OrderOperationTime"; + this.dataGridViewTextBoxColumn11.HeaderText = "棰勭害鏃堕棿"; + this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11"; + this.dataGridViewTextBoxColumn11.ReadOnly = true; + this.dataGridViewTextBoxColumn11.Width = 80; + // + // dataGridViewTextBoxColumn12 + // + this.dataGridViewTextBoxColumn12.DataPropertyName = "ApplyOperatorName"; + this.dataGridViewTextBoxColumn12.HeaderText = "鐢宠浜"; + this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12"; + this.dataGridViewTextBoxColumn12.ReadOnly = true; + this.dataGridViewTextBoxColumn12.Width = 120; + // + // dataGridViewTextBoxColumn13 + // + this.dataGridViewTextBoxColumn13.DataPropertyName = "OperationDoctor"; + this.dataGridViewTextBoxColumn13.HeaderText = "鏈"; + this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; + this.dataGridViewTextBoxColumn13.ReadOnly = true; + this.dataGridViewTextBoxColumn13.Width = 60; + // + // dataGridViewTextBoxColumn14 + // + this.dataGridViewTextBoxColumn14.DataPropertyName = "Assistant1"; + this.dataGridViewTextBoxColumn14.HeaderText = "鍔╂墜"; + this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; + this.dataGridViewTextBoxColumn14.ReadOnly = true; + this.dataGridViewTextBoxColumn14.Width = 70; + // + // dataGridViewTextBoxColumn15 + // + this.dataGridViewTextBoxColumn15.DataPropertyName = "ApplyDiagnoseInfoName"; + this.dataGridViewTextBoxColumn15.HeaderText = "鏈墠璇婃柇"; + this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15"; + this.dataGridViewTextBoxColumn15.ReadOnly = true; + this.dataGridViewTextBoxColumn15.Width = 150; + // + // dataGridViewTextBoxColumn16 + // + this.dataGridViewTextBoxColumn16.DataPropertyName = "ApplyOperationInfoName"; + this.dataGridViewTextBoxColumn16.HeaderText = "鎷熸柦鎵嬫湳"; + this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16"; + this.dataGridViewTextBoxColumn16.ReadOnly = true; + this.dataGridViewTextBoxColumn16.Width = 150; + // + // dataGridViewTextBoxColumn17 + // + this.dataGridViewTextBoxColumn17.DataPropertyName = "AnaesthesiaMethodName"; + this.dataGridViewTextBoxColumn17.HeaderText = "鎷熸柦楹婚唹"; + this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17"; + this.dataGridViewTextBoxColumn17.ReadOnly = true; + this.dataGridViewTextBoxColumn17.Width = 150; + // + // dataGridViewTextBoxColumn18 + // + this.dataGridViewTextBoxColumn18.DataPropertyName = "ApplyOperationPositionName"; + this.dataGridViewTextBoxColumn18.HeaderText = "鎵嬫湳閮ㄤ綅"; + this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18"; + this.dataGridViewTextBoxColumn18.ReadOnly = true; + // + // dataGridViewTextBoxColumn19 + // + this.dataGridViewTextBoxColumn19.DataPropertyName = "OperationLevelName"; + this.dataGridViewTextBoxColumn19.HeaderText = "鎵嬫湳鍒嗙骇"; + this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19"; + this.dataGridViewTextBoxColumn19.ReadOnly = true; + this.dataGridViewTextBoxColumn19.Width = 80; + // + // dataGridViewTextBoxColumn20 + // + this.dataGridViewTextBoxColumn20.DataPropertyName = "ApplyOperationCutTypeName"; + this.dataGridViewTextBoxColumn20.HeaderText = "鍒囧彛绫诲瀷"; + this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20"; + this.dataGridViewTextBoxColumn20.ReadOnly = true; + this.dataGridViewTextBoxColumn20.Width = 70; + // + // dataGridViewTextBoxColumn21 + // + this.dataGridViewTextBoxColumn21.DataPropertyName = "AnesthesiaDoctor"; + this.dataGridViewTextBoxColumn21.HeaderText = "楹婚唹鍖荤敓"; + this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; + this.dataGridViewTextBoxColumn21.ReadOnly = true; + this.dataGridViewTextBoxColumn21.Width = 80; + // + // dataGridViewTextBoxColumn22 + // + this.dataGridViewTextBoxColumn22.DataPropertyName = "TourNurse"; + this.dataGridViewTextBoxColumn22.HeaderText = "宸″洖鎶ゅ+"; + this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22"; + // + // dataGridViewTextBoxColumn23 + // + this.dataGridViewTextBoxColumn23.DataPropertyName = "InstrumentNurse"; + this.dataGridViewTextBoxColumn23.HeaderText = "鍣ㄦ鎶ゅ+"; + this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23"; + // + // dataGridViewTextBoxColumn24 + // + this.dataGridViewTextBoxColumn24.DataPropertyName = "OperationRoom"; + this.dataGridViewTextBoxColumn24.HeaderText = "鎵嬫湳闂"; + this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24"; + this.dataGridViewTextBoxColumn24.ReadOnly = true; + // + // dataGridViewTextBoxColumn25 + // + this.dataGridViewTextBoxColumn25.DataPropertyName = "Remark"; + this.dataGridViewTextBoxColumn25.HeaderText = "澶囨敞"; + this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25"; + this.dataGridViewTextBoxColumn25.ReadOnly = true; + this.dataGridViewTextBoxColumn25.Width = 60; + // + // dataGridViewTextBoxColumn26 + // + this.dataGridViewTextBoxColumn26.DataPropertyName = "Remark"; + this.dataGridViewTextBoxColumn26.HeaderText = "澶囨敞"; + this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26"; + this.dataGridViewTextBoxColumn26.Width = 40; + // + // dataGridViewTextBoxColumn27 + // + this.dataGridViewTextBoxColumn27.DataPropertyName = "Remark"; + this.dataGridViewTextBoxColumn27.HeaderText = "澶囨敞"; + this.dataGridViewTextBoxColumn27.Name = "dataGridViewTextBoxColumn27"; // // CheckBoxColumn // @@ -400,21 +603,13 @@ this.ApplyId.ReadOnly = true; this.ApplyId.Visible = false; // - // MdrecNoColumn + // StateColumn // - this.MdrecNoColumn.DataPropertyName = "MdrecNo"; - this.MdrecNoColumn.HeaderText = "浣忛櫌鍙"; - this.MdrecNoColumn.Name = "MdrecNoColumn"; - this.MdrecNoColumn.ReadOnly = true; - this.MdrecNoColumn.Width = 80; - // - // ArchivesNoColumn - // - this.ArchivesNoColumn.DataPropertyName = "ArchivesNo"; - this.ArchivesNoColumn.HeaderText = "鐥呭巻鍙"; - this.ArchivesNoColumn.Name = "ArchivesNoColumn"; - this.ArchivesNoColumn.ReadOnly = true; - this.ArchivesNoColumn.Width = 80; + this.StateColumn.DataPropertyName = "State"; + this.StateColumn.HeaderText = "鐘舵"; + this.StateColumn.Name = "StateColumn"; + this.StateColumn.ReadOnly = true; + this.StateColumn.Width = 60; // // ApplyDepNameColumn // @@ -424,21 +619,29 @@ this.ApplyDepNameColumn.ReadOnly = true; this.ApplyDepNameColumn.Width = 80; // - // PatientKindColume + // SickBedColumn // - this.PatientKindColume.DataPropertyName = "PatientKind"; - this.PatientKindColume.HeaderText = "鍖讳繚绫诲埆"; - this.PatientKindColume.Name = "PatientKindColume"; - this.PatientKindColume.ReadOnly = true; - this.PatientKindColume.Width = 80; + this.SickBedColumn.DataPropertyName = "SickBed"; + this.SickBedColumn.HeaderText = "搴婁綅"; + this.SickBedColumn.Name = "SickBedColumn"; + this.SickBedColumn.ReadOnly = true; + this.SickBedColumn.Width = 40; + // + // MdrecNoColumn + // + this.MdrecNoColumn.DataPropertyName = "MdrecNo"; + this.MdrecNoColumn.HeaderText = "浣忛櫌鍙"; + this.MdrecNoColumn.Name = "MdrecNoColumn"; + this.MdrecNoColumn.ReadOnly = true; + this.MdrecNoColumn.Width = 70; // // PatientNameColumn // this.PatientNameColumn.DataPropertyName = "PatientName"; - this.PatientNameColumn.HeaderText = "鎮h呭鍚"; + this.PatientNameColumn.HeaderText = "濮撳悕"; this.PatientNameColumn.Name = "PatientNameColumn"; this.PatientNameColumn.ReadOnly = true; - this.PatientNameColumn.Width = 80; + this.PatientNameColumn.Width = 60; // // SexColumn // @@ -446,67 +649,29 @@ this.SexColumn.HeaderText = "鎬у埆"; this.SexColumn.Name = "SexColumn"; this.SexColumn.ReadOnly = true; - this.SexColumn.Width = 60; + this.SexColumn.Width = 40; // - // BirthDayColumn + // Age // - this.BirthDayColumn.DataPropertyName = "BirthDay"; - this.BirthDayColumn.HeaderText = "鍑虹敓鏃ユ湡"; - this.BirthDayColumn.Name = "BirthDayColumn"; - this.BirthDayColumn.Width = 80; - // - // HeightColumn - // - this.HeightColumn.DataPropertyName = "Height"; - this.HeightColumn.HeaderText = "韬珮"; - this.HeightColumn.Name = "HeightColumn"; - this.HeightColumn.Width = 70; - // - // WeightColumn - // - this.WeightColumn.DataPropertyName = "Weight"; - this.WeightColumn.HeaderText = "浣撻噸"; - this.WeightColumn.Name = "WeightColumn"; - this.WeightColumn.ReadOnly = true; - this.WeightColumn.Width = 70; - // - // BloodTypeColumn - // - this.BloodTypeColumn.DataPropertyName = "BloodType"; - this.BloodTypeColumn.HeaderText = "琛鍨"; - this.BloodTypeColumn.Name = "BloodTypeColumn"; - this.BloodTypeColumn.ReadOnly = true; - this.BloodTypeColumn.Width = 70; - // - // RHBloodTypeColumn - // - this.RHBloodTypeColumn.DataPropertyName = "RHBloodType"; - this.RHBloodTypeColumn.HeaderText = "RH琛鍨"; - this.RHBloodTypeColumn.Name = "RHBloodTypeColumn"; - this.RHBloodTypeColumn.Width = 70; - // - // IlldistrictColumn - // - this.IlldistrictColumn.DataPropertyName = "Illdistrict"; - this.IlldistrictColumn.HeaderText = "鐥呭尯"; - this.IlldistrictColumn.Name = "IlldistrictColumn"; - this.IlldistrictColumn.Width = 70; - // - // SickBedColumn - // - this.SickBedColumn.DataPropertyName = "SickBed"; - this.SickBedColumn.HeaderText = "搴婁綅"; - this.SickBedColumn.Name = "SickBedColumn"; - this.SickBedColumn.ReadOnly = true; - this.SickBedColumn.Width = 70; + this.Age.DataPropertyName = "Age"; + this.Age.HeaderText = "骞撮緞"; + this.Age.Name = "Age"; + this.Age.Width = 40; // // OperationTypeColumn // this.OperationTypeColumn.DataPropertyName = "OperationType"; - this.OperationTypeColumn.HeaderText = "鎵嬫湳绫诲瀷"; + this.OperationTypeColumn.HeaderText = "绫诲瀷"; this.OperationTypeColumn.Name = "OperationTypeColumn"; this.OperationTypeColumn.ReadOnly = true; - this.OperationTypeColumn.Width = 80; + this.OperationTypeColumn.Width = 40; + // + // ApplyTimeColumn + // + this.ApplyTimeColumn.DataPropertyName = "ApplyTime"; + this.ApplyTimeColumn.HeaderText = "鐢宠鏃堕棿"; + this.ApplyTimeColumn.Name = "ApplyTimeColumn"; + this.ApplyTimeColumn.Width = 110; // // OrderOperationTimeColumn // @@ -514,35 +679,30 @@ this.OrderOperationTimeColumn.HeaderText = "棰勭害鏃堕棿"; this.OrderOperationTimeColumn.Name = "OrderOperationTimeColumn"; this.OrderOperationTimeColumn.ReadOnly = true; - this.OrderOperationTimeColumn.Width = 80; + this.OrderOperationTimeColumn.Width = 110; // - // OperationTimeLeightColumn + // ApplyOperatorNameColumn // - this.OperationTimeLeightColumn.DataPropertyName = "OperationTimeLeight"; - this.OperationTimeLeightColumn.HeaderText = "鎵嬫湳鏃堕暱"; - this.OperationTimeLeightColumn.Name = "OperationTimeLeightColumn"; - this.OperationTimeLeightColumn.ReadOnly = true; - this.OperationTimeLeightColumn.Width = 80; + this.ApplyOperatorNameColumn.DataPropertyName = "ApplyOperatorName"; + this.ApplyOperatorNameColumn.HeaderText = "鐢宠浜"; + this.ApplyOperatorNameColumn.Name = "ApplyOperatorNameColumn"; + this.ApplyOperatorNameColumn.ReadOnly = true; + this.ApplyOperatorNameColumn.Width = 70; // - // StateColumn + // OperationDoctorColumn // - this.StateColumn.DataPropertyName = "State"; - this.StateColumn.HeaderText = "鐘舵"; - this.StateColumn.Name = "StateColumn"; - this.StateColumn.ReadOnly = true; + this.OperationDoctorColumn.DataPropertyName = "OperationDoctor"; + this.OperationDoctorColumn.HeaderText = "鏈"; + this.OperationDoctorColumn.Name = "OperationDoctorColumn"; + this.OperationDoctorColumn.ReadOnly = true; + this.OperationDoctorColumn.Width = 60; // - // IsReturnOperationColumn + // Assistant1Column // - this.IsReturnOperationColumn.DataPropertyName = "IsReturnOperation"; - this.IsReturnOperationColumn.HeaderText = "鏄惁閲嶈繑"; - this.IsReturnOperationColumn.Name = "IsReturnOperationColumn"; - this.IsReturnOperationColumn.ReadOnly = true; - // - // IsPlanReturnOperationColumn - // - this.IsPlanReturnOperationColumn.DataPropertyName = "IsPlanReturnOperation"; - this.IsPlanReturnOperationColumn.HeaderText = "鏄惁璁″垝"; - this.IsPlanReturnOperationColumn.Name = "IsPlanReturnOperationColumn"; + this.Assistant1Column.DataPropertyName = "Assistants"; + this.Assistant1Column.HeaderText = "鍔╂墜"; + this.Assistant1Column.Name = "Assistant1Column"; + this.Assistant1Column.Width = 90; // // ApplyDiagnoseInfoNameColumn // @@ -550,47 +710,15 @@ this.ApplyDiagnoseInfoNameColumn.HeaderText = "鏈墠璇婃柇"; this.ApplyDiagnoseInfoNameColumn.Name = "ApplyDiagnoseInfoNameColumn"; this.ApplyDiagnoseInfoNameColumn.ReadOnly = true; - // - // DiagnoseRemarkColumn - // - this.DiagnoseRemarkColumn.DataPropertyName = "DiagnoseRemark"; - this.DiagnoseRemarkColumn.HeaderText = "璇婃柇澶囨敞"; - this.DiagnoseRemarkColumn.Name = "DiagnoseRemarkColumn"; - this.DiagnoseRemarkColumn.ReadOnly = true; + this.ApplyDiagnoseInfoNameColumn.Width = 150; // // ApplyOperationInfoNameColumn // this.ApplyOperationInfoNameColumn.DataPropertyName = "ApplyOperationInfoName"; - this.ApplyOperationInfoNameColumn.HeaderText = "鎷熷疄鎵嬫湳"; + this.ApplyOperationInfoNameColumn.HeaderText = "鎷熸柦鎵嬫湳"; this.ApplyOperationInfoNameColumn.Name = "ApplyOperationInfoNameColumn"; this.ApplyOperationInfoNameColumn.ReadOnly = true; - // - // OperationRemarkColumn - // - this.OperationRemarkColumn.DataPropertyName = "OperationRemark"; - this.OperationRemarkColumn.HeaderText = "鎵嬫湳澶囨敞"; - this.OperationRemarkColumn.Name = "OperationRemarkColumn"; - this.OperationRemarkColumn.ReadOnly = true; - // - // OperationLevelNameColumn - // - this.OperationLevelNameColumn.DataPropertyName = "OperationLevelName"; - this.OperationLevelNameColumn.HeaderText = "鎵嬫湳鍒嗙骇"; - this.OperationLevelNameColumn.Name = "OperationLevelNameColumn"; - this.OperationLevelNameColumn.ReadOnly = true; - // - // ApplyOperationCutTypeNameColumn - // - this.ApplyOperationCutTypeNameColumn.DataPropertyName = "ApplyOperationCutTypeName"; - this.ApplyOperationCutTypeNameColumn.HeaderText = "鍒囧彛绫诲瀷"; - this.ApplyOperationCutTypeNameColumn.Name = "ApplyOperationCutTypeNameColumn"; - this.ApplyOperationCutTypeNameColumn.ReadOnly = true; - // - // ApplyOperationPositionNameColumn - // - this.ApplyOperationPositionNameColumn.DataPropertyName = "ApplyOperationPositionName"; - this.ApplyOperationPositionNameColumn.HeaderText = "鎵嬫湳閮ㄤ綅"; - this.ApplyOperationPositionNameColumn.Name = "ApplyOperationPositionNameColumn"; + this.ApplyOperationInfoNameColumn.Width = 150; // // AnaesthesiaMethodNameColumn // @@ -599,130 +727,64 @@ this.AnaesthesiaMethodNameColumn.Name = "AnaesthesiaMethodNameColumn"; this.AnaesthesiaMethodNameColumn.ReadOnly = true; // - // ContagionColumn + // ApplyOperationPositionNameColumn // - this.ContagionColumn.DataPropertyName = "Contagion"; - this.ContagionColumn.HeaderText = "鏈墠鎰熸煋绛涙煡"; - this.ContagionColumn.Name = "ContagionColumn"; + this.ApplyOperationPositionNameColumn.DataPropertyName = "ApplyOperationPositionName"; + this.ApplyOperationPositionNameColumn.HeaderText = "鎵嬫湳閮ㄤ綅"; + this.ApplyOperationPositionNameColumn.Name = "ApplyOperationPositionNameColumn"; + this.ApplyOperationPositionNameColumn.Width = 80; // - // OperationDoctorColumn + // OperationLevelNameColumn // - this.OperationDoctorColumn.DataPropertyName = "OperationDoctor"; - this.OperationDoctorColumn.HeaderText = "鏈"; - this.OperationDoctorColumn.Name = "OperationDoctorColumn"; - this.OperationDoctorColumn.ReadOnly = true; + this.OperationLevelNameColumn.DataPropertyName = "OperationLevelName"; + this.OperationLevelNameColumn.HeaderText = "鎵嬫湳鍒嗙骇"; + this.OperationLevelNameColumn.Name = "OperationLevelNameColumn"; + this.OperationLevelNameColumn.ReadOnly = true; + this.OperationLevelNameColumn.Width = 80; // - // Assistant1Column + // ApplyOperationCutTypeNameColumn // - this.Assistant1Column.DataPropertyName = "Assistant1"; - this.Assistant1Column.HeaderText = "涓鍔"; - this.Assistant1Column.Name = "Assistant1Column"; - // - // Assistant2Column - // - this.Assistant2Column.DataPropertyName = "Assistant2"; - this.Assistant2Column.HeaderText = "浜屽姪"; - this.Assistant2Column.Name = "Assistant2Column"; - this.Assistant2Column.ReadOnly = true; - // - // Assistant3Column - // - this.Assistant3Column.DataPropertyName = "Assistant3"; - this.Assistant3Column.HeaderText = "涓夊姪"; - this.Assistant3Column.Name = "Assistant3Column"; - // - // InternColumn - // - this.InternColumn.DataPropertyName = "Intern"; - this.InternColumn.HeaderText = "杩涗慨瀹炰範鐢"; - this.InternColumn.Name = "InternColumn"; - // - // OtherColumn - // - this.OtherColumn.DataPropertyName = "Other"; - this.OtherColumn.HeaderText = "鍏朵粬浜哄憳"; - this.OtherColumn.Name = "OtherColumn"; - this.OtherColumn.ReadOnly = true; - // - // ApplyTimeColumn - // - this.ApplyTimeColumn.DataPropertyName = "ApplyTime"; - this.ApplyTimeColumn.HeaderText = "鐢宠鏃堕棿"; - this.ApplyTimeColumn.Name = "ApplyTimeColumn"; - // - // ApplyOperatorNameColumn - // - this.ApplyOperatorNameColumn.DataPropertyName = "ApplyOperatorName"; - this.ApplyOperatorNameColumn.HeaderText = "鐢宠浜"; - this.ApplyOperatorNameColumn.Name = "ApplyOperatorNameColumn"; - this.ApplyOperatorNameColumn.ReadOnly = true; - // - // VerifyTimeColumn - // - this.VerifyTimeColumn.DataPropertyName = "VerifyTime"; - this.VerifyTimeColumn.HeaderText = "瀹℃牳鏃堕棿"; - this.VerifyTimeColumn.Name = "VerifyTimeColumn"; - this.VerifyTimeColumn.ReadOnly = true; - // - // VerifyOperatorNameColumn - // - this.VerifyOperatorNameColumn.DataPropertyName = "VerifyOperatorName"; - this.VerifyOperatorNameColumn.HeaderText = "瀹℃牳鍖荤敓"; - this.VerifyOperatorNameColumn.Name = "VerifyOperatorNameColumn"; - this.VerifyOperatorNameColumn.ReadOnly = true; - // - // PlanOperationTimeColumn - // - this.PlanOperationTimeColumn.DataPropertyName = "PlanOperationTime"; - this.PlanOperationTimeColumn.HeaderText = "鎷熷畾鎵嬫湳鏃堕棿"; - this.PlanOperationTimeColumn.Name = "PlanOperationTimeColumn"; - this.PlanOperationTimeColumn.ReadOnly = true; - // - // OperationRoomColumn - // - this.OperationRoomColumn.DataPropertyName = "OperationRoom"; - this.OperationRoomColumn.HeaderText = "鎵嬫湳闂"; - this.OperationRoomColumn.Name = "OperationRoomColumn"; - this.OperationRoomColumn.ReadOnly = true; + this.ApplyOperationCutTypeNameColumn.DataPropertyName = "ApplyOperationCutTypeName"; + this.ApplyOperationCutTypeNameColumn.HeaderText = "鍒囧彛绫诲瀷"; + this.ApplyOperationCutTypeNameColumn.Name = "ApplyOperationCutTypeNameColumn"; + this.ApplyOperationCutTypeNameColumn.ReadOnly = true; + this.ApplyOperationCutTypeNameColumn.Width = 80; // // AnesthesiaDoctorColumn // this.AnesthesiaDoctorColumn.DataPropertyName = "AnesthesiaDoctor"; - this.AnesthesiaDoctorColumn.HeaderText = "楹婚唹鍖荤敓"; + this.AnesthesiaDoctorColumn.HeaderText = "楹婚唹"; this.AnesthesiaDoctorColumn.Name = "AnesthesiaDoctorColumn"; - // - // InstrumentNurseColumn - // - this.InstrumentNurseColumn.DataPropertyName = "InstrumentNurse"; - this.InstrumentNurseColumn.HeaderText = "鍣ㄦ鎶ゅ+"; - this.InstrumentNurseColumn.Name = "InstrumentNurseColumn"; + this.AnesthesiaDoctorColumn.Width = 60; // // TourNurseColumn // this.TourNurseColumn.DataPropertyName = "TourNurse"; - this.TourNurseColumn.HeaderText = "宸″洖鎶ゅ+"; + this.TourNurseColumn.HeaderText = "宸″洖"; this.TourNurseColumn.Name = "TourNurseColumn"; + this.TourNurseColumn.Width = 60; // - // AnesthesiaDoctorSucceedColumn + // InstrumentNurseColumn // - this.AnesthesiaDoctorSucceedColumn.DataPropertyName = "AnesthesiaDoctorSucceed"; - this.AnesthesiaDoctorSucceedColumn.HeaderText = "楹婚唹鎺ュ彴"; - this.AnesthesiaDoctorSucceedColumn.Name = "AnesthesiaDoctorSucceedColumn"; - this.AnesthesiaDoctorSucceedColumn.ReadOnly = true; + this.InstrumentNurseColumn.DataPropertyName = "InstrumentNurse"; + this.InstrumentNurseColumn.HeaderText = "鍣ㄦ"; + this.InstrumentNurseColumn.Name = "InstrumentNurseColumn"; + this.InstrumentNurseColumn.Width = 60; // - // InstrumentNurseSucceedColumn + // OperationRoomColumn // - this.InstrumentNurseSucceedColumn.DataPropertyName = "InstrumentNurseSucceed"; - this.InstrumentNurseSucceedColumn.HeaderText = "鍣ㄦ鎺ュ彴"; - this.InstrumentNurseSucceedColumn.Name = "InstrumentNurseSucceedColumn"; - this.InstrumentNurseSucceedColumn.ReadOnly = true; + this.OperationRoomColumn.DataPropertyName = "OperationRoom"; + this.OperationRoomColumn.HeaderText = "鏈棿"; + this.OperationRoomColumn.Name = "OperationRoomColumn"; + this.OperationRoomColumn.ReadOnly = true; + this.OperationRoomColumn.Width = 40; // - // TourNurseSucceedColumn + // PlanOrder // - this.TourNurseSucceedColumn.DataPropertyName = "TourNurseSucceed"; - this.TourNurseSucceedColumn.HeaderText = "宸″洖鎺ュ彴"; - this.TourNurseSucceedColumn.Name = "TourNurseSucceedColumn"; - this.TourNurseSucceedColumn.ReadOnly = true; + this.PlanOrder.DataPropertyName = "PlanOrder"; + this.PlanOrder.HeaderText = "鍙版"; + this.PlanOrder.Name = "PlanOrder"; + this.PlanOrder.Width = 40; // // RemarkColumn // @@ -779,56 +841,62 @@ private System.Windows.Forms.ToolStripButton tsbAuditing; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripButton tsbDelete; - private System.Windows.Forms.DataGridViewCheckBoxColumn CheckBoxColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyId; - private System.Windows.Forms.DataGridViewTextBoxColumn MdrecNoColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ArchivesNoColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDepNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientKindColume; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn BirthDayColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn HeightColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn WeightColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn BloodTypeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn RHBloodTypeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn IlldistrictColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn SickBedColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OrderOperationTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationTimeLeightColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn StateColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn IsReturnOperationColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn IsPlanReturnOperationColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDiagnoseInfoNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn DiagnoseRemarkColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationInfoNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationRemarkColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationLevelNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationCutTypeNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationPositionNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ContagionColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctorColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant1Column; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant2Column; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant3Column; - private System.Windows.Forms.DataGridViewTextBoxColumn InternColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OtherColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperatorNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn VerifyTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn VerifyOperatorNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn PlanOperationTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationRoomColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctorColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn InstrumentNurseColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn TourNurseColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctorSucceedColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn InstrumentNurseSucceedColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn TourNurseSucceedColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn RemarkColumn; public System.Windows.Forms.ToolStripSeparator toolStripSeparator2; public System.Windows.Forms.ToolStripButton tsbExit; + private System.Windows.Forms.CheckBox CHK10; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn16; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn25; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn26; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn27; + private System.Windows.Forms.DataGridViewCheckBoxColumn CheckBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyId; + private System.Windows.Forms.DataGridViewTextBoxColumn StateColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDepNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn SickBedColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn MdrecNoColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn Age; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyTimeColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn OrderOperationTimeColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperatorNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctorColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn Assistant1Column; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDiagnoseInfoNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationInfoNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationPositionNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationLevelNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationCutTypeNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctorColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn TourNurseColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn InstrumentNurseColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationRoomColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn PlanOrder; + private System.Windows.Forms.DataGridViewTextBoxColumn RemarkColumn; } } \ No newline at end of file diff --git a/AIMS/OperationFront/frmOperationApply.cs b/AIMS/OperationFront/frmOperationApply.cs index ee09979..cff4cf9 100644 --- a/AIMS/OperationFront/frmOperationApply.cs +++ b/AIMS/OperationFront/frmOperationApply.cs @@ -1,5 +1,7 @@ 锘縰sing AIMSBLL; using AIMSModel; +using DevComponents.DotNetBar; +using DevComponents.DotNetBar.Controls; using System; using System.Collections.Generic; using System.ComponentModel; @@ -46,6 +48,23 @@ namespace AIMS.OperationFront.UI if (AIMSExtension.PublicMethod.RoleId == 5) cboDepartment.Text = BDepartment.GetModel(AIMSExtension.PublicMethod.DepId).Name; + LoadDataRescue(); + } + private System.Windows.Forms.Timer timerLoadRescue; + + public void LoadDataRescue() + { + timerLoadRescue = new System.Windows.Forms.Timer(); + timerLoadRescue.Enabled = true;//璋冭瘯鏃惰缃负FALSE 锛 + timerLoadRescue.Interval = 100; + timerLoadRescue.Tick -= timerLoadRescue_Tick; + timerLoadRescue.Tick += timerLoadRescue_Tick; + timerLoadRescue.Start(); + } + private void timerLoadRescue_Tick(object sender, EventArgs e) + { + timerLoadRescue.Dispose(); + btnFind_Click(null, null); } private void tsbAdd_Click(object sender, EventArgs e) @@ -77,33 +96,47 @@ namespace AIMS.OperationFront.UI } void frmOperationApplyDetail_FormClosed(object sender, FormClosedEventArgs e) - { - btnFind_Click(null, null); + { } private void btnFind_Click(object sender, EventArgs e) { DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd 00:00:00"), dtpEndDate.Value.ToString("yyyy-MM-dd 23:59:59")); string dept = ""; - if (cboDepartment.Text!="" && cboDepartment.Text!="鍏ㄩ儴绉戝") + if (cboDepartment.Text != "" && cboDepartment.Text != "鍏ㄩ儴绉戝") { -dept = " and ApplyDepName LIKE '%" + cboDepartment.Text + "%' "; + dept = " and ApplyDepName LIKE '%" + cboDepartment.Text + "%' "; + } + DataTable Newdt = new DataTable(); + if (CHK10.Checked) + { + Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, " StateId=10 " + dept + "AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", ""); + } + else + { + Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, " StateId>0 " + dept + "AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", ""); } - DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "State IN ('宸茬敵璇','宸插鏍') "+dept+"AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", ""); dgv.DataSource = Newdt; for (int i = 0; i < dgv.Rows.Count; i++) { if (dgv.Rows[i].Cells["OperationTypeColumn"].Value.ToString() == "鎬ヨ瘖") - { - dgv.Rows[i].DefaultCellStyle.BackColor = Color.LightSalmon; - } - if (dgv.Rows[i].Cells["OperationTypeColumn"].Value.ToString() == "鐗规") { dgv.Rows[i].DefaultCellStyle.BackColor = Color.Red; } } } - + private void dgv_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, + e.RowBounds.Location.Y, + dgv.RowHeadersWidth - 4, + e.RowBounds.Height); + TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(), + dgv.RowHeadersDefaultCellStyle.Font, + rectangle, + dgv.RowHeadersDefaultCellStyle.ForeColor, + TextFormatFlags.VerticalCenter | TextFormatFlags.Right); + } private void tsbSet_Click(object sender, EventArgs e) { } diff --git a/AIMS/OperationFront/frmOperationApply.resx b/AIMS/OperationFront/frmOperationApply.resx index 4efebb8..d59b55d 100644 --- a/AIMS/OperationFront/frmOperationApply.resx +++ b/AIMS/OperationFront/frmOperationApply.resx @@ -120,22 +120,25 @@ 17, 17 + + 17, 17 + True True - - True - - + True True - + + True + + True @@ -144,70 +147,19 @@ True - - True - - - True - - - True - - - True - - - True - - - True - - + True True + + True + True - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - + True @@ -216,52 +168,37 @@ True - + True - + True - + True - + True - + True - - True - - - True - - - True - - - True - - + True True - - True - True - + True - + True - + True diff --git a/AIMS/OperationFront/frmOperationSchedulePlan.cs b/AIMS/OperationFront/frmOperationSchedulePlan.cs index 87c39e0..833ba0d 100644 --- a/AIMS/OperationFront/frmOperationSchedulePlan.cs +++ b/AIMS/OperationFront/frmOperationSchedulePlan.cs @@ -240,6 +240,8 @@ namespace AIMS.OperationFront.UI private DataGridViewTextBoxColumn OperationType; private DataGridViewTextBoxColumn Contagion; private GridColumn gridColumn2; + private Button btnDataCente; + private Label label4; private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpSearchTime; /// @@ -461,7 +463,6 @@ namespace AIMS.OperationFront.UI this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.panlemian = new System.Windows.Forms.Panel(); - this.lblcount = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label(); @@ -488,6 +489,7 @@ namespace AIMS.OperationFront.UI this.colDel = new DevComponents.DotNetBar.SuperGrid.GridColumn(); this.gridColumn2 = new DevComponents.DotNetBar.SuperGrid.GridColumn(); this.panel1 = new System.Windows.Forms.Panel(); + this.lblcount = new System.Windows.Forms.Label(); this.btnWorkPlan = new System.Windows.Forms.Button(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.取消排程通过ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -579,6 +581,8 @@ namespace AIMS.OperationFront.UI this.dataGridViewTextBoxColumn46 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn47 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn48 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.btnDataCente = new System.Windows.Forms.Button(); + this.label4 = new System.Windows.Forms.Label(); this.navigationPane1.SuspendLayout(); this.navigationPanePanel1.SuspendLayout(); this.groupBoxsel.SuspendLayout(); @@ -764,7 +768,7 @@ namespace AIMS.OperationFront.UI this.dgvApplyOrDoctor.DefaultCellStyle = dataGridViewCellStyle9; this.dgvApplyOrDoctor.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvApplyOrDoctor.EnableHeadersVisualStyles = false; - this.dgvApplyOrDoctor.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); + this.dgvApplyOrDoctor.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); this.dgvApplyOrDoctor.Location = new System.Drawing.Point(0, 89); this.dgvApplyOrDoctor.Name = "dgvApplyOrDoctor"; this.dgvApplyOrDoctor.ReadOnly = true; @@ -2116,18 +2120,6 @@ namespace AIMS.OperationFront.UI this.panlemian.Size = new System.Drawing.Size(1051, 277); this.panlemian.TabIndex = 465; // - // lblcount - // - this.lblcount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblcount.AutoSize = true; - this.lblcount.Font = new System.Drawing.Font("微软雅黑", 15F); - this.lblcount.Location = new System.Drawing.Point(548, 5); - this.lblcount.Name = "lblcount"; - this.lblcount.Size = new System.Drawing.Size(45, 27); - this.lblcount.TabIndex = 501; - this.lblcount.Text = "0/0"; - this.lblcount.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - // // label15 // this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); @@ -2250,6 +2242,7 @@ namespace AIMS.OperationFront.UI this.dgvDetail.TabIndex = 1; this.dgvDetail.Text = "superGridControl1"; this.dgvDetail.CellClick += new System.EventHandler(this.sgcDetail_CellClick); + this.dgvDetail.CellMouseUp += new System.EventHandler(this.dgvDetail_CellMouseUp); this.dgvDetail.ColumnHeaderClick += new System.EventHandler(this.sgcDetail_ColumnHeaderClick); this.dgvDetail.RowActivated += new System.EventHandler(this.sgcDetail_RowActivated); this.dgvDetail.RowHeaderClick += new System.EventHandler(this.sgcDetail_RowHeaderClick); @@ -2302,7 +2295,6 @@ namespace AIMS.OperationFront.UI this.colTable.ColumnSortMode = DevComponents.DotNetBar.SuperGrid.ColumnSortMode.None; this.colTable.HeaderText = "台"; this.colTable.Name = "Table"; - this.colTable.ReadOnly = true; this.colTable.SortIndicator = DevComponents.DotNetBar.SuperGrid.SortIndicator.None; this.colTable.Width = 30; // @@ -2312,7 +2304,6 @@ namespace AIMS.OperationFront.UI this.colPatient.ColumnSortMode = DevComponents.DotNetBar.SuperGrid.ColumnSortMode.None; this.colPatient.HeaderText = "患者"; this.colPatient.Name = "Patient"; - this.colPatient.ReadOnly = true; this.colPatient.SortIndicator = DevComponents.DotNetBar.SuperGrid.SortIndicator.None; // // colHospitalNo @@ -2337,7 +2328,6 @@ namespace AIMS.OperationFront.UI this.colOperateDoctor.ColumnSortMode = DevComponents.DotNetBar.SuperGrid.ColumnSortMode.None; this.colOperateDoctor.HeaderText = "手术医生"; this.colOperateDoctor.Name = "OperateDoctor"; - this.colOperateDoctor.ReadOnly = true; this.colOperateDoctor.SortIndicator = DevComponents.DotNetBar.SuperGrid.SortIndicator.None; this.colOperateDoctor.Width = 60; // @@ -2363,7 +2353,6 @@ namespace AIMS.OperationFront.UI this.colOperationTime.ColumnSortMode = DevComponents.DotNetBar.SuperGrid.ColumnSortMode.None; this.colOperationTime.HeaderText = "手术时间"; this.colOperationTime.Name = "OperationTime"; - this.colOperationTime.ReadOnly = true; this.colOperationTime.SortIndicator = DevComponents.DotNetBar.SuperGrid.SortIndicator.None; this.colOperationTime.Width = 60; // @@ -2375,7 +2364,6 @@ namespace AIMS.OperationFront.UI this.colAnesthesiaDoctor.ColumnSortMode = DevComponents.DotNetBar.SuperGrid.ColumnSortMode.None; this.colAnesthesiaDoctor.HeaderText = "麻醉医生"; this.colAnesthesiaDoctor.Name = "AnesthesiaDoctor"; - this.colAnesthesiaDoctor.ReadOnly = true; this.colAnesthesiaDoctor.SortIndicator = DevComponents.DotNetBar.SuperGrid.SortIndicator.None; this.colAnesthesiaDoctor.Width = 90; // @@ -2385,7 +2373,6 @@ namespace AIMS.OperationFront.UI this.colInstrumentNurse.ColumnSortMode = DevComponents.DotNetBar.SuperGrid.ColumnSortMode.None; this.colInstrumentNurse.HeaderText = "洗手护士"; this.colInstrumentNurse.Name = "InstrumentNurse"; - this.colInstrumentNurse.ReadOnly = true; this.colInstrumentNurse.SortIndicator = DevComponents.DotNetBar.SuperGrid.SortIndicator.None; this.colInstrumentNurse.Width = 75; // @@ -2395,7 +2382,6 @@ namespace AIMS.OperationFront.UI this.colTourNurse.ColumnSortMode = DevComponents.DotNetBar.SuperGrid.ColumnSortMode.None; this.colTourNurse.HeaderText = "巡回护士"; this.colTourNurse.Name = "TourNurse"; - this.colTourNurse.ReadOnly = true; this.colTourNurse.SortIndicator = DevComponents.DotNetBar.SuperGrid.SortIndicator.None; this.colTourNurse.Width = 75; // @@ -2404,7 +2390,6 @@ namespace AIMS.OperationFront.UI this.colRemarks.ColumnSortMode = DevComponents.DotNetBar.SuperGrid.ColumnSortMode.None; this.colRemarks.HeaderText = "备注"; this.colRemarks.Name = "Remarks"; - this.colRemarks.ReadOnly = true; this.colRemarks.SortIndicator = DevComponents.DotNetBar.SuperGrid.SortIndicator.None; this.colRemarks.Width = 50; // @@ -2428,6 +2413,8 @@ namespace AIMS.OperationFront.UI // panel1 // this.panel1.BackColor = System.Drawing.Color.Transparent; + this.panel1.Controls.Add(this.btnDataCente); + this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.lblcount); this.panel1.Controls.Add(this.btnWorkPlan); this.panel1.Controls.Add(this.button3); @@ -2447,6 +2434,18 @@ namespace AIMS.OperationFront.UI this.panel1.Size = new System.Drawing.Size(1051, 39); this.panel1.TabIndex = 0; // + // lblcount + // + this.lblcount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.lblcount.AutoSize = true; + this.lblcount.Font = new System.Drawing.Font("微软雅黑", 15F); + this.lblcount.Location = new System.Drawing.Point(655, 4); + this.lblcount.Name = "lblcount"; + this.lblcount.Size = new System.Drawing.Size(45, 27); + this.lblcount.TabIndex = 501; + this.lblcount.Text = "0/0"; + this.lblcount.TextAlign = System.Drawing.ContentAlignment.BottomCenter; + // // btnWorkPlan // this.btnWorkPlan.BackColor = System.Drawing.Color.Transparent; @@ -3419,6 +3418,34 @@ namespace AIMS.OperationFront.UI this.dataGridViewTextBoxColumn48.HeaderText = "类别"; this.dataGridViewTextBoxColumn48.Name = "dataGridViewTextBoxColumn48"; // + // btnDataCente + // + this.btnDataCente.BackColor = System.Drawing.Color.Transparent; + this.btnDataCente.ContextMenuStrip = this.contextMenuStrip1; + this.btnDataCente.Dock = System.Windows.Forms.DockStyle.Left; + this.btnDataCente.FlatAppearance.BorderSize = 0; + this.btnDataCente.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnDataCente.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnDataCente.Location = new System.Drawing.Point(552, 0); + this.btnDataCente.Name = "btnDataCente"; + this.btnDataCente.Size = new System.Drawing.Size(78, 39); + this.btnDataCente.TabIndex = 503; + this.btnDataCente.Text = "数据中心"; + this.btnDataCente.UseVisualStyleBackColor = false; + this.btnDataCente.Click += new System.EventHandler(this.btnDataCente_Click); + // + // label4 + // + this.label4.BackColor = System.Drawing.Color.Transparent; + this.label4.Dock = System.Windows.Forms.DockStyle.Left; + this.label4.Font = new System.Drawing.Font("微软雅黑", 11F); + this.label4.Location = new System.Drawing.Point(542, 0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(10, 39); + this.label4.TabIndex = 502; + this.label4.Text = "|\r\n"; + this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // // frmOperationSchedulePlan // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -3606,18 +3633,6 @@ namespace AIMS.OperationFront.UI else { btnpass.Visible = false; label1.Visible = false; } - operationRooms = BOperationRoom.Select(" IsValid=1 and Site='手术室' order by [RoomOrder]", null, RecursiveType.None, 0); - - SSSDept = BDepartment.Select(" NAME ='手术室' and IsValid=1 ", null, RecursiveType.None, 0); - MZKDept = BDepartment.Select(" NAME ='麻醉科' and IsValid=1 ", null, RecursiveType.None, 0); - if ((MZKDept == null || MZKDept.Count <= 0) && SSSDept != null) MZKDept = SSSDept; - - - txtQuery.Visible = true; - comboBoxExRoom.Visible = false; - RoomCardManage.SelectDgv = dgvApplyOrDoctor; - RoomCardManage.OnDataSaved = marksManager_OnDataSaved; - FirstLoad(); } catch (Exception ex) @@ -3634,22 +3649,21 @@ namespace AIMS.OperationFront.UI } #endregion - #region 加载手术室页面中控件的数量 - private System.Windows.Forms.Timer timerLoadRescue; + #region 加载手术室页面中控件的数量 public void FirstLoad() { - timerLoadRescue = new System.Windows.Forms.Timer(components); - timerLoadRescue.Enabled = true;//调试时设置为FALSE , - timerLoadRescue.Interval = 100; - timerLoadRescue.Tick -= timerLoadRescue_Tick; - timerLoadRescue.Tick += timerLoadRescue_Tick; - timerLoadRescue.Start(); - } - private void timerLoadRescue_Tick(object sender, EventArgs e) - { - timerLoadRescue.Dispose(); + operationRooms = BOperationRoom.Select(" IsValid=1 and Site='手术室' order by [RoomOrder]", null, RecursiveType.None, 0); + SSSDept = BDepartment.Select(" NAME ='手术室' and IsValid=1 ", null, RecursiveType.None, 0); + MZKDept = BDepartment.Select(" NAME ='麻醉科' and IsValid=1 ", null, RecursiveType.None, 0); + if ((MZKDept == null || MZKDept.Count <= 0) && SSSDept != null) MZKDept = SSSDept; + + + txtQuery.Visible = true; + comboBoxExRoom.Visible = false; + RoomCardManage.SelectDgv = dgvApplyOrDoctor; + RoomCardManage.OnDataSaved = marksManager_OnDataSaved; //目前先加载单手术室 后期扩展 //0.加载手术间列表 1 //1.加载选项卡手术间对应手术记录1 @@ -4137,30 +4151,19 @@ namespace AIMS.OperationFront.UI DialogResult ddr = frmStop.ShowDialog(); if (ddr == System.Windows.Forms.DialogResult.OK) { - outMsg = string.Format("{2} 停止 患者:{0} 手术:{1} 成功!", grCurrentSub.Cells["Patient"].Value, grCurrentSub.Cells["OperationName"].Value, RoomCardManage.lastSelectOpeRoom.operationRoom.Name); - RoomCardManage.WriteMsg(rtbLog, outMsg); LoadSelectDate(""); - LoadOperationInfo(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value); - dgvDetail.PrimaryGrid.Rows.Remove(grCurrentSub); + selApply = null; + RoomCardManage.SelectIds = null; + if (grCurrentSub != null) + { + BOperationApply.UpdteOperationOrder(dtpSearchTime.Value, RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value); + outMsg = string.Format("{2} 停止 患者:{0} 手术:{1} 成功!", grCurrentSub.Cells["Patient"].Value, grCurrentSub.Cells["OperationName"].Value, RoomCardManage.lastSelectOpeRoom.operationRoom.Name); + RoomCardManage.WriteMsg(rtbLog, outMsg); + LoadOperationInfoDgv(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value); + dgvDetail.PrimaryGrid.Rows.Remove(grCurrentSub); + } + } - //if (MessageBox.Show("您确定要停止该手术?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - //{ - // try - // { - // BOperationApply.UpdateApplyState(int.Parse(selApply), 10); - - // outMsg = string.Format("{2} 停止 患者:{0} 手术:{1} 成功!", grCurrentSub.Cells["Patient"].Value, grCurrentSub.Cells["OperationName"].Value, RoomCardManage.lastSelectOpeRoom.operationRoom.Name); - // RoomCardManage.WriteMsg(rtbLog, outMsg); - // LoadSelectDate(""); - // LoadOperationInfo(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value); - // dgvDetail.PrimaryGrid.Rows.Remove(grCurrentSub); - // } - // catch (Exception ex) - // { - // MessageBox.Show("作废失败!" + ex.Message); - // } - - //} } @@ -4437,18 +4440,10 @@ namespace AIMS.OperationFront.UI BOperationApply.UpdteOperationOrder(dtpSearchTime.Value, RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value); RoomCardManage.WriteMsg(rtbLog, outMsg); LoadSelectDate(""); - //LoadOperationInfo(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value); - LoadOperationInfoDgv(CurrentRoom); + LoadOperationInfoDgv(RoomCardManage.lastSelectOpeRoom.operationRoom.Id.Value); } #endregion } - else if (e.GridCell.GridColumn.Name == "OperationName" || e.GridCell.GridColumn.Name == "BedNo") - { - if (e.GridPanel.DefaultRowHeight == oldGridHight) - e.GridPanel.DefaultRowHeight = 0; - else - e.GridPanel.DefaultRowHeight = oldGridHight; - } } } private List lstOrderStr = new List { "台", "患者", "住院号", "床号", "手术医生", "手术名称", "手术时间" }; @@ -4750,5 +4745,37 @@ namespace AIMS.OperationFront.UI } #endregion + private void dgvDetail_CellMouseUp(object sender, GridCellMouseEventArgs e) + { + if (e.Button != System.Windows.Forms.MouseButtons.Left) return; + if (e.GridPanel.DefaultRowHeight == oldGridHight) + e.GridPanel.DefaultRowHeight = 0; + else + e.GridPanel.DefaultRowHeight = oldGridHight; + } + + private void btnDataCente_Click(object sender, EventArgs e) + { + if (selApply == null || selApply == "") return; + OperationApply opeapply = BOperationApply.SelectSingle(int.Parse(selApply), RecursiveType.None, 0); + OrisPatient pat = BOrisPatient.SelectSingle(opeapply.OrisPatientId, RecursiveType.None, 0); + if (PublicMethod.GetHospitalName().Contains("秦皇岛")) + { + try + { + string patientId = "orcl:LDQ:5:1:0:" + pat.HisPatientId + ":" + pat.VisitTimes + ""; + Process myprocess = new Process(); + ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\APPSOFT\zlSoftCISInterface.exe", patientId); + PublicMethod.WriteLog(new Exception(@"C:\APPSOFT\zlSoftCISInterface.exe" + patientId)); + myprocess.StartInfo = startInfo; + myprocess.StartInfo.UseShellExecute = false; + myprocess.Start(); + } + catch (Exception ex) + { + MessageBox.Show(@"在C:\APPSOFT\zlSoftCISInterface.exe路径下找不到“zlSoftCISInterface.exe”"); + } + } + } } } \ No newline at end of file diff --git a/AIMS/OperationFront/frmOperationSchedulePlan.resx b/AIMS/OperationFront/frmOperationSchedulePlan.resx index e875429..ee35023 100644 --- a/AIMS/OperationFront/frmOperationSchedulePlan.resx +++ b/AIMS/OperationFront/frmOperationSchedulePlan.resx @@ -251,7 +251,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+ - CAAAAk1TRnQBSQFMAgEBAgEAAZwBEwGcARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + CAAAAk1TRnQBSQFMAgEBAgEAAbwBEwG8ARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA diff --git a/AIMS/OperationFront/frmSelectiveOperationsPrint.cs b/AIMS/OperationFront/frmSelectiveOperationsPrint.cs index 65670a5..698a23a 100644 --- a/AIMS/OperationFront/frmSelectiveOperationsPrint.cs +++ b/AIMS/OperationFront/frmSelectiveOperationsPrint.cs @@ -28,8 +28,7 @@ namespace AIMS.OperationFront.UI } private void QuietOperationRecordSheet_Load(object sender, EventArgs e) - { - if (beginTime == null || dt == null) beginTime = DateTime.Now; + { dtpTime.Value = beginTime; cboOperationRoom.SelectedIndexChanged += new EventHandler(cboOperationRoom_SelectedIndexChanged); } diff --git a/AIMS/OperationFront/frmStopOperation.cs b/AIMS/OperationFront/frmStopOperation.cs index 91ed174..c32717b 100644 --- a/AIMS/OperationFront/frmStopOperation.cs +++ b/AIMS/OperationFront/frmStopOperation.cs @@ -33,7 +33,7 @@ namespace AIMS.OperationFront.UI return; } - if (tsbCancel.Text == " 鍋滄鐢宠") + if (tsbCancel.Text.Trim() == "鍋滄鐢宠") { try { diff --git a/AIMS/OremrUserControl/UCPatientPhysiology.cs b/AIMS/OremrUserControl/UCPatientPhysiology.cs index af72d50..bf4aef1 100644 --- a/AIMS/OremrUserControl/UCPatientPhysiology.cs +++ b/AIMS/OremrUserControl/UCPatientPhysiology.cs @@ -20,6 +20,7 @@ namespace AIMS.OremrUserControl get { return lblRoom.Text; } set { lblRoom.Text = value; } } + public string OperationRoomIp; public string PatientName { get { return lblName.Text; } diff --git a/AIMS/OremrUserControl/UCPatientPhysiology.designer.cs b/AIMS/OremrUserControl/UCPatientPhysiology.designer.cs index 6ab83ff..cd96f94 100644 --- a/AIMS/OremrUserControl/UCPatientPhysiology.designer.cs +++ b/AIMS/OremrUserControl/UCPatientPhysiology.designer.cs @@ -72,7 +72,7 @@ // // panel1 // - this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(2)))), ((int)(((byte)(198)))), ((int)(((byte)(150))))); + this.panel1.BackColor = System.Drawing.Color.Transparent; this.panel1.Controls.Add(this.lblRoom); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); @@ -82,7 +82,7 @@ // // lblRoom // - this.lblRoom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.lblRoom.BackColor = System.Drawing.Color.CornflowerBlue; this.lblRoom.Dock = System.Windows.Forms.DockStyle.Fill; this.lblRoom.Font = new System.Drawing.Font("寰蒋闆呴粦", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblRoom.Location = new System.Drawing.Point(0, 0); diff --git a/AIMSEntity/BLL/Extension/BOperationApply.cs b/AIMSEntity/BLL/Extension/BOperationApply.cs index 5bf4eab..3872a3a 100644 --- a/AIMSEntity/BLL/Extension/BOperationApply.cs +++ b/AIMSEntity/BLL/Extension/BOperationApply.cs @@ -50,7 +50,7 @@ namespace AIMSBLL public static DataTable GetOperationFrontDataTable(string BegInData, string EndData) { return DOperationApply.GetOperationFrontDataTable(BegInData, EndData); - } + } public static DataTable GetOperationFrontDataTableByPlanOperationTime(string BegInData, string EndData) { return DOperationApply.GetOperationFrontDataTableByPlanOperationTime(BegInData, EndData); @@ -103,7 +103,7 @@ namespace AIMSBLL } public static void UpdteOperationOrder(DateTime dtpSearchTime, int operationRoom) { - DataTable _operationInfoRows = DOperationApply.SelectPlanedOpe(" PlanOperationTime<='" + dtpSearchTime.ToString("yyyy-MM-dd 23:59:59") + "' and PlanOperationTime>='" + dtpSearchTime.ToString("yyyy-MM-dd 00:00:00") + "' and OperationRoomId=" + operationRoom + " order by PlanOrder asc"); + DataTable _operationInfoRows = DOperationApply.SelectPlanedOpe(" PlanOperationTime<='" + dtpSearchTime.ToString("yyyy-MM-dd 23:59:59") + "' and PlanOperationTime>='" + dtpSearchTime.ToString("yyyy-MM-dd 00:00:00") + "' and State<>'10' and OperationRoomId=" + operationRoom + " order by PlanOrder asc"); if (_operationInfoRows.Rows.Count > 0) { for (int index = 0; index < _operationInfoRows.Rows.Count; index++) diff --git a/AIMSEntity/DAL/Extension/DOperationApply.cs b/AIMSEntity/DAL/Extension/DOperationApply.cs index 1727c1d..c6d4275 100644 --- a/AIMSEntity/DAL/Extension/DOperationApply.cs +++ b/AIMSEntity/DAL/Extension/DOperationApply.cs @@ -268,7 +268,7 @@ namespace AIMSDAL "of1.DiagnoseRemark, of1.ApplyOperationInfoName, of1.OperationRemark," + "of1.OperationLevelName, of1.ApplyOperationCutTypeName," + "of1.ApplyOperationPositionName, of1.AnaesthesiaMethodName, of1.Contagion," + - "of1.OperationDoctor,[dbo].[fun_getPY](of1.OperationDoctor) OperationDoctorcode, of1.Assistant1, of1.Assistant2, of1.Assistant3," + + "of1.OperationDoctor,[dbo].[fun_getPY](of1.OperationDoctor) OperationDoctorcode, of1.Assistant1, of1.Assistant2, of1.Assistant3, isnull(of1.Assistant1,'')+isnull(' '+of1.Assistant2,'')+ isnull(' '+of1.Assistant3,'')Assistants," + "of1.Intern, of1.Other, of1.ApplyTime, of1.ApplyOperatorName," + "of1.VerifyTime, of1.VerifyOperatorName," + "of1.PlanOperationTime, of1.OperationRoom, of1.OperationRoomId, of1.AnesthesiaDoctor," + @@ -277,7 +277,7 @@ namespace AIMSDAL "FROM V_OperationFront of1 WHERE of1.OrderOperationTime>='" + BegInData + "' and of1.OrderOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc"; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } - + public static DataTable GetOperationFrontDataTableByPlanOperationTime(string BegInData, string EndData) { string strSql = "SELECT of1.ApplyId,of1.PatientId, of1.MdrecNo, of1.ArchivesNo, of1.PatientName,of1.ApplyDepName, of1.PatientKind," + diff --git a/AIMSEntity/Extensions/SelectPatient.cs b/AIMSEntity/Extensions/SelectPatient.cs index aac0e14..624d4bf 100644 --- a/AIMSEntity/Extensions/SelectPatient.cs +++ b/AIMSEntity/Extensions/SelectPatient.cs @@ -23,14 +23,15 @@ namespace AIMSBLL public static DataTable GetRelieveLockingPatientDataTable(DateTime BeginDate, string Room) { - string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.InRoomTime PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom ,of1.Contagion,of1.OrderOperationTime FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of2.State in( '鎵嬫湳涓','鎵嬫湳缁撴潫','鍋滄鎵嬫湳') and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1"; + string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.InRoomTime PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom ,of1.Contagion,of1.OrderOperationTime,of2.AnaesthesiaMethodName,of2.InRoomTime FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of2.State in( '鎵嬫湳涓','鎵嬫湳缁撴潫','鍋滄鎵嬫湳') and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1"; if (Room != "" && Room != "-1") strSql += " and of1.OperationRoomId='" + Room + "'"; strSql += " order by [StateId] asc"; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } - public static DataTable GetTodayDoOpePatientDataTable(DateTime BeginDate) + public static DataTable GetTodayDoOpePatientDataTable(DateTime BeginDate, string Room="") { - string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.InRoomTime PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom ,of1.Contagion FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of2.State in( '鎵嬫湳涓') and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1"; + string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.InRoomTime PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom ,of1.Contagion,of1.OrderOperationTime,of2.AnaesthesiaMethodName,of2.InRoomTime FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of2.State in( '鎵嬫湳涓' ) and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1 "; + if (Room != "" && Room != "-1") strSql += " and of1.OperationRoomId='" + Room + "'"; strSql += " order by [StateId] asc"; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } @@ -75,12 +76,13 @@ namespace AIMSBLL public static DataTable GetSelectPatientChart() { - string strSql = "select * from (select CONVERT(nvarchar(7), InRoomTime,120) dat, SUM(ROUND((DATEDIFF(minute, OperationBeginTime, OperationEndTime)) / CONVERT(FLOAT, 60), 1)) AS DiffDate from V_OperationDoing group by CONVERT(nvarchar(7), InRoomTime, 120) ) a order by dat Asc "; + string strSql = "select * from (select CONVERT(nvarchar(7), InRoomTime,120) dat, SUM(ROUND((DATEDIFF(minute, InRoomTime, OutRoomTime)) / CONVERT(FLOAT, 60), 1)) AS DiffDate from OperationRecord where State=2 group by CONVERT(nvarchar(7),InRoomTime , 120) ) a order by dat Asc "; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } - public static DataTable GetSelectPatientChart2() + public static DataTable GetSelectPatientChart2(DateTime dateTime) { - string strSql = "select * from (select CONVERT(nvarchar(7), InRoomTime,120) dat,COUNT(*) con from V_OperationDoing group by CONVERT(nvarchar(7), InRoomTime,120) ) a order by dat Asc "; + string strSql = @"SELECT DeptName dat,COUNT(*) con FROM(SELECT dp.Name DeptName FROM OperationRecord red left join OperationApply oa on oa.Id=red.OperationApplyId + left join Department dp on dp.Id=oa.ApplyDepId WHERE CONVERT(nvarchar(7), InRoomTime, 120)='"+dateTime.ToString("yyyy-MM")+"' And red.[State] = 2 ) temp GROUP BY DeptName "; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } diff --git a/AIMSExtension/AIMSExtension.csproj b/AIMSExtension/AIMSExtension.csproj index 455ede8..6c6b89d 100644 --- a/AIMSExtension/AIMSExtension.csproj +++ b/AIMSExtension/AIMSExtension.csproj @@ -56,6 +56,7 @@ + diff --git a/AIMSExtension/BrowserHelper.cs b/AIMSExtension/BrowserHelper.cs new file mode 100644 index 0000000..c9f3d39 --- /dev/null +++ b/AIMSExtension/BrowserHelper.cs @@ -0,0 +1,211 @@ +锘縰sing Microsoft.Win32; +using System; +using System.Diagnostics; +using System.IO; +using System.Windows.Forms; + +namespace AIMSExtension +{ + public class BrowserHelper + { + + /// + /// 璋冪敤绯荤粺娴忚鍣ㄦ墦寮缃戦〉 + /// http://m.jb51.net/article/44622.htm + /// http://www.2cto.com/kf/201412/365633.html + /// + /// 鎵撳紑缃戦〉鐨勯摼鎺 + public static void OpenBrowserUrlChrome(string url) + { + try + { + // 64浣嶆敞鍐岃〃璺緞 + var openKey = @"SOFTWARE\Wow6432Node\Google\Chrome"; + if (IntPtr.Size == 4) + { + // 32浣嶆敞鍐岃〃璺緞 + openKey = @"SOFTWARE\Google\Chrome"; + } + RegistryKey appPath = Registry.LocalMachine.OpenSubKey(openKey); + // 璋锋瓕娴忚鍣ㄥ氨鐢ㄨ胺姝屾墦寮锛屾病鎵惧埌灏辩敤绯荤粺榛樿鐨勬祻瑙堝櫒 + // 璋锋瓕鍗歌浇浜嗭紝娉ㄥ唽琛ㄨ繕娌℃湁娓呯┖锛岀▼搴忎細杩斿洖涓涓"绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆"鐨刡ug + if (appPath != null) + { + var result = Process.Start("chrome.exe", url); + if (result == null) + { + OpenIe(url); + } + } + else + { + OpenDefaultBrowserUrl(url); + } + + //var result = Process.Start("C:\\Google\\chrome.exe", url); + //if (result == null) + //{ + // OpenIe(url); + //} + } + catch + { + // 鍑洪敊璋冪敤鐢ㄦ埛榛樿璁剧疆鐨勬祻瑙堝櫒锛岃繕涓嶈灏辫皟鐢↖E + OpenDefaultBrowserUrl(url); + } + } + + /// + /// 璋冪敤绯荤粺娴忚鍣ㄦ墦寮缃戦〉 + /// http://m.jb51.net/article/44622.htm + /// http://www.2cto.com/kf/201412/365633.html + /// + /// 鎵撳紑缃戦〉鐨勯摼鎺 + public static void OpenBrowserUrl(string url) + { + try + { + //// 64浣嶆敞鍐岃〃璺緞 + //var openKey = @"SOFTWARE\Wow6432Node\Google\Chrome"; + //if (IntPtr.Size == 4) + //{ + // // 32浣嶆敞鍐岃〃璺緞 + // openKey = @"SOFTWARE\Google\Chrome"; + //} + //RegistryKey appPath = Registry.LocalMachine.OpenSubKey(openKey); + //// 璋锋瓕娴忚鍣ㄥ氨鐢ㄨ胺姝屾墦寮锛屾病鎵惧埌灏辩敤绯荤粺榛樿鐨勬祻瑙堝櫒 + //// 璋锋瓕鍗歌浇浜嗭紝娉ㄥ唽琛ㄨ繕娌℃湁娓呯┖锛岀▼搴忎細杩斿洖涓涓"绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆"鐨刡ug + //if (appPath != null) + //{ + // var result = Process.Start("chrome.exe", url); + // if (result == null) + // { + // OpenIe(url); + // } + //} + //else + //{ + // OpenDefaultBrowserUrl(url); + //} + + var result = Process.Start("C:\\Google\\chrome.exe", url); + if (result == null) + { + OpenIe(url); + } + } + catch + { + // 鍑洪敊璋冪敤鐢ㄦ埛榛樿璁剧疆鐨勬祻瑙堝櫒锛岃繕涓嶈灏辫皟鐢↖E + OpenDefaultBrowserUrl(url); + } + } + + /// + /// 鐢↖E鎵撳紑娴忚鍣 + /// + /// + public static void OpenIe(string url) + { + try + { + Process.Start("iexplore.exe", url); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + // IE娴忚鍣ㄨ矾寰勫畨瑁咃細C:\Program Files\Internet Explorer + // at System.Diagnostics.process.StartWithshellExecuteEx(ProcessStartInfo startInfo)娉ㄦ剰杩欎釜閿欒 + try + { + if (File.Exists(@"C:\Program Files\Internet Explorer\iexplore.exe")) + { + ProcessStartInfo processStartInfo = new ProcessStartInfo + { + FileName = @"C:\Program Files\Internet Explorer\iexplore.exe", + Arguments = url, + UseShellExecute = false, + CreateNoWindow = true + }; + Process.Start(processStartInfo); + } + else + { + if (File.Exists(@"C:\Program Files (x86)\Internet Explorer\iexplore.exe")) + { + ProcessStartInfo processStartInfo = new ProcessStartInfo + { + FileName = @"C:\Program Files (x86)\Internet Explorer\iexplore.exe", + Arguments = url, + UseShellExecute = false, + CreateNoWindow = true + }; + Process.Start(processStartInfo); + } + else + { + if (MessageBox.Show("绯荤粺鏈畨瑁匢E娴忚鍣紝鏄惁涓嬭浇瀹夎锛", null, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes) + { + // 鎵撳紑涓嬭浇閾炬帴锛屼粠寰蒋瀹樼綉涓嬭浇 + OpenDefaultBrowserUrl("http://windows.microsoft.com/zh-cn/internet-explorer/download-ie"); + } + } + } + } + catch (Exception exception) + { + MessageBox.Show(exception.Message); + } + } + } + + /// + /// 鎵撳紑绯荤粺榛樿娴忚鍣紙鐢ㄦ埛鑷繁璁剧疆浜嗛粯璁ゆ祻瑙堝櫒锛 + /// + /// + public static void OpenDefaultBrowserUrl(string url) + { + try + { + // 鏂规硶1 + //浠庢敞鍐岃〃涓鍙栭粯璁ゆ祻瑙堝櫒鍙墽琛屾枃浠惰矾寰 + RegistryKey key = Registry.ClassesRoot.OpenSubKey(@"http\shell\open\command\"); + if (key != null) + { + string s = key.GetValue("").ToString(); + //s灏辨槸浣犵殑榛樿娴忚鍣紝涓嶈繃鍚庨潰甯︿簡鍙傛暟锛屾妸瀹冩埅鍘伙紝涓嶈繃闇瑕佹敞鎰忕殑鏄細涓嶅悓鐨勬祻瑙堝櫒鍚庨潰鐨勫弬鏁颁笉涓鏍凤紒 + //"D:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- "%1" + var lastIndex = s.IndexOf(".exe", StringComparison.Ordinal); + var path = s.Substring(1, lastIndex + 3); + var result = Process.Start(path, url); + if (result == null) + { + // 鏂规硶2 + // 璋冪敤绯荤粺榛樿鐨勬祻瑙堝櫒 + var result1 = Process.Start("explorer.exe", url); + if (result1 == null) + { + // 鏂规硶3 + Process.Start(url); + } + } + } + else + { + // 鏂规硶2 + // 璋冪敤绯荤粺榛樿鐨勬祻瑙堝櫒 + var result1 = Process.Start("explorer.exe", url); + if (result1 == null) + { + // 鏂规硶3 + Process.Start(url); + } + } + } + catch + { + OpenIe(url); + } + } + } +} diff --git a/DocumentManagement/DocumentEntity/DocumentExtension.cs b/DocumentManagement/DocumentEntity/DocumentExtension.cs index 9997077..fce8947 100644 --- a/DocumentManagement/DocumentEntity/DocumentExtension.cs +++ b/DocumentManagement/DocumentEntity/DocumentExtension.cs @@ -82,9 +82,15 @@ namespace DocumentManagement if (onepriceText != null && CountText != null && PriceText != null) if (onepriceText.Text != "" && CountText.Text != "") { - double num = double.Parse(CountText.Text); - double oneprice = double.Parse(onepriceText.Text); - PriceText.Text = (num * oneprice).ToString(); + try + { + double num = double.Parse(CountText.Text.Trim()); + double oneprice = double.Parse(onepriceText.Text); + PriceText.Text = (num * oneprice).ToString(); + } + catch (Exception) + { + } } } @@ -97,8 +103,14 @@ namespace DocumentManagement && (x as XTextInputFieldElement).ID == "field" + i).FirstOrDefault(); if (PriceText.Text != "") { - double price = double.Parse(PriceText.Text); - Result += price; + try + { + double price = double.Parse(PriceText.Text); + Result += price; + } + catch (Exception) + { + } } } return Result; diff --git a/DrawGraph/AreaManage/SelectDictText.cs b/DrawGraph/AreaManage/SelectDictText.cs index e5aa212..5940284 100644 --- a/DrawGraph/AreaManage/SelectDictText.cs +++ b/DrawGraph/AreaManage/SelectDictText.cs @@ -184,11 +184,17 @@ namespace DrawGraph } public static void Hidden(bool isShow = false) { - if (aEdit != null) + try { - aEdit.CControl.Parent.Controls.Remove(dgvZd); - dgvZd.Visible = false; - //aEdit.IsVisible =false; + if (aEdit != null) + { + aEdit.CControl.Parent.Controls.Remove(dgvZd); + dgvZd.Visible = false; + //aEdit.IsVisible =false; + } + } + catch (Exception) + { } } diff --git a/DrawGraph/AreaManage/SelectDictValue.cs b/DrawGraph/AreaManage/SelectDictValue.cs index bf676ab..90b757a 100644 --- a/DrawGraph/AreaManage/SelectDictValue.cs +++ b/DrawGraph/AreaManage/SelectDictValue.cs @@ -194,11 +194,17 @@ namespace DrawGraph } public static void Hidden(bool isShow = false) { - if (aEdit != null) + try { - aEdit.CControl.Parent.Controls.Remove(dgvZd); - dgvZd.Visible = false; - aEdit.IsVisible = false; + if (aEdit != null) + { + aEdit.CControl.Parent.Controls.Remove(dgvZd); + dgvZd.Visible = false; + aEdit.IsVisible = false; + } + } + catch (Exception) + { } } diff --git a/DrawGraph/AreaManage/SelectWorkerValue.cs b/DrawGraph/AreaManage/SelectWorkerValue.cs index 0a46166..d476d6f 100644 --- a/DrawGraph/AreaManage/SelectWorkerValue.cs +++ b/DrawGraph/AreaManage/SelectWorkerValue.cs @@ -205,11 +205,17 @@ namespace DrawGraph } public static void Hidden(bool isShow = false) { - if (aEdit != null) + try { - aEdit.CControl.Parent.Controls.Remove(dgvZd); - dgvZd.Visible = false; - aEdit.IsVisible = false; + if (aEdit != null) + { + aEdit.CControl.Parent.Controls.Remove(dgvZd); + dgvZd.Visible = false; + aEdit.IsVisible = false; + } + } + catch (Exception) + { } }