123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- <?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>
- <unexecprcplist>
- <prcptm/>
- <rsrvtm/>
- <pid/>
- <hngnm/>
- <sexage/>
- <prcpcd/>
- <prcpnm/>
- <prcpstats/>
- <orddeptnm/>
- <usernm/>
- <execdeptnm/>
- <prcpdd/>
- <roomcd/>
- <execdd/>
- <prcpgenrflag/>
- <execprcpuniqno/>
- <orddd/>
- <basesuppdeptcd/>
- </unexecprcplist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchprcpexecdept/>
- <srchpid/>
- <srchflag/>
- <ioflag/>
- <include/>
- </send>
- <init>
- <orddeptlist>
- <dept>
- <depth/>
- <deptcd/>
- <depthngnm/>
- <cdgrupid/>
- </dept>
- </orddeptlist>
- <flag>
- <item>
- <name>미시행(당일예약)</name>
- <id>unxr</id>
- </item>
- <item>
- <name>미시행(당일처방)</name>
- <id>unxp</id>
- </item>
- <item>
- <name>미예약</name>
- <id>rsrv</id>
- </item>
- </flag>
- <ioflag>
- <item>
- <name>외래</name>
- <id>O</id>
- </item>
- <item>
- <name>입원</name>
- <id>I</id>
- </item>
- <item>
- <name>전체</name>
- <id>ALL</id>
- </item>
- </ioflag>
- </init>
- <hidden>
- <tmp/>
- <popupmenu>
- <menu>
- <item>
- <label>처방상세내역</label>
- <func>fOpenPrcpList</func>
- </item>
- </menu>
- </popupmenu>
- </hidden>
- <source>
- <autoflag/>
- </source>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRPAS02602");//시행부서를 가져온다.
- rdo_flag.select(0);
- radio1.select(0);
- fDateSet();//조회기간을 셋팅한다.
- fDeptSet();//시행부서를 셋팅한다.
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- //조회기간을 셋팅한다.
- function fDateSet(){
- var cur_date = getCurrentDate();
- model.setValue("/root/send/srchtodd" , cur_date);
- ipt_srchtodd.refresh();
- model.setValue("/root/send/srchfromdd",cur_date);
- ipt_srchfromdd.refresh();
- }//fDateSet end
-
- function fDeptSet(){
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var posinstcd = UserInfosS_Array[6]; //소속기관코드
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
- var dutplcecd = getUserInfo("dutplcecd") ;
- if(dutplcecd == "1000000000" || dutplcecd == "4070300000" || dutplcecd == "11112233"){dutplcecd = "ALL" ;}
- model.setValue("/root/send/srchprcpexecdept", dutplcecd);
- cmb_srchprcpexecdept.refresh();
- }//fDeptSet end
-
- function fGetUnExec(){
- var fromdd = ipt_srchfromdd.value;
- var todd = ipt_srchtodd.value;
- var interval = getDateInterval(fromdd, todd);
- var pid = model.getValue("/root/send/srchpid");
- var uPath = "/root/main/unexecprcplist";
-
- // if(interval > 0 && pid == ""){
- // alert("등록번호 입력없이 최대 1일간 조회 가능합니다.");
- // }
- // else if(interval > 30 && pid != ""){
- // alert("최대 30일간 조회 가능합니다.");
- // }else {
- for(i=1; i<grd_unexecprcplist.rows; i++){
- grd_unexecprcplist.rowstyle(i, "data", "background-color") = "white";
- }
- submit("TRPAS02601");
- // }
-
- for(i=1; i<grd_unexecprcplist.rows; i++){
- var execdd = model.getValue(uPath+"["+i+"]/execdd");
-
- if(execdd == "00000000"){
- grd_unexecprcplist.rowstyle(i, "data", "background-color") = '#FFCCCC';
- }
- }
- }
-
- // 팝업 메뉴
- function fOpenPrcpList() {
-
- modal("SPAEA01102","","","","","/root/main/unexecprcplist["+grd_unexecprcplist.row+"]","/root/init/popupdata");
-
- }
- ]]>
- </script>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPIC00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/init/orddeptlist"/>
- <submission id="TRPAS02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/unexecprcplist"/>
- <submission id="TRPAS02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/init/orddeptlist"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1193;2,784;2,754;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:159px; height:14px; ">미시행처방조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:10px; width:1195px; height:70px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption4" class="search_name" style="left:10px; top:9px; width:66px; height:17px; ">기간 :</caption>
- <caption id="caption8" class="search_n_b" style="left:186px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <button id="button6" class="btn1_letter2" style="left:1076px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetUnExec();
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1016px; y1:8px; x2:1016px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:72px; top:9px; width:105px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:217px; top:9px; width:105px; height:19px; "/>
- <select1 id="cmb_srchprcpexecdept" ref="/root/send/srchprcpexecdept" appearance="minimal" style="left:455px; top:9px; width:265px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:360px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
- <caption id="caption2" class="search_name" style="left:10px; top:34px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="input1" ref="/root/send/srchpid" class="input_search" style="left:100px; top:35px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keycode == 13)
- {
- input1.value = input1.currentText;
- fGetUnExec();
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" navindex="-1" style="left:191px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회건수가 1건일 경우 팝업창을 바로 닫는다.
- model.setValue("/root/source/autoflag", "Y");
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- model.setValue("/root/send/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
- //modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- <select1 id="rdo_flag" ref="/root/send/srchflag" appearance="full" cols="3" overflow="visible" style="left:335px; top:35px; width:280px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/flag/item">
- <label ref="/name"/>
- <value ref="/id"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:740px; top:9px; width:61px; height:17px; ">구분 :</caption>
- <select1 id="radio1" ref="/root/send/ioflag" appearance="full" cols="3" overflow="visible" style="left:810px; top:10px; width:85px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/ioflag/item">
- <label ref="/name"/>
- <value ref="/id"/>
- </itemset>
- </choices>
- </select1>
- <select id="checkbox1" ref="/root/send/include" overflow="visible" appearance="full" style="left:230px; top:35px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>액팅포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var deptcd = model.getValue("/root/send/srchprcpexecdept");
- if(deptcd == "ALL"){
- messageBox("시행부서를", "C002");
- checkbox1.deselect(0);
- }
- ]]>
- </script>
- </select>
- </group>
- <datagrid id="grd_unexecprcplist" nodeset="/root/main/unexecprcplist" caption="처방등록일시^예약시간^등록번호^환자명^S/A^처방코드^처방명^상태^진료과^진료의^시행부서^처방일자^병실^실시일자^처방구분^실시처방번호^진료일자^부서" colsep="^" colwidth="122, 108, 74, 73, 43, 85, 376, 55, 91, 76, 92, 73, 80, 0, 0, 0, 0, 0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:105px; width:1190px; height:631px; ">
- <col ref="prcptm" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="rsrvtm" format="yyyy-mm-dd hh:mm"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sexage"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpstats"/>
- <col ref="orddeptnm"/>
- <col ref="usernm"/>
- <col ref="execdeptnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="roomcd"/>
- <col ref="execdd"/>
- <col ref="prcpgenrflag"/>
- <col ref="execprcpuniqno"/>
- <col ref="orddd"/>
- <col ref="basesuppdeptcd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_unexecprcplist.gridToInstance();
- for(i=1; i<grd_unexecprcplist.rows; i++){
- grd_unexecprcplist.rowstyle(i, "data", "background-color") = "white";
- }
- var uPath = "/root/main/unexecprcplist";
- for(i=1; i<grd_unexecprcplist.rows; i++){
- var execdd = model.getValue(uPath+"["+i+"]/execdd");
-
- if(execdd == "00000000"){
- grd_unexecprcplist.rowstyle(i, "data", "background-color") = '#FFCCCC';
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_unexecprcplist", false, "/root/hidden/popupmenu/menu/item", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <button id="button95" class="btn2_letter4" visibility="visible" style="left:1126px; top:87px; width:64px; height:19px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //엑셀저장 여부(타이틀별)
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_unexecprcplist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <caption id="caption5" style="left:20px; top:85px; width:890px; height:15px; font-weight:bold; color:#0000ff; ">★ 입원인 경우 미시행(당일예약)은 처방일자를 기준으로 조회됩니다. ★</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:756px; width:1195px; height:28px; ">
- <button id="button33" class="btn4_letter3" style="left:1118px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.reset();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|