PatListDac.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using CLIP.eForm.Consent.Dfh.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.Dfh.Dac
  8. {
  9. //class FormCategoryDac
  10. public class PatListDac : DacBase
  11. {
  12. public IList<PatListVO> GetPatList(ISqlMapper mapper, Hashtable param)
  13. {
  14. IList<PatListVO> result = null;
  15. String flag =(String) param["selectflag"];
  16. if (flag.Equals("I"))//입원환자 리스트
  17. {
  18. return mapper.QueryForList<PatListVO>("getInPatList", param);
  19. }
  20. else if (flag.Equals("O"))//외래환자 리스트
  21. {
  22. return mapper.QueryForList<PatListVO>("getOutPatList", param);
  23. }
  24. else if (flag.Equals("OP"))//수술환자 리스트
  25. {
  26. return mapper.QueryForList<PatListVO>("getOpPatList", param);
  27. }
  28. else if (flag.Equals("ER"))//응급실환자 리스트
  29. {
  30. return mapper.QueryForList<PatListVO>("getErPatList", param);
  31. }else
  32. {
  33. return result;
  34. }
  35. }
  36. public IList<PatInfoListVO> GetSrchPatInfo(ISqlMapper mapper, Hashtable param)
  37. {
  38. return mapper.QueryForList<PatInfoListVO>("getSrchPatInfo", param);
  39. }
  40. public IList<DeptListVO> GetDeptList(ISqlMapper mapper, Hashtable param)
  41. {
  42. return mapper.QueryForList<DeptListVO>("getDeptList", param);
  43. }
  44. public IList<DeptListVO> GetWardList(ISqlMapper mapper, Hashtable param)
  45. {
  46. return mapper.QueryForList<DeptListVO>("getWardList", param);
  47. }
  48. public IList<DocListVO> GetDocList(ISqlMapper mapper, Hashtable param)
  49. {
  50. return mapper.QueryForList<DocListVO>("getDocList", param);
  51. }
  52. }
  53. }