PatListDac.cs 1.6 KB

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