using System; using CLIP.eForm.Server.Data; using CLIP.eForm.Server.VO; using IBatisNet.DataMapper; using System.Collections.Generic; using System.Collections; using CLIP.eForm.Consent.Entity; namespace CLIP.eForm.Consent.Dac { public class SaveConsentDac : DacBase { public int InsertConsentMst(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("INSERT_CONSENT_MST", param); } public int ReWriteUpdateConsentMst(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("REWRITE_UPDATE_CONSENT_MST", param); } public void InsertConsentData(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("INSERT_CONSENT_DATA", param); } public void InsertConsentAudio(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("INSERT_CONSENT_AUDIO", param); } public void InsertConsentImage(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("INSERT_CONSENT_IMAGE", param); } public void InsertConsentImageSign(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("INSERT_CONSENT_IMAGE_SIGN", param); } public void UpdateConsentMst(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("UPDATE_CONSENT_MST", param); } public void UpdateConsentData(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("UPDATE_CONSENT_DATA", param); } public void UpdateConsentMstForReissue(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("UPDATE_CONSENT_MST_FOR_REISSUE", param); } public String UpdateConsentMstForDelete(ISqlMapper mapper, Hashtable param) { //return mapper.Update("UPDATE_CONSENT_MST_FOR_DELETE", param); return (String) mapper.Insert("UPDATE_CONSENT_MST_FOR_DELETE", param); } public int UpdateMrfhocrprntStatCd(ISqlMapper mapper, Hashtable param) { return mapper.Update("UPDATE_MRFHOCRPRNT_STATCD", param); } public void UpdateConsentMstStatus(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("UPDATE_CONSENT_MST_STATUS", param); } public void SetConsentDataChoice(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("INSERT_CONSENT_DATA_CHOICE", param); } public void SetMediHistory(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("SET_MEDI_HISTORY", param); } /// /// OCR 히스토리 테이블 저장 /// /// /// public void InsertPrintData(ISqlMapper mapper, Hashtable param) { mapper.Insert("setOcrPrntInfo", param); mapper.Insert("setOcrPrntHistInfo", param); } public void InsertPrintData(ISqlMapper mapper, Hashtable param, bool isNewConsentMasterCase) { //string histYN = mapper.QueryForObject("getOcrPrntHistYN", param); //histYN = histYN ?? "Y"; mapper.Insert("setOcrPrntInfo", param); if (isNewConsentMasterCase == false) { mapper.Update("updateOcrPrntHistInfo", param); } mapper.Insert("setOcrPrntHistInfo", param); //if (histYN.Equals("Y")) { //} } public void InsertPmcmspif(ISqlMapper mapper, Hashtable param) { mapper.Insert("insPmcmspif", param); } public void InsertPmihagmt(ISqlMapper mapper, Hashtable param) { mapper.Insert("insPmihagmt", param); } public void InsertPmcminfo(ISqlMapper mapper, Hashtable param) { mapper.Insert("insPmcminfo", param); } public IList getOcrType6Forms(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("getOcrType6Forms", param); //return null; } /// /// 개인정보동의서 인증저장시 PAM.PMCMPICM에 넣을 SEQ 번호를 가져온다 /// /// /// /// public int getPamSeqNo(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("getPamSeqNo", param); } public int updatePreSignData(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("updatePreSignData", param); } public int insPmcmpicm(ISqlMapper mapper, Hashtable param) { return (Int32)mapper.QueryForObject("insPmcmpicm", param); } public int SaveAutoCompleteAll(ISqlMapper mapper, Hashtable param) { int result = 0; result = mapper.Update("SAVE_AUTO_MASTER_UPDATE", param); if (result > 0) { result = mapper.Update("SAVE_AUTO_MRFMOCRPRNT", param); } if (result > 0) { result = mapper.Update("SAVE_AUTO_MRFHOCRPRNT", param); } return result; } public int ImrCount(ISqlMapper mapper, Hashtable param) { return (Int32) mapper.QueryForObject("ImrCount", param); } public ImrData ImrData(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("ImrData", param); } public int ImrScanFileUpdate(ISqlMapper mapper, Hashtable param) { return mapper.Update("ImrUpdate", param); } public int ImrScanFileDelete(ISqlMapper mapper, Hashtable param) { return mapper.Delete("ImrDelete", param); } } }