123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <?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/>
- <fromdd/>
- <todd/>
- <drholiordsche>
- <drholiordschelist>
- </drholiordschelist>
- </drholiordsche>
- <result/>
- <histstatcd/>
- <srchflag/>
- <endcnfmyn/>
- <prcsstat/>
- </main>
- <send>
- <holiflag/>
- <orddrid/>
- <orddeptcd/>
- <srchcond/>
- <fromdd/>
- <todd/>
- <updatedata>
- <datalist/>
- </updatedata>
- <ordendcnfmyn/>
- <acceptstatflag/>
- <histstat/>
- <endcnfmyn/>
- <prcsstat/>
- </send>
- <init>
- <P0037list>
- <P0037>
- <cdnm/>
- <cdid/>
- </P0037>
- </P0037list>
- <P0406list>
- <P0406>
- <cdid/>
- <cdnm/>
- </P0406>
- </P0406list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- <P0464list>
- <P0464>
- <cdid/>
- <cdnm/>
- </P0464>
- </P0464list>
- </init>
- <hidden>
- <flag>
- <orddeptcd/>
- <orddrid/>
- </flag>
- </hidden>
- <temp>
- <ordlist/>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0037","P0406", "P0464"), new Array("/root/init/P0037list","/root/init/P0406list", "/root/init/P0464list"));
- pamGetDeptCDDrIDList();
- addComboItem("cmb_orddeptcd","전체","","above");
- addComboItem("cmb_orddrid","전체","","above");
- model.refresh();
- fInitialize();
- //model.setValue("/root/main/histstatcd","YC");.....
- //grd_orddr.nodeset = "/root/init/orddrid/orddridlist[dp = " + cmb_orddeptcd.value + "]";
- //grd_orddr.rebuild();
- //팝업화면으로 사용될 때
- if (checkOpener()){
-
- var orddeptcd = opener.javascript.getParameter("SMPMB02800_orddeptcd");
- var orddrid = opener.javascript.getParameter("SMPMB02800_orddrid");
-
- if( orddeptcd != '' && orddrid != '' ){
- //진료과 세팅
- model.setValue("/root/main/orddeptcd", orddeptcd);
- // cmb_orddeptcd.refresh();
- // cmb_orddeptcd.dispatch("xforms-value-changed");
-
- //진료의 세팅
- model.setValue("/root/main/orddrid", orddrid);
- // cmb_orddrid.refresh();
- // cmb_orddrid.dispatch("xforms-value-changed");
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- <submission id="TRPMB00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drholiordsche"/>
- </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.removenode("/root/main/drholiordsche/drholiordschelist");
- model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist");
-
- //날자 입력 항목에 오늘 날자 세팅
-
- var curDate = getCurrentDate();
- model.setValue("/root/main/fromdd", curDate);
- model.setValue("/root/main/todd", curDate);
-
- /*
- //현재일자 + 1달
- curDate = curDate.toDate().getAddDate(1,"M");
- var nextDate = curDate.getFullYear();
- nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
- nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
- model.setValue("/root/main/todd", nextDate);
- */
-
-
- model.refresh();
-
- }
-
- //의사휴진일정 조회
- function fSearchDrHoliSche(){
- // model.resetInstanceNode("/root/send");
- var checkflag = model.getValue("/root/main/srchflag");
- model.setValue("/root/send/holiflag", model.getValue("/root/main/srchflag"));
- model.setValue("/root/send/prcsstat", model.getValue("/root/main/prcsstat"));
- model.setValue("/root/send/orddrid", model.getValue("/root/main/orddrid"));
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/orddeptcd"));
- model.setValue("/root/send/srchcond", model.getValue("/root/main/srchcond"));
- model.setValue("/root/send/fromdd", model.getValue("/root/main/fromdd"));
- model.setValue("/root/send/todd", model.getValue("/root/main/todd"));
-
- if(model.getValue("/root/send/fromdd") != "" && model.getValue("/root/send/todd") != "" ){
-
- submit("TRPMB00905");
-
- }else{
- messageBox("조회기간 정보를 입려하지", "E007");
- return;
- }
-
- model.refresh();
- }
-
- //출력물
- function fHolilistPrint(){
-
- var fromdd = model.getValue("/root/main/fromdd");
- var todd = model.getValue("/root/main/todd");
-
- model.makeNode("/root/temp/ordlist/orddeptnm");
- model.makeNode("/root/temp/ordlist/orddrnm");
- model.makeNode("/root/temp/ordlist/sp");
- model.makeNode("/root/temp/ordlist/jobposcd");
- model.makeNode("/root/temp/ordlist/unitcnt");
- model.makeNode("/root/temp/ordlist/tempcnt");
- model.makeNode("/root/temp/ordlist/changcnt");
- model.makeNode("/root/temp/ordlist/layoffday");
- model.makeNode("/root/temp/ordlist/layoffunitcnt");
- model.makeNode("/root/temp/ordlist/realunitcnt");
- model.makeNode("/root/temp/ordlist/fromdd");
- model.makeNode("/root/temp/ordlist/todd");
-
- //상단에 진료과 진료의 세팅
- model.makeNode("/root/temp/ordlist/orddeptcd");
- model.makeNode("/root/temp/ordlist/orddrid");
-
- //var orddd = model.getValue("");
- model.makeValue("/root/temp/ordlist/orddeptcd", cmb_orddeptcd.label);
- model.makeValue("/root/temp/ordlist/orddrid", cmb_orddrid.label);
-
- //일자
- model.setValue("/root/temp/ordlist/fromdd", fromdd);
- model.setValue("/root/temp/ordlist/todd", todd);
-
-
- for (i = 1; i <= getNodesetCount("/root/main/drholiordsche/drholiordschelist"); i++) {
-
- model.makeValue("/root/temp/ordlist[" + i + "]/orddeptnm",grd_holische.labelmatrix(i, 1));
- model.makeValue("/root/temp/ordlist[" + i + "]/orddrnm",grd_holische.labelmatrix(i, 2));
- model.makeValue("/root/temp/ordlist[" + i + "]/sp",grd_holische.labelmatrix(i, 3));
- model.makeValue("/root/temp/ordlist[" + i + "]/jobposcd",grd_holische.labelmatrix(i, 4));
- model.makeValue("/root/temp/ordlist[" + i + "]/unitcnt",grd_holische.labelmatrix(i, 5));
- model.makeValue("/root/temp/ordlist[" + i + "]/tempcnt",grd_holische.labelmatrix(i, 6));
- model.makeValue("/root/temp/ordlist[" + i + "]/changcnt",grd_holische.labelmatrix(i, 7));
- model.makeValue("/root/temp/ordlist[" + i + "]/layoffday",grd_holische.labelmatrix(i, 8));
- model.makeValue("/root/temp/ordlist[" + i + "]/layoffunitcnt",grd_holische.labelmatrix(i, 9));
- model.makeValue("/root/temp/ordlist[" + i + "]/realunitcnt",grd_holische.labelmatrix(i, 10));
- }
-
- exeReportPreview("RPPMB02800_기간별진료현황", "XMLSTR", "","", "false","","","","","false");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1195;" 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="caption6" class="tit_1" style="left:0px; top:0px; width:254px; 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:14px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1134px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removenode("/root/main/drholiordsche/drholiordschelist");
- model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist");
-
- fSearchDrHoliSche();
-
- /*
- //전체건수조회
- var cnt = getNodesetCount("/root/main/drholiordsche/drholiordschelist");
- model.setValue("/root/temp/gridcnt", cnt);
-
- var sum_unitcnt = 0;
-
- for(var i = 1; i <= cnt; i++) {
- sum_unitcnt = parseInt(model.getvalue("/root/main/drholiordsche/drholiordschelist[" + i + "]/layoffunitcnt")) + sum_unitcnt;
- }
-
- model.setValue("/root/temp/sum_unitcnt", sum_unitcnt);
-
- grd_holische.subtotalposition= "below";
-
- for(var i=2 ; i<22 ; i++){
- if (i ==10 || i==11 || i==12 || i==13) {
- grd_holische.subtotal("sum",22, i, "#,###", "background-color:#99ff99", 1, "합계");
- }
- }
- */
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption10" style="left:595px; top:9px; width:15px; height:19px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
- <select1 id="cmb_orddrid" ref="/root/main/orddrid" class="combo_s_essential" appearance="minimal" style="left:304px; top:9px; width:76px; 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:0px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <caption id="caption7" class="search_name" style="left:211px; top:9px; width:86px; height:17px; ">진료의사 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:80px; top:9px; width:100px; 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="caption2" class="search_name" style="left:413px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_fromdd" ref="/root/main/fromdd" class="input_search" inputtype="date" style="left:508px; top:9px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/todd" class="input_search" inputtype="date" style="left:610px; top:9px; width:85px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1128px; y1:7px; x2:1128px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <col type="checkbox"/>
- <caption id="caption4" class="tit_2" style="left:6px; top:59px; width:157px; height:14px; ">기간별 진료현황 리스트</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:74px; "/>
- <datagrid id="grd_holische" nodeset="/root/main/drholiordsche/drholiordschelist" class="datagrid2" caption="진료과^진료의사^선택
진료^직위^예정
UNIT수^임시
UNIT수^대진
UNIT수^휴진
일수^휴진
UNIT수^실진료
UNIT수" colsep="^" colwidth="142, 150, 80, 160, 102, 102, 102, 102, 102, 102" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:80px; width:1194px; height:661px; font-weight:bolder; ">
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="sp"/>
- <col ref="jobposcd"/>
- <col ref="unitcnt" style="text-align:center; "/>
- <col ref="tempunit" style="text-align:center; "/>
- <col ref="changunit" style="text-align:center; "/>
- <col ref="layoffday" style="text-align:center; "/>
- <col ref="layoffunitcnt" style="text-align:center; "/>
- <col ref="realunitcnt" style="text-align:center; "/>
- </datagrid>
- <button id="btn_print" class="btn6_letter2" style="left:1134px; top:51px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fHolilistPrint();
-
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_saveSche7" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|