123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- <?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>
- <data>
- <pid/>
- <deptcd/>
- <fromDate/>
- <toDate/>
- <suppdeptcd/>
- <rcpt/>
- <inptflag>A</inptflag>
- </data>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <init>
- <cmb_info>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- </cmb_info>
- <baseinfo>
- <initinptflag/>
- </baseinfo>
- </init>
- <hidden>
- <source>
- <hngnm/>
- </source>
- </hidden>
- <main>
- <send/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <booklist>
- <detail>
- <pid/>
- <hngnm/>
- <hometel/>
- <mpphontel/>
- <prcpgenrflag/>
- <roomcd/>
- <prcpdd/>
- <prcpcd/>
- <prcpnm/>
- <rgstrid/>
- <orddepthngnm/>
- <gigan/>
- </detail>
- </booklist>
- </main>
- </root>
- </instance>
- <!-- 예약조회-->
- <submission id="TRAEA03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="root/main/booklist"/>
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAAA00001"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
- if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
- model.setValue("/root/send/data/suppdeptcd", "");
- }else{
- model.setValue("/root/send/data/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- }
-
- //2010.09.29 통합예약 미예약자 조회시 입원조회여부 체크 - 박재영
- astGetComboList( new Array("A660"), new Array("/root/init/baseinfo/initinptflag") );
- //submit("TRAAA00001", false);
- model.removeNodeset("/root/init/baseinfo/initinptflag/A660[" + 1 + "]");
- model.setValue("/root/send/data/inptflag",model.getValue("/root/init/baseinfo/initinptflag/A660[" + 1 + "]/cdid") );
-
- //검사실코드 갖고오기
- submit("TRAEA01301", false);
-
- ipt_date1.value = getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD");
- ipt_date2.value = getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD");
- model.resetInstanceNode("/root/main/booklist/detail");
- model.refresh();
- ]]>
- </script>
- <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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript">
- <![CDATA[
- function readfunc(){ // 해당 조건에 대한 검사내역을 조회한다.
- if (model.getValue("/root/send/data/fromDate") == ""){
- messageBox("처방 시작일자는 필수 입력 또는 선택 항목", "E008");
- model.setFocus("ipt_date1");
- return;
- }
- if (model.getValue("/root/send/data/toDate") == ""){
- messageBox("처방 종료일자는 필수 입력 또는 선택 항목", "E008");
- model.setFocus("ipt_date2");
- return;
- }
- if (isDate(model.getValue("/root/send/data/fromDate")) == false){
- messageBox("처방 시작일자의 날짜 형식이 잘못 입력되어 처리", "E001");
- model.setFocus("ipt_date1");
- return;
- }
- if (isDate(model.getValue("/root/send/data/toDate")) == false){
- messageBox("처방 종료일자의 날짜 형식이 잘못 입력되어 처리", "E001");
- model.setFocus("ipt_date2");
- return;
- }
- if (model.getValue("/root/send/data/fromDate") > model.getValue("/root/send/data/toDate")){
- messageBox("처방 시작일자가 종료일자 보다 커서 처리", "E001");
- model.setFocus("ipt_date2");
- return;
- }
- if (model.getValue("/root/send/data/pid") == ""){
- var date = model.getValue("/root/send/data/fromDate").toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
- if (model.getValue("/root/send/data/fromDate") < date){
- messageBox("처방 조회기간은 최대 한달 기간만 조회가 가능합니다.", "E999", "");
- model.setFocus("ipt_date1");
- return;
- }
- }
- model.resetInstanceNode("/root/main/booklist/detail");
-
- if (submit("TRAEA03401")){
- }
- if (model.getValue("/root/main/booklist/detail[" + 1 + "]/pid") == ""){
- model.resetInstanceNode("/root/main/booklist/detail");
- }
- model.refresh();
- }
- function isDate(str) { // 날짜 형식에 대한 적합여부 체크
- if (str == "") return true; // 빈건 체크안함
- if (trim(str) == "") return true; // 빈건 체크안함
- if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
- if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
-
- var yy = new Number(str.substring(0, 4));
- var mm = new Number(str.substring(4, 6)) - 1;
- var dd = new Number(str.substring(6, 8));
- var date = new Date(yy, mm, dd);
- //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
- if (yy != date.getFullYear() ||
- mm != date.getMonth() ||
- dd != date.getDate()) {
- return false; // 존재하지 않는 날짜
- }
-
- return true; // 존재하는 날짜
- }
- function trim(data){ // 문자에 대한 TRIM 작업
- return data.replace(/(^\s*)|(\s*$)/g, "");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="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:137px; height:14px; ">미예약자조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:55px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:7px; width:94px; height:17px; ">처방일자 :</caption>
- <input id="ipt_date1" ref="/root/send/data/fromDate" class="input_default" inputtype="date" style="left:102px; top:6px; width:95px; height:19px; text-align:center; "/>
- <input id="ipt_date2" ref="/root/send/data/toDate" class="input_default" inputtype="date" style="left:230px; top:6px; width:95px; height:19px; text-align:center; "/>
- <line id="line13" class="line_4" style="x1:1111px; y1:6px; x2:1111px; y2:48px; "/>
- <caption id="caption1" style="left:201px; top:6px; width:25px; height:19px; text-align:center; ">~</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/data/pid") == ""){
- model.setValue("/root/hidden/source/hngnm", "");
- }
- readfunc();
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/send/data/pid" class="input_search" style="left:433px; top:6px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_sea", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <output id="opt_patnm" ref="/root/hidden/source/hngnm" class="output_fix" style="left:535px; top:6px; width:105px; height:19px; "/>
- <button id="button61" class="icon_search" style="left:517px; top:6px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 환자조회
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/pid","/root/main/send");
- model.setValue("/root/hidden/source/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:340px; top:7px; width:94px; height:17px; ">등록번호</caption>
- <select1 id="cmb_deptcd" ref="/root/send/data/suppdeptcd" navindex="2" appearance="minimal" editmode="inputsearch" style="left:745px; top:6px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/suppdept">
- <label ref="depthngnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption15" class="search_name" style="left:655px; top:7px; width:86px; height:17px; ">지원부서 :</caption>
- <select1 id="radio1" ref="/root/send/data/rcpt" appearance="full" cols="3" overflow="visible" style="left:102px; top:31px; width:175px; height:18px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>수납</label>
- <value>Y</value>
- </item>
- <item>
- <label>미수납</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:10px; top:32px; width:86px; height:17px; ">수납여부 :</caption>
- <caption id="caption4" class="search_name" style="left:340px; top:30px; width:86px; height:17px; ">입원/외래</caption>
- <select1 id="radio2" ref="/root/send/data/inptflag" appearance="full" cols="3" overflow="visible" style="left:435px; top:30px; width:135px; height:18px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- <item>
- <label>외래만</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- <datagrid id="datagrid1" nodeset="/root/main/booklist/detail" caption="등록번호^성명^집전화^이동전화^입/외^병실^처방일자^수납^처방코드^처방명^처방과^처방의^caption3" colsep="^" colwidth="70, 70, 90, 90, 45, 45, 80, 55, 80, 360, 100, 80, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:95px; width:1195px; height:645px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="hometel"/>
- <col ref="mpphontel"/>
- <col ref="prcpgenrflag" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rcptyn" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="orddepthngnm"/>
- <col ref="rgstrid"/>
- <col ref="gigan" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var main = getMainViewer();
-
- var pid = model.getValue("/root/main/booklist/detail[" + datagrid1.row + "]/pid");
-
- if (main != null) {
- if (main.document.title == "검사예약") {
- main.window.model.setValue("/root/send/data/pid", pid);
- setGlobalVariable("menuparam", "T");
- main.window.javascript.navigate("SMPEA00100", "", "", "", "SMPEA00100", "root/send/data/pid", "root/send/data/pid");
- } else {
- main.window.model.makeValue("/root/send/data/srchpid", pid);
- main.window.javascript.navigate("SMAEA02000", "", "", "", "SMAEA02000", "/root/send/data/srchpid", "/root/send/data/srchpid");
- }
- } else {
- main.window.model.makeValue("/root/send/data/srchpid", pid);
- main.window.javascript.navigate("SMAEA02000", "", "", "", "SMAEA02000", "/root/send/data/srchpid", "/root/send/data/srchpid");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:5px; top:75px; width:130px; height:13px; ">미예약자 현황</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
- <button id="button12" class="btn2_letter4" style="left:1126px; top:69px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- datagrid1.saveExcel(file);
- ]]>
- </script>
- </button>
- </group>
- <button id="button89" class="btn6_letter2" style="left:0px; top:762px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPAEA03400", "XMLSTR", "/root/main/booklist/detail");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|