SMAHS01500_LID별수납현황.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <lidlst>
  11. <item>
  12. <rcptrid/>
  13. <rcptrnm/>
  14. <totamt/>
  15. <cashamt/>
  16. <cardamt/>
  17. <cmpyamt/>
  18. <ownamt/>
  19. <ownuncoamt/>
  20. <discamt/>
  21. <restamt/>
  22. <sunsuamt/>
  23. <sunsuretamt/>
  24. </item>
  25. </lidlst>
  26. <export/>
  27. </main>
  28. <send>
  29. <srchinstcd/>
  30. <srchdd/>
  31. <srchhealexamflag/>
  32. </send>
  33. <hidden>
  34. </hidden>
  35. <init>
  36. <baseinfo>
  37. <srchhealexamflag/>
  38. </baseinfo>
  39. </init>
  40. </root>
  41. </instance>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. //건진구분 조회
  45. zbcfGetCodeList( new Array("A0068" ), new Array("/root/init/baseinfo/srchhealexamflag") );
  46. addComboItem("cmb_healexamflag","전체","%","above");
  47. cmb_healexamflag.select(0);
  48. //addComboItem("cmb_healexamflag","전체","","above");
  49. // 기관코드 초기화
  50. model.setValue("/root/send/srchinstcd" , getUserInfo("posinstcd"));
  51. // 공통코드 조회
  52. // 일자초기화
  53. model.setValue("/root/send/srchdd" , getCurrentDate());
  54. model.refresh();
  55. ]]>
  56. </script>
  57. <submission id="TRZBC00101"/>
  58. <script type="javascript">
  59. <![CDATA[
  60. /*
  61. * 건진종류 소계 및 총계를 생성한다.
  62. */
  63. function fSetRcptSum() {
  64. // 그리드 merge 및 합계 초기화
  65. grd_lidlst.subtotalPosition = "below";
  66. grd_lidlst.multiTotals = true;
  67. grd_lidlst.subtotal("clear", 0, 0);
  68. for(var i =0; i < grd_lidlst.cols ; i++) {
  69. // 소계 및 합계
  70. if(i >= grd_lidlst.colRef("totamt") && i <= grd_lidlst.colRef("sunsuretamt")) {
  71. grd_lidlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_lidlst.colRef("rcptrid") , "총계" );
  72. }
  73. }
  74. }
  75. /*
  76. * 일자 초기화 (srchfromdd , srchtodd)
  77. */
  78. function fDate(vYear , vMon) {
  79. var dd = new Date(vYear, vMon ,0);
  80. model.setValue("/root/send/srchfromdd" , vYear + vMon + "01");
  81. model.setValue("/root/send/srchtodd" , vYear + vMon + dd.getDate());
  82. }
  83. ]]>
  84. </script>
  85. <submission id="TRAHS01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lidlst"/>
  86. </model>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  93. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  94. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  95. </xhtml:head>
  96. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;1,1050;">
  97. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  98. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">수납자별 수납현황</caption>
  99. </group>
  100. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  101. <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; "/>
  102. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  103. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  104. <caption>조회</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. var ret = submit("TRAHS01501");
  108. if(ret) {
  109. fSetRcptSum();
  110. model.refresh();
  111. }
  112. ]]>
  113. </script>
  114. </button>
  115. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:976px; top:7px; width:80px; height:22px; ">
  116. <caption>액셀저장</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  120. grd_lidlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  121. ]]>
  122. </script>
  123. </button>
  124. <button id="btn_prt" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  125. <caption>출력</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. model.makeValue("/root/main/export/srchdd" , model.getValue("/root/send/srchdd").toDate().getDateFormat("YYYY/MM/DD"));
  129. exeReportPreview("RPAHS01501", "XMLSTR", "/root/main/export","", "false","","","","","false");
  130. ]]>
  131. </script>
  132. </button>
  133. <line id="line3" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  134. <caption id="caption2" class="search_name" style="left:235px; top:10px; width:73px; height:17px; ">일자 :</caption>
  135. <input id="ipt_fromdd" ref="/root/send/srchdd" class="input_search" navindex="7" inputtype="date" style="left:302px; top:9px; width:105px; height:19px; ">
  136. <script type="javascript" ev:event="onkeydown">
  137. <![CDATA[
  138. ]]>
  139. </script>
  140. </input>
  141. <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" appearance="minimal" style="left:115px; top:9px; width:100px; height:19px; ">
  142. <choices>
  143. <itemset nodeset="/root/init/baseinfo/srchhealexamflag/A0068">
  144. <label ref="cdnm"/>
  145. <value ref="cdid"/>
  146. </itemset>
  147. </choices>
  148. </select1>
  149. <caption id="caption7" class="search_name" style="left:25px; top:10px; width:87px; height:17px; ">건진구분 :</caption>
  150. </group>
  151. <datagrid id="grd_lidlst" nodeset="/root/main/lidlst/item" caption="수납자 ID^수납자 명^진료비총액^현금입금액^통장입금^카드입금액^단체부담금^본인부담금^계정미수금^할인금액^절사금액^선수금액^선수반환금액" colsep="^" colwidth="100, 100, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:4px; top:65px; width:1203px; height:707px; text-align:center; ">
  152. <col ref="rcptrid" style="font-weight:bold; text-align:center; "/>
  153. <col ref="rcptrnm"/>
  154. <col ref="totamt" format="(-,+)#,###" style="text-align:right; "/>
  155. <col ref="cashamt" format="(-,+)#,###" style="text-align:right; "/>
  156. <col ref="onlineamt" format="(-,+)#,###" style="text-align:right; "/>
  157. <col ref="cardamt" format="(-,+)#,###" style="text-align:right; "/>
  158. <col ref="cmpyamt" format="(-,+)#,###" style="text-align:right; "/>
  159. <col ref="ownamt" format="(-,+)#,###" style="text-align:right; "/>
  160. <col ref="ownuncoamt" format="(-,+)#,###" style="text-align:right; "/>
  161. <col ref="discamt" format="(-,+)#,###" style="text-align:right; "/>
  162. <col ref="restamt" format="(-,+)#,###" style="text-align:right; "/>
  163. <col ref="sunsuamt" format="(-,+)#,###" style="text-align:right; "/>
  164. <col ref="sunsuretamt" format="(-,+)#,###" style="text-align:right; "/>
  165. </datagrid>
  166. </xhtml:body>
  167. </xhtml:html>