/// <summary> /// 窗体加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MedicalRecordList_Load(object sender, EventArgs e) { try { InitializeParameters(); InitializeGrid(); DrectSoft.Common.DS_Common.CancelMenu(this.panelHead, contextMenuStrip1); ComponentCommand.InitializeDepartment(ref this.lookUpEditorDepartment, ref this.lookUpWindowDepartment); lookUpEditorDepartment.CodeValue = m_app.User.CurrentDeptId; lookUpEditorDepartment.Enabled = false; ComponentCommand.InitializeDiagnosis(ref this.lookUpEditorDiagnosis, ref this.lookUpWindowDoctor); ComponentCommand.InitializeOperation(ref this.lookUpEditorOperation, ref this.lookUpWindowOperation); //this.lookUpWindowLock ComponentCommand.InitializeDoctor(ref this.lookUpEditorDoctor, ref this.lookUpWindowDoctor); //add by ck 2013-8-26 this.txtName.Focus(); this.rdbtnOutPat.Checked = true;//默认勾中出院的 if (!isdeptManager(m_app.User.CurrentDeptId, m_app.User.Id)) { btnCancleCom.Visible = false; btnCancleQC.Visible = false; btnQc.Visible = false; } } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
/// <summary> /// 初始化病人姓名 /// </summary> //private void InitName() //{ // try // { // this.lookUpWindowName.SqlHelper = SqlUtil.App.SqlHelper; // DataTable Name = SqlUtil.App.SqlHelper.ExecuteDataTable("usp_GetMedicalRrecordViewFrm", // new SqlParameter[] { new SqlParameter("@GetType", "4") }, CommandType.StoredProcedure); // Name.Columns["ID"].Caption = "病人编号"; // Name.Columns["NAME"].Caption = "病人姓名"; // Dictionary<string, int> cols = new Dictionary<string, int>(); // cols.Add("ID", 60); // cols.Add("NAME", 90); // SqlWordbook nameWordBook = new SqlWordbook("queryname", Name, "ID", "NAME", cols, "ID//NAME//PY//WB"); // this.txt_patiName.SqlWordbook = nameWordBook; // } // catch (Exception ex) // { // throw new Exception(ex.Message); // } //} /// <summary> /// 初始化住院号 /// </summary> //private void IntiRecordID() //{ // try // { // this.lookUpWindowRecordID.SqlHelper = SqlUtil.App.SqlHelper; // DataTable RecordID = SqlUtil.App.SqlHelper.ExecuteDataTable("usp_GetMedicalRrecordViewFrm", // new SqlParameter[] { new SqlParameter("@GetType", "5") }, CommandType.StoredProcedure); // RecordID.Columns["ID"].Caption = "住院号"; // Dictionary<string, int> cols = new Dictionary<string, int>(); // cols.Add("ID", 120); // SqlWordbook recordIDWordBook = new SqlWordbook("queryrecordid", RecordID, "ID", "ID", cols, "ID"); // this.txt_recordID.SqlWordbook = recordIDWordBook; // } // catch (Exception ex) // { // throw new Exception(ex.Message); // } //} #endregion /// <summary> /// 初始化诊断 /// </summary> private void InitDiag() { try { ComponentCommand.InitializeDiagnosis(ref this.lookUpEditorInDiag, ref this.lookUpWindowInDiag); ComponentCommand.InitializeDiagnosis(ref this.lookUpEditorOutDiag, ref this.lookUpWindowOutDiag); } catch (Exception ex) { throw new Exception(ex.Message); } }
public MedicalRecordApply() { try { InitializeComponent(); InitializeParameters(); InitializeGrid(); m_readMaxTime = ComponentCommand.GetReadTime(); m_readMax = ComponentCommand.GetApplyLimit(); labelLimit.Text = "注:最大不超过 " + m_readMaxTime + "天;" + "批次申请选择记录数不超过" + m_readMax + "条"; this.txtTimes.Properties.MaxValue = m_readMaxTime; m_sUser = ComponentCommand.GetCurrentDoctor(); ComponentCommand.InitializeDepartment(ref this.lookUpEditorDepartment, ref this.lookUpWindowDepartment); ComponentCommand.InitializeDiagnosis(ref this.lookUpEditorDiagnosis, ref this.lookUpWindowDiagnosis); //ComponentCommand.InitializePurpose(ref this.lookUpEditorPurpose, ref this.lookUpWindowPurpose); } catch (Exception) { throw; } }
/// <summary> /// 窗体加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MedicalRecordList_Load(object sender, EventArgs e) { try { InitializeParameters(); InitializeGrid(); DrectSoft.Common.DS_Common.CancelMenu(this.panelHead, contextMenuStrip1); ComponentCommand.InitializeDepartment(ref this.lookUpEditorDepartment, ref this.lookUpWindowDepartment); ComponentCommand.InitializeDiagnosis(ref this.lookUpEditorDiagnosis, ref this.lookUpWindowDoctor); ComponentCommand.InitializeOperation(ref this.lookUpEditorOperation, ref this.lookUpWindowOperation); //this.lookUpWindowLock // ComponentCommand.InitializeDoctor(ref this.lookUpEditorDoctor, ref this.lookUpWindowDoctor); //add by ck 2013-8-26 this.txtName.Focus(); this.rdbtnOutPat.Checked = true;//默认勾中出院的 } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
public MedicalRecordApply(IEmrHost app) { try { InitializeComponent(); InitializeParameters(); InitializeGrid(); m_readMaxTime = ComponentCommand.GetReadTime(); m_readMax = ComponentCommand.GetApplyLimit(); labelLimit.Text = "天(*)最大不超过: " + m_readMaxTime + "天;" + "批次申请选择记录数不超过:" + m_readMax + "条"; m_sUser = ComponentCommand.GetCurrentDoctor(); SqlUtil.App = app; ComponentCommand.InitializeDepartment(ref this.lookUpEditorDepartment, ref this.lookUpWindowDepartment); ComponentCommand.InitializeDiagnosis(ref this.lookUpEditorDiagnosis, ref this.lookUpWindowDiagnosis); // ComponentCommand.InitializePurpose(ref this.lookUpEditorPurpose, ref this.lookUpWindowPurpose); } catch (Exception) { throw; } }