123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <?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>
- <orddrid/>
- <orddeptcd/>
- <result/>
- <norsrv>
- <norsrvlist/>
- </norsrv>
- </main>
- <send>
- <orddrid/>
- <orddeptcd/>
- <updatedata>
- <datalist/>
- </updatedata>
- </send>
- <init>
- <P0037list>
- <P0037>
- <cdnm/>
- <cdid/>
- </P0037>
- </P0037list>
- <P0406list>
- <P0406>
- <cdnm/>
- <cdid/>
- </P0406>
- </P0406list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- </init>
- <hidden>
- <outrsrvupdtendyn>
- <items>
- <label>Y</label>
- <value>Y</value>
- </items>
- <items>
- <label>N</label>
- <value>N</value>
- </items>
- </outrsrvupdtendyn>
- <outrsrvupdtendyn2>
- <items>
- <label>Y</label>
- <value>Y</value>
- </items>
- <items>
- <label>N</label>
- <value>N</value>
- </items>
- </outrsrvupdtendyn2>
- <outrsrvupdtendyn3>
- <items>
- <label>Y</label>
- <value>Y</value>
- </items>
- <items>
- <label>N</label>
- <value>N</value>
- </items>
- </outrsrvupdtendyn3>
- </hidden>
- <temp/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- zbcfGetCodeList(new Array("P0037","P0406"), new Array("/root/init/P0037list","/root/init/P0406list"));
- pamGetDeptCDDrIDList();
- model.refresh();
- fInitialize();
-
-
- ]]>
- </script>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/norsrv"/>
- <submission id="TXPMB02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/main/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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/main/norsrvlist");
- model.refresh();
-
- }
-
- //미예약 현황 조회
- function fSearchOutNoRsrvList(){
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/orddrid", model.getValue("/root/main/orddrid"));
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/orddeptcd"));
-
- if(submit("TRPMB02001")) {
- var rows = grd_rsrvchg.rows;
- var fixedRows = grd_rsrvchg.fixedRows;
- var dataRows = rows - fixedRows;
-
- for (var i = dataRows ; i>0; i--){
- if(model.getValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn") == ""){
- model.setValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn","N");
- }
- if(model.getValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn2") == ""){
- model.setValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn2","N");
- }
- if(model.getValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn3") == ""){
- model.setValue("/root/main/norsrv/norsrvlist["+i+"]/outrsrvupdtendyn3","N");
- }
- }
-
- }
-
- }
-
-
- //외래예역변경완료
- function fUpdateOutRsrvChg(){
-
- //체크된 데이터만 가져온다.
- var nodeList = instance1.selectNodes("/root/main/norsrv/norsrvlist[check='Y']");
-
- var rCSV = getNodeListCSV(nodeList);
-
- if( rCSV == "" || rCSV == null || rCSV == undefined){
- //messageBox("미예약 항목이 선택되지 않았습니다.", "E999", "");
- messageBox("변경할 미예약 내역이 선택되지", "E007");
- return false;
- }
-
- if(messageBox("변경된 예약내역을 반영하시겠습니까?", "Q999") != 6) return false;
-
- model.resetInstanceNode("/root/send/updatedata");
- //model.setValue("/root/send/updatedata/datalist", rCSV);
- setCSVToNode("/root/temp", rCSV);
- instance1.selectSingleNode("/root/temp").xml;
-
- model.copyNode("/root/send/updatedata", "/root/temp");
-
- if(submit("TXPMB02002")){
- //정상적으로 처리되었습니다.
- messageBox("정상적으로 ","I001");
- var rows = grd_rsrvchg.rows;
- var fixedRows = grd_rsrvchg.fixedRows;
- var dataRows = rows - fixedRows;
-
- for (var i = dataRows ; i>0; i--){
- if (model.getValue("/root/main/norsrv/norsrvlist["+i+"]/check") == "Y"){
- model.setValue("/root/main/norsrv/norsrvlist["+i+"]/check","N");
- }
- }
-
- model.removenode("/root/temp");
- model.makeNode("/root/temp");
- }
- model.refresh();
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="837" pageheight="460" guideline="1,699;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:699px; 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:818px; height:442px; ">
- <group id="group2" style="left:0px; top:7px; width:818px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:818px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:755px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchOutNoRsrvList();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:739px; y1:7px; x2:739px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:95px; height:14px; ">미예약 현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:818px; y2:69px; "/>
- </group>
- <select1 id="cmb_orddrid" ref="/root/main/orddrid" class="combo_s_essential" appearance="minimal" style="left:394px; top:28px; width:141px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:11px; top:29px; width:73px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:85px; top:28px; width:180px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
- model.setValue("/root/main/orddrid", "");
- cmb_orddrid.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:331px; top:29px; width:60px; height:17px; ">의사 :</caption>
- <button id="btn_saveSche7" class="btn4_letter2" style="left:763px; top:432px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_outrsrvchg" class="btn4_letter8" style="left:691px; top:58px; width:128px; height:22px; ">
- <caption>외래예약변경완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fUpdateOutRsrvChg();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_rsrvchg" nodeset="/root/main/norsrv/norsrvlist" class="datagrid2" caption="^진료과^진료의사^휴진기간^휴진사유^결재상태^외래예약
변경유무(T/I)^외래예약
변경유무(과)^외래예약
변경유무(협)^seqno" colsep="^" colwidth="22, 99, 57, 138, 129, 108, 81, 79, 83, 100" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="10" rowsep="|" style="left:0px; top:87px; width:818px; height:338px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="fromtodd" style="text-align:center; "/>
- <col disabled="true" ref="ordendresn" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0037list/P0037">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="acceptstatflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0406list/P0406">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="outrsrvupdtendyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/outrsrvupdtendyn/items">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="outrsrvupdtendyn2" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/outrsrvupdtendyn2/items">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="outrsrvupdtendyn3" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/outrsrvupdtendyn3/items">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="seqno" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var check1 = model.getValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn");
- var check2 = model.getValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn2");
- var check3 = model.getValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn3");
-
-
-
- if (grd_rsrvchg.col == 7 && check1 == "Y") {
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/check","Y");
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn2","N");
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn3","N");
- }else if (grd_rsrvchg.col == 8 && check2 == "Y") {
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/check","Y");
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn","N");
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn3","N");
- }else if (grd_rsrvchg.col == 9 && check3 == "Y") {
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/check","Y");
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn","N");
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/outrsrvupdtendyn2","N");
- }
- else {
- model.setValue("/root/main/norsrv/norsrvlist["+grd_rsrvchg.row+"]/check","N");
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn4_letter3" style="left:690px; top:432px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|