SMRPB01300_발령장출력.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="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. <gvnoffcorddd>
  11. <gvnoffcordddlist/>
  12. </gvnoffcorddd>
  13. <prtgvnoffcord>
  14. <prtgvnoffcordlist/>
  15. </prtgvnoffcord>
  16. <prtdata>
  17. <prtgvnoffcordlist/>
  18. </prtdata>
  19. </main>
  20. <send>
  21. <gvnoffcorddd>
  22. <fromdd/>
  23. <instcd/>
  24. <todd/>
  25. </gvnoffcorddd>
  26. <save>
  27. <prtgvnoffcordlist/>
  28. </save>
  29. <prtgvnoffcord>
  30. <gvnoffcorddd/>
  31. <instcd/>
  32. </prtgvnoffcord>
  33. </send>
  34. <temp/>
  35. <init/>
  36. </root>
  37. </instance>
  38. <submission id="TRRPB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gvnoffcorddd" resultref="/root/main/gvnoffcorddd"/>
  39. <submission id="TRRPB01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prtgvnoffcord" resultref="/root/main/prtgvnoffcord"/>
  40. <submission id="TXRPB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  41. </model>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  46. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  47. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. fInitialize();
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. function fInitialize()
  56. {
  57. model.removenode(grd_gvnoffcordddlist.nodeset);
  58. model.removeNodeset(grd_prtgvnoffcordlist.nodeset);
  59. model.refresh();
  60. // misfComboComCdListMulti("Z0007","cmb_instcd");
  61. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  62. model.refresh();
  63. misfMsterDetailSet(grd_gvnoffcordddlist, null, "TRRPB01301", "N");
  64. misfMsterDetailSet(grd_prtgvnoffcordlist, grd_gvnoffcordddlist, "TRRPB01302", "Y");
  65. grd_prtgvnoffcordlist.fixedcellcheckbox(1, 1) = true;
  66. var curdate = getCurrentDate();
  67. cmb_instcd.value = getUserInfo("dutplceinstcd");
  68. ipt_fromdd.value = curdate.substr(0, 8);
  69. ipt_todd.value = curdate.substr(0, 8);
  70. model.refresh();
  71. }
  72. ]]>
  73. </script>
  74. </xhtml:head>
  75. <xhtml:body style="margin-left:8; margin-right:8; ">
  76. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  77. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; "/>
  78. <caption id="caption278" class="tit_2" style="left:5px; top:62px; width:162px; height:13px; ">발령장 출력</caption>
  79. <line id="line207" class="line_1" style="x1:0px; y1:77px; x2:1193px; y2:76px; "/>
  80. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:19px; width:56px; height:22px; text-align:left; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. misfMsterDetailRetrieve();
  85. ]]>
  86. </script>
  87. </button>
  88. <line id="line3" class="line_4" style="x1:1110px; y1:12px; x2:1110px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
  89. <input id="ipt_lbrunionjobrespnm" ref="/root/main/item/lbrunionjobrespnm" class="input_search" visibility="hidden"/>
  90. <input id="ipt_lbrunionjobresp" ref="/root/main/item/dutplceinst" visibility="hidden"/>
  91. <input id="ipt_emplno_m" ref="/root/main/imsiitem/emplno" visibility="hidden"/>
  92. <input id="ipt_lbrunionrgstyn_m" ref="/root/main/imsiitem/lbrunionrgstyn" visibility="hidden"/>
  93. <input id="ipt_lbrunionrgstdd_m" ref="/root/main/imsiitem/lbrunionrgstdd" visibility="hidden"/>
  94. <input id="ipt_lbrunionsecssdd_m" ref="/root/main/imsiitem/lbrunionsecssdd" visibility="hidden"/>
  95. <input id="ipt_lbrunionjobresp_m" ref="/root/main/imsiitem/lbrunionjobresp" visibility="hidden"/>
  96. <input id="ipt_lbrunionjobrespnm_m" ref="/root/main/imsiitem/lbrunionjobrespnm" visibility="hidden"/>
  97. <input id="ipt_asgnmpostndd_m" ref="/root/main/imsiitem/asgnmpostndd" visibility="hidden"/>
  98. <input id="ipt_todd_m" ref="/root/main/imsiitem/todd" visibility="hidden"/>
  99. <input id="ipt_cur_row" ref="/root/init/cur_row_m" class="input_search" visibility="hidden"/>
  100. <datagrid id="grd_gvnoffcordddlist" nodeset="/root/main/gvnoffcorddd/gvnoffcordddlist" caption="발령일^기관|발령일^기관" colsep="^" colwidth="118, 28" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:80px; width:160px; height:660px; ">
  101. <col ref="gvnoffcorddd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  102. <col ref="instcd" visibility="hidden"/>
  103. <script type="javascript" ev:event="onrowchanged">
  104. <![CDATA[
  105. misfMsterDetailRetrieve();
  106. ]]>
  107. </script>
  108. </datagrid>
  109. <select1 id="cmb_instcd" ref="/root/send/gvnoffcorddd/instcd" class="combo_s_essential" appearance="minimal" style="left:60px; top:20px; width:154px; height:19px; ">
  110. <choices>
  111. <itemset>
  112. <label/>
  113. <value/>
  114. </itemset>
  115. </choices>
  116. </select1>
  117. <caption id="cap_instcd" class="search_name" style="left:5px; top:20px; width:60px; height:17px; ">기관:</caption>
  118. <input id="ipt_fromdd" ref="/root/send/gvnoffcorddd/fromdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:339px; top:19px; width:94px; height:19px; text-align:center; vertical-align:middle; ">
  119. <script type="javascript" ev:event="xforms-value-changed">
  120. <![CDATA[
  121. var instcd = cmb_instcd.value;
  122. if( getStringLength(ipt_fromdd.value) == "8" ) {
  123. model.removeNodeset(cmb_instcd.attribute("ref"));
  124. model.makeNode("/root/send/gvnoffcorddd/instcd");
  125. misfComboInstCdListMulti("cmb_instcd",ipt_fromdd.value,"","Y");
  126. cmb_instcd.value = instcd;
  127. model.refresh();
  128. }
  129. ]]>
  130. </script>
  131. </input>
  132. <caption id="caption22" class="search_name" style="left:260px; top:20px; width:85px; height:17px; ">발령일자:</caption>
  133. <input id="ipt_todd" ref="/root/send/gvnoffcorddd/todd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:446px; top:19px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
  134. <caption id="caption11" style="left:435px; top:19px; width:10px; height:19px; ">-</caption>
  135. <button id="btn_excelsave" class="btn2_letter4" style="left:1128px; top:54px; width:64px; height:19px; ">
  136. <caption>엑셀저장</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  140. if (fileName != "")
  141. {
  142. grd_prtgvnoffcordlist.saveExcel(fileName);
  143. }
  144. ]]>
  145. </script>
  146. </button>
  147. <datagrid id="grd_prtgvnoffcordlist" nodeset="/root/main/prtgvnoffcord/prtgvnoffcordlist" caption="선택^사번^성명^발령구분^직위^직급^기관^부서^생일^발령장순번^발령일^발령일2^순번^발령년도|^사번^성명^발령구분^직위^직급^기관^부서^생일^발령장순번^발령일^발령일2^순번^발령년도" colsep="^" colwidth="42, 70, 71, 91, 101, 107, 150, 164, 142, 47, 31, 30, 30, 34" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:165px; top:80px; width:1028px; height:660px; ">
  148. <col checkvalue="Y,N" ref="selyn" type="checkbox" style="text-align:center; vertical-align:middle; "/>
  149. <col ref="emplno"/>
  150. <col ref="emplnm"/>
  151. <col ref="gvnoffcordnm"/>
  152. <col ref="jobposnm"/>
  153. <col ref="jobgradnm"/>
  154. <col ref="instnm"/>
  155. <col ref="deptnm"/>
  156. <col ref="brthdd"/>
  157. <col ref="gvnoffcordseq"/>
  158. <col ref="gvnoffcorddd" visibility="hidden"/>
  159. <col ref="gvnoffcorddd2" visibility="hidden"/>
  160. <col ref="seqno" visibility="hidden"/>
  161. <col ref="gvnoffcordyy" visibility="hidden"/>
  162. </datagrid>
  163. </group>
  164. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  165. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">발령장 출력</caption>
  166. </group>
  167. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  168. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  169. <button id="btn_save" class="btn4_letter4" style="left:1112px; top:3px; width:80px; height:22px; ">
  170. <caption>번호생성</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. for (var i = grd_prtgvnoffcordlist.fixedRows; i < grd_prtgvnoffcordlist.rows; i++) {
  174. if (grd_prtgvnoffcordlist.valueMatrix(i, grd_prtgvnoffcordlist.colRef("selyn")) == "Y") {
  175. grd_prtgvnoffcordlist.rowStatus(i) = "2";
  176. }
  177. }
  178. misfSave("TXRPB01301");
  179. grd_gvnoffcordddlist.dispatch("onrowchanged");
  180. ]]>
  181. </script>
  182. </button>
  183. <button id="btn_print" class="btn4_letter5" style="left:1020px; top:3px; width:92px; height:22px; ">
  184. <caption>발령장출력</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. var z = 0;
  188. for (var i = grd_prtgvnoffcordlist.fixedRows; i < grd_prtgvnoffcordlist.rows; i++) {
  189. if (grd_prtgvnoffcordlist.valueMatrix(i, grd_prtgvnoffcordlist.colRef("selyn")) == "Y" ) {
  190. z += 1;
  191. model.makeNode("/root/main/prtdata/prtgvnoffcordlist[" + z + "]");
  192. model.copyNode("/root/main/prtdata/prtgvnoffcordlist[" + z + "]", "/root/main/prtgvnoffcord/prtgvnoffcordlist[" + (i - grd_prtgvnoffcordlist.fixedRows + 1) + "]");
  193. }
  194. }
  195. model.refresh();
  196. exeReportPreview("RPRPB01301", "XMLSTR"); //, "/root/main/getincmtaxcrtfct/getincmtaxcrtfctlist");
  197. ]]>
  198. </script>
  199. </button>
  200. </group>
  201. </xhtml:body>
  202. </xhtml:html>