protected override Neusoft.FrameWork.WinForms.Forms.ToolBarService OnInit(object sender, object neuObject, object param) { //***************获得病床列表************* empl = Neusoft.FrameWork.Management.Connection.Operator as Neusoft.HISFC.Models.Base.Employee; NurseCell = empl.Nurse.Clone(); //根据护士站得到科室信息{D375AB84-33F8-4198-80BE-5245206E3077} ArrayList alDepts = manager.QueryDepartment(empl.Nurse.ID); try { //取医生列表 ArrayList al = new ArrayList(); foreach (Neusoft.FrameWork.Models.NeuObject dept in alDepts) { al.AddRange(manager.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D, dept.ID)); } ArrayList alTemp = manager.GetEmployeeByZhu(empl.Dept.ID); for (int i = 0; i < alTemp.Count; i++) { Neusoft.HISFC.Models.Base.Employee emplObj = alTemp[i] as Neusoft.HISFC.Models.Base.Employee; if (!this.IsExit(emplObj, al)) { al.Add(emplObj); } } //加载住院医生列表 this.cmbDoc.AddItems(al); //加载主治医生列表 this.cmbAttendingDoc.AddItems(al); //加载主任医生列表 this.cmbConsultingDoc.AddItems(al); //加载责任护士列表 this.cmbAdmittingNur.AddItems(manager.QueryNurse(empl.Nurse.ID)); //加载科主任列表 this.cmbDirector.AddItems(al); //加载床位列表 if (this.arrivetype == ArriveType.ChangeDoc) { //换医生时,显示全部床位 this.cmbBedNo.AddItems(manager.QueryBedList(empl.Nurse.ID)); } else { //接珍时,只显示空床 this.cmbBedNo.AddItems(manager.QueryUnoccupiedBed(empl.Nurse.ID)); } this.cmbDoc.IsListOnly = true; this.cmbBedNo.IsListOnly = true; this.cmbAdmittingNur.IsListOnly = true; this.cmbAttendingDoc.IsListOnly = true; this.cmbConsultingDoc.IsListOnly = true; this.cmbDirector.IsListOnly = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } return(null); }