/// <summary> /// 按科室获得各类型人员列表 /// </summary> /// <param name="type">人员类型编码</param> /// <param name="deptcode">科室编码</param> /// <returns></returns> public ArrayList GetEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType type, string deptcode) { #region 接口说明 //获得各类型人员列表 //Manager.Person.GetEmployee.2 //传入:0 type 人员类型 ,1 dept 科室id //传出:人员信息 #endregion string strSql = ""; if (this.Sql.GetSql("Manager.Person.GetEmployee.2", ref strSql) == 0) { try { strSql = string.Format(strSql, type, deptcode); } catch (Exception ex) { this.Err = ex.Message; this.ErrCode = ex.Message; return(null); } } else { return(null); } return(this.myPersonQuery(strSql)); }
/// <summary> /// 设置领送人 /// </summary> /// <param name="isAllEmployee">所有人员 设置为True时 employeeType参数无意义</param> /// <param name="personType">人员类别</param> /// <returns>成功返回1 失败返回-1</returns> public int SetTargetPerson(bool isAllEmployee, Neusoft.HISFC.Models.Base.EnumEmployeeType personType) { this.alTargetPerson.Clear(); this.lnbTargetPerson.Visible = true; this.cmbTargetPerson.Visible = true; Neusoft.HISFC.BizLogic.Manager.Person managerIntegrate = new Neusoft.HISFC.BizLogic.Manager.Person(); if (isAllEmployee) { this.alTargetPerson = managerIntegrate.GetEmployeeAll(); } else { this.alTargetPerson = managerIntegrate.GetEmployee(personType); } if (this.alTargetPerson == null) { MessageBox.Show("根据人员类别获取人员列表发生错误" + managerIntegrate.Err); return(-1); } if (this.isSetDefaultTargetPerson) { if (this.targetPerson.ID == "") { if (this.alTargetPerson.Count > 0) { if (this.localTargetPerson != null && this.localTargetPerson.ID != "") { this.TargetPerson = this.localTargetPerson; this.localTargetPerson = null; } else { this.TargetPerson = this.alTargetPerson[0] as Neusoft.FrameWork.Models.NeuObject; } } } } return(1); }
/// <summary> /// 获得排班专家的人员列表 /// </summary> /// <param name="emplType"></param> /// <param name="deptcode"></param> /// <returns></returns> public ArrayList QueryEmployeeForScama(Neusoft.HISFC.Models.Base.EnumEmployeeType emplType, string deptcode) { this.SetDB(manangerPerson); return(manangerPerson.GetEmployeeForScama(emplType, deptcode)); }
/// <summary> /// 根据人员类型获得人员列表 /// </summary> /// <param name="emplType">人员类型枚举</param> /// <returns>人员列表</returns> public ArrayList QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType emplType) { this.SetDB(manangerPerson); return(manangerPerson.GetEmployee(emplType)); }