using CLIP.eForm.Consent.Entity; using CLIP.eForm.Server.Data; using IBatisNet.DataMapper; using System; using System.Collections; using System.Collections.Generic; namespace CLIP.eForm.Consent.Dac { //class FormCategoryDac public class PatListDac : DacBase { public IList GetPatList(ISqlMapper mapper, Hashtable param) { IList result = null; String flag = (String) param["selectFlag"]; String deviceType = (String) param["deviceType"]; if (flag.Equals("I")) { //입원환자 리스트 return mapper.QueryForList("getInPatList", param); } else if (flag.Equals("O")) { //외래환자 리스트 return mapper.QueryForList("getOutPatList", param); } else if (flag.Equals("OP")) { //수술환자 리스트 return mapper.QueryForList("getOpPatList", param); } else if (flag.Equals("ER")) { //응급실환자 리스트 return mapper.QueryForList("getErPatList", param); } else if (flag.Equals("EX")) { if (deviceType.Equals("PC")) { return mapper.QueryForList("getExPatientListPC", param); } else { return mapper.QueryForList("getExPatientList", param); } } else { return result; } } public IList GetSrchPatInfo(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("getSrchPatInfo", param); } public IList GetDeptList(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("getDeptList", param); } public IList GetWardList(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("getWardList", param); } public IList GetDocList(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("getDocList", param); } public IList GetSupportDeptList(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("getSupportDeptList", param); } public IList GetInspectingRoomName(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("getInspectingRoomName", param); } } }