123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <?xml version="1.0" encoding="UTF-16"?>
- <?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>
- <h_opmi>
- <opmi>
- <orddd/>
- <orddeptcdnm/>
- <orddridnm/>
- <jobposcd/>
- <cnt/>
- <rcptamt/>
- <satord/>
- <apply/>
- <costamt/>
- <payment/>
- </opmi>
- </h_opmi>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <ioflag/>
- <orddeptcd/>
- </send>
- <hidden>
- <init/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- ]]>
- </script>
- <submission id="TRPAS00600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_opmi"/>
- <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- submit("TRPAMCOM01");
- addComboItem("cmb_orddeptcd","전체","%","above");
-
- model.setValue("/root/send/orddeptcd" , "%");
-
- model.setValue("/root/send/fromdd" , getCurrentDate());
- model.setValue("/root/send/todd" , getCurrentDate());
- //model.setValue("/root/send/fromdd" , "20090720");
- //model.setValue("/root/send/todd" , "20090720");
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSubTotal() {
-
- datagrid1.rebuild();
-
- datagrid1.subtotalposition = "below";
- datagrid1.multitotals = true;
- datagrid1.subtotal("sum", 1, 5 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
- datagrid1.subtotal("sum", 1, 6 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
- datagrid1.subtotal("sum", 1, 9 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
- datagrid1.subtotal("sum", 1, 10, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
- datagrid1.subtotal("sum", -1, 5 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
- datagrid1.subtotal("sum", -1, 6 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
- datagrid1.subtotal("sum", -1, 9 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
- datagrid1.subtotal("sum", -1, 10, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784">
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">토요진료실적</caption>
- </group>
- <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:65px; height:17px; ">기간 :</caption>
- <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
-
- var tempdd = todd.toDate().getAddDate(-62,"D").getDateFormat("YYYYMMDD");
-
- if(fromdd < tempdd) {
- messageBox("60일 이내만 조회 가능합니다.","I999","");
- return;
- }
-
-
- submit("TRPAS00600");
- fSubTotal();
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/ioflag" visibility="hidden" appearance="minimal" style="left:765px; top:8px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>ALL</value>
- </item>
- <item>
- <label>입원</label>
- <value>IN</value>
- </item>
- <item>
- <label>외래</label>
- <value>OUT</value>
- </item>
- </choices>
- </select1>
- <button id="button1" class="btn6_letter2" visibility="hidden" style="left:980px; top:7px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" visibility="hidden" style="x1:1040px; y1:7px; x2:1040px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button2" class="btn6_letter4" style="left:1046px; top:7px; width:80px; height:22px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fileName = window.fileDialog("save", ",", false, "토요진료실적" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- datagrid1.saveExcel(fileName, "sheet");
- window.exec(fileName);
-
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:670px; top:10px; width:90px; height:17px; ">진료구분 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="7" inputtype="date" style="left:80px; top:8px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="7" inputtype="date" style="left:200px; top:8px; width:100px; height:27px; text-align:center; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption3" style="left:180px; top:11px; width:20px; height:15px; text-align:center; ">~</caption>
- <caption id="caption4" class="search_name" style="left:350px; top:9; width:80px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" appearance="minimal" style="left:430px; top:8px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="datagrid1" nodeset="/root/main/h_opmi/opmi" caption="진료일자^진료과^진료의사^구분^진료건수^금액^토요근무^적용^단가^지급액^" colsep="^" colwidth="80, 120, 80, 80, 80, 130, 80, 80, 130, 130" multitotal="true" rowheader="seq" rowsep="|" selected="true" style="left:4px; top:70px; width:1202px; height:700px; ">
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptcdnm" style="text-align:left; "/>
- <col ref="orddridnm" style="text-align:left; "/>
- <col ref="jobposcd" style="text-align:left; "/>
- <col ref="cnt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="satord" style="text-align:center; "/>
- <col ref="apply" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="costamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="payment" type="input" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var payment = 0;
-
- var cnt = datagrid1.rows -1;
-
- for(var a=1; a < datagrid1.rows; a++) {
-
- payment = parseInt(model.getvalue("/root/main/h_opmi/opmi["+a+"]/apply")) * parseInt(model.getvalue("/root/main/h_opmi/opmi["+a+"]/costamt")) ;
-
- if(model.getvalue("/root/main/h_opmi/opmi["+a+"]/orddd") =="") continue;
-
- model.setvalue("/root/main/h_opmi/opmi["+a+"]/payment" , payment);
- }
- fSubTotal();
-
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|