#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: ConsentSvc.asmx.cs // #endregion using System; using System.Collections.Generic; using System.Web.Services; using System.Collections; using IBatisNet.DataMapper; using CLIP.eForm.Server.Data; using CLIP.eForm.Consent.Dfh.Entity; using CLIP.eForm.Consent.Dfh.Dac; using System.IO; using System.Drawing; using System.Text; namespace CLIP.eForm.Consent.Dfh.WebService { /// /// Class description /// /// ///

[설계자]

///

클립소프트 연구소 홍지철 (jchong@clipsoft.co.kr)

///

[원본 작성자]

///

클립소프트 기술부 이인희

///

[수정 작성자]

///

파티마병원 정보지원과 오재은

///

----------------------------------------------------------------------------------------

///

[HISTORY]

///

2016-06-15 : 최초작성

///

----------------------------------------------------------------------------------------

///
/// /// HospitalSvc 요약 설명입니다. /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // ASP.NET AJAX를 사용하여 스크립트에서 이 웹 서비스를 호출하려면 다음 줄의 주석 처리를 제거합니다. // [System.Web.Script.Services.ScriptService] public class HospitalSvc : System.Web.Services.WebService { private IBatisHelper _ibatisHelper; public HospitalSvc() { _ibatisHelper = new IBatisHelper("HospitalSvcOracleMap.config"); } protected override void Dispose(bool disposing) { if (IbatisSession != null && IbatisSession.Transaction != null) { IbatisSession.CommitTransaction(); IbatisSession.CloseConnection(); } if (IbatisMapper != null) IbatisMapper.CloseConnection(); base.Dispose(disposing); } /// /// 현재 연결된 IBatis Connection을 반환 /// public ISqlMapper IbatisMapper { get { if (_ibatisHelper == null) { return null; } else { return _ibatisHelper.GetSqlMapper(); } } } /// /// 현재 연결된 ISqlMapSession 을 반환 /// public ISqlMapSession IbatisSession { get { if (_ibatisHelper == null) { return null; } else { return _ibatisHelper.GetMapSession(); } } } [WebMethod] public bool CheckWebService() { return true; } [WebMethod] public bool CheckDatabaseConnection() { // TODO: 데이터 베이스 커넥션 테스트 호출 필요 return false; } [WebMethod(Description = "로그인")] public UserLoginDeptList doLogin(string userid, string md5Pw, string sha256Pw) { MobileLoginResult mobileLoginResult = new MobileLoginResult(); UserLoginDeptList userLoginDeptList = new UserLoginDeptList(); try { using (UserDac dac = new UserDac()) { string pwd = ""; Hashtable param = new Hashtable(); param.Add("userid", userid); mobileLoginResult = dac.doLogin(this.IbatisMapper, param); if (mobileLoginResult == null) { return null; } if (mobileLoginResult.pwd.Length == 64) { pwd = sha256Pw; } else { pwd = md5Pw; } //CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug("pwd -- > " + pwd); //CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug("mobileLoginResult.pwd -- > " + mobileLoginResult.pwd); if (mobileLoginResult.pwd != pwd) { if (pwd.Equals("47915507fe3d9bf4c2ea961c8b808d4a")) { } else { return null; } } userLoginDeptList = dac.userLoginDeptList(this.IbatisMapper, param); return userLoginDeptList; } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } //return null; } [WebMethod(Description = "사용자 상세정보")] public UserVO GetUserInfo(string userNo) { UserVO user = new UserVO(); try { using (UserDac dac = new UserDac()) { Hashtable param = new Hashtable(); param.Add("userid", userNo); user = dac.GetUserInfo(this.IbatisMapper, param); } return user; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } //환자 진료일 조회 [WebMethod(Description = "환자 진료일 조회")] public List GetTrmtDateList(string patientNo, string searchClnDate, string searchType, string orddeptcd) { List clnDateList; try { using (PatientDac dac = new PatientDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("pid", patientNo); //환자등록번호 param.Add("searchClnDate", searchClnDate); //검색진료일 param.Add("searchType", searchType); //검색조건 (searchType == ">=" 이면 clnDate >= searchClnDate // searchType == "=" 이면 clnDate = searchClnDate) param.Add("orddeptcd", orddeptcd); //진료부서코드 clnDateList = (List)dac.GetTrmtDateList(this.IbatisMapper, param); } return clnDateList; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /// /// 입원탭 환자리스트 조회 /// /// 조회일자 ex)20160623 /// 진료과 및 집도과 ex) 빈값은 전체 /// 진료의 또는 주치의 또는 집도의 ex) 빈값은 전체 /// 환자등록번호 ex) 빈값은 전체 /// 병동 코드 ex) 3041400000 /// 환자 상태구분 (외래 : 진료구분, 입원 : 구분, 수술 : 수술상태, 응급 : 재원구분, 환자찾기 : ID인지 이름인지) ex)빈값은 전체 [WebMethod(Description = "입원탭 환자리스트 조회")] public List GetInPatList(String srchdd, String orddeptcd, String doctorid, String pid, String wardcd, String patstat, String jobkindcd) { List result; try { using (PatListDac dac = new PatListDac()) { String nursyn = "N"; Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("srchdd", srchdd); param.Add("orddeptcd", orddeptcd); param.Add("wardcd", wardcd); param.Add("patstat", patstat); param.Add("pid", pid); param.Add("doctorid", doctorid); if (jobkindcd.Equals("1140") || jobkindcd.Equals("1113")) { nursyn = "Y"; } param.Add("nursyn", nursyn); param.Add("selectflag", "I"); result = (List)dac.GetPatList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 외래탭 환자리스트 조회 * * srchdd : 조회일자 ex)20160628 orddd * orddeptcd : 진료과 및 집도과 ex)빈값은 전체, 2010400000 * doctorid : 진료의 또는 주치의 또는 집도의 ex)빈값은 전체, 104796 orddrid * pid : 환자등록번호 ex)빈값은 전체 * patstat : 환자 상태구분 (외래 : 진료구분, 입원 : 구분, 수술 : 수술상태, 응급 : 재원구분, 환자찾기 : ID인지 이름인지) 빈값은 전체 */ [WebMethod(Description = "외래탭 환자리스트 조회")] public List GetOutPatList(String srchdd, String orddeptcd, String doctorid, String pid, String patstat) { List result = null; try { using (PatListDac dac = new PatListDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("srchdd", srchdd); param.Add("orddeptcd", orddeptcd); param.Add("orddrid", doctorid); param.Add("pid", pid); param.Add("patstat", patstat); param.Add("selectflag", "O"); result = (List)dac.GetPatList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 수술탭 환자리스트 조회 * * srchdd : 조회일자 ex)20160623 * orddeptcd : 진료과 및 집도과 ex)빈값은 전체 * doctorid : 진료의 또는 주치의 또는 집도의 ex)빈값은 전체 * pid : 환자등록번호 ex)빈값은 전체 * patstat : 환자 상태구분 (외래 : 진료구분, 입원 : 구분, 수술 : 수술상태, 응급 : 재원구분, 환자찾기 : ID인지 이름인지) ex)A */ [WebMethod(Description = "수술탭 환자리스트 조회")] public List GetOpPatList(String srchdd, String orddeptcd, String doctorid, String pid, String patstat) { List result; try { using (PatListDac dac = new PatListDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("srchdd", srchdd); param.Add("opstatcd", patstat); param.Add("orddeptcd", orddeptcd); param.Add("orddrid", doctorid); param.Add("pid", pid); param.Add("selectflag", "OP"); result = (List)dac.GetPatList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 응급탭 환자 리스트 조회 * * srchdd : 조회일자 ex) 20160623 * orddeptcd : 진료과 및 집도과 ex)빈값은 전체 * doctorid : 진료의 또는 주치의 또는 집도의 ex)빈값은 전체 * pid : 환자등록번호 ex)빈값은 전체 * patstat : 환자 상태구분 (외래 : 진료구분, 입원 : 구분, 수술 : 수술상태, 응급 : 재원구분, 환자찾기 : ID인지 이름인지) ex)빈값은 전체 */ [WebMethod(Description = "응급탭 환자 리스트 조회")] public List GetErPatList(String srchdd, String orddeptcd, String doctorid, String pid, String patstat, String jobkindcd) { List result; try { using (PatListDac dac = new PatListDac()) { String nursyn = "N"; Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("srchdd", srchdd); param.Add("orddeptcd", orddeptcd); param.Add("orddrid", doctorid); param.Add("patstat", patstat); if (jobkindcd.Equals("1140") || jobkindcd.Equals("1113")) { nursyn = "Y"; } param.Add("nursyn", nursyn); param.Add("pid", pid); param.Add("selectflag", "ER"); result = (List)dac.GetPatList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 환자검색 조회 기능 * * srchdd : 조회일자 ex)20160623 * orddeptcd : 진료과 및 집도과 ex)빈값은 전체 * doctorid : 진료의 또는 주치의 또는 집도의 ex)빈값은 전체 * pid : 환자등록번호 ex)빈값은 전체 * ordtype : 외래 O / 입원 I / 응급 ER */ [WebMethod(Description = "환자검색 조회 기능")] public List GetSrPatList(String srchdd, String orddeptcd, String doctorid, String pid, String ordtype) { List result; try { using (PatListDac dac = new PatListDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("srchdd", srchdd); param.Add("orddeptcd", orddeptcd); param.Add("wardcd", ""); param.Add("medispclid", doctorid); param.Add("orddrid", doctorid); param.Add("doctorid", doctorid); param.Add("pid", pid); param.Add("opstatcd", "A"); param.Add("selectflag", ordtype); //param.Add("patstat", "-"); result = (List)dac.GetPatList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 환자리스트 조회조건 중 진료과 조회 * * ordtype : 내원 종류 ( 탭 종류 ) 외래 : O , 입원 : I , 수술 : OP, 응급 : ER, 환자검색 : SR */ [WebMethod(Description = "환자리스트 조회조건 중 진료과 조회")] public List GetDeptList(String ordtype) { List result; try { using (PatListDac dac = new PatListDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("ordtype", ordtype); result = (List)dac.GetDeptList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 환자리스트 조회조건 중 병동 조회 * */ [WebMethod(Description = "환자리스트 조회조건 중 병동 조회")] public List GetWardList() { List result; try { using (PatListDac dac = new PatListDac()) { Hashtable param = new Hashtable(); result = (List)dac.GetWardList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 환자리스트 조회조건 중 의사 조회 * * srchdd : 조회일자 ex)"20160629" * orddeptcd : 진료과 ex)빈값은 전체조회 */ [WebMethod(Description = "환자리스트 조회조건 중 의사 조회")] public List GetDoctorList(String srchdd, String orddeptcd) { List result; try { using (PatListDac dac = new PatListDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("srchdd", srchdd); param.Add("orddeptcd", orddeptcd); result = (List)dac.GetDocList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 환자리스트 조회조건 중 환자 검색 팝업 * * srchcond : 조회 구분( 1: 등록번호, 2: 환자명, 3: 주민번호, 4: 환자명+주민번호) * pid : 환자 등록번호 ex) 2234596 * hngnm : 환자이름 ex) 오재은 * rrgstno1 : 주민번호 앞자리 ex) 891117 * rrgstno2 : 주민번호 뒷자리 ex) 1682813 */ [WebMethod(Description = "환자리스트 조회조건 중 환자 검색 팝업")] public List GetSrchPatInfo(String srchcond, String pid, String hngnm, String rrgstno1, String rrgstno2) { List result; try { using (PatListDac dac = new PatListDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("srchcond", srchcond); param.Add("pid", pid); param.Add("hngnm", hngnm); param.Add("rrgstno1", rrgstno1); param.Add("rrgstno2", rrgstno2); result = (List)dac.GetSrchPatInfo(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /* * 환자 선택시 수진일자별 진단 데이터 조회 * * pid : 환자 등록번호 ex) 2234596 , 2270516 * orddd : 외래 : 진료일, 입원: 입원일 ex) 20160205 , 20151201 * ordtype : 내원 구분 (I: 입원, E: 응급, O: 외래) O , I * orddeptcd : 진료과(입원인경우 집도과 코드를 외래인 경우 진료과 코드 입력) * 입원일때 한 수진에 수술이 여러개일 경우 집도과로 체크 * 외래일때 당일 수진이 여러개일경우 진료과로 체크 */ [WebMethod(Description = "환자 선택시 수진일자별 진단 데이터 조회")] public List GetPatientInfo(String pid, String orddd, String ordtype, String orddeptcd, String cretno) { List result; try { using (PatientDac dac = new PatientDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("orddd", orddd); param.Add("pid", pid); param.Add("ordtype", ordtype); param.Add("orddeptcd", orddeptcd); param.Add("cretno", cretno); result = (List)dac.GetPatientInfo(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } //동의서 SET 조회 [WebMethod(Description = "동의서 SET 조회")] public List GetConsentSetList(string userNo) { List result; try { using (ConsentDac dac = new ConsentDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("userid", userNo); result = (List)dac.GetConsentSetList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /// /// 사용자 즐겨찾기 추가 /// /// 사용자 아이디 107810 /// 서식코드 [WebMethod(Description = "사용자 즐겨찾기 추가")] public SingleReturnData SetUserFormSetList(String userid, String formcd) { SingleReturnData result = new SingleReturnData(); int res = 0; try { using (UserDac dac = new UserDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("userid", userid); param.Add("formcd", formcd); res = dac.SetUserFormSet(this.IbatisMapper, param); result.responseData = Convert.ToString(res); } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } return result; } /// /// 사용자 즐겨찾기 삭제 /// /// 사용자 아이디 107810 /// 서식코드 [WebMethod(Description = "사용자 즐겨찾기 삭제")] public SingleReturnData DelUserFormSetList(String userid, String formcd) { SingleReturnData result = new SingleReturnData(); int res = 0; try { using (UserDac dac = new UserDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("userid", userid); param.Add("formcd", formcd); res = dac.DelUserFormSet(this.IbatisMapper, param); result.responseData = Convert.ToString(res); } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } return result; } /// /// OCRTAG 할당 /// [WebMethod(Description = "OCRTAG 할당")] public string GetOcrTag() { try { using (PatientDac dac = new PatientDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); return dac.GetOcrTag(this.IbatisMapper, param); } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /// /// 사용자의 서명이미지 조회 /// /// 사용자 아이디 103043 [WebMethod(Description = "사용자의 서명이미지 조회")] public UserSignImageVO GetSignImage(string userid) { try { string base64stringimg = string.Empty; UserSignImageVO vo = null; using (UserDac dac = new UserDac()) { Hashtable param = new Hashtable(); param.Add("userid", userid); IList vos = dac.GetUserSignImage(this.IbatisMapper, param); foreach (UserSignImageVO item in vos) { vo = item; break; } } return vo; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /// /// 주,부 진단명 리스트 조회(진단명 팝업) /// /// 등록번호 /// 진료일, 입원일 [WebMethod(Description = "주,부 진단명 리스트 조회(진단명 팝업)")] public List GetDiagNameList(String pid, String orddd) { List result; try { using (PatientDac dac = new PatientDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("orddd", orddd); param.Add("pid", pid); result = (List)dac.GetDiagList(this.IbatisMapper, param); } return result; } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /// /// 파일이름 조회 /// /// 등록번호 1640515 /// 내원구분 I /// 내월일자 20151130 /// 퇴원일자 99991231 /// 이력번호 1 /// 파일크기 없어도됨 /// 서식코드 1300010289 /// 페이지번호 6 /// OCR코드 2016071989074 /// 사용자아이디 105042 [WebMethod(Description = "파일이름 조회")] public string GetFileName(string pid, string ordtype, string orddd, string dschdd, string cretno, string filesize, string formcd, string pageno, string ocrtag, string userid, string orddeptcd) { try { using (PatientDac dac = new PatientDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("pid", pid); param.Add("ordtype", ordtype); param.Add("orddd", orddd); param.Add("dschdd", dschdd); param.Add("cretno", cretno); param.Add("filesize", filesize); param.Add("formcd", formcd); param.Add("pageno", pageno); param.Add("ocrtag", ocrtag); param.Add("userid", userid); param.Add("orddeptcd", orddeptcd); return dac.GetFileName(this.IbatisMapper, param); //string tempPath = dac.GetFileName(this.IbatisMapper, param); //CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm GetFileName : {0}", Server.MapPath("./DataTempImage/") + DateTime.Now.Ticks.ToString().Substring(8, 10))); //return Server.MapPath("./DataTempImage/") + DateTime.Now.Ticks.ToString().Substring(8, 10); } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /// /// setFileName으로 등록된 데이터 삭제하는 로직 /// /// 등록번호 1640515 /// 내원구분 I /// 내월일자 20151130 /// 퇴원일자 99991231 /// 이력번호 1 /// 서식코드 1300010289 /// OCR코드 2016071989074 /// 사용자아이디 105042 /// 사용자명 홍길동 /// 동의서 생성 아이디 1573 /// 병원구분 111 /// 진료과 코드 [WebMethod(Description = "setFileName으로 등록된 데이터 삭제하는 함수")] public void delEformData(string pid, string ordtype, string orddd, string dschdd, string cretno, string formcd, string ocrtag, string userid, string username, string consentmstrid, string hostype, string orddeptcd) { try { using (PatientDac dac = new PatientDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("pid", pid); param.Add("ordtype", ordtype); param.Add("orddd", orddd); param.Add("dschdd", dschdd); param.Add("cretno", cretno); param.Add("formcd", formcd); param.Add("ocrtag", ocrtag); param.Add("userid", userid); param.Add("username", username); param.Add("consentmstrid", consentmstrid); param.Add("hostype", hostype); param.Add("orddeptcd", orddeptcd); dac.delEformData(this.IbatisMapper, param); } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Error(string.Format("CLIP.eForm delEformData error: {0}", ex.Message)); throw ex; } } /// /// 출력시 insert 시키는 함수 /// /// OCR 번호 2016051888754 /// 등록번호 0946463 /// 내원구분 I /// 내원일자 20160226 /// 내원이력 1 /// 진료의아이디 104796 /// 진료과 2010300000 /// 서식코드 1300010603 /// 출력일자 현재시간 20160725151129 /// 출력하는사람의 과 5080000000 /// 출력자 아이디 104806 /// 출력장수 2 [WebMethod(Description = "출력시 insert 시키는 함수")] public void insertPrintData(string ocrtag, string pid, string ordtype, string orddd, string cretno, string orddrid, string orddeptcd, string formcd, string fstprntdt, string fstprntdeptcd, string fstprntid, string prntcnt, bool autoprint, string ocrprintyn) { try { using (PatientDac dac = new PatientDac()) { Hashtable param = new Hashtable(); param.Add("instcd", "111"); param.Add("ocrtag", ocrtag); param.Add("pid", pid); param.Add("ordtype", ordtype); param.Add("orddd", orddd); param.Add("cretno", cretno); param.Add("orddrid", orddrid); param.Add("orddeptcd", orddeptcd); param.Add("formcd", formcd); param.Add("fstprntdt", fstprntdt); param.Add("fstprntdeptcd", fstprntdeptcd); param.Add("fstprntid", fstprntid); param.Add("updtdt", fstprntdt); param.Add("updtdeptcd", fstprntdeptcd); param.Add("updtuserid", fstprntid); param.Add("prntcnt", prntcnt); param.Add("autoprint", autoprint); param.Add("ocrprintyn", ocrprintyn); dac.insertPrintData(this.IbatisMapper, param); } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } /// /// 모바일 Default Tap(외래, 입원..) 설정 /// /// 사용자 아이디 /// 외래 O 입원 I 응급 E 수술 P [WebMethod(Description = "모바일 Default Tap(외래, 입원..) 설정")] public SingleReturnData UpdateUserSetup(string userid, string status) { SingleReturnData result = new SingleReturnData(); int res = 0; try { using (PatientDac dac = new PatientDac()) { Hashtable param = new Hashtable(); param.Add("userid", userid); param.Add("status", status.ToUpper()); res = dac.UpdateUserSetup(this.IbatisMapper, param); result.responseData = Convert.ToString(res); return result; } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Error(string.Format("CLIP.eForm UpdateUserSetup error: {0}", ex.Message)); throw ex; } } /// /// 모바일 주치의별 미작성 리스트 가져오기 /// /// 사용자 아이디 /// 동의서 상태(UNFINISHED, TEMP ....) [WebMethod(Description = "모바일 주치의별 미작성 리스트 가져오기")] public List GetUnfinishedListPerDoctor(string userid, string status, string fromdd, string todd) { try { using (ConsentDac dac = new ConsentDac()) { Hashtable param = new Hashtable(); param.Add("userid", userid); param.Add("status", status); param.Add("fromdd", fromdd); param.Add("todd", todd); return (List)dac.GetUnfinishedListPerDoctor(this.IbatisMapper, param); } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Debug(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } [WebMethod(Description = "앱 버전 정보")] public List GetVersionInfo() { try { using (UserDac dac = new UserDac()) { Hashtable param = new Hashtable(); return (List) dac.GetVersionInfo(this.IbatisMapper, param); } } catch (Exception ex) { CLIP.eForm.Server.Diagnostics.LogHelper.LoggingHandler.Error(string.Format("CLIP.eForm error: {0}", ex.Message)); throw ex; } } } }