PatListDac.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. if (flag.Equals("I"))//입원환자 리스트
  14. {
  15. return mapper.QueryForList<PatListVO>("getInPatList", param);
  16. } else if (flag.Equals("O"))//외래환자 리스트
  17. {
  18. return mapper.QueryForList<PatListVO>("getOutPatList", param);
  19. } else if (flag.Equals("OP"))//수술환자 리스트
  20. {
  21. return mapper.QueryForList<PatListVO>("getOpPatList", param);
  22. } else if (flag.Equals("E"))//응급실환자 리스트
  23. {
  24. return mapper.QueryForList<PatListVO>("getErPatList", param);
  25. } else {
  26. return result;
  27. }
  28. }
  29. public IList<PatInfoListVO> GetSrchPatInfo(ISqlMapper mapper, Hashtable param) {
  30. return mapper.QueryForList<PatInfoListVO>("getSrchPatInfo", param);
  31. }
  32. /*
  33. public IList<DeptListVO> GetDeptList(ISqlMapper mapper, Hashtable param) {
  34. return mapper.QueryForList<DeptListVO>("getDeptList", param);
  35. }
  36. */
  37. public IList<DeptListVO> GetDeptList(ISqlMapper mapper, Hashtable param) {
  38. return mapper.QueryForList<DeptListVO>("getDeptList", param);
  39. }
  40. public IList<DeptListVO> GetWardList(ISqlMapper mapper, Hashtable param) {
  41. return mapper.QueryForList<DeptListVO>("getWardList", param);
  42. }
  43. public IList<DocListVO> GetDocList(ISqlMapper mapper, Hashtable param) {
  44. return mapper.QueryForList<DocListVO>("getDocList", param);
  45. }
  46. public IList<DeptListVO> GetSupportDeptList(ISqlMapper mapper, Hashtable param) {
  47. return mapper.QueryForList<DeptListVO>("getSupportDeptList", param);
  48. }
  49. public IList<InspectionVO> GetInspectingRoomName(ISqlMapper mapper, Hashtable param) {
  50. return mapper.QueryForList<InspectionVO>("getInspectingRoomName", param);
  51. }
  52. }
  53. }