SMPAS00600_토요진료실적.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>토요진료실적</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <h_opmi>
  11. <opmi>
  12. <orddd/>
  13. <orddeptcdnm/>
  14. <orddridnm/>
  15. <jobposcd/>
  16. <cnt/>
  17. <rcptamt/>
  18. <satord/>
  19. <apply/>
  20. <costamt/>
  21. <payment/>
  22. </opmi>
  23. </h_opmi>
  24. </main>
  25. <send>
  26. <fromdd/>
  27. <todd/>
  28. <ioflag/>
  29. <orddeptcd/>
  30. </send>
  31. <hidden>
  32. <init/>
  33. </hidden>
  34. </root>
  35. </instance>
  36. <script type="javascript" ev:event="xforms-model-construct-done">
  37. <![CDATA[
  38. ]]>
  39. </script>
  40. <submission id="TRPAS00600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/h_opmi"/>
  41. <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  42. </model>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  49. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  50. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. submit("TRPAMCOM01");
  54. addComboItem("cmb_orddeptcd","전체","%","above");
  55. model.setValue("/root/send/orddeptcd" , "%");
  56. model.setValue("/root/send/fromdd" , getCurrentDate());
  57. model.setValue("/root/send/todd" , getCurrentDate());
  58. //model.setValue("/root/send/fromdd" , "20090720");
  59. //model.setValue("/root/send/todd" , "20090720");
  60. model.refresh();
  61. ]]>
  62. </script>
  63. <script type="javascript">
  64. <![CDATA[
  65. function fSubTotal() {
  66. datagrid1.rebuild();
  67. datagrid1.subtotalposition = "below";
  68. datagrid1.multitotals = true;
  69. datagrid1.subtotal("sum", 1, 5 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
  70. datagrid1.subtotal("sum", 1, 6 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
  71. datagrid1.subtotal("sum", 1, 9 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
  72. datagrid1.subtotal("sum", 1, 10, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#ccffcc; color:#0000; font-weight:bold; ", 1, "합계 ", false);
  73. datagrid1.subtotal("sum", -1, 5 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
  74. datagrid1.subtotal("sum", -1, 6 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
  75. datagrid1.subtotal("sum", -1, 9 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
  76. datagrid1.subtotal("sum", -1, 10, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#99ccff; color:#0000; font-weight:bold; ", 1, "총합계 ", false);
  77. }
  78. ]]>
  79. </script>
  80. </xhtml:head>
  81. <xhtml:body pagewidth="1211" pageheight="784">
  82. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  83. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">토요진료실적</caption>
  84. </group>
  85. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  86. <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; "/>
  87. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:65px; height:17px; ">기간 :</caption>
  88. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  89. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  90. <caption>조회</caption>
  91. <script type="javascript" ev:event="DOMActivate">
  92. <![CDATA[
  93. var fromdd = model.getValue("/root/send/fromdd");
  94. var todd = model.getValue("/root/send/todd");
  95. var tempdd = todd.toDate().getAddDate(-62,"D").getDateFormat("YYYYMMDD");
  96. if(fromdd < tempdd) {
  97. messageBox("60일 이내만 조회 가능합니다.","I999","");
  98. return;
  99. }
  100. submit("TRPAS00600");
  101. fSubTotal();
  102. ]]>
  103. </script>
  104. </button>
  105. <select1 id="combo1" ref="/root/send/ioflag" visibility="hidden" appearance="minimal" style="left:765px; top:8px; width:100px; height:19px; ">
  106. <choices>
  107. <item>
  108. <label>전체</label>
  109. <value>ALL</value>
  110. </item>
  111. <item>
  112. <label>입원</label>
  113. <value>IN</value>
  114. </item>
  115. <item>
  116. <label>외래</label>
  117. <value>OUT</value>
  118. </item>
  119. </choices>
  120. </select1>
  121. <button id="button1" class="btn6_letter2" visibility="hidden" style="left:980px; top:7px; width:56px; height:22px; ">
  122. <caption>출력</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. ]]>
  126. </script>
  127. </button>
  128. <line id="line3" class="line_4" visibility="hidden" style="x1:1040px; y1:7px; x2:1040px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  129. <button id="button2" class="btn6_letter4" style="left:1046px; top:7px; width:80px; height:22px; ">
  130. <caption>엑셀저장</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. var fileName = window.fileDialog("save", ",", false, "토요진료실적" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  134. datagrid1.saveExcel(fileName, "sheet");
  135. window.exec(fileName);
  136. ]]>
  137. </script>
  138. </button>
  139. <caption id="caption1" class="search_name" visibility="hidden" style="left:670px; top:10px; width:90px; height:17px; ">진료구분 :</caption>
  140. <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; ">
  141. <script type="javascript" ev:event="onkeydown">
  142. <![CDATA[
  143. ]]>
  144. </script>
  145. </input>
  146. <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; ">
  147. <script type="javascript" ev:event="onkeydown">
  148. <![CDATA[
  149. ]]>
  150. </script>
  151. </input>
  152. <caption id="caption3" style="left:180px; top:11px; width:20px; height:15px; text-align:center; ">~</caption>
  153. <caption id="caption4" class="search_name" style="left:350px; top:9; width:80px; height:17px; ">진료과 :</caption>
  154. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" appearance="minimal" style="left:430px; top:8px; width:145px; height:19px; ">
  155. <choices>
  156. <itemset nodeset="/root/hidden/init/orddeptcd">
  157. <label ref="nm"/>
  158. <value ref="cd"/>
  159. </itemset>
  160. </choices>
  161. </select1>
  162. </group>
  163. <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; ">
  164. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  165. <col ref="orddeptcdnm" style="text-align:left; "/>
  166. <col ref="orddridnm" style="text-align:left; "/>
  167. <col ref="jobposcd" style="text-align:left; "/>
  168. <col ref="cnt" format="(-)#,###" style="text-align:right; "/>
  169. <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
  170. <col ref="satord" style="text-align:center; "/>
  171. <col ref="apply" type="input" format="(-)#,###" style="text-align:right; "/>
  172. <col ref="costamt" type="input" format="(-)#,###" style="text-align:right; "/>
  173. <col ref="payment" type="input" format="(-)#,###" style="text-align:right; "/>
  174. <script type="javascript" ev:event="xforms-value-changed">
  175. <![CDATA[
  176. var payment = 0;
  177. var cnt = datagrid1.rows -1;
  178. for(var a=1; a < datagrid1.rows; a++) {
  179. payment = parseInt(model.getvalue("/root/main/h_opmi/opmi["+a+"]/apply")) * parseInt(model.getvalue("/root/main/h_opmi/opmi["+a+"]/costamt")) ;
  180. if(model.getvalue("/root/main/h_opmi/opmi["+a+"]/orddd") =="") continue;
  181. model.setvalue("/root/main/h_opmi/opmi["+a+"]/payment" , payment);
  182. }
  183. fSubTotal();
  184. ]]>
  185. </script>
  186. </datagrid>
  187. </xhtml:body>
  188. </xhtml:html>