SMAHS01900_통합건진미수현황.xrw 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. <uncolst>
  11. <item>
  12. <cmpynm/>
  13. <exclamamt/>
  14. <nowclamamt/>
  15. <incmamt/>
  16. <uncoamt/>
  17. <discamt/>
  18. <lastincmdd/>
  19. <lastclamdd/>
  20. <clamtrgtcd/>
  21. <remfact/>
  22. </item>
  23. </uncolst>
  24. <export/>
  25. </main>
  26. <send>
  27. <srchfromdd/>
  28. <srchtodd/>
  29. <srchinstcd/>
  30. <srchyear/>
  31. <srchmonth/>
  32. </send>
  33. <hidden>
  34. </hidden>
  35. <init>
  36. <baseinfo>
  37. <yearlst/>
  38. <monthlst/>
  39. </baseinfo>
  40. </init>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. // 기관코드 초기화
  46. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
  47. // 공통코드 조회
  48. zbcfGetCodeList( new Array("P0167","R0009"),
  49. new Array("/root/init/baseinfo/yearlst" ,"/root/init/baseinfo/monthlst" ) );
  50. // 일자초기화
  51. model.setValue("/root/send/srchyear" , getCurrentDate().substr(0,4));
  52. model.setValue("/root/send/srchmonth" , getCurrentDate().substr(4,2));
  53. cmb_year.dispatch("xforms-select");
  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_uncolst.subtotalPosition = "below";
  66. grd_uncolst.multiTotals = true;
  67. grd_uncolst.subtotal("clear", 0, 0);
  68. for(var i =0; i < grd_uncolst.cols ; i++) {
  69. // 소계 및 합계
  70. if((i >= grd_uncolst.colRef("bfmuncoamt") && i <= grd_uncolst.colRef("discamt")) ) {
  71. grd_uncolst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_uncolst.colRef("cmpynm") , "총계" );
  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="TRAHS01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/uncolst"/>
  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,1046;">
  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("TRAHS01901");
  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_uncolst.saveExcel(fileName, "SheetName", true, false, "", "", 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/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  129. model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  130. model.makeValue("/root/main/export/srchmonth" , model.getValue("/root/send/srchmonth"));
  131. exeReportPreview("RPAHS01201", "XMLSTR", "/root/main/export","", "false","","","","","false");
  132. ]]>
  133. </script>
  134. </button>
  135. <line id="line3" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  136. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:73px; height:17px; ">연도 :</caption>
  137. <caption id="caption1" class="search_name" style="left:205px; top:9px; width:73px; height:17px; ">월 :</caption>
  138. <select1 id="cmb_year" ref="/root/send/srchyear" appearance="minimal" style="left:80px; top:8px; width:100px; height:19px; ">
  139. <choices>
  140. <itemset nodeset="/root/init/baseinfo/yearlst/P0167">
  141. <label ref="cdnm"/>
  142. <value ref="cdid"/>
  143. </itemset>
  144. </choices>
  145. <script type="javascript" ev:event="xforms-select">
  146. <![CDATA[
  147. fDate(cmb_year.value , cmb_month.value);
  148. ]]>
  149. </script>
  150. </select1>
  151. <select1 id="cmb_month" ref="/root/send/srchmonth" appearance="minimal" style="left:255px; top:8px; width:100px; height:19px; ">
  152. <choices>
  153. <itemset nodeset="/root/init/baseinfo/monthlst/R0009">
  154. <label ref="cdnm"/>
  155. <value ref="cdid"/>
  156. </itemset>
  157. </choices>
  158. <script type="javascript" ev:event="xforms-select">
  159. <![CDATA[
  160. fDate(cmb_year.value , cmb_month.value);
  161. ]]>
  162. </script>
  163. </select1>
  164. </group>
  165. <datagrid id="grd_uncolst" nodeset="/root/main/uncolst/item" caption="사업장명^전월미수금^당월미수금^총입금액^총미수금^삭감액^최종입금일^최종청구일^비고" colsep="^" colwidth="200, 130, 130, 100, 110, 110, 110, 110, 182, 100" explorerbar="sortshow" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:4px; top:65px; width:1203px; height:707px; text-align:center; ">
  166. <col ref="cmpynm" style="font-weight:bold; text-align:center; "/>
  167. <col ref="exclamamt" format="(-,+)#,###"/>
  168. <col ref="nowclamamt" format="(-,+)#,###"/>
  169. <col ref="incmamt" format="(-,+)#,###"/>
  170. <col ref="uncoamt" format="(-,+)#,###"/>
  171. <col ref="discamt" format="(-,+)#,###"/>
  172. <col ref="lastincmdd" format="yyyy-mm-dd"/>
  173. <col ref="lastclamdd" format="yyyy-mm-dd"/>
  174. <col ref="remfact" type="input"/>
  175. <col ref="clamtrgtcd" visibility="hidden"/>
  176. <script type="javascript" ev:event="onaftersort">
  177. <![CDATA[
  178. fSetRcptSum();
  179. grd_uncolst.gridToInstance();
  180. ]]>
  181. </script>
  182. <script type="javascript" ev:event="onbeforesort">
  183. <![CDATA[
  184. grd_uncolst.subtotal("clear", 0, 5)
  185. ]]>
  186. </script>
  187. <script type="javascript" ev:event="xforms-value-changed">
  188. <![CDATA[
  189. var iRow = grd_uncolst.row;
  190. var iCol = grd_uncolst.col;
  191. if(iCol ==8){
  192. var iRemfact =grd_uncolst.valueMatrix(iRow,iCol);
  193. model.removenode("/root/main/uncolst/item["+iRow+"]/remfact");
  194. model.makeValue("/root/main/uncolst/item["+iRow+"]/remfact",iRemfact);
  195. }
  196. ]]>
  197. </script>
  198. </datagrid>
  199. </xhtml:body>
  200. </xhtml:html>