123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data0>
- <ioflag/>
- </data0>
- <data1>
- <refcond>0</refcond>
- <cond1/>
- <cond2/>
- </data1>
- <iemr>
- <pid/>
- <treatno/>
- <orddeptcd/>
- <indd/>
- <docucd/>
- <ioflag/>
- // <cmc_cretno/>
- <cmc_spcid/>
- <cmc_orddate/>
- <cmc_orderseqno/>
- </iemr>
- </send>
- <main>
- <inpatientlist/>
- </main>
- <init>
- <P0149list>
- <P0149>
- <cdid/>
- <cdnm/>
- </P0149>
- </P0149list>
- <P0016list>
- <P0016>
- <cdid/>
- <cdnm/>
- </P0016>
- </P0016list>
- </init>
- <hidden>
- <init/>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data0" resultref="/root/hidden/init"/>
- <submission id="TRPMC05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/inpatientlist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- zbcfGetCodeList(new Array("P0149","P0016"), new Array("/root/init/P0149list", "/root/init/P0016list"));
-
- model.setValue("/root/send/data0/ioflag", "I"); // 입원진료과명을 가져오기 위함
-
- submit("TRPMI00106", false);
-
- makeReportPreview(0, 0, 10, 10, "grp_report");
-
- fInitialize();
-
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize() {
- model.resetInstanceNode("/root/main/inpatientlist");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/data1/refcond","0");
-
- //fSelectRefItem();
-
- model.refresh();
- }
-
- function fSelectRefItem()
- {
- // 0. 전체 1.환자번호 2.환자성명 3.주민번호 4.입원일자 5.퇴원일자 6.진료과 7.보험유형
- var sRefCond = model.getValue("/root/send/data1/refcond");
-
- model.setValue("/root/send/data1/cond1", "");
- model.setValue("/root/send/data1/cond2", "");
-
- switch(sRefCond) {
- case '0' :
- ipt_cond1.visible = false;
- ipt_cond2.visible = false;
- ipt_date.visible = false;
- cmb_cond.visible = false;
- btn_ref.dispatch("DOMActivate");
- break;
- case '1' :
- ipt_cond1.attribute("maxlength") = 10;
- ipt_cond1.visible = true;
- ipt_cond2.visible = false;
- ipt_date.visible = false;
- cmb_cond.visible = false;
- model.setFocus("ipt_cond1");
- break;
- case '2' :
- ipt_cond1.attribute("maxlength") = 50;
- ipt_cond1.visible = true;
- ipt_cond2.visible = false;
- ipt_date.visible = false;
- cmb_cond.visible = false;
- model.setFocus("ipt_cond1");
- break;
- case '3' :
- ipt_cond1.attribute("maxlength") = 6;
- ipt_cond1.visible = true;
- ipt_cond2.visible = true;
- ipt_date.visible = false;
- cmb_cond.visible = false;
- model.setFocus("ipt_cond1");
- break;
- case '4' :
- model.setValue("/root/send/data1/cond1", getCurrentDate());
- ipt_cond1.visible = false;
- ipt_cond2.visible = false;
- ipt_date.visible = true;
- cmb_cond.visible = false;
- model.setFocus("ipt_date");
- break;
- case '5' :
- model.setValue("/root/send/data1/cond1", getCurrentDate());
- ipt_cond1.visible = false;
- ipt_cond2.visible = false;
- ipt_date.visible = true;
- cmb_cond.visible = false;
- model.setFocus("ipt_date");
- break;
- case '6' :
- cmb_cond.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddeptcd";
- ipt_cond1.visible = false;
- ipt_cond2.visible = false;
- ipt_date.visible = false;
- cmb_cond.visible = true;
- model.setFocus("cmb_cond");
- break;
- case '7' :
- cmb_cond.choices.itemset.attribute("nodeset") = "/root/hidden/init/insukind";
- ipt_cond1.visible = false;
- ipt_cond2.visible = false;
- ipt_date.visible = false;
- cmb_cond.visible = true;
- model.setFocus("cmb_cond");
- break;
- default :
- ipt_cond1.visible = false;
- ipt_cond2.visible = false;
- ipt_date.visible = false;
- cmb_cond.visible = false;
- }
- model.refresh();
- }
-
- // 조회조건에 따른 값 체크
- function fCheckRefCondition() {
- // 1. 전체 2.환자번호 4.진료과 5.병동
- var sRefCond = model.getValue("/root/send/data1/refcond");
-
- var sCond1 = model.getValue("/root/send/data1/cond1");
- var sCond2 = model.getValue("/root/send/data1/cond2");
-
- var bResult = false;
-
- switch(sRefCond) {
- case '0' :
- bResult = true;
- break;
- case '1' :
- if (isNull(sCond1)) {
- messageBox("환자번호를 입력 후 조회하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '2' :
- if (isNull(sCond1)) {
- messageBox("환자번호를 입력 후 조회하십시오!!", "I");
- bResult = false;
- } else if (!isNull(sCond1) && sCond1.length < 2) {
- messageBox("성명은 2자 이상 입력하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '3' :
- if (isNull(sCond1)) {
- messageBox("주민번호 앞자리를 입력하십시오!!", "I");
- bResult = false;
- } else if (!isNull(sCond1) && sCond1.length != 6) {
- messageBox("주민번호 앞자리는 6자리를 입력하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '4' :
- if (isNull(sCond1)) {
- messageBox("입원일자를 입력하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '5' :
- if (isNull(sCond1)) {
- messageBox("퇴원일자를 입력하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '6' :
- if (isNull(sCond1)) {
- messageBox("진료과를 선택하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- case '7' :
- if (isNull(sCond1)) {
- messageBox("보험유형을 선택하십시오!!", "I");
- bResult = false;
- } else {
- bResult = true;
- }
- break;
- default :
- }
-
- return bResult;
- }
-
- function fPrint(pCond) {
- var sPrintYN = "false";
- var sAutoCloseYN = "false";
- var sViewYN = "";
-
- if (pCond == "PREVIEW") {
- sPrintYN = "false";
- sAutoCloseYN = "false";
- sViewYN = "";
- }
-
- if (pCond == "PRINT") {
- sPrintYN = "true";
- sAutoCloseYN = "false";
- sViewYN = "grp_report";
- }
-
- var iCount = getNodesetCount("/root/main/vipinpatlist/vipinpatspec");
- if (iCount > 0) {
- var sPrintFromdd = model.getValue("/root/send/fromdd");
- var sPrinttodd = model.getValue("/root/send/todd");
-
- sPrintFromdd = sPrintFromdd.substr(0, 4) + "-" + sPrintFromdd.substr(4, 2) + "-" + sPrintFromdd.substr(6, 4);
-
- model.makeValue("/root/hidden/printtype/printkind", "VIP재원");
- model.makeValue("/root/hidden/printtype/printfromdd", sPrintFromdd);
- model.makeValue("/root/hidden/printtype/printtodd", sPrinttodd);
-
- exeReportPreview("RPPMI03601", "XMLSTR" , "" , "" , sPrintYN , "", "", "", "", sAutoCloseYN, "", sViewYN);
- } else {
- messageBox("출력할 내용이 없습니다!!", "I");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;1,1195;2,52;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">입원약정서조회</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption17" class="search_name" style="left:5px; top:8px; width:86px; height:17px; ">조회조건 :</caption>
- <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회 구분별로 체크 로직 추가....
- var bOK = fCheckRefCondition();
-
- if (bOK == true) {
- submit("TRPMC05301");
-
- var iCount = getNodesetCount("/root/main/inpatientlist");
- if (iCount == 0) {
- messageBox("조회 결과가 없습니다.", "I");
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_condition" ref="/root/send/data1/refcond" appearance="minimal" style="left:95px; top:7px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체(재원)</label>
- <value>0</value>
- </item>
- <item>
- <label>환자번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자성명</label>
- <value>2</value>
- </item>
- <item>
- <label>입원일자</label>
- <value>4</value>
- </item>
- <item>
- <label>퇴원일자</label>
- <value>5</value>
- </item>
- <item>
- <label>주민번호</label>
- <value>3</value>
- </item>
- <item>
- <label>진료과</label>
- <value>6</value>
- </item>
- <item>
- <label>보험유형</label>
- <value>7</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSelectRefItem();
- ]]>
- </script>
- </select1>
- <input id="ipt_cond1" ref="/root/send/data1/cond1" visibility="hidden" imemode="hangul" style="left:204px; top:7px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // enter key
- inputEnterKey("btn_ref", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_cond2" ref="/root/send/data1/cond2" visibility="hidden" maxlength="7" style="left:310px; top:7px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // enter key
- inputEnterKey("btn_ref", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_date" ref="/root/send/data1/cond1" visibility="hidden" inputtype="date" style="left:204px; top:7px; width:100px; height:19px; "/>
- <select1 id="cmb_cond" ref="/root/send/data1/cond1" visibility="hidden" appearance="minimal" style="left:204px; top:7px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 콤보 선택 시 자동 조회
- btn_ref.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:300px; height:14px; font-family:돋움; vertical-align:middle; ">환자목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="grp_report" visibility="hidden" style="left:865px; top:50px; width:65px; height:15px; "/>
- <button id="btn_print" class="btn2_letter2" visibility="hidden" style="left:1007px; top:50px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrint("PRINT");
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_inpatientlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_inpatientlist" nodeset="/root/main/inpatientlist" class="datagrid2" caption="스캔
여부^환자번호^환자성명^주민번호^성별^나이^보험유형^입원일자^퇴원일자^진료과^전문의^병동^병실^스캔여부^h_treatno^h_indd^h_cretno" colsep="^" colwidth="38, 100, 100, 110, 35, 35, 80, 100, 100, 120, 80, 120, 90, 60, 54, 51, 65" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:70px; width:1194px; height:669px; ">
- <col ref="scanyn" style="text-align:center; "/>
- <col ref="pid" type="input" style="text-align:left; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col disabled="true" ref="sex" style="text-align:center; "/>
- <col disabled="true" ref="age" style="text-align:center; "/>
- <col disabled="true" ref="insukind" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="pamindd" format="yyyy-mm-dd"/>
- <col ref="dschdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="orddeptnm" style="text-align:left; "/>
- <col disabled="true" ref="medispclnm" style="text-align:left; "/>
- <col disabled="true" ref="wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="roomcd" style="text-align:left; "/>
- <col ref="scanyn" visibility="hidden"/>
- <col ref="treatno" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sorting 시 인스턴스 구조를 재구성
- grd_inpatientlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell() && grd_inpatientlist.col != 2) {
- btn_view.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_view" class="btn2_letter5" style="left:1052px; top:50px; width:75px; height:19px; ">
- <caption>약정서보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //================================================================================================
- //pid : 환자번호
- //orddeptcd : 진료과 코드
- //indd : 입(내)원일
- //docucd : 서식코드
- //ioflag : 입원/외래
- //================================================================================================
- var iIndex = grd_inpatientlist.row;
- var sPid = model.getValue("/root/main/inpatientlist[" + iIndex + "]/pid");
- var sTreatNo = model.getValue("/root/main/inpatientlist[" + iIndex + "]/treatno");
- //var sTreatNo = model.getValue("/root/main/inpatientlist/treatno");
-
- if (isNull(sPid)) {
- messageBox("환자를 선택하십시오!!", "I");
- return;
- }
-
- if (isNull(sTreatNo)) {
- messageBox("스캔된 약정서가 없습니다!!", "I");
- return;
- }
-
- model.resetInstanceNode("/root/send/iemr");
- model.setValue("/root/send/iemr/pid", sPid);
- model.setValue("/root/send/iemr/treatno", sTreatNo);
- // model.setValue("/root/send/iemr/pid", "3844");
- // model.setValue("/root/send/iemr/orddeptcd", "2230000000");
- // model.setValue("/root/send/iemr/indd", "20071004");
- // model.setValue("/root/send/iemr/docucd", "0000002015");
- // model.setValue("/root/send/iemr/ioflag", "O");
- // model.setValue("/root/send/iemr/cmc_cretno", "1");
- // model.setValue("/root/send/iemr/prcpdd", "");
- // model.setValue("/root/send/iemr/execprcpuniqno", "");
- // model.setValue("/root/send/iemr/instcd", "");searchChart("/root/hidden/temp");
-
- if(window.children.item("imgemrviewer") == null)
- {
- window.load("SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
-
- //중요!!!!!!!!!!!!!!! 3차 리허설 이후 주석
- // window.children.item("imgemrviewer").document.title = "Image EMR Viewer";
- // window.children.item("imgemrviewer").javaScript.searchChart("/root/hidden/temp");
- // window.children.item("imgemrviewer").javaScript.downloadChart();
- // window.children.item("imgemrviewer").javaScript.setupChart("ChartView");
- }
- else
- {
- // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
- var iemrNode = instance1.selectSingleNode("/root/send/iemr");
- window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
- // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
- window.children.item("imgemrviewer").modelesstopmost = true;
- window.children.item("imgemrviewer").modelesstopmost = false;
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|