private void initButtonGroup(bool isEdit) { this.tbAddOrder.Enabled = !isEdit; this.tbSaveOrder.Enabled = isEdit; this.tbRefresh.Enabled = !isEdit; this.tbExitOrder.Enabled = isEdit; this.isEditGroup = isEdit; //{EB959BC4-9120-478a-B527-74A1D7EF4C9E} this.tbComboOrder.Enabled = isEdit; this.tbCancelOrder.Enabled = isEdit; if (isEdit) //开立 { if (tvGroup == null) { tvGroup = new Neusoft.HISFC.Components.Common.Controls.tvDoctorGroup(); tvGroup.Type = Neusoft.HISFC.Components.Common.Controls.enuType.Order; tvGroup.Init(); tvGroup.SelectOrder += new Neusoft.HISFC.Components.Common.Controls.SelectOrderHandler(tvGroup_SelectOrder); } tvGroup.Dock = DockStyle.Fill; tvGroup.Visible = true; this.tvNursePatientList1.Visible = false; this.panelTree.Controls.Add(tvGroup); } else { this.tvNursePatientList1.Visible = true; if (tvGroup != null) { tvGroup.Visible = false; } } }
private void initButton(bool isDisign) { this.tbGroup.Enabled = !isDisign; tbRefresh.Enabled = !isDisign; this.tbAddOrder.Enabled = !isDisign; this.tbComboOrder.Enabled = isDisign; this.tbCancelOrder.Enabled = isDisign; this.tbCheck.Enabled = isDisign; //this.tbOperation.Enabled = false; this.tbOperation.Enabled = isDisign; this.tbAssayCure.Enabled = isDisign; this.tbDelOrder.Enabled = isDisign; this.tbExitOrder.Enabled = isDisign; this.tbFilter.Enabled = !isDisign; this.tbQueryOrder.Enabled = !isDisign; this.tbSaveOrder.Enabled = isDisign; this.tsbHerbal.Enabled = isDisign; //{D5517722-7128-4d0c-BBC4-1A5558A39A03} this.tbChooseDoct.Enabled = isDisign; if (isDisign) //开立 { if (tvGroup == null) { tvGroup = new Neusoft.HISFC.Components.Common.Controls.tvDoctorGroup(); tvGroup.Type = Neusoft.HISFC.Components.Common.Controls.enuType.Order; tvGroup.Init(); tvGroup.SelectOrder += new Neusoft.HISFC.Components.Common.Controls.SelectOrderHandler(tvGroup_SelectOrder); } tvGroup.Dock = DockStyle.Fill; tvGroup.Visible = true; this.tvDoctorPatientList1.Visible = false; this.panelTree.Controls.Add(tvGroup); //{D5517722-7128-4d0c-BBC4-1A5558A39A03} //判断当前人员是否医生 if (((Neusoft.HISFC.Models.Base.Employee)Neusoft.FrameWork.Management.Connection.Operator).EmployeeType.ID.ToString() == Neusoft.HISFC.Models.Base.EnumEmployeeType.D.ToString()) { this.tbChooseDoct.Enabled = false; } else { this.tbChooseDoct.Enabled = true; } #region {190B18B2-9CF0-4b44-BB93-63A15387AD0B} if (this.ucOrder1.OrderType == Neusoft.HISFC.Models.Order.EnumType.LONG) { this.tsbHerbal.Enabled = false; this.tbOperation.Enabled = false; } #endregion } else { this.tvDoctorPatientList1.Visible = true; if (tvGroup != null) { tvGroup.Visible = false; } } }
private void initButtonGroup(bool isEdit) { this.tbAddOrder.Enabled = !isEdit; this.tbSaveOrder.Enabled = isEdit; this.tbRefresh.Enabled = !isEdit; this.tbExitOrder.Enabled = isEdit; this.isEditGroup = isEdit; //{EB959BC4-9120-478a-B527-74A1D7EF4C9E} this.tbComboOrder.Enabled = isEdit; this.tbCancelOrder.Enabled = isEdit; //{74E478F5-BDDD-4637-9F5A-E251AF9AA72F} this.tbRetidyOrder.Enabled = !isEdit; if (isEdit) //开立 { if (tvGroup == null) { tvGroup = new Neusoft.HISFC.Components.Common.Controls.tvDoctorGroup(); tvGroup.Type = Neusoft.HISFC.Components.Common.Controls.enuType.Order; tvGroup.Init(); tvGroup.SelectOrder += new Neusoft.HISFC.Components.Common.Controls.SelectOrderHandler(tvGroup_SelectOrder); } tvGroup.Dock = DockStyle.Fill; tvGroup.Visible = true; this.tbDelOrder.Enabled = isEdit;//{11F97F55-F747-4ad9-A74F-086635D5EBD9} this.tvDoctorPatientList1.Visible = false; this.panelTree.Controls.Add(tvGroup); } else { this.tvDoctorPatientList1.Visible = true; if (tvGroup != null) { tvGroup.Visible = false; } } }