public static MediCenter GetApply(MediType meditype) { switch (meditype) { case MediType.检查: medicenter = new CheckApply(); break; case MediType.检验: medicenter = new TestApply(); break; case MediType.治疗: medicenter = new CureApply(); break; default: return(null); } return(medicenter); }
/// <summary> /// 获得一段时间内的申请报告 /// </summary> /// <param name="patlistid"></param> /// <param name="meditype"></param> /// <param name="Bdate"></param> /// <param name="Edate"></param> /// <returns></returns> public DataTable GetOrders(int patlistid, MediType meditype, DateTime?Bdate, DateTime?Edate) { return(ApplyFactory.GetApply(meditype).GetOrders(patlistid, Bdate, Edate)); }
/// <summary> /// 获得项目名称 /// </summary> /// <param name="meditype"></param> /// <param name="deptId"></param> /// <param name="medicalClass"></param> /// <returns></returns> public DataTable GetItems(MediType meditype, int deptId, int medicalClass) { return(ApplyFactory.GetApply(meditype).GetItems(deptId, medicalClass)); }
/// <summary> /// 获得科室相应的项目类型 /// </summary> /// <param name="meditype"></param> /// <returns></returns> public DataTable GetMediType(MediType meditype) { return(ApplyFactory.GetApply(meditype).GetMediType()); }
/// <summary> /// 删除申请 /// </summary> /// <param name="meditype"></param> /// <returns></returns> public bool DelApply(MediType meditype, HIS.Model.ZY_DOC_ORDERRECORD record) { return(ApplyFactory.GetApply(meditype).DelApply(record)); }