#region Copyright © 2015 CLIPSOFT Co.,Ltd. All Rights Reserved. // // All rights are reserved. Reproduction or transmission in whole or in part, // in any form or by any means, electronic, mechanical or otherwise, is // prohibited without the prior written consent of the copyright owner. // // Filename:SelectConsentSvcDac.cs // #endregion using CLIP.eForm.Consent.Entity; using CLIP.eForm.Server.Data; using IBatisNet.DataMapper; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace CLIP.eForm.Consent.Dac { public class ConsentDac : DacBase { public IList GetConsentSetList(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("getUserFormSet", param); } public IList GetConsentBySearch(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("GET_CONSENT_BY_SEARCH_LIST", param); } public IList GetConsentList(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("GET_CONSENT_LIST", param); } public IList GetConsentDateList(ISqlMapper mapper, Hashtable param) { //consent_mst에 visit_type을 조건에 추가해야함 String ordType = (String) param["ordType"]; String patientState = (String) param["patientState"]; if (ordType == "I") { return mapper.QueryForList("GET_CONSENT_IN_LIST", param); } else if (ordType == "O") { return mapper.QueryForList("GET_CONSENT_OUT_LIST", param); } else if (ordType == "ER") { return mapper.QueryForList("GET_CONSENT_ER_LIST", param); } else if (ordType == "OP") { return mapper.QueryForList("GET_CONSENT_OP_LIST", param); } else if (ordType == "EX") { return mapper.QueryForList("GET_CONSENT_EX_LIST", param); } else if (ordType == "S") { if (patientState == "I") { return mapper.QueryForList("GET_CONSENT_IN_LIST", param); } else if (patientState == "O") { return mapper.QueryForList("GET_CONSENT_OUT_LIST", param); } else if (patientState == "ER") { return mapper.QueryForList("GET_CONSENT_ER_LIST", param); } } return null; } public IList GetPrescriptionConsentList(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("GET_PRESCRIPTION_CONSENT_LIST", param); } public object GetFormGuidByFormCd(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_FORM_GUID_BY_FORM_CD", param); } public IList GetConsentImage(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("GET_CONSENT_IMAGE", param); } public IList getConsentAudio(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("GET_CONSENT_AUDIO", param); } public int GetConsentAudioCount(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_CONSENT_AUDIO_COUNT", param); } public IList GetUnfinishedListPerDoctor(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("GetUnfinishedListPerDoctor", param); } public String GetConsentStateCheck(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GetConsentStateCheck", param); } //public IList GetConsentByCalcscorcd(ISqlMapper mapper, Hashtable param) { // return mapper.QueryForList("GET_CONSENT_BY_CALCSCORCD", param); //} public IList getConsentByFormcd(ISqlMapper mapper, Hashtable param) { return mapper.QueryForList("GET_CONSENT_BY_FORMCD", param); } public String getOcrString(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_OCR_STRING", param); } public String getConsentFormXml(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_CONSENT_FORM_XML", param); } /// /// 원무 서식의 인증저장 사용 여부 /// /// SQL mapper /// The parameter. /// public String getCertuseYn(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_CERTUSEYN", param); } /// /// 원무 서식의 인증저장 사용 여부 /// 서식이 여러개 선택되었을때 /// /// SQL mapper /// The parameter. /// public String getCertUseYnData(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_CERTUSEYN_MAP", param); } /// /// 동의서가 금일 작성되었는지 여부 확인 formCd 반환 /// /// SQL mapper /// The parameter. /// public String getDupCertConsent(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_RESULT", param); } public int getScanFileMaxSeq(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_SCANFILE_MAX_SEQ", param); } public String getTreatTSeq(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_TREATT_SEQ", param); } public String getTreatTNewSeq(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_TREATT_NEW_SEQ", param); } public void insertScanGroup(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("INSERT_IMR_SCANGROUP", param); } public void insertScanFile(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("INSERT_IMR_SCANFILE", param); } /// /// 경북대학교병원 accu 모니터 설치 사용자 여부 /// /// /// /// public String getDualViewMode(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("GET_DUAL_MODE", param); } public void updateToCertifyConsentMst(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("TO_CERTIFY_CONSENT_MST", param); } public void updateToCertifyOcrprnt(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("TO_CERTIFY_OCRPRNT", param); } public void updateConsentMaster(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("UPDATE_CONSENT_MASTER", param); } public void updateOcrPrintHistory(ISqlMapper mapper, Hashtable param) { mapper.QueryForObject("UPDATE_OCR_HISTORY", param); } public string ReUseCertifyConsentFlag(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("ReUseCertifyConsentFlag", param); } public string getSaveAllFlag(ISqlMapper mapper, Hashtable param) { return mapper.QueryForObject("getSaveAllFlag", param); } } }