123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- <?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>
- </main>
- <send>
- <orddrid/>
- <orddeptcd/>
- <fromdd/>
- <todd/>
- <ordendflag/>
- <iupdtorddeptcd/>
- <iupdtorddrid/>
- </send>
- <init>
- </init>
- <hidden>
- </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="400" pageheight="230" guideline="1,880;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:375px; 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:375px; height:182px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:9px; width:95px; height:13px; ">휴진일정내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:375px; y2:24px; "/>
- <caption id="caption2" class="cell_1" style="left:3px; top:29px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption3" class="cell_1" style="left:3px; top:53px; width:100px; height:23px; vertical-align:middle; ">의사명</caption>
- <caption id="caption4" class="cell_1" style="left:3px; top:77px; width:100px; height:23px; vertical-align:middle; ">휴진기간</caption>
- <input id="ipt_insufromdd" ref="/root/send/fromdd" class="input_default" inputtype="date" style="left:105px; top:79px; width:121px; height:19px; "/>
- <input id="input1" ref="/root/send/todd" class="input_default" inputtype="date" style="left:238px; top:79px; width:121px; height:19px; "/>
- <caption id="caption71" style="left:228px; top:79px; width:10px; height:20px; vertical-align:middle; ">-</caption>
- <caption id="caption5" class="cell_1" style="left:3px; top:101px; width:100px; height:23px; vertical-align:middle; ">휴진구분</caption>
- <select1 id="combo1" ref="/root/send/ordendflag" appearance="minimal" style="left:105px; top:104px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="cell_1" style="left:3px; top:125px; width:100px; height:23px; vertical-align:middle; ">입원대진의사</caption>
- <select1 id="combo2" ref="/root/send/iupdtorddeptcd" appearance="minimal" style="left:105px; top:128px; width:120px; 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>
- <select1 id="combo3" ref="/root/send/iupdtorddrid" appearance="minimal" style="left:228px; top:128px; width:120px; 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>
- <select1 id="combo4" ref="/root/send/orddeptcd" appearance="minimal" style="left:105px; top:30px; width:120px; 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>
- <select1 id="combo5" ref="/root/send/orddrid" appearance="minimal" style="left:105px; top:55px; width:120px; 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>
- <line id="line32" class="line_6" style="x1:0px; y1:152px; x2:375px; y2:152px; "/>
- </group>
- <button id="btn_saveSche7" class="btn4_letter2" style="left:318px; top:170px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_outrsrvchg" class="btn4_letter2" style="left:260px; top:170px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fUpdateOutRsrvChg();
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter3" style="left:190px; top:170px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|