PatientDac.cs.svn-base 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #region Copyright © 2015 CLIPSOFT Co.,Ltd. All Rights Reserved.
  2. //
  3. // All rights are reserved. Reproduction or transmission in whole or in part,
  4. // in any form or by any means, electronic, mechanical or otherwise, is
  5. // prohibited without the prior written consent of the copyright owner.
  6. //
  7. // Filename:SelectConsentSvcDac.cs
  8. //
  9. #endregion
  10. using CLIP.eForm.Consent.Entity;
  11. using CLIP.eForm.Server.Data;
  12. using IBatisNet.DataMapper;
  13. using System;
  14. using System.Collections;
  15. using System.Collections.Generic;
  16. using System.Linq;
  17. using System.Text;
  18. namespace CLIP.eForm.Consent.Dac {
  19. public class PatientDac : DacBase {
  20. //앞으로 GetPatientInfo()으로 대체될 임시함수
  21. public IList<PatientVO> GetPatientDetailInfo(ISqlMapper mapper, Hashtable param) {
  22. return mapper.QueryForList<PatientVO>("GET_PATIENT_DETAIL_INFO", param);
  23. }
  24. public IList<ClnDateForDropdownVO> GetTrmtDateList(ISqlMapper mapper, Hashtable param) {
  25. return mapper.QueryForList<ClnDateForDropdownVO>("GET_TRMT_DATE_LIST", param);
  26. }
  27. public IList<PatientVO> GetPatientInfo(ISqlMapper mapper, Hashtable param) {
  28. String flag = (String) param["ordType"];
  29. if (flag.Equals("I") || flag.Equals("E") || flag.Equals("D")) {
  30. //입원 , 응급
  31. return mapper.QueryForList<PatientVO>("getPatientInfoIn", param);
  32. } else if (flag.Equals("O") || flag.Equals("S")) {
  33. //외래 , 종건
  34. return mapper.QueryForList<PatientVO>("getPatientInfoOut", param);
  35. } else {
  36. return null;
  37. }
  38. }
  39. public string GetOcrTag(ISqlMapper mapper, Hashtable param) {
  40. return mapper.QueryForObject<String>("getOcrTag", param);
  41. }
  42. public IList<string> GetDiagList(ISqlMapper mapper, Hashtable param) {
  43. return mapper.QueryForList<string>("getDiagList", param);
  44. }
  45. public string GetFileName(ISqlMapper mapper, Hashtable param) {
  46. mapper.Insert("setFileName", param);
  47. return mapper.QueryForObject<String>("getFileName", param);
  48. }
  49. public void delEformData(ISqlMapper mapper, Hashtable param) {
  50. mapper.Insert("delEformData", param);
  51. }
  52. public int UpdateUserSetup(ISqlMapper mapper, Hashtable param) {
  53. return mapper.QueryForObject<Int32>("UPDATE_USERSETUP", param);
  54. }
  55. }
  56. }