SMRPD02700_연차산출현황출력.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <list>
  11. <annualequation/>
  12. </list>
  13. </main>
  14. <send>
  15. <retrparams>
  16. <instcd/>
  17. <yearno/>
  18. <dutunitcd/>
  19. <dutunitnm/>
  20. </retrparams>
  21. </send>
  22. <init/>
  23. <temp/>
  24. <hidden>
  25. <rptparm/>
  26. </hidden>
  27. </root>
  28. </instance>
  29. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  30. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  33. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  34. <script type="javascript" src="../../../mis/dligclaznsmngtweb/js/RPD001.js"/>
  35. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  36. <submission id="TRRPD02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  37. </model>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. fInitialize();
  41. ]]>
  42. </script>
  43. <script type="javascript">
  44. <![CDATA[
  45. function fInitialize()
  46. {
  47. model.removenode("/root/main/list/annualequation");
  48. misfMsterDetailSet(grd_annualequation, null, "TRRPD02701", "Y");
  49. model.setValue("/root/send/retrparams/yearno", getCurrentDate().substr(0, 4));
  50. misfComboInstCdListMulti("cmb_instcd",ipt_yearno.value+getCurrentDate().substr(4, 4),"","N");
  51. // misfComboComCdListMulti("Z0007","cmb_instcd");
  52. misfGetAndSetUserInfo();
  53. misfGetUserAuth();
  54. rpdfComboCdList(cmb_dutplce);
  55. rpdfSetDutUnitCombo();
  56. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  57. model.setValue("/root/send/retrparams/dutunitcd", DUT_UNIT_CD);
  58. model.setValue("/root/send/retrparams/dutunitnm", DUT_UNIT_NM);
  59. model.refresh();
  60. if(DUTY_PART_YN == "Y" && getUserInfo("dutplceinstcd") == "001")
  61. {
  62. cmb_instcd.disabled = false;
  63. cmb_dutplce.visible = false;
  64. }
  65. else if(DUTY_PART_YN == "Y" && getUserInfo("dutplceinstcd") != "001")
  66. {
  67. cmb_dutplce.visible = false;
  68. }
  69. }
  70. function fsearch()
  71. {
  72. misfMsterDetailRetrieve();
  73. if(grd_annualequation.rows != grd_annualequation.fixedRows)
  74. {
  75. var grdrows = grd_annualequation.rows - grd_annualequation.fixedRows;
  76. for(var i = grd_annualequation.fixedRows ; i - grd_annualequation.fixedRows < grdrows ; i++)
  77. {
  78. if(parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genryearno"))), 10) == (grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genryearno"))))
  79. {
  80. grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genryearno")) = parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genryearno"))), 10);
  81. }
  82. }
  83. for(var i = grd_annualequation.fixedRows ; i - grd_annualequation.fixedRows < grdrows ; i++)
  84. {
  85. if(parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("olmtspreyearno"))), 10) == (grd_annualequation.valueMatrix(i, grd_annualequation.colRef("olmtspreyearno"))))
  86. {
  87. grd_annualequation.valueMatrix(i, grd_annualequation.colRef("olmtspreyearno")) = parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("olmtspreyearno"))), 10);
  88. }
  89. }
  90. for(var i = grd_annualequation.fixedRows ; i - grd_annualequation.fixedRows < grdrows ; i++)
  91. {
  92. if(parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("spreyearno"))), 10) == (grd_annualequation.valueMatrix(i, grd_annualequation.colRef("spreyearno"))))
  93. {
  94. grd_annualequation.valueMatrix(i, grd_annualequation.colRef("spreyearno")) = parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("spreyearno"))), 10);
  95. }
  96. }
  97. for(var i = grd_annualequation.fixedRows ; i - grd_annualequation.fixedRows < grdrows ; i++)
  98. {
  99. if(parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genrhealholi"))), 10) == (grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genrhealholi"))))
  100. {
  101. grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genrhealholi")) = parseInt((grd_annualequation.valueMatrix(i, grd_annualequation.colRef("genrhealholi"))), 10);
  102. }
  103. }
  104. }
  105. }
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  110. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  111. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:197px; height:14px; ">연차산출현황출력</caption>
  112. </group>
  113. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  114. <group id="group2" style="left:0px; top:10px; width:1195px; height:36px; vertical-align:top; ">
  115. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  116. <caption id="caption2" class="search_name" style="left:265px; top:9px; width:92px; height:17px; ">연차년도 :</caption>
  117. <line id="line13" class="line_4" style="top:7; x1:1110px; y1:7px; x2:1110px; y2:29px; border-left-style:solid; "/>
  118. <input id="ipt_yearno" ref="/root/send/retrparams/yearno" class="input_s_essential" inputtype="date" format="yyyy" style="left:353px; top:8px; width:100px; height:19px; text-align:center; ">
  119. <script type="javascript" ev:event="xforms-value-changed">
  120. <![CDATA[
  121. var instcd = cmb_instcd.value;
  122. if( getStringLength(ipt_yearno.value) == "4" ) {
  123. model.removeNodeset(cmb_instcd.attribute("ref"));
  124. model.makeNode("/root/send/retrparams/instcd");
  125. misfComboInstCdListMulti("cmb_instcd",ipt_yearno.value+"1231","","N");
  126. cmb_instcd.value = instcd;
  127. model.refresh();
  128. }
  129. ]]>
  130. </script>
  131. </input>
  132. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  133. <caption>조회</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. fsearch();
  137. ]]>
  138. </script>
  139. </button>
  140. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" disabled="true" navindex="1" appearance="minimal" style="left:100px; top:8px; width:145px; height:19px; ">
  141. <choices>
  142. <itemset>
  143. <label/>
  144. <value/>
  145. </itemset>
  146. </choices>
  147. </select1>
  148. <caption id="caption7" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">근무기관 :</caption>
  149. <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="3" style="left:650px; top:8px; width:115px; height:19px; ">
  150. <script type="javascript" ev:event="xforms-value-changed">
  151. <![CDATA[
  152. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  153. model.refresh();
  154. ]]>
  155. </script>
  156. <script type="javascript" ev:event="onkeypress">
  157. <![CDATA[
  158. if(event.keyCode == 13)
  159. {
  160. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  161. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  162. model.refresh();
  163. }
  164. ]]>
  165. </script>
  166. </input>
  167. <button id="btn_dutdept" class="icon_search" style="left:632px; top:9px; width:16px; height:16px; ">
  168. <caption/>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  172. btn_search.dispatch("DOMActivate");
  173. model.refresh();
  174. ]]>
  175. </script>
  176. </button>
  177. <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" navindex="2" maxlength="10" style="left:552px; top:8px; width:75px; height:19px; text-align:center; ">
  178. <script type="javascript" ev:event="xforms-value-changed">
  179. <![CDATA[
  180. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  181. model.refresh();
  182. ]]>
  183. </script>
  184. <script type="javascript" ev:event="onkeypress">
  185. <![CDATA[
  186. if(event.keyCode == 13)
  187. {
  188. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  189. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  190. model.refresh();
  191. }
  192. ]]>
  193. </script>
  194. </input>
  195. <caption id="caption1" class="search_name" style="left:464px; top:9px; width:99px; height:17px; ">소속부서 :</caption>
  196. <select1 id="cmb_dutplce" ref="/root/send/retrparams/dutunitcd" class="combo_search" appearance="minimal" style="left:552px; top:8px; width:213px; height:19px; ">
  197. <choices>
  198. <itemset>
  199. <label/>
  200. <value/>
  201. </itemset>
  202. </choices>
  203. <script type="javascript" ev:event="xforms-value-changed">
  204. <![CDATA[
  205. fsearch();
  206. ]]>
  207. </script>
  208. </select1>
  209. </group>
  210. <line id="line7" class="line_1" style="left:0; x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  211. <caption id="caption25" class="tit_2" style="left:5px; top:55px; width:151px; height:13px; ">연차자료개별등록</caption>
  212. <datagrid id="grd_annualequation" nodeset="/root/main/list/annualequation" caption="기관코드^기관명^사원번호^성명^소속부서^소속부서^년 차^년 차^년 차^보 호 휴 가|기관코드^기관명^사원번호^성명^부서코드^부서명^발 생^1년↓ 가용휴가수^잔 여^발 생" colsep="^" colwidth="0, 102, 150, 120, 100, 140, 140, 140, 140, 140" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:1195px; height:659px; ">
  213. <col ref="instcd" visibility="hidden"/>
  214. <col ref="instnm" visibility="visible"/>
  215. <col ref="emplno" style="text-align:center; "/>
  216. <col ref="emplnm"/>
  217. <col ref="dutplcedeptcd" maxlength="10" style="text-align:center; "/>
  218. <col ref="deptnm" maxlength="10" style="text-align:center; "/>
  219. <col ref="genryearno" style="text-align:right; padding-right:10; "/>
  220. <col ref="olmtspreyearno" style="text-align:right; padding-right:10; "/>
  221. <col ref="spreyearno" style="text-align:right; padding-right:10; "/>
  222. <col ref="genrhealholi" style="text-align:right; padding-right:10; "/>
  223. </datagrid>
  224. </group>
  225. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  226. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  227. <button id="btn_print" class="btn6_letter2" style="left:0px; top:2px; width:56px; height:22px; ">
  228. <caption>출력</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. if(grd_annualequation.rows == grd_annualequation.fixedRows)
  232. {
  233. messageBox("출력할 내용이" ,"I004");
  234. return;
  235. }
  236. model.makeValue("/root/hidden/rptparm/instnm", cmb_instcd.label);
  237. exeReportPreview("RPRPD02701", "XMLSTR", "/root/hidden/rptparm");
  238. model.removenode("/root/hidden/prntlist/"); // 출력 후 데이터 삭제
  239. ]]>
  240. </script>
  241. </button>
  242. </group>
  243. </xhtml:body>
  244. </xhtml:html>