123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?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>
- <projlist>
- <list>
- <proj>
- <inout/>
- <pid/>
- <hngnm/>
- <sexage/>
- <prcpdd/>
- <prcpcd/>
- <prcpnm/>
- <prcphngnm/>
- <snglcalcscorcd/>
- <corcdhngnm/>
- <orddeptnm/>
- <usernm/>
- <execdd/>
- <execdeptnm/>
- <execrid/>
- <prcpno/>
- <fstrgstdt/>
- <calcstat/>
- <prcpstat/>
- <lastupdtdt/>
- <lastupdtrid/>
- <enddd/>
- <endacptno/>
- </proj>
- </list>
- </projlist>
- <list/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <search>
- </search>
- <cond>
- <errflag/>
- <fromdd/>
- <todd/>
- <srchpid/>
- <except/>
- </cond>
- </send>
- <result>
- <name>
- <name/>
- <sexage/>
- </name>
- </result>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRPAS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/projlist/list"/>
- <submission id="TRPAS04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/result"/>
- </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">
- <![CDATA[
- /** ----------------------------------------------------------------------
- *
- * 날짜 계산(기준일자를 기준으로 입력일자만큼 이후 날짜를 찾아오기)
- *
- * ----------------------------------------------------------------------
- **/
- function getDateAddc(inputday,addend){
- var backDate ="";
- var rt = 0;
- var yyyy = inputday.substring(0,4) +"";
- var mm = inputday.substring(4,6) +"";
- var dd = inputday.substring(6,8) +"";
- var startDate = new Date(yyyy,(eval(mm)-1),dd);
- startDate.setTime(startDate.getTime()+(86400000*addend));
- NowYear = startDate.getYear();// 년
- NowMonth = startDate.getMonth()+1;// 월
- NowDay = startDate.getDate(); // 일
- backDate += NowYear ; //년도
- if (NowMonth < 10 ) backDate += "0" + NowMonth ;
- else backDate += (startDate.getMonth() + 1);
- if (NowDay < 10 ) backDate += "0" + NowDay ;
- else backDate += (startDate.getDate());
-
- return backDate ;
- }
- function fInitialize(){
- var today = getCurrentDate();
- model.setValue("/root/send/cond/fromdd", getDateAddc(today, -1));
- model.setValue("/root/send/cond/todd", getDateAddc(today, -1));
- checkbox1.select(0);
- combo2.select(0);
-
- model.removeNodeset("/root/main/projlist/list/proj");
- model.refresh();
- }
-
- function fGetErrorList(){
- model.removeNodeset("/root/main/projlist/list/proj");
- model.refresh();
- var fromdd = ipt_fromdd.value;
- var todd = ipt_todd.value;
- var interval = getDateInterval(fromdd, todd);
- var pid = model.getValue("/root/send/cond/srchpid");
- if(interval > 3 && pid == ""){
- alert("등록번호 입력없이 최대 3일간 조회 가능합니다.");
- }
- else if(interval > 30 && pid != ""){
- alert("최대 30일간 조회 가능합니다.");
- }
- else {
- submit("TRPAS04002");
- submit("TRPAS04000");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,782;" 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="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">처방액팅오류 및 마감오류조회</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:45px; width:1195px; height:730px; ">
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line18" class="line_4" style="x1:1116px; y1:7px; x2:1116px; y2:29px; border-left-style:solid; "/>
- <button id="button1" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetErrorList();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:430px; top:8px; width:65px; height:17px; ">From</caption>
- <input id="ipt_fromdd" ref="/root/send/cond/fromdd" class="input_default" inputtype="date" style="left:493px; top:8px; width:85px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:585px; top:8px; width:45px; height:17px; ">To</caption>
- <input id="ipt_todd" ref="/root/send/cond/todd" class="input_default" inputtype="date" style="left:633px; top:8px; width:85px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:6px; top:8px; width:69px; height:17px; ">구분</caption>
- <select1 id="combo2" ref="/root/send/cond/errflag" class="combo_search" appearance="minimal" style="left:65px; top:8px; width:355px; height:19px; ">
- <choices>
- <item>
- <label>실시일은 있으나 실시 부서가 없는 자료</label>
- <value>1</value>
- </item>
- <item>
- <label>마감 후 취소되었으나, 반환사유 없는 내역</label>
- <value>2</value>
- </item>
- <item>
- <label>실시는 되었으나, 마감되지 않는 내역</label>
- <value>3</value>
- </item>
- <item>
- <label>[외래] 실시처방 실시일자 있으나 계산내역 실시일자 없는 자료</label>
- <value>4</value>
- </item>
- <item>
- <label>[입원] 실시처방 실시일자 있으나 계산내역 실시일자 없는 자료</label>
- <value>5</value>
- </item>
- <item>
- <label>[외래] 실시처방 실시일자 있으나 계산내역 없는 자료</label>
- <value>6</value>
- </item>
- <item>
- <label>[입원] 실시처방 실시일자 있으나 계산내역 없는 자료</label>
- <value>7</value>
- </item>
- </choices>
- </select1>
- <button id="btn_pid" class="icon_search" navindex="-1" style="left:901px; top:11px; 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");
- var sexage = model.getValue("/root/main/patinfo/patinfolist/sex") + "/" + model.getValue("/root/main/patinfo/patinfolist/age") ;
- model.setValue("/root/send/cond/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/result/name/name", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/result/name/sexage", sexage);
- model.refresh();
- //modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:730px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="input2" ref="/root/send/cond/srchpid" class="input_search" style="left:820px; top:10px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- input2.value = input2.currentText;
- submit("TRPAS04002");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/result/name/name" class="output_fix" style="left:925px; top:10px; width:65px; height:19px; "/>
- <output id="output2" ref="/root/result/name/sexage" class="output_fix" style="left:992px; top:10px; width:35px; height:19px; "/>
- <select id="checkbox1" ref="/root/send/cond/except" overflow="visible" appearance="full" style="left:1035px; top:10px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>건진제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <line id="line20" class="line_1" style="x1:1px; y1:81px; x2:1194px; y2:81px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:66px; width:160px; height:13px; ">액팅 리스트</caption>
- <group id="group2" style="left:800px; top:55px; width:395px; height:25px; ">
- <button id="button3" class="btn2_letter4" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:330px; top:5px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_projlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_projlist" nodeset="/root/main/projlist/list/proj" caption="I/O^등록번호^환자명^S/A^처방일^처방코드^처방명^처방한글명^수가코드^수가명^진료과^진료의^실시일자^실시부서^실시자^처방번호^처방등록일시^수납여부^상태^수정일시^수정자^마감일자^마감번호^seq" colsep="^" colwidth="46, 75, 72, 50, 79, 94, 300, 30, 90, 90, 93, 79, 120, 100, 78, 80, 100, 60, 60, 160, 100, 160, 100" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:1px; top:85px; width:1194px; height:640px; border-color:transparent; border-style:none; ">
- <col ref="inout"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sexage"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcphngnm"/>
- <col ref="snglcalcscorcd"/>
- <col ref="corcdhngnm"/>
- <col ref="orddeptnm"/>
- <col ref="usernm"/>
- <col ref="execdd" format="yyyy-mm-dd 99:99:99"/>
- <col ref="execdeptnm"/>
- <col ref="execrid"/>
- <col ref="prcpno"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd 99:99"/>
- <col ref="calcstat"/>
- <col ref="prcpstat"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd 99:99:99"/>
- <col ref="lastupdtrid"/>
- <col ref="enddd" format="yyyy-mm-dd 99:99:99"/>
- <col ref="endacptno"/>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1190px; height:27px; ">
- <button id="button7" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1120px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1189px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|