123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <fromdd/>
- <todd/>
- <orddeptcd>-</orddeptcd>
- <prcpcd/>
- <title/>
- <code>P</code>
- <alowtwo/>
- <ioflag>T</ioflag>
- <prcpcd2/>
- <exec/>
- <wardcd/>
- <kindcd/>
- <kindcdflag/>
- </cond>
- <patprcpinfo>
- <patprcplist/>
- </patprcpinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <init>
- <orddept/>
- <code>
- <prcpcd/>
- </code>
- <wardcdgrup/>
- </init>
- </root>
- </instance>
- <submission id="TRMMO05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/oprecinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNR01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/wardcdgrup"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetBaseInit();
- fGrdInit() ;
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRMMO16302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patprcplnfo"/>
- <submission id="TXMMO16302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- //var colHidnValue = grdBaseColHidn("D");
- //grdBaseColHidn(colHidnValue, "grd_prcplist", 70, "prcpvol", "prcpqty", "drprcpetc7", "drprcpetc8");
- ]]>
- </script>
- </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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO16300.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="970" pageheight="730" guideline="1,943;2,710;2,710;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:19px; width:945px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">코드별 환자 조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:79px; x2:945px; y2:79px; "/>
- <caption id="caption1" style="left:196px; top:53px; width:15px; height:20px; text-align:center; ">~</caption>
- <line id="line3" style="x1:875px; y1:20px; x2:875px; y2:73px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption7" class="search_name" style="left:10px; top:53px; width:90px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input" autonext="false" inputtype="date" style="left:100px; top:53px; width:98px; height:19px; text-align:center; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input" autonext="false" inputtype="date" style="left:210px; top:53px; width:98px; height:19px; text-align:center; "/>
- <datagrid id="grd_prcplist" nodeset="/root/main/patprcpinfo/patprcplist" caption="환자번호^환자명^S/A^주민번호^진료(처방)일^병동명^진료의^처방의^예약구분^수량^수량^용량^용량^횟수^일수^용법/검체^처방코드^처방명^ICD10^진단코드^R/O^주/부^진단명^진료과^우편번호^주소" colsep="^" colwidth="60, 70, 50, 90, 80, 80, 66, 66, 75, 42, 42, 39, 42, 39, 39, 95, 90, 150, 60, 90, 40, 40, 210, 110, 70, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:85px; width:945px; height:625px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sa" style="text-align:center; "/>
- <col ref="rgstno" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="wardnm"/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="prcpdrnm" style="text-align:center; "/>
- <col ref="rsrvflag"/>
- <col ref="prcpqty" visibility="hidden"/>
- <col ref="drprcpetc7" visibility="hidden"/>
- <col ref="prcpvol" visibility="hidden"/>
- <col ref="drprcpetc8" visibility="hidden"/>
- <col ref="prcptims"/>
- <col ref="prcpdayno"/>
- <col ref="drugmthdspccdnm" style="text-align:left; "/>
- <col ref="prcpcd" style="text-align:left; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="icd10cd" style="text-align:center; "/>
- <col ref="diagcd"/>
- <col ref="kindcd" style="text-align:center; "/>
- <col ref="kindcdflag" style="text-align:center; "/>
- <col ref="diagengnm"/>
- <col ref="depthngnm"/>
- <col ref="zipcd"/>
- <col ref="addr"/>
- </datagrid>
- <button id="btn_req" class="btn1_letter2" style="left:881px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/patprcpinfo/patprcplist");
- var title = model.getValue("/root/main/cond/title");
- var prcpcd = model.getValue("/root/main/cond/prcpcd");
- var ioflag = model.getValue("/root/main/cond/ioflag");
- var code = model.getValue("/root/main/cond/code");
- if (isNull(title)) {
- messageBox("제목은","I003");
- model.setFocus("ipt_title");
- return;
- }
- if (isNull(prcpcd)) {
- messageBox("처방코드는","I003");
- model.setFocus("ipt_prcpcd");
- return;
- }
- if (isNull(ioflag)) {
- messageBox("외래/입원 구분은","I003");
- model.setFocus("rdo_ioflag");
- return;
- }
- if (isNull(code)) {
- messageBox("처방코드/상병코드 구분은","I003");
- model.setFocus("rdo_code");
- return;
- }
-
- var rtnparam = getParameter("SPMMO16300");
- rtnparam = rtnparam.split("▩");
-
- var prcpcd = "'";
- var prcpcd2= "";
- for(i = 1; i< rtnparam.length-1; i++){
- prcpcd = prcpcd + model.getValue("/root/init/code/prcpcd[" + i + "]/codecd") +"', '";
- prcpcd2 = prcpcd2 + "_" + model.getValue("/root/init/code/prcpcd[" + i + "]/codecd");
- }
-
- prcpcd = prcpcd + " ' ";
- model.setValue(root.main.cond.prcpcd, prcpcd);
- model.setValue(root.main.cond.prcpcd2, prcpcd2);
-
- mmbfGetHardCodeInfo("/root/set/reqdata", "/root/hidden/time",5568);
-
- var jobkind = getUserInfo("jobkindcd");
- // if ( jobkind == "0330" || jobkind == "1411" )
- // {
- // model.setValue("/root/main/cond/wardcd" , ".");
- // }
- // else
- // {
- // model.setValue("/root/main/cond/orddeptcd" , ".");
- // }
-
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- var sUserDeptcd = getUserInfo("dutplcecd");
- var cTime = getCurrentTime().substr(0, 4);
- var time = model.getValue("/root/hidden/time/hardcd[hardcd='" + sUserDeptcd + "']/hardcdnm");
-
- if ( time != '') {
- var ftime = time.substr(0,4);
- var ttime = time.substr(4,4);
- if(cTime > ttime || cTime < ftime) {
- if(submit("TRMMO16302")) {
- submit("TXMMO16302");
- }
- }
- else {
- var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
- if(ddInterval > 30){
- messageBox("30일까지만 조회", "I006");
- return;
- }
- else{
-
- if(submit("TRMMO16302")) {
- submit("TXMMO16302");
- }
- }
-
- }
-
- }
- else {
- if(cTime > "1700" || cTime <0830) {
- if(submit("TRMMO16302")) {
- submit("TXMMO16302");
- }
- } else {
- var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
- if(ddInterval > 30){
- messageBox("업무시간[08:30 ~ 17:00]에는 30일까지만 조회", "I006");
- return;
- }
- else{
-
- if(submit("TRMMO16302")) {
- submit("TXMMO16302");
- }
- }
-
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:10px; top:28px; width:90px; height:17px; ">제 목 :</caption>
- <input id="ipt_title" ref="/root/main/cond/title" class="input_essential" style="left:100px; top:28px; width:355px; height:19px; "/>
- <select1 id="rdo_code" ref="/root/main/cond/code" appearance="full" cellspacing="3" cols="2" overflow="visible" style="left:318px; top:55px; width:145px; height:20px; font-family:바탕; border-style:none; ">
- <choices>
- <item>
- <label>처방코드</label>
- <value>P</value>
- </item>
- <item>
- <label>상병코드</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGrdInit() ;
-
- var code = rdo_code.value;
-
- if(code == "P"){
- //bol_exec.visible = true;
- //cap_exec.visible = true;
- switch2.selectedIndex = 0;
- }
- else{
- //bol_exec.visible = false;
- //cap_exec.visible = false;
-
- switch2.selectedIndex = 1;
- }
- ]]>
- </script>
- </select1>
- <bool id="bool1" visibility="hidden" checkvalue="Y,N" ref="/root/main/cond/alowtwo" style="left:290px; top:0px; width:20px; height:20px; "/>
- <caption id="caption3" visibility="hidden" style="left:320px; top:0px; width:60px; height:20px; ">
- <![CDATA[중복허용]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var alowtwo = model.getValue(root.main.cond.alowtwo);
- if (alowtwo == "Y") {
- model.setValue(root.main.cond.alowtwo, "N");
- } else {
- model.setValue(root.main.cond.alowtwo, "Y");
- }
-
- model.refresh();
- ]]>
- </script>
- </caption>
- <button id="btn_patsrch" class="icon_search" style="left:670px; top:55px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPMMO16600");
- fSetComboCodeCD();
- cmb_prcpcd.select(0)
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:465px; top:55px; width:90px; height:17px; ">검색코드 :</caption>
- <caption id="caption8" class="search_name" style="left:680px; top:28px; width:60px; height:17px; ">구분 :</caption>
- <select1 id="rdo_ioflag" ref="/root/main/cond/ioflag" appearance="full" cellspacing="0" cols="3" overflow="visible" style="left:742px; top:28px; width:135px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_prcpcd" ref="/root/main/cond/prcpcd" appearance="minimal" style="left:555px; top:53px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/code/prcpcd">
- <label ref="codecd"/>
- <value ref="codenm"/>
- </itemset>
- </choices>
- </select1>
- <button id="button1" class="btn2_letter2" style="left:895px; top:54px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var title = model.getValue("/root/main/cond/title");
- fsaveGridToExcel(grd_prcplist, title);
- ]]>
- </script>
- </button>
- <switch id="switch1" class="sw_no_border" style="left:464px; top:24px; width:206px; height:25px; ">
- <case id="case1">
- <caption id="caption4" class="search_name" style="left:0px; top:2px; width:90px; height:17px; ">진 료 과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" appearance="minimal" style="left:91px; top:2px; width:110px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case2" selected="true">
- <select1 id="combo1" ref="/root/main/cond/wardcd" appearance="minimal" style="left:91px; top:2px; width:110px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/wardcdgrup/wardcdgruplist">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:0px; top:2px; width:90px; height:17px; ">병 동 :</caption>
- </case>
- </switch>
- <switch id="switch2" class="sw_no_border" style="left:695px; top:50px; width:200px; height:25px; ">
- <case id="case3" style="left:0px; top:0px; width:198px; height:148px; ">
- <bool id="bol_exec" checkvalue="Y,N" ref="/root/main/cond/exec" style="left:0px; top:1px; width:30px; height:20px; "/>
- <caption id="cap_exec" style="left:26px; top:2px; width:113px; height:20px; ">실시된 처방만 조회</caption>
- </case>
- <case id="case4" selected="true">
- <caption id="caption10" style="left:125px; top:2px; width:70px; height:20px; font-family:돋움; font-size:10pt; ">부진단포함</caption>
- <bool id="bol_kindcd" checkvalue="Y,N" ref="/root/main/cond/kindcd" style="left:3px; top:1px; width:20px; height:20px; "/>
- <bool id="bol_kindcdflag" checkvalue="Y,N" ref="/root/main/cond/kindcdflag" style="left:108px; top:1px; width:20px; height:20px; "/>
- <caption id="caption11" style="left:26px; top:2px; width:59px; height:20px; font-family:돋움; font-size:10pt; ">R/O 포함</caption>
- </case>
- </switch>
- <bool id="bol_exec2" visibility="hidden" checkvalue="Y,N" ref="/root/main/cond/exec" style="left:135px; top:0px; width:50px; height:20px; "/>
- <caption id="cap_exec2" visibility="hidden" style="left:180px; top:0px; width:106px; height:20px; ">실시된 처방만 조회</caption>
- </xhtml:body>
- </xhtml:html>
|