PatListDac.cs.svn-base 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using CLIP.eForm.Consent.Entity;
  2. using CLIP.eForm.Server.Data;
  3. using IBatisNet.DataMapper;
  4. using System;
  5. using System.Collections;
  6. using System.Collections.Generic;
  7. namespace CLIP.eForm.Consent.Dac {
  8. //class FormCategoryDac
  9. public class PatListDac : DacBase {
  10. public IList<PatListVO> GetPatList(ISqlMapper mapper, Hashtable param) {
  11. IList<PatListVO> result = null;
  12. String flag = (String) param["selectFlag"];
  13. String deviceType = (String) param["deviceType"];
  14. if (flag.Equals("I")) {
  15. //입원환자 리스트
  16. return mapper.QueryForList<PatListVO>("getInPatList", param);
  17. } else if (flag.Equals("O")) {
  18. //외래환자 리스트
  19. return mapper.QueryForList<PatListVO>("getOutPatList", param);
  20. } else if (flag.Equals("OP")) {
  21. //수술환자 리스트
  22. return mapper.QueryForList<PatListVO>("getOpPatList", param);
  23. } else if (flag.Equals("ER")) {
  24. //응급실환자 리스트
  25. return mapper.QueryForList<PatListVO>("getErPatList", param);
  26. } else if (flag.Equals("EX")) {
  27. if (deviceType.Equals("PC")) {
  28. return mapper.QueryForList<PatListVO>("getExPatientListPC", param);
  29. } else {
  30. return mapper.QueryForList<PatListVO>("getExPatientList", param);
  31. }
  32. } else {
  33. return result;
  34. }
  35. }
  36. public IList<PatInfoListVO> GetSrchPatInfo(ISqlMapper mapper, Hashtable param) {
  37. return mapper.QueryForList<PatInfoListVO>("getSrchPatInfo", param);
  38. }
  39. public IList<DeptListVO> GetDeptList(ISqlMapper mapper, Hashtable param) {
  40. return mapper.QueryForList<DeptListVO>("getDeptList", param);
  41. }
  42. public IList<DeptListVO> GetWardList(ISqlMapper mapper, Hashtable param) {
  43. return mapper.QueryForList<DeptListVO>("getWardList", param);
  44. }
  45. public IList<DocListVO> GetDocList(ISqlMapper mapper, Hashtable param) {
  46. return mapper.QueryForList<DocListVO>("getDocList", param);
  47. }
  48. public IList<DeptListVO> GetSupportDeptList(ISqlMapper mapper, Hashtable param) {
  49. return mapper.QueryForList<DeptListVO>("getSupportDeptList", param);
  50. }
  51. public IList<InspectionVO> GetInspectingRoomName(ISqlMapper mapper, Hashtable param) {
  52. return mapper.QueryForList<InspectionVO>("getInspectingRoomName", param);
  53. }
  54. }
  55. }