SMAHS01300_사업장실시인원.xrw 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. <cmpylst>
  11. <item>
  12. <cmpynm/>
  13. <pkgnm/>
  14. <condd/>
  15. <cmpyamt/>
  16. <cmpycnt/>
  17. <chrgnm/>
  18. <mon1/>
  19. <mon2/>
  20. <mon3/>
  21. <mon4/>
  22. <mon5/>
  23. <mon6/>
  24. <mon7/>
  25. <mon8/>
  26. <mon9/>
  27. <mon10/>
  28. <mon11/>
  29. <mon12/>
  30. </item>
  31. </cmpylst>
  32. <export/>
  33. </main>
  34. <send>
  35. <srchinstcd/>
  36. <srchfromdd/>
  37. <srchtodd/>
  38. <srchyear/>
  39. </send>
  40. <hidden>
  41. </hidden>
  42. <init>
  43. <baseinfo>
  44. <yearlst/>
  45. </baseinfo>
  46. <srch>
  47. <year/>
  48. </srch>
  49. </init>
  50. </root>
  51. </instance>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. // 기관코드 초기화
  55. model.setValue("/root/send/srchinstcd" , getUserInfo("posinstcd"));
  56. // 공통코드 조회
  57. zbcfGetCodeList( new Array("P0167"),
  58. new Array("/root/init/baseinfo/yearlst"
  59. ) );
  60. // 일자초기화
  61. model.setValue("/root/init/srch/year" , getCurrentDate().substr(0,4));
  62. cmb_year.dispatch("xforms-select");
  63. model.refresh();
  64. ]]>
  65. </script>
  66. <submission id="TRZBC00101"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. /*
  70. * 건진종류 소계 및 총계를 생성한다.
  71. */
  72. function fSetRcptSum() {
  73. // 그리드 merge 및 합계 초기화
  74. grd_cmpylst
  75. grd_cmpylst.subtotalPosition = "below";
  76. grd_cmpylst.multiTotals = true;
  77. grd_cmpylst.subtotal("clear", 0, 0);
  78. for(var i =0; i < grd_cmpylst.cols ; i++) {
  79. // 소계 및 합계
  80. if((i >= grd_cmpylst.colRef("cmpyamt") && i <= grd_cmpylst.colRef("cmpycnt")) ||
  81. (i >= grd_cmpylst.colRef("mon1") && i <= grd_cmpylst.colRef("mon12")) ) {
  82. grd_cmpylst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_cmpylst.colRef("cmpynm") , "합계" );
  83. }
  84. }
  85. }
  86. /*
  87. * 날짜 초기화
  88. */
  89. function fDate(vYear) {
  90. var dd = new Date(vYear , 14 , 0 );
  91. model.setValue("/root/send/srchfromdd" , vYear + "0101");
  92. // model.setValue("/root/send/srchtodd" , dd.getYear() + new String(dd.getMonth() + 1).getLeftPad(2,"0") + new String(dd.getDate() ) );
  93. model.setValue("/root/send/srchtodd" , vYear + "1231" );
  94. model.setValue("/root/send/srchyear" , vYear);
  95. }
  96. ]]>
  97. </script>
  98. <submission id="TRAHS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cmpylst"/>
  99. </model>
  100. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  106. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  107. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  108. </xhtml:head>
  109. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;1,1049;">
  110. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  111. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">사업장실시인원</caption>
  112. </group>
  113. <group id="group2" style="left:4px; top:23px; width:1203px; height:35px; ">
  114. <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; "/>
  115. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  116. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  117. <caption>조회</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. var ret = submit("TRAHS01301");
  121. if(ret) {
  122. fSetRcptSum();
  123. model.refresh();
  124. }
  125. ]]>
  126. </script>
  127. </button>
  128. <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:976px; top:7px; width:80px; height:22px; ">
  129. <caption>액셀저장</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  133. grd_cmpylst.saveExcel(fileName, "SheetName", true, true, "", "", false);
  134. ]]>
  135. </script>
  136. </button>
  137. <button id="btn_prt" class="btn6_letter2" style="left:1070px; top:7px; width:56px; height:22px; ">
  138. <caption>출력</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. model.makeValue("/root/main/export/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
  142. model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
  143. model.makeValue("/root/main/export/srchyear" , model.getValue("/root/send/srchyear"));
  144. exeReportPreview("RPAHS01301", "XMLSTR", "/root/main/export","", "false","","","","","false");
  145. ]]>
  146. </script>
  147. </button>
  148. <line id="line3" class="line_4" visibility="hidden" style="x1:1063px; y1:7px; x2:1063px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  149. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:73px; height:17px; ">연도 :</caption>
  150. <select1 id="cmb_year" ref="/root/init/srch/year" appearance="minimal" style="left:80px; top:8px; width:100px; height:19px; ">
  151. <choices>
  152. <itemset nodeset="/root/init/baseinfo/yearlst/P0167">
  153. <label ref="cdnm"/>
  154. <value ref="cdid"/>
  155. </itemset>
  156. </choices>
  157. <script type="javascript" ev:event="xforms-select">
  158. <![CDATA[
  159. fDate(cmb_year.value);
  160. ]]>
  161. </script>
  162. </select1>
  163. </group>
  164. <datagrid id="grd_cmpylst" nodeset="/root/main/cmpylst/item" caption="사업장명^계약항목^계약일자^실시금액^실시인원(명)^담당자^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간^실 시 기 간|사업장명^계약항목^계약일자^실시금액^실시인원(명)^담당자^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월" colsep="^" colwidth="150, 100, 80, 100, 80, 80, 55,55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55" mergecellsfixedcols="bycol" mergecellsfixedrows="byrowrec" multitotal="true" rowheader="seq" rowsep="|" subtotalposition="below" style="left:4px; top:65px; width:1203px; height:707px; text-align:center; ">
  165. <col ref="cmpynm" style="font-weight:bold; text-align:left; "/>
  166. <col ref="pkgnm"/>
  167. <col ref="condd"/>
  168. <col ref="cmpyamt" format="(-,+)#,###" style="text-align:right; "/>
  169. <col ref="cmpycnt" format="(-,+)#,###" style="text-align:right; "/>
  170. <col ref="chrgnm"/>
  171. <col ref="mon1" format="(-,+)#,###" style="text-align:right; "/>
  172. <col ref="mon2" format="(-,+)#,###" style="text-align:right; "/>
  173. <col ref="mon3" format="(-,+)#,###" style="text-align:right; "/>
  174. <col ref="mon4" format="(-,+)#,###" style="text-align:right; "/>
  175. <col ref="mon5" format="(-,+)#,###" style="text-align:right; "/>
  176. <col ref="mon6" format="(-,+)#,###" style="text-align:right; "/>
  177. <col ref="mon7" format="(-,+)#,###" style="text-align:right; "/>
  178. <col ref="mon8" format="(-,+)#,###" style="text-align:right; "/>
  179. <col ref="mon9" format="(-,+)#,###" style="text-align:right; "/>
  180. <col ref="mon10" format="(-,+)#,###" style="text-align:right; "/>
  181. <col ref="mon11" format="(-,+)#,###" style="text-align:right; "/>
  182. <col ref="mon12" format="(-,+)#,###" style="text-align:right; "/>
  183. </datagrid>
  184. </xhtml:body>
  185. </xhtml:html>