SaveConsentDac.cs.svn-base 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. using System;
  2. using CLIP.eForm.Server.Data;
  3. using CLIP.eForm.Server.VO;
  4. using IBatisNet.DataMapper;
  5. using System.Collections.Generic;
  6. using System.Collections;
  7. using CLIP.eForm.Consent.Entity;
  8. namespace CLIP.eForm.Consent.Dac {
  9. public class SaveConsentDac : DacBase {
  10. public int InsertConsentMst(ISqlMapper mapper, Hashtable param) {
  11. return mapper.QueryForObject<Int32>("INSERT_CONSENT_MST", param);
  12. }
  13. public int ReWriteUpdateConsentMst(ISqlMapper mapper, Hashtable param) {
  14. return mapper.QueryForObject<Int32>("REWRITE_UPDATE_CONSENT_MST", param);
  15. }
  16. public void InsertConsentData(ISqlMapper mapper, Hashtable param) {
  17. mapper.QueryForObject<Int32>("INSERT_CONSENT_DATA", param);
  18. }
  19. public void InsertConsentAudio(ISqlMapper mapper, Hashtable param) {
  20. mapper.QueryForObject<Int32>("INSERT_CONSENT_AUDIO", param);
  21. }
  22. public void InsertConsentImage(ISqlMapper mapper, Hashtable param) {
  23. mapper.QueryForObject<Int32>("INSERT_CONSENT_IMAGE", param);
  24. }
  25. public void InsertConsentImageSign(ISqlMapper mapper, Hashtable param) {
  26. mapper.QueryForObject<Int32>("INSERT_CONSENT_IMAGE_SIGN", param);
  27. }
  28. public void UpdateConsentMst(ISqlMapper mapper, Hashtable param) {
  29. mapper.QueryForObject<Int32>("UPDATE_CONSENT_MST", param);
  30. }
  31. public void UpdateConsentData(ISqlMapper mapper, Hashtable param) {
  32. mapper.QueryForObject<Int32>("UPDATE_CONSENT_DATA", param);
  33. }
  34. public void UpdateConsentMstForReissue(ISqlMapper mapper, Hashtable param) {
  35. mapper.QueryForObject<Int32>("UPDATE_CONSENT_MST_FOR_REISSUE", param);
  36. }
  37. public String UpdateConsentMstForDelete(ISqlMapper mapper, Hashtable param) {
  38. //return mapper.Update("UPDATE_CONSENT_MST_FOR_DELETE", param);
  39. return (String) mapper.Insert("UPDATE_CONSENT_MST_FOR_DELETE", param);
  40. }
  41. public int UpdateMrfhocrprntStatCd(ISqlMapper mapper, Hashtable param) {
  42. return mapper.Update("UPDATE_MRFHOCRPRNT_STATCD", param);
  43. }
  44. public void UpdateConsentMstStatus(ISqlMapper mapper, Hashtable param) {
  45. mapper.QueryForObject<Int32>("UPDATE_CONSENT_MST_STATUS", param);
  46. }
  47. public void SetConsentDataChoice(ISqlMapper mapper, Hashtable param) {
  48. mapper.QueryForObject<Int32>("INSERT_CONSENT_DATA_CHOICE", param);
  49. }
  50. public void SetMediHistory(ISqlMapper mapper, Hashtable param) {
  51. mapper.QueryForObject<Int32>("SET_MEDI_HISTORY", param);
  52. }
  53. /// <summary>
  54. /// OCR 히스토리 테이블 저장
  55. /// </summary>
  56. /// <param name="mapper"></param>
  57. /// <param name="param"></param>
  58. public void InsertPrintData(ISqlMapper mapper, Hashtable param) {
  59. mapper.Insert("setOcrPrntInfo", param);
  60. mapper.Insert("setOcrPrntHistInfo", param);
  61. }
  62. public void InsertPrintData(ISqlMapper mapper, Hashtable param, bool isNewConsentMasterCase) {
  63. //string histYN = mapper.QueryForObject<String>("getOcrPrntHistYN", param);
  64. //histYN = histYN ?? "Y";
  65. mapper.Insert("setOcrPrntInfo", param);
  66. if (isNewConsentMasterCase == false) {
  67. mapper.Update("updateOcrPrntHistInfo", param);
  68. }
  69. mapper.Insert("setOcrPrntHistInfo", param);
  70. //if (histYN.Equals("Y")) {
  71. //}
  72. }
  73. public void InsertPmcmspif(ISqlMapper mapper, Hashtable param) {
  74. mapper.Insert("insPmcmspif", param);
  75. }
  76. public void InsertPmihagmt(ISqlMapper mapper, Hashtable param) {
  77. mapper.Insert("insPmihagmt", param);
  78. }
  79. public void InsertPmcminfo(ISqlMapper mapper, Hashtable param) {
  80. mapper.Insert("insPmcminfo", param);
  81. }
  82. public IList<string> getOcrType6Forms(ISqlMapper mapper, Hashtable param) {
  83. return mapper.QueryForList<string>("getOcrType6Forms", param);
  84. //return null;
  85. }
  86. /// <summary>
  87. /// 개인정보동의서 인증저장시 PAM.PMCMPICM에 넣을 SEQ 번호를 가져온다
  88. /// </summary>
  89. /// <param name="mapper"></param>
  90. /// <param name="param"></param>
  91. /// <returns></returns>
  92. public int getPamSeqNo(ISqlMapper mapper, Hashtable param) {
  93. return mapper.QueryForObject<int>("getPamSeqNo", param);
  94. }
  95. public int updatePreSignData(ISqlMapper mapper, Hashtable param) {
  96. return mapper.QueryForObject<int>("updatePreSignData", param);
  97. }
  98. public int insPmcmpicm(ISqlMapper mapper, Hashtable param) {
  99. return (Int32)mapper.QueryForObject<int>("insPmcmpicm", param);
  100. }
  101. public int SaveAutoCompleteAll(ISqlMapper mapper, Hashtable param) {
  102. int result = 0;
  103. result = mapper.Update("SAVE_AUTO_MASTER_UPDATE", param);
  104. if (result > 0) {
  105. result = mapper.Update("SAVE_AUTO_MRFMOCRPRNT", param);
  106. }
  107. if (result > 0) {
  108. result = mapper.Update("SAVE_AUTO_MRFHOCRPRNT", param);
  109. }
  110. return result;
  111. }
  112. public int ImrCount(ISqlMapper mapper, Hashtable param) {
  113. return (Int32) mapper.QueryForObject<int>("ImrCount", param);
  114. }
  115. public ImrData ImrData(ISqlMapper mapper, Hashtable param) {
  116. return mapper.QueryForObject<ImrData>("ImrData", param);
  117. }
  118. public int ImrScanFileUpdate(ISqlMapper mapper, Hashtable param) {
  119. return mapper.Update("ImrUpdate", param);
  120. }
  121. public int ImrScanFileDelete(ISqlMapper mapper, Hashtable param) {
  122. return mapper.Delete("ImrDelete", param);
  123. }
  124. }
  125. }