123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <?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="">
- <main>
- <cond>
- <pid/>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <orddrid/>
- <mainjudgid/>
- <prcpcd/>
- <insukind/>
- <ioflag/>
- <resncd/>
- </cond>
- <prcpinfo>
- <prcplist/>
- </prcpinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden/>
- <init>
- <orddept/>
- <userlist/>
- <P0008/>
- <judglist/>
- <M0533/>
- </init>
- <tmp>
- <prcpresnref>
- <info>
- <pid/>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <orddrid/>
- <mainjudgid/>
- <prcpcd/>
- <insukind/>
- <ioflag/>
- <resncd/>
- </info>
- </prcpresnref>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/cond/fromdd" , getCurrentDate()); //종료일자는 현재일자
- model.setValue("/root/main/cond/todd" , getCurrentDate()); //종료일자는 현재일자
-
- mmbfGetDeptCodeComboList("/root/send/reqdata" , "/root/init/orddept" , "A"); //부서코드 콤보
- mmbfGetUserComboList("/root/send/reqdata" , "/root/init/userlist" , getUserInfo("dutplcecd"), "0330");
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //병동콤보 전체항목 추가
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- model.setValue("/root/main/cond/orddeptcd" , getUserInfo("dutplcecd"));
- model.setValue("/root/main/cond/orddrid" , getUserInfo("userid"));
-
- zbcfGetCodeList(new Array("P0008", "M0533") , new Array("/root/init/P0008", "/root/init/M0533")); // 보험유형조회
- addComboInstance("/root/init/P0008", "cdid^cdnm", "-^전체", "P0008"); //심사자 콤보 전체항목 추가
- submit("TRMMO18202");
- addComboInstance("/root/init/judglist", "userid^usernm", "-^전체", "judglist"); //심사자 콤보 전체항목 추가
- model.setValue("/root/main/cond/ioflag", "O");
-
- cmb_orddept.select(0);
- cmb_insukind.select(0);
- cmb_mainjudgid.select(0);
- cmb_orddrid.select(0);
- cmb_resn.select(0);
- // 수정이력 : 20090813 원무 JHP요청 처방사유조회 심사화면에서 사용 심사팝업사용시(popup : judg) 기본셋팅값 설정
- if(isPopup() == true){
- if(model.getValue("/root/tmp/prcpresnref/info/popup") == "judg"){
- model.setValue("/root/main/cond/pid", model.getValue("/root/tmp/prcpresnref/info/pid"));
- model.setValue("/root/main/cond/fromdd", model.getValue("/root/tmp/prcpresnref/info/fromdd"));
- model.setValue("/root/main/cond/todd", model.getValue("/root/tmp/prcpresnref/info/todd"));
- model.setValue("/root/main/cond/orddeptcd", model.getValue("/root/tmp/prcpresnref/info/orddeptcd"));
- model.setValue("/root/main/cond/orddrid", model.getValue("/root/tmp/prcpresnref/info/orddrid"));
- model.setValue("/root/main/cond/mainjudgid", model.getValue("/root/tmp/prcpresnref/info/mainjudgid"));
- model.setValue("/root/main/cond/prcpcd", model.getValue("/root/tmp/prcpresnref/info/prcpcd"));
- model.setValue("/root/main/cond/insukind", model.getValue("/root/tmp/prcpresnref/info/insukind"));
- model.setValue("/root/main/cond/ioflag", model.getValue("/root/tmp/prcpresnref/info/ioflag"));
- model.setValue("/root/main/cond/resncd", model.getValue("/root/tmp/prcpresnref/info/resncd"));
- }else if(model.getValue("/root/tmp/prcpresnref/info/popup") == "out"){ //외래간호링크추가-20091103-kys
- model.setValue("/root/main/cond/pid", model.getValue("/root/tmp/prcpresnref/info/pid"));
- model.setValue("/root/main/cond/fromdd", model.getValue("/root/tmp/prcpresnref/info/fromdd"));
- model.setValue("/root/main/cond/todd", model.getValue("/root/tmp/prcpresnref/info/todd"));
- model.setValue("/root/main/cond/orddeptcd", model.getValue("/root/tmp/prcpresnref/info/orddeptcd"));
- model.setValue("/root/main/cond/orddrid", model.getValue("/root/tmp/prcpresnref/info/orddrid"));
- model.setValue("/root/main/cond/mainjudgid", model.getValue("/root/tmp/prcpresnref/info/mainjudgid"));
- model.setValue("/root/main/cond/prcpcd", model.getValue("/root/tmp/prcpresnref/info/prcpcd"));
- model.setValue("/root/main/cond/insukind", model.getValue("/root/tmp/prcpresnref/info/insukind"));
- model.setValue("/root/main/cond/ioflag", model.getValue("/root/tmp/prcpresnref/info/ioflag"));
- model.setValue("/root/main/cond/resncd", model.getValue("/root/tmp/prcpresnref/info/resncd"));
- }else{
- ;
- }
- }
- model.refresh();
- if(model.getValue("/root/tmp/prcpresnref/info/popup") == "out"){ //외래간호링크시 자동조회(임미정선생님요청)-20091103-kys
- btn_req.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
- <submission id="TRMMO18201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/prcpinfo"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO18202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/judglist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO18200.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1195" guideline="1,1165;2,755;2,79;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:151px; height:14px; ">처방사유조회</caption>
- <caption id="caption22" class="tit_2" style="left:0px; top:83px; width:131px; height:14px; ">처방사유조회</caption>
- <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1165px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:265px; top:25px; width:73px; height:17px; ">처 방 일</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:98px; x2:1165px; y2:98px; "/>
- <caption id="caption30" class="search_name" style="left:470px; top:50px; width:90px; height:17px; ">등록번호</caption>
- <button id="btn_prcpclsnm" class="icon_search" style="left:658px; top:52px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var idate = new Date();
- var peveDate = idate.getAddDate(-3, "M");
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" imemode="disabled" maxlength="10" style="left:550px; top:50px; width:104px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_req", "DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line3" style="x1:1085px; y1:19px; x2:1085px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
- <datagrid id="grd_prcplist" nodeset="/root/main/prcpinfo/prcplist" caption="사유구분^등록번호^환자명^진료과^진료의^성분코드^처방코드^처방명^처방일시^진료과코드^진료의ID^처방사유^처방사유^처방사유^심사자^처방번호^prcpcd|사유구분^등록번호^환자명^진료과^진료의^성분코드^처방코드^처방명^처방일시^진료과코드^진료의ID^기호^설명^추가텍스트^심사자^처방번호^prcpcd" colsep="^" colwidth="62, 70, 72, 80, 65, 79, 89, 217, 124, 0, 0, 30, 246, 100, 72, 100, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:103px; width:1165px; height:652px; text-align:center; ">
- <col ref="resn"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="depthngnm"/>
- <col ref="usernm"/>
- <col ref="comcls"/>
- <col ref="prcpcd"/>
- <col ref="prcphngnm"/>
- <col ref="prcpdt"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="resncd"/>
- <col autonext="true" ref="resncnts" style="word-wrap:word; "/>
- <col/>
- <col disabled="true" ref="mainjudgid" type="combo">
- <choices>
- <itemset nodeset="/root/init/judglist/judglist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpno"/>
- <col ref="prcpdd" visibility="hidden"/>
- </datagrid>
- <button id="btn_req" class="btn1_letter2" style="left:1100px; top:40px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fromdd = model.getValue("/root/main/cond/fromdd")
- var todd = model.getValue("/root/main/cond/todd")
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
- var insukind = model.getValue("/root/main/cond/insukind");
- var mainjudgid = model.getValue("/root/main/cond/mainjudgid");
- var orddrid = model.getValue("/root/main/cond/orddrid");
- var pid = model.getValue("/root/main/cond/pid");
- var prcpcd = model.getValue("/root/main/cond/prcpcd");
- var resncd = model.getValue("/root/main/cond/resncd");
-
- var day = parseInt(todd) - parseInt(fromdd);
- if (day < 0) {
- messageBox("시작일이 종료일보다 작을 수 없습니다.", "I");
- return;
- }
- if (orddeptcd == "-" && isNull(pid) && isNull(prcpcd)) {
- if (day >= 1 ) {
- messageBox("기간으로만 검색시는 하루만 검색 가능합니다.", "I");
- return;
- }
- }
-
- if (orddeptcd != "-" && orddrid != "-" && day >7) {
- messageBox("진료과로 조회시 조회기간은 7일을 넘길 수 없습니다.", "I");
- return;
- }
-
- if (orddeptcd != "-" && orddrid =="-" && day >3) {
- messageBox("진료과로 조회시 조회기간은 3일을 넘길 수 없습니다.", "I");
- return;
- }
- submit("TRMMO18201");
-
- grd_prcplist.rowstyle(1, "data", "word-warp") = "word";
- grd_prcplist.rebuild();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" inputtype="date" style="left:345px; top:25px; width:85px; height:19px; text-align:center; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" inputtype="date" style="left:446px; top:25px; width:85px; height:19px; text-align:center; "/>
- <caption id="caption2" style="left:433px; top:26px; width:20px; height:20px; ">~</caption>
- <caption id="caption1" class="search_name" style="left:265px; top:50px; width:75px; height:17px; ">진 료 의</caption>
- <caption id="caption3" class="search_name" style="left:5px; top:25px; width:90px; height:17px; ">내원유형</caption>
- <caption id="caption4" class="search_name" style="left:695px; top:50px; width:90px; height:17px; ">수가코드</caption>
- <input id="ipt_prcpcd" ref="/root/main/cond/prcpcd" class="input_search" imemode="disabled" maxlength="10" style="left:775px; top:50px; width:104px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_req", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption6" class="search_name" style="left:695px; top:25px; width:90px; height:17px; ">보험유형</caption>
- <caption id="caption7" class="search_name" style="left:895px; top:25px; width:73px; height:17px; ">심 사 자</caption>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_default" appearance="minimal" editmode="search" style="left:85px; top:50px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- cmb_orddrid.select(0);
- var idate = new Date();
- if (model.getValue("/root/main/cond/orddeptcd") != "-") {
- var peveDate = idate.getAddDate(-3, "D");
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- } else {
- model.setValue("/root/main/cond/fromdd", getCurrentDate());
- }
- model.refresh();*/
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" appearance="minimal" itemcount="30" style="left:345px; top:50px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/cond/orddeptcd") != "-") {
- if (model.getValue("/root/main/cond/orddrid") != "-") {
- var idate = new Date();
- var peveDate = idate.getAddDate(-7, "D");
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- } else {
- var idate = new Date();
- var peveDate = idate.getAddDate(-3, "D");
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- }
- model.refresh();
- }
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_insukind" ref="/root/main/cond/insukind" appearance="minimal" style="left:776px; top:25px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_mainjudgid" ref="/root/main/cond/mainjudgid" appearance="minimal" style="left:971px; top:25px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/judglist/judglist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/main/cond/ioflag" appearance="full" cellspacing="10" cols="2" rows="2" overflow="visible" style="left:85px; top:25px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:5px; top:50px; width:90px; height:17px; ">진 료 과</caption>
- <caption id="caption9" class="search_name" style="left:895px; top:50px; width:90px; height:17px; ">사유구분</caption>
- <select1 id="cmb_resn" ref="/root/main/cond/resncd" appearance="minimal" style="left:970px; top:50px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0533/M0533">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|