SaveConsentDac.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. namespace CLIP.eForm.Consent.Dac {
  8. public class SaveConsentDac : DacBase {
  9. public void InsertConsentMst(ISqlMapper mapper, Hashtable param) {
  10. mapper.QueryForObject<Int32>("INSERT_CONSENT_MST", param);
  11. }
  12. public void InsertConsentData(ISqlMapper mapper, Hashtable param) {
  13. mapper.QueryForObject<Int32>("INSERT_CONSENT_DATA", param);
  14. }
  15. public void InsertConsentImage(ISqlMapper mapper, Hashtable param) {
  16. mapper.QueryForObject<Int32>("INSERT_CONSENT_IMAGE", param);
  17. }
  18. public void InsertConsentImageSign(ISqlMapper mapper, Hashtable param) {
  19. mapper.QueryForObject<Int32>("INSERT_CONSENT_IMAGE_SIGN", param);
  20. }
  21. public void UpdateConsentMst(ISqlMapper mapper, Hashtable param) {
  22. mapper.QueryForObject<Int32>("UPDATE_CONSENT_MST", param);
  23. }
  24. public void UpdateConsentMstForReissue(ISqlMapper mapper, Hashtable param) {
  25. mapper.QueryForObject<Int32>("UPDATE_CONSENT_MST_FOR_REISSUE", param);
  26. }
  27. public int UpdateConsentMstForDelete(ISqlMapper mapper, Hashtable param) {
  28. return mapper.Update("UPDATE_CONSENT_MST_FOR_DELETE", param);
  29. }
  30. public int DeleteChartpageT(ISqlMapper mapper, Hashtable param) {
  31. return mapper.Delete("DELETE_CHARTPAGET", param);
  32. }
  33. public void UpdateConsentMstStatus(ISqlMapper mapper, Hashtable param) {
  34. mapper.QueryForObject<Int32>("UPDATE_CONSENT_MST_STATUS", param);
  35. }
  36. public void SetConsentDataChoice(ISqlMapper mapper, Hashtable param) {
  37. mapper.QueryForObject<Int32>("INSERT_CONSENT_DATA_CHOICE", param);
  38. }
  39. public void SetMediHistory(ISqlMapper mapper, Hashtable param) {
  40. mapper.QueryForObject<Int32>("SET_MEDI_HISTORY", param);
  41. }
  42. /// <summary>
  43. /// OCR 히스토리 테이블 저장
  44. /// </summary>
  45. /// <param name="mapper"></param>
  46. /// <param name="param"></param>
  47. public void InsertPrintData(ISqlMapper mapper, Hashtable param) {
  48. string histYN = mapper.QueryForObject<String>("getOcrPrntHistYN", param);
  49. //histYN = histYN ?? "Y";
  50. // 무조건 기록 되게 수정
  51. histYN = "Y";
  52. if (histYN.Equals("Y")) {
  53. // MRFMOCRPRNT에 업데이트 이슈 발생시 mapper.Insert("setOcrPrntInfo", param); mapper.Insert("setOcrPrntHistInfo", param); 이것만 사용
  54. mapper.Insert("setOcrPrntInfo", param);
  55. mapper.Insert("setOcrPrntHistInfo", param);
  56. }
  57. }
  58. public void InsertPmcmspif(ISqlMapper mapper, Hashtable param) {
  59. mapper.Insert("insPmcmspif", param);
  60. }
  61. public void InsertPmihagmt(ISqlMapper mapper, Hashtable param) {
  62. mapper.Insert("insPmihagmt", param);
  63. }
  64. public void InsertPmcminfo(ISqlMapper mapper, Hashtable param) {
  65. mapper.Insert("insPmcminfo", param);
  66. }
  67. public IList<string> getOcrType6Forms(ISqlMapper mapper, Hashtable param) {
  68. return mapper.QueryForList<string>("getOcrType6Forms", param);
  69. //return null;
  70. }
  71. public int GetConsentImageCount(ISqlMapper mapper, Hashtable param) {
  72. return mapper.QueryForObject<int>("GET_CONSET_IMAGE_COUNT", param);
  73. }
  74. }
  75. }