SMRWP03300_끝전처리등록.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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. <truncpayempl>
  11. <truncpayempllist/>
  12. </truncpayempl>
  13. </main>
  14. <send>
  15. <truncpayempl>
  16. <basedd/>
  17. <instcd/>
  18. <deptcd/>
  19. <deptnm/>
  20. <emplno/>
  21. <emplnm/>
  22. <truncflag/>
  23. </truncpayempl>
  24. <save>
  25. <truncpayempllist/>
  26. </save>
  27. </send>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. misfGridInit(grd_truncpayempllist);
  33. misfMsterDetailSet(grd_truncpayempllist, null, "TRRWP03301" ,"Y");
  34. var curdate = getCurrentDate();
  35. model.setValue(ipt_basedd.attribute("ref") , curdate.substr(0, 8));
  36. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  37. //misfComboComCdListMulti("R0365","grd_truncpayempllist.truncflag");
  38. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  39. if (getUserInfo("dutplceinstcd") == "001") {
  40. cmb_instcd.disabled = false;
  41. }
  42. else {
  43. cmb_instcd.disabled = true;
  44. }
  45. // misfGetUserAuth();
  46. //
  47. // if (DUTY_PAY_YN == "Y" ) {
  48. // cmb_instcd.disabled = false;
  49. // }
  50. // else {
  51. // cmb_instcd.disabled = true;
  52. // }
  53. model.refresh();
  54. model.setFocus("cmb_instcd");
  55. ]]>
  56. </script>
  57. <submission id="TRRWP03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/truncpayempl" resultref="/root/main/truncpayempl"/>
  58. <submission id="TXRWP03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  64. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  65. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  66. </xhtml:head>
  67. <xhtml:body style="margin-left:8; margin-right:8; ">
  68. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  69. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">끝전 처리 등록</caption>
  70. </group>
  71. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  72. <line id="line9" class="line_1" style="x1:0px; y1:69px; x2:1193px; y2:69px; "/>
  73. <caption id="caption34" class="tit_2" style="left:6px; top:52px; width:186px; height:14px; ">상여 대상자 List</caption>
  74. <group id="grp_sea" style="left:0px; top:10; width:1195px; height:35px; vertical-align:top; ">
  75. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  76. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
  77. <caption>조회</caption>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. misfMsterDetailRetrieve();
  81. ]]>
  82. </script>
  83. </button>
  84. <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  85. <input id="ipt_basedd" ref="/root/send/truncpayempl/basedd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:79px; top:8px; width:96px; height:19px; text-align:center; vertical-align:middle; "/>
  86. <caption id="cap_payym" class="search_name" style="left:10px; top:8px; width:70px; height:17px; ">기준일:</caption>
  87. <select1 id="cmb_instcd" ref="/root/send/truncpayempl/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:239px; top:8px; width:146px; height:19px; ">
  88. <choices>
  89. <itemset>
  90. <label/>
  91. <value/>
  92. </itemset>
  93. </choices>
  94. <script type="javascript" ev:event="xforms-value-changed">
  95. <![CDATA[
  96. btn_search.dispatch("DOMActivate");
  97. ]]>
  98. </script>
  99. </select1>
  100. <caption id="cap_instcd" class="search_name" style="left:185px; top:8px; width:61px; height:17px; ">기관:</caption>
  101. <caption id="caption3" class="search_name" style="left:689px; top:8px; width:63px; height:17px; ">사번 :</caption>
  102. <button id="btn_emplno" class="icon_search" style="left:827px; top:8px; width:16px; height:16px; ">
  103. <caption/>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. var recv_list = "emplno,emplnm" ;
  107. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  108. model.refresh();
  109. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  110. btn_search.dispatch("DOMActivate");
  111. }
  112. ]]>
  113. </script>
  114. </button>
  115. <input id="ipt_emplnos" ref="/root/send/truncpayempl/emplno" class="input_default" style="left:750px; top:8px; width:72px; height:19px; ">
  116. <script type="javascript" ev:event="onkeyup">
  117. <![CDATA[
  118. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  119. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  120. }
  121. ]]>
  122. </script>
  123. <script type="javascript" ev:event="xforms-value-changed">
  124. <![CDATA[
  125. var recv_list = "emplno,emplnm" ;
  126. rpbfValidationCheck("EMPLNO", recv_list);
  127. model.refresh();
  128. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  129. btn_search.dispatch("DOMActivate");
  130. }
  131. ]]>
  132. </script>
  133. </input>
  134. <input id="ipt_emplnms" ref="/root/send/truncpayempl/emplnm" class="input_default" style="left:846px; top:8px; width:65px; height:19px; ">
  135. <script type="javascript" ev:event="onkeyup">
  136. <![CDATA[
  137. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  138. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  139. }
  140. ]]>
  141. </script>
  142. <script type="javascript" ev:event="xforms-value-changed">
  143. <![CDATA[
  144. var recv_list = "emplno,emplnm" ;
  145. rpbfValidationCheck("EMPLNM", recv_list);
  146. model.refresh();
  147. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  148. btn_search.dispatch("DOMActivate");
  149. }
  150. ]]>
  151. </script>
  152. </input>
  153. <caption id="caption2" class="search_name" style="left:399px; top:8px; width:61px; height:17px; ">부서:</caption>
  154. <input id="ipt_deptnm" ref="/root/send/truncpayempl/deptnm" class="input_default" style="left:560px; top:8px; width:114px; height:19px; ">
  155. <script type="javascript" ev:event="xforms-value-changed">
  156. <![CDATA[
  157. misfValidationCheck("02", "", "deptcd,deptnm" );
  158. model.refresh();
  159. ]]>
  160. </script>
  161. </input>
  162. <button id="btn_deptcd" class="icon_search" style="left:539px; top:8px; width:16px; height:16px; ">
  163. <caption/>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. var recv_list = "deptcd,deptnm";
  167. var instcd = cmb_instcd.value;
  168. rpbfOpenDeptCdHelp(ipt_deptcd,recv_list,instcd,"instcd");
  169. model.refresh();
  170. ]]>
  171. </script>
  172. </button>
  173. <input id="ipt_deptcd" ref="/root/send/truncpayempl/deptcd" class="input_default" style="left:455px; top:8px; width:79px; height:19px; ">
  174. <script type="javascript" ev:event="xforms-value-changed">
  175. <![CDATA[
  176. misfValidationCheck("02", "", "deptcd,deptnm" );
  177. model.refresh();
  178. ]]>
  179. </script>
  180. </input>
  181. <select1 id="cmb_truncflag" ref="/root/send/truncpayempl/truncflag" class="combo_s_essential" appearance="minimal" style="left:975px; top:8px; width:95px; height:19px; ">
  182. <choices>
  183. <item>
  184. <label>[전체]</label>
  185. <value/>
  186. </item>
  187. <item>
  188. <label>미적용</label>
  189. <value>01</value>
  190. </item>
  191. <item>
  192. <label>백원끝전</label>
  193. <value>02</value>
  194. </item>
  195. <item>
  196. <label>천원끝전</label>
  197. <value>03</value>
  198. </item>
  199. <item>
  200. <label>만원끝전</label>
  201. <value>04</value>
  202. </item>
  203. <item>
  204. <label>정액</label>
  205. <value>05</value>
  206. </item>
  207. </choices>
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. btn_search.dispatch("DOMActivate");
  211. ]]>
  212. </script>
  213. </select1>
  214. <caption id="caption1" class="search_name" style="left:921px; top:8px; width:61px; height:17px; ">구분:</caption>
  215. </group>
  216. <datagrid id="grd_truncpayempllist" nodeset="/root/main/truncpayempl/truncpayempllist" caption="사원번호^성명^부서^교직구분^직군^직위^직급^호봉^적용구분^금액^checkyn|사원번호^성명^부서^교직구분^직군^직위^직급^호봉^적용구분^금액^checkyn" colsep="^" colwidth="105, 104, 185, 131, 122, 117, 92, 63, 133, 100, 30" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1193px; height:665px; ">
  217. <col ref="emplno" style="text-align:center; vertical-align:middle; "/>
  218. <col ref="emplnm"/>
  219. <col ref="deptnm"/>
  220. <col ref="prfshipflagnm"/>
  221. <col ref="grupjoblnnm"/>
  222. <col ref="jobposnm"/>
  223. <col ref="jobgradnm"/>
  224. <col ref="payclsnm"/>
  225. <col ref="truncflag" type="combo">
  226. <choices>
  227. <item>
  228. <label>미적용</label>
  229. <value>01</value>
  230. </item>
  231. <item>
  232. <label>백원끝전</label>
  233. <value>02</value>
  234. </item>
  235. <item>
  236. <label>천원끝전</label>
  237. <value>03</value>
  238. </item>
  239. <item>
  240. <label>만원끝전</label>
  241. <value>04</value>
  242. </item>
  243. <item>
  244. <label>정액</label>
  245. <value>05</value>
  246. </item>
  247. </choices>
  248. </col>
  249. <col ref="calcrestamt" type="input" format="#,###" style="text-align:right; vertical-align:middle; "/>
  250. <col ref="checkyn" visibility="hidden"/>
  251. <script type="javascript" ev:event="onaftersort">
  252. <![CDATA[
  253. grd_truncpayempllist.gridToInstance();
  254. ]]>
  255. </script>
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. if (grd_truncpayempllist.col == grd_truncpayempllist.colRef("truncflag")) {
  259. if (grd_truncpayempllist.valueMatrix(grd_truncpayempllist.row, grd_truncpayempllist.colRef("truncflag")) != "05" ) {
  260. grd_truncpayempllist.valueMatrix(grd_truncpayempllist.row, grd_truncpayempllist.colRef("calcrestamt")) = 0;
  261. }
  262. }
  263. ]]>
  264. </script>
  265. </datagrid>
  266. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
  267. <caption>엑셀저장</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  271. if (fileName != "")
  272. {
  273. grd_truncpayempllist.saveExcel(fileName);
  274. }
  275. ]]>
  276. </script>
  277. </button>
  278. </group>
  279. <group id="grp_btn" scroll="auto" style="left:0; top:12; width:1195px; height:27px; ">
  280. <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
  281. <caption>저장</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. misfSave("TXRWP03301");
  285. btn_search.dispatch("DOMActivate");
  286. ]]>
  287. </script>
  288. </button>
  289. <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  290. </group>
  291. </xhtml:body>
  292. </xhtml:html>