public dr_pre_addvisit CreatePreAddVisit(dr_pre_addvisit info, out string error) { error = string.Empty; try { dr_addvisit_DA da = new dr_addvisit_DA(); da.CreatePreAddVisit(info, out error); return info; } catch (Exception ex) { error += Share.BaseTool.FormatExceptionMessage(ex); return null; } }
/// <summary> /// 对出诊表各个字段查询 /// </summary> /// <param name="hospital_id"></param> /// <param name="drid"></param> /// <param name="visit_date1"></param> /// <param name="visit_date2"></param> /// <param name="visit_time"></param> /// <param name="service_type"></param> /// <param name="status"></param> /// <param name="createtime1"></param> /// <param name="createtime2"></param> /// <param name="orderby">顺序 降序</param> /// <param name="orderbyCol">排序字段,传入dr_addvisit的字段,不需要前缀</param> /// <param name="pageIndex"></param> /// <param name="pageSize"></param> /// <param name="error"></param> /// <returns>null则出错</returns> public List<dr_addvisit> SearchAddVisitList(int hospital_id, int drid, DateTime? visit_date1, DateTime? visit_date2, string visit_time, int service_type, int status, DateTime? createtime1, DateTime? createtime2, orderbyEnum? orderby, string orderbyCol, int pageIndex, int pageSize, out string error) { error = string.Empty; try { dr_addvisit_DA da = new dr_addvisit_DA(); var resultList = da.SearchVisitList(hospital_id, drid, visit_date1, visit_date2, visit_time, service_type, status, createtime1, createtime2, orderby, orderbyCol, pageIndex, pageSize, out error); return resultList; } catch (Exception ex) { error += BaseTool.FormatExceptionMessage(ex); return null; } }
public List<dr_pre_addvisit> SearchPreAddVisitList(int drid, int visit_id, int patient_id, DateTime? pre_date1, DateTime? pre_date2, string pre_time, int pre_type, DateTime? createtime1, DateTime? createtime2, int status, DateTime? visit_date1, DateTime? visit_date2, orderbyEnum? orderby, string orderbyCol, int pageIndex, int pageSize, out string error) { error = string.Empty; try { dr_addvisit_DA da = new dr_addvisit_DA(); var resultList = da.SearchPreAddVisitList(drid, visit_id, patient_id, pre_date1, pre_date2, pre_time, pre_type, createtime1, createtime2, status, visit_date1, visit_date2, orderby, orderbyCol, pageIndex, pageSize, out error); return resultList; } catch (Exception ex) { error += BaseTool.FormatExceptionMessage(ex); return null; } }
public List<dr_pre_addvisit> GetPreAddVisitListByVisitID(int visitID) { dr_addvisit_DA da = new dr_addvisit_DA(); var resultList = da.GetPreAddVisitListByVisitID(visitID); return resultList; }