123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPPMI03200_입원약정서관리.xrw
- * 작 성 자 : 조중래
- * 작 성 일 : 2012.02.22
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>입원약정서관리</xhtml:title>
- <model id="model1">
- <![CDATA[/>]]>
- <instance id="instance1">
- <root xmlns="">
- <send>
- <cond>
- <pid/>
- <ocrtagno/>
- <fromdd/>
- <todd/>
- <agmttype>0</agmttype>
- <indd/>
- </cond>
- <agmtdesc>
- <pid/>
- <hngnm/>
- <age/>
- <sex/>
- <brthdd/>
- <rrgstno/>
- <address/>
- <agmttype>1</agmttype>
- <fromdd/>
- <todd/>
- <rmk/>
- <ocrtagno/>
- <orgfromdd/>
- <indd/>
- <ocrtype>S</ocrtype>
- </agmtdesc>
- <iemr/>
- </send>
- <main>
- <agmtlist/>
- <printinfo>
- <seq/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <address/>
- <hometelno/>
- <mpphontel/>
- <hospnm/>
- <ordcentnm/>
- <orddeptnm/>
- <roomnm/>
- <roomcnt/>
- <insukind/>
- <curdate/>
- <curtm/>
- <usernm/>
- <instcd/>
- <orddd/>
- </printinfo>
- <ininfo>
- <pid/>
- <indd/>
- <agmttype/>
- <autoyn/>
- <orddeptcd/>
- <orddrid/>
- <cretno/>
- <ordtype/>
- <orddeptnm/>
- <roomcd/>
- <bedcnt/>
- <insukind/>
- <fromdd/>
- <todd/>
- <officetelno/>
- <aprv1/>
- <aprv2/>
- <aprv3/>
- </ininfo>
- <agmtcount/>
- <inptinfo/>
- </main>
- <init>
- <hardcd/>
- <prncd/>
- <PAM>
- <PK048list>
- <PK048>
- <cdid/>
- <cdnm/>
- </PK048>
- </PK048list>
- <PK066list>
- <PK066>
- <cdid/>
- <cdnm/>
- </PK066>
- </PK066list>
- </PAM>
- </init>
- <hidden>
- </hidden>
- <tmp>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 입원 / 응급등록시 호출된 경우
- model.setValue("/root/main/ininfo/pid", opener.javascript.getParameter("SPPMI03200_PARM_PID"));
- model.setValue("/root/main/ininfo/indd", opener.javascript.getParameter("SPPMI03200_PARM_ORDDD"));
- model.setValue("/root/main/ininfo/agmttype", opener.javascript.getParameter("SPPMI03200_PARM_AGMTTYPE"));
- model.setValue("/root/main/ininfo/orddeptcd", opener.javascript.getParameter("SPPMI03200_PARM_ORDDEPTCD"));
- model.setValue("/root/main/ininfo/orddrid", opener.javascript.getParameter("SPPMI03200_PARM_ORDDRID"));
- model.setValue("/root/main/ininfo/cretno", opener.javascript.getParameter("SPPMI03200_PARM_CRETNO"));
- model.setValue("/root/main/ininfo/ordtype", opener.javascript.getParameter("SPPMI03200_PARM_ORDTYPE"));
-
- model.refreshpart("/root/main/ininfo");
-
- // OCR연동을 위한 서식코드 취득
- reqHardCodeInfo("/root/send/reqdata", "/root/init/prncd", "5604");
-
- // 2009.04.02 - 출력물 자동 출력여부를 위해서 원무공통코드조회
- pamfGetCodeList(new Array("PK048","PK066"), new Array("/root/init/PAM/PK048list", "/root/init/PAM/PK066list"));
-
- // 차트번호가 전달된 경에는 자동검색 실시
- if (!isNull(model.getValue("/root/main/ininfo/pid"))) {
-
- // 차트번호 설정
- model.setValue("/root/send/cond/pid", model.getValue("/root/main/ininfo/pid"));
- model.refresh();
-
- // 검색 실시
- fSearch();
- }
-
- model.setValue("/root/send/agmtdesc/ocrtype", "S"); // O:OCR, S:전자서명
- model.setValue("/root/send/agmtdesc/agmttype", "1");
- model.setValue("/root/send/agmtdesc/fromdd", getCurrentDate());
-
- var todd = getNewDate();
- todd = todd.getAddDate(364, "D");
- todd = getDateTime(todd, "D");
- model.setValue("/root/send/agmtdesc/todd", todd);
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRPMI03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/agmtlist"/>
- <submission id="TXPMI03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/agmtdesc" resultref="/root/main/agmtlist"/>
- <submission id="TXPMI03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/printcond" resultref="/root/main/printinfo"/>
- <submission id="TXMRF03805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/atadocrdata" resultref="/root/hidden/insocrtag"/>
- <submission id="TRPMI03204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/agmtcount"/>
- <submission id="TRPMI03205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/agmtdesc" resultref="/root/main/ocrinfo"/>
- <submission id="TRPMI03206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/ininfo" resultref="/root/main/inptinfo"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../pam/ipatmngtweb/js/SPPMI03200.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="850" style="text-align:center; border-color:#c0c0c0; margin-left:8; margin-top:8; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:795px; top:658px; width:385px; height:160px; color:#0000ff; background-color:#e9f4fe; border-color:#99ccff; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:20px; width:1175px; height:35px; "/>
- <caption id="caption1" class="tit_2" style="left:10px; top:665px; width:139px; height:13px; ">입원약정서 상세정보</caption>
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">입원약정서 관리</caption>
- <input id="ipt_pid" ref="/root/send/agmtdesc/pid" disabled="true" navindex="16" style="left:91px; top:687px; width:87px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
-
- setInputNodeCurText();
-
- btn_ptbspid.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" class="cell_1" style="left:5px; top:687px; width:85px; height:20px; ">환자번호</caption>
- <button id="btn_ptbspid" class="icon_search" disabled="true" visibility="hidden" style="left:184px; top:689px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptbs_pid = model.getValue("/root/send/agmtdesc/pid");
-
- // 화면 초기화
- //fInitialize();
-
- if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
- model.resetInstanceNode("/root/send/data9");
- } else {
- model.setValue("/root/send/data9/pid", ptbs_pid);
- model.setValue("/root/send/data9/srchcond", "1");
- }
- model.setValue("/root/send/data9/autoflag", "Y");
- model.setValue("/root/send/data9/checkfnexam", "1");
- //model.setValue("/root/send/data9/autoflag", "NON"); //조회내역 없을경우 자동 화면 닫기
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data9", "/root/send");
- // modal("../../../pam/patinfomngtweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data9", "/root/send");
- model.resetInstanceNode("/root/send/data9");
-
- // 팝업 정상종료 체크
- if (model.getValue("/root/main/popupendflag") == 'ok') {
-
- // 환자기본정보 입력
- model.setValue("/root/send/agmtdesc/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/agmtdesc/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/agmtdesc/age", model.getValue("/root/main/patinfo/patinfolist/age"));
- model.setValue("/root/send/agmtdesc/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/send/agmtdesc/brthdd", model.getValue("/root/main/patinfo/patinfolist/brthdd"));
- model.setValue("/root/send/agmtdesc/rrgstno", model.getValue("/root/main/patinfo/patinfolist/rrgstno1") + model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/send/agmtdesc/address", model.getValue("/root/main/patinfo/patinfolist/addr") + model.getValue("/root/main/patinfo/patinfolist/detladdr"));
- }
-
- model.refresh();
-
- // 로딩창 열기
- // var sWindowMsg = "환자의 정보를 조회중입니다...";
- // callLoadingWindow(sWindowMsg);
- //fInRgstBaseInfoRef(2);
- //2007.11.28 인사정보의 직원, 직원가족정보 조회
- //fPatEmplInfoRef();
- //model.refresh();
- // 로딩창 닫기
- // removeLoadingWindow();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:5px; y1:682px; x2:786px; y2:682px; "/>
- <caption id="caption4" class="cell_1" style="left:206px; top:687px; width:84px; height:20px; ">성명</caption>
- <caption id="caption5" class="cell_1" style="left:581px; top:687px; width:76px; height:20px; ">생년월일</caption>
- <caption id="caption6" class="cell_1" style="left:206px; top:708px; width:84px; height:20px; ">주소</caption>
- <caption id="caption7" class="cell_1" style="left:393px; top:687px; width:84px; height:20px; ">나이/성별</caption>
- <caption id="caption8" class="cell_1" style="left:5px; top:708px; width:85px; height:20px; ">주민번호</caption>
- <line id="line3" class="line_1" style="x1:5px; y1:60px; x2:1180px; y2:60px; "/>
- <input id="opt_hngnm" ref="/root/send/agmtdesc/hngnm" disabled="true" style="left:291px; top:687px; width:100px; height:19px; text-align:center; "/>
- <input id="opt_age" ref="/root/send/agmtdesc/age" disabled="true" style="left:478px; top:687px; width:47px; height:19px; text-align:center; "/>
- <select1 id="cmb_sex" ref="/root/send/agmtdesc/sex" disabled="true" appearance="minimal" style="left:524px; top:687px; width:54px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <input id="opt_brthdd" ref="/root/send/agmtdesc/brthdd" disabled="true" format="yyyy-mm-dd" style="left:658px; top:687px; width:127px; height:19px; text-align:center; "/>
- <input id="opt_address" ref="/root/send/agmtdesc/address" disabled="true" style="left:291px; top:708px; width:494px; height:19px; text-align:left; "/>
- <input id="opt_rrgstno" ref="/root/send/agmtdesc/rrgstno" disabled="true" format="999999-9999999" style="left:91px; top:708px; width:112px; height:19px; text-align:center; "/>
- <input id="ipt_fromdd" ref="/root/send/agmtdesc/fromdd" disabled="false" navindex="6" inputtype="date" style="left:291px; top:729px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/agmtdesc/todd" disabled="false" navindex="7" inputtype="date" style="left:478px; top:729px; width:100px; height:19px; "/>
- <select1 id="cmb_type" ref="/root/send/agmtdesc/ocrtype" disabled="false" navindex="17" appearance="minimal" style="left:91px; top:729px; width:57px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>전자</label>
- <value>S</value>
- </item>
- <item>
- <label>OCR</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <textarea id="ta_rmk" ref="/root/send/agmtdesc/rmk" navindex="8" style="left:91px; top:750px; width:694px; height:68px; text-align:left; "/>
- <caption id="caption11" class="cell_1" style="left:5px; top:729px; width:85px; height:20px; ">서식/구분 (*)</caption>
- <caption id="caption12" class="cell_1" style="left:206px; top:729px; width:84px; height:20px; ">시작일자 (*)</caption>
- <caption id="caption13" class="cell_1" style="left:393px; top:729px; width:84px; height:20px; ">종료일자 (*)</caption>
- <caption id="caption14" class="cell_1" style="left:5px; top:750px; width:85px; height:68px; ">비고</caption>
- <datagrid id="grd_agmt" nodeset="/root/main/agmtlist" visibility="visible" caption="isntcd^차트번호^성명^나이^성별^생년월일^서식^구분^ocrtagno^연동^스캔^시작일자^seqno^종료일자^해당입원일자^입원구분^입원구분^진료과^orddeptcd^전문의^medispclcd^주민번호^주소^비고^최초등록자^최초등록일시^최종수정자^최종수정일시^cretno^roomnm^insukind^hometel^mpphontel^hospnm" colsep="^" colwidth="31, 70, 66, 32, 32, 74, 39, 40, 100, 31, 30, 84, 48, 84, 84, 30, 30, 100, 60, 100, 34, 40, 40, 200, 80, 120, 80, 120, 66, 72, 69, 61, 79, 74" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:65px; width:1175px; height:580px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="brthdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="ocrtype" type="combo">
- <choices>
- <item>
- <label>OCR</label>
- <value>O</value>
- </item>
- <item>
- <label>전자</label>
- <value>S</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="agmttype" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>기간</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="ocrtagno" style="text-align:center; "/>
- <col ref="emrif" style="text-align:center; "/>
- <col ref="scanyn" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtype" style="text-align:center; "/>
- <col ref="orgordtype" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="medispclnm" style="text-align:center; "/>
- <col ref="medispclid" visibility="hidden"/>
- <col ref="rrgstno" visibility="hidden" format="999999-9999999" style="text-align:center; "/>
- <col ref="address" visibility="hidden"/>
- <col ref="rmk" visibility="visible"/>
- <col ref="fstrgstrnm" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="roomnm" visibility="hidden"/>
- <col ref="insukind" visibility="hidden"/>
- <col ref="hometel" visibility="hidden"/>
- <col ref="mpphontel" visibility="hidden"/>
- <col ref="hospnm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_agmt.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- model.copyNode("/root/send/agmtdesc", "/root/main/agmtlist[" + grd_agmt.row + "]");
- model.makeValue("/root/send/agmtdesc/orgfromdd", model.getValue("/root/send/agmtdesc/fromdd"));
- model.refresh();
-
- // 의무기록 연동 이후에는 시작일자 및 종료일자 수정 불가능하도록 제어
- if (model.getValue("/root/send/agmtdesc/emrif") == "Y") {
-
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
-
- } else {
-
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- }
-
- // 서식/구분은 수정 불가
- cmb_type.disabled = true;
- combo1.disabled = true;
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_init" class="btn4_letter3" navindex="15" style="left:1115px; top:824px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn5_letter2" navindex="11" style="left:733px; top:658px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // OCR서식의 경우에만 기존로직 설정
- if (model.getValue("/root/send/agmtdesc/ocrtype") == "O"
- && model.getValue("/root/send/agmtdesc/emrif") == "Y") {
-
- messageBox("이미 연동이 완료된 데이터입니다. ", "C000");
-
- return;
- }
-
-
- if (messageBox("삭제하시겠습니까?", "Q000") == "6") {
-
- model.makeValue("/root/send/agmtdesc/updateflag", "D");
-
- if (submit("TXPMI03202")) {
-
- // 성공시 리스트 재조회
- fSearch();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1115px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 검색 필수조건 확인
- if (isNull(model.getValue("/root/send/cond/pid"))
- && isNull(model.getValue("/root/send/cond/ocrtagno"))
- && (isNull(model.getValue("/root/send/cond/fromdd"))
- || isNull(model.getValue("/root/send/cond/todd")))) {
-
- messageBox("차트번호 또는 OCRTAGNO가 없는 경우에는 적용기간을 입력하시기 바랍니다.", "E000");
- return;
- }
-
- // 적용기간 제한 설정
- if (getDateInterval(model.getValue("/root/send/cond/fromdd"), model.getValue("/root/send/cond/todd")) > 10) {
-
- messageBox("시스템부하방지를 위하여 검색기간은 최대 10일 이내로 설정 해주십시요. ", "C000");
-
- return;
- }
-
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:14px; top:28px; width:80px; height:17px; ">차트번호</caption>
- <caption id="caption15" class="search_name" style="left:174px; top:28px; width:101px; height:17px; ">OCRTAGNO</caption>
- <caption id="caption16" class="search_name" style="left:413px; top:28px; width:80px; height:17px; ">적용기간</caption>
- <input id="ipt_pid2" ref="/root/send/cond/pid" navindex="1" maxbyte="8" style="left:95px; top:28px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
-
- setInputNodeCurText();
-
- fSearch();
- }
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/send/cond/ocrtagno" navindex="2" inputtype="button" style="left:280px; top:28px; width:122px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 바코드 리더기
- fSetBcode();
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/cond/fromdd" navindex="3" inputtype="date" style="left:499px; top:28px; width:90px; height:19px; "/>
- <input id="input3" ref="/root/send/cond/todd" navindex="4" inputtype="date" style="left:606px; top:28px; width:90px; height:19px; "/>
- <caption id="caption17" style="left:590px; top:28px; width:15px; height:20px; text-align:center; ">~</caption>
- <input id="input4" ref="/root/send/agmtdesc/ocrtagno" disabled="true" style="left:658px; top:729px; width:127px; height:19px; text-align:center; "/>
- <caption id="caption10" class="cell_1" style="left:581px; top:729px; width:76px; height:20px; ">OCRNO</caption>
- <button id="button1" class="btn3_letter8" navindex="12" style="left:10px; top:825px; width:128px; height:22px; ">
- <caption>약정서 신규출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/send/agmtdesc/ocrtype") == ""
- || model.getValue("/root/send/agmtdesc/agmttype") == "") {
- messageBox("서식 및 구분이 선택되지 않았습니다. ", "C000");
- return;
- }
-
- if (model.getValue("/root/main/ininfo/pid") == "") {
- messageBox("환자정보가 없습니다", "C000");
- return;
- }
-
- if (model.getValue("/root/send/cond/pid") != model.getValue("/root/main/ininfo/pid")) {
- messageBox("입원등록화면의 환자와 다른 환자가 현재 조회되었습니다.\r\n입원약정서 화면을 닫고 새로 진행해주시기 바랍니다.", "C000");
- return;
- }
-
- if (model.getValue("/root/send/agmtdesc/agmttype") == "2"
- && (model.getValue("/root/send/agmtdesc/fromdd") == ""
- || model.getValue("/root/send/agmtdesc/todd") == "")) {
- messageBox("기간약정서의 경우 시작일자 / 종료일자를 입력해야합니다.", "C000");
- return;
- }
-
- // OCR 서식
- if (model.getValue("/root/send/agmtdesc/ocrtype") == "O") {
-
- // 일반약정서
- if (model.getValue("/root/send/agmtdesc/agmttype") == "1") {
-
- // 약정서 출력
- fPrintAgmt(model.getValue("/root/main/ininfo/pid"),
- model.getValue("/root/main/ininfo/indd"),
- model.getValue("/root/main/ininfo/orddeptcd"),
- model.getValue("/root/main/ininfo/orddrid"),
- '1',
- 'N',
- '',
- '',
- '',
- '',
- model.getValue("/root/main/ininfo/cretno"));
-
- // 기간약정서
- } else {
-
- // 기존의 출력데이터 존재유무확인
- var retMsg = fReqGetInAgmtCount(
- model.getValue("/root/main/ininfo/pid"),
- model.getValue("/root/main/ininfo/indd"),
- "2"
- );
-
- if (retMsg == true) {
-
- messageBox("이미 기간약정서가 존재합니다. 재출력은 OCR반납화면을 이용하시기 바랍니다.", "C000");
-
- return;
-
- } else {
-
- // 신규출력
- fPrintAgmt(model.getValue("/root/main/ininfo/pid"),
- model.getValue("/root/main/ininfo/indd"),
- model.getValue("/root/main/ininfo/orddeptcd"),
- model.getValue("/root/main/ininfo/orddrid"),
- '2',
- 'N',
- '',
- '',
- '',
- model.getValue("/root/send/agmtdesc/todd"),
- model.getValue("/root/main/ininfo/cretno")
- );
- }
- }
-
- // 전자동의서
- } else {
-
-
- // 전자동의서의 경우 입원이력 체크(반드시 있어야함)
- if (model.getValue("/root/main/ininfo/cretno") == null || model.getValue("/root/main/ininfo/cretno") == "") {
- messageBox("전자동의서의 경우 입원등록 이후에 진행하시기 바랍니다. ", "C000");
- return;
- }
-
- // 입원정보 조회
- submit("TRPMI03206");
-
- // 입원정보 설정
- model.setValue("/root/main/ininfo/orddeptnm", model.getValue("/root/main/inptinfo/orddeptnm"));
- model.setValue("/root/main/ininfo/roomcd", model.getValue("/root/main/inptinfo/roomcd"));
- model.setValue("/root/main/ininfo/bedcnt", model.getValue("/root/main/inptinfo/bedcnt"));
- model.setValue("/root/main/ininfo/insukind", model.getValue("/root/main/inptinfo/insukind"));
-
-
- // 전자동의서 파라미터 설정
- setParameter("SSMRC03160_param_patid", model.getValue("/root/main/ininfo/pid"));
- setParameter("SSMRC03160_param_indate", model.getValue("/root/main/ininfo/indd"));
- setParameter("SSMRC03160_param_cretno", model.getValue("/root/main/ininfo/cretno"));
- setParameter("SSMRC03160_param_instcd", getUserInfo("dutplceinstcd"));
- setParameter("SSMRC03160_param_cuser", getUserInfo("userid"));
- setParameter("SSMRC03160_param_class", model.getValue("/root/main/ininfo/ordtype"));
- setParameter("SSMRC03160_param_cpensize", "1"); // 환자측 펜굵기 강제지정
- setParameter("SSMRC03160_param_sendmsg", "1"); // 환자측 필압설정 강제지정
-
-
- // 구분에 따라 서식코드 / 기간 설정
- if (model.getValue("/root/send/agmtdesc/agmttype") == "1") {
- setParameter("SSMRC03160_param_docucd", "1300013648"); // 1300013648 일반약정서
- model.setValue("/root/main/ininfo/fromdd", model.getValue("/root/send/agmtdesc/fromdd"));
- model.setValue("/root/main/ininfo/todd", model.getValue("/root/send/agmtdesc/fromdd"));
- model.setValue("/root/main/ininfo/agmttype", "1");
- setParameter("SSMRC03160_param_flag", "A"); // S : 선택진료신청서, A : 입원약정서, T : 기간약정서
- } else {
- setParameter("SSMRC03160_param_docucd", "1300013649"); // 1300013649 기간약정서
- model.setValue("/root/main/ininfo/fromdd", model.getValue("/root/send/agmtdesc/fromdd"));
- model.setValue("/root/main/ininfo/todd", model.getValue("/root/send/agmtdesc/todd"));
- model.setValue("/root/main/ininfo/agmttype", "2");
- setParameter("SSMRC03160_param_flag", "T"); // S : 선택진료신청서, A : 입원약정서, T : 기간약정서
- }
-
- // 담당자 연락처 설정
- // 치과병원 법인화 관련 033 추가 by 조중래 20151123
- if (getUserInfo("dutplceinstcd") == '031') {
- model.setValue("/root/main/ininfo/officetelno", "053-200-5061"); // 본원
- } else if (getUserInfo("dutplceinstcd") == '032') {
- model.setValue("/root/main/ininfo/officetelno", "053-200-2073"); // 칠곡
- } else if (getUserInfo("dutplceinstcd") == '033') {
- model.setValue("/root/main/ininfo/officetelno", "053-200-5061"); // 치과병원
- } else {
- model.setValue("/root/main/ininfo/officetelno", "");
- }
-
- // 결재정보 설정
- model.setValue("/root/main/ininfo/aprv1", getUserInfo("usernm"));
- model.setValue("/root/main/ininfo/aprv2", model.getValue("/root/init/PAM/PK066list/PK066[detl='원무 마감 팀장']/cdnm"));
- model.setValue("/root/main/ininfo/aprv3", model.getValue("/root/init/PAM/PK048list/PK048[detl='원무 마감 부서장']/cdnm"));
-
- // 전자동의서 팝업 호출
- modal("SSMRC03160");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn5_letter2" navindex="10" style="left:685px; top:658px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (isNull(model.getValue("/root/send/agmtdesc/pid"))) {
-
- messageBox("대상 약정서가 선택되지 않았습니다. ", "C000");
- return;
- }
-
- // 수정은 OCR 서식만 가능(전자서명 불가)
- if (model.getValue("/root/send/agmtdesc/ocrtype") != "O") {
-
- messageBox("전사서명서식은 수정 불가능합니다.");
-
- return;
- }
-
- /*
- if (model.getValue("/root/send/agmtdesc/emrif") == "Y") {
-
- messageBox("이미 연동이 완료된 데이터입니다. ", "C000");
-
- return;
- }
- */
-
- if (isNull(model.getValue("/root/send/agmtdesc/fromdd"))) {
-
- messageBox("시작일자는 필수입니다. ", "C000");
- return;
- }
-
- if (messageBox("등록하시겠습니까?", "Q000") == "6") {
-
- model.makeValue("/root/send/agmtdesc/updateflag", "U");
- model.makeValue("/root/send/agmtdesc/formcd", fGetFromCd(model.getValue("/root/send/agmtdesc/agmttype")));
-
- if (submit("TXPMI03202")) {
-
- // 성공시 리스트 재조회
- submit("TRPMI03201");
-
- /*
- // 의무기록 연동이 되어 있지 않은 경우 연동실시
- if (model.getValue("/root/send/agmtdesc/emrif") == "N") {
-
- if (fOCRSave()) {
-
- // 연동 성공시 재저장을 막기위한 상세정보 리셋
- model.resetInstanceNode("/root/send/agmtdesc");
- model.refresh();
- }
- }
- */
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter6" navindex="14" style="left:146px; top:825px; width:104px; height:22px; ">
- <caption>약정서재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRePrintOcr();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter7" navindex="9" style="left:526px; top:658px; width:97px; height:19px; text-align:center; ">
- <caption>의무기록연동</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 의무기록연동
- fOCRSave();
-
- ]]>
- </script>
- </button>
- <input id="ipt_ocrtagnoif" ref="/root/send/cond/ocrtagno" navindex="2" inputtype="button" style="left:400px; top:658px; width:122px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- // 바코드 조회
- if (fSetBcode() != false) {
-
- // 결과가 1개일 때만 자동세팅
- if (getNodesetCount("/root/main/agmtlist") < 1) {
-
- messageBox("검색결과가 존재하지 않습니다. ", "C000");
-
- return;
-
- } else if (getNodesetCount("/root/main/agmtlist") > 1) {
-
- messageBox("검색결과가 복수건 존재합니다. 대상을 선택한 후 진행하십시요. ", "C000");
-
- return;
-
- } else {
-
- // 상세정보로 복사하기
- model.copyNode("/root/send/agmtdesc", "/root/main/agmtlist[" + 1 + "]");
- model.refresh();
-
- // 의무기록연동 자동호출
- fOCRSave();
- }
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption18" style="left:294px; top:658px; width:104px; height:20px; text-align:right; ">* 의무기록연동용 :</caption>
- <select1 id="radio1" ref="/root/send/cond/agmttype" appearance="full" cols="3" overflow="visible" style="left:767px; top:28px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>기간</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption19" class="search_name" style="left:711px; top:28px; width:55px; height:17px; ">구분</caption>
- <input id="input5" ref="/root/send/cond/indd" inputtype="date" style="left:1001px; top:28px; width:90px; height:19px; "/>
- <caption id="caption20" class="search_name" style="left:915px; top:28px; width:80px; height:17px; ">입원일자</caption>
- <caption id="caption21" style="left:802px; top:684px; width:378px; height:133px; color:#000000; ">
- <![CDATA[가. 외래에서 출력된 OCR약정서의 경우, 반납 이전에 반드시
- 의무기록연동을 실시하시기 바랍니다. (원무출력 시 자동연동)
- 나. 약정서의 삭제는 의무기록 연동 이전에만 가능하며,
- 의무기록 연동 이후는 의무기록실과의 업무협조를 통하여 해당
- 의무기록(약정서)을 삭제하시기 바랍니다.
- 다. 약정서의 재출력은 의무기록 연동 이전에만 가능하며,
- 의무기록 연동 이후는 OCR반납화면에서 재출력하시기 바랍니다.]]>
- </caption>
- <caption id="caption22" style="left:938px; top:664px; width:105px; height:20px; font-weight:bold; text-align:center; ">
- <![CDATA[[ 참 고 사 항 ]]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //rePrintAgmtPid("1496619", "20121024");
- ]]>
- </script>
- </caption>
- <button id="button5" class="btn3_letter6" navindex="14" style="left:259px; top:825px; width:104px; height:22px; ">
- <caption>OCR미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (isNull(model.getValue("/root/send/agmtdesc/ocrtagno")) || model.getValue("/root/send/agmtdesc/scanyn") != 'Y'){
- messageBox("약정서가 선택되지 않았거나 스캔되지 않았습니다.\r\n데이터를 확인하시기 바랍니다.", "C000");
- return;
- }
-
- model.resetInstanceNode("/root/send/iemr");
- model.makeValue("/root/send/iemr/pid", model.getValue("/root/send/agmtdesc/pid"));
- model.makeValue("/root/send/iemr/ocrcode", model.getValue("/root/send/agmtdesc/ocrtagno"));
-
- if((window.children.item("imgemrviewer") == null)){
- window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- window.children.item("imgemrviewer").document.title = "Image EMR Viewer";
- }else{
- messageBox("약정서 뷰어 호출에 실패하였습니다.", "C000");
- }
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/agmtdesc/agmttype" disabled="false" navindex="17" appearance="minimal" style="left:147px; top:729px; width:56px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>기간</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|