SMRWP10700_대체직급여등록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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. <grnt>
  11. <grntlist1>
  12. <emplno/>
  13. <emplnm/>
  14. <dutplcedeptnm/>
  15. <monthpay/>
  16. <tongsangpay/>
  17. <danga/>
  18. <monthilsu/>
  19. <ilsu/>
  20. <offilsu/>
  21. <jcha/>
  22. <ycha/>
  23. <yagan/>
  24. <hyuililsu/>
  25. <yeonjang/>
  26. <gitajigub/>
  27. <gitagongje/>
  28. <saldfrayflag/>
  29. <payym/>
  30. </grntlist1>
  31. </grnt>
  32. </main>
  33. <send>
  34. <paydedu>
  35. <instcd/>
  36. <emplno/>
  37. <emplnm/>
  38. <saldfrayflag/>
  39. <payym/>
  40. </paydedu>
  41. <save>
  42. <paydedulist/>
  43. </save>
  44. </send>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. misfGridInit(grd_grntpsn1);
  50. misfMsterDetailSet(grd_grntpsn1,null, "TRRWP10701" ,"Y");
  51. var curdate = getCurrentDate();
  52. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  53. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  54. misfComboComCdListMulti("R0112","cmb_SalDfrayFlag");
  55. model.setValue(ipt_payym.attribute("ref") , curdate.substr(0,6));
  56. model.setValue("/root/send/paydedu/saldfrayflag", "1");
  57. model.refresh();
  58. ]]>
  59. </script>
  60. <submission id="TRRWP10701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  61. <submission id="TXRWP10701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  62. </model>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  67. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  68. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  69. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  70. </xhtml:head>
  71. <xhtml:body>
  72. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  73. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">대체직급여 등록</caption>
  74. </group>
  75. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  76. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  77. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
  78. <caption>조회</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. if (model.getValue("/root/send/paydedu/saldfrayflag") == ""){
  82. messageBox("급여종류는 필수 선택항목입니다.", "E999", "");
  83. return;
  84. }
  85. if (model.getValue("/root/send/paydedu/payym") == ""){
  86. messageBox("지급년월은 필수 입력항목입니다.", "E999", "");
  87. return;
  88. }
  89. misfMsterDetailRetrieve();
  90. ]]>
  91. </script>
  92. </button>
  93. <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  94. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1192px; y2:71px; "/>
  95. <caption id="caption1" class="tit_2" style="left:2px; top:56px; width:198px; height:14px; ">대체직 급여 등록</caption>
  96. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:948px; top:50px; width:53px; height:19px; ">
  97. <caption>행추가</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. if (model.getValue("/root/send/paydedu/saldfrayflag") == ""){
  101. messageBox("급여종류는 필수 선택항목입니다.", "E999", "");
  102. return;
  103. }
  104. if (model.getValue("/root/send/paydedu/payym") == ""){
  105. messageBox("지급월은 필수 선택항목입니다.", "E999", "");
  106. return;
  107. }
  108. misfGridIUD(grd_grntpsn1, "A");
  109. ]]>
  110. </script>
  111. </button>
  112. <button id="btn_inputexcel" class="btn2_letter4" style="left:1060px; top:50px; width:64px; height:19px; ">
  113. <caption>엑셀입력</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  117. grd_grntpsn1.loadExcel(fileName, 1, true);
  118. for (var i = 1; i < grd_grntpsn1.rows; i ++){
  119. model.setValue("/root/main/grnt/grntlist1[" + i + "]/saldfrayflag", model.getValue("/root/send/paydedu/saldfrayflag"));
  120. model.setValue("/root/main/grnt/grntlist1[" + i + "]/payym", model.getValue("/root/send/paydedu/payym"));
  121. model.setValue("/root/main/grnt/grntlist1[" + i + "]/instcd", model.getValue("/root/send/paydedu/instcd"));
  122. grd_grntpsn1.rowStatus(i) = 1;
  123. }
  124. grd_grntpsn1.refresh();
  125. ]]>
  126. </script>
  127. </button>
  128. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1004px; top:50px; width:53px; height:19px; ">
  129. <caption>행삭제</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. misfGridIUD(grd_grntpsn1, "D");
  133. ]]>
  134. </script>
  135. </button>
  136. <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" appearance="minimal" style="left:88px; top:17px; width:125px; height:19px; ">
  137. <choices>
  138. <itemset>
  139. <label/>
  140. <value/>
  141. </itemset>
  142. </choices>
  143. </select1>
  144. <caption id="caption2" class="search_name" style="left:22px; top:18px; width:61px; height:17px; ">기관 :</caption>
  145. <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist1" caption="사원번호^성명^부서^보수월액^통상임금^단가^월수^일수^OFF^주차^월차^야간^휴일^연장^기타지급^기타공제^중지여부^caption1^caption2^caption3" colsep="^" colwidth="78, 65, 144, 93, 85, 69, 50, 52, 48, 48, 45, 43, 49, 50, 79, 81, 60, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1192px; height:660px; ">
  146. <col ref="emplno" type="inputbutton"/>
  147. <col ref="emplnm"/>
  148. <col ref="dutplcedeptnm"/>
  149. <col ref="monthpay" type="input" format="(-)#,###" style="text-align:right; "/>
  150. <col ref="tongsangpay" type="input" format="(-)#,###" style="text-align:right; "/>
  151. <col ref="danga" type="input" format="(-)#,###" style="text-align:right; "/>
  152. <col ref="monthilsu" type="input" format="###" style="text-align:center; "/>
  153. <col ref="ilsu" type="input" format="###.9" style="text-align:center; "/>
  154. <col ref="offilsu" type="input" format="#,###.0" style="text-align:center; "/>
  155. <col ref="jcha" type="input" format="###.9" style="text-align:center; "/>
  156. <col ref="ycha" type="input" format="###.9" style="text-align:center; "/>
  157. <col ref="yagan" type="input" format="###.9" style="text-align:center; "/>
  158. <col ref="hyuililsu" type="input" format="###.9" style="text-align:center; "/>
  159. <col ref="yeonjang" type="input" format="###.9" style="text-align:center; "/>
  160. <col ref="gitajigub" type="input" format="(-)#,###" style="text-align:right; "/>
  161. <col ref="gitagongje" type="input" format="(-)#,###" style="text-align:right; "/>
  162. <col ref="stopyn" style="text-align:center; "/>
  163. <col ref="saldfrayflag" visibility="hidden"/>
  164. <col ref="payym" visibility="hidden"/>
  165. <col ref="instcd" visibility="hidden"/>
  166. <script type="javascript" ev:event="onbuttonclick">
  167. <![CDATA[
  168. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "emplno" ) { //계산기준코드
  169. var recv_list = "emplno,emplnm";
  170. rpbfOpenPopUpList("SPRPB00101", grd_grntpsn1, recv_list,"","N");
  171. model.refresh();
  172. }
  173. ]]>
  174. </script>
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "emplno" ) { //계산기준코드
  178. var recv_list = "emplno,emplnm";
  179. misfValidationCheck("01-1", "", recv_list);
  180. model.refresh();
  181. }
  182. ]]>
  183. </script>
  184. </datagrid>
  185. <caption id="caption7" class="search_name" style="left:675px; top:17px; width:63px; height:17px; ">사번 :</caption>
  186. <button id="btn_emplno" class="icon_search" style="left:810px; top:17px; width:16px; height:16px; ">
  187. <caption/>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. var recv_list = "emplno,emplnm" ;
  191. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  192. model.refresh();
  193. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  194. btn_search.dispatch("DOMActivate");
  195. }
  196. ]]>
  197. </script>
  198. </button>
  199. <input id="ipt_emplnos" ref="/root/send/paydedu/emplno" class="input_essential" style="left:736px; top:17px; width:67px; height:19px; ">
  200. <script type="javascript" ev:event="onkeyup">
  201. <![CDATA[
  202. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  203. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  204. inputEnterKey("btn_search", "DOMActivate");
  205. }
  206. ]]>
  207. </script>
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. var recv_list = "emplno,emplnm" ;
  211. rpbfValidationCheck("EMPLNO", recv_list);
  212. model.refresh();
  213. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  214. btn_search.dispatch("DOMActivate");
  215. }
  216. ]]>
  217. </script>
  218. </input>
  219. <input id="ipt_emplnms" ref="/root/send/paydedu/emplnm" class="input_default" style="left:827px; top:17px; width:101px; height:19px; ">
  220. <script type="javascript" ev:event="onkeyup">
  221. <![CDATA[
  222. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  223. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  224. inputEnterKey("btn_search", "DOMActivate");
  225. }
  226. ]]>
  227. </script>
  228. <script type="javascript" ev:event="xforms-value-changed">
  229. <![CDATA[
  230. var recv_list = "emplno,emplnm" ;
  231. rpbfValidationCheck("EMPLNM", recv_list);
  232. model.refresh();
  233. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  234. btn_search.dispatch("DOMActivate");
  235. }
  236. ]]>
  237. </script>
  238. </input>
  239. <button id="btn_savegrntpsn1excel" class="btn2_letter4" style="left:1127px; top:50px; width:64px; height:19px; ">
  240. <caption>엑셀저장</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  244. if (fileName != "")
  245. {
  246. grd_grntpsn1.saveExcel(fileName);
  247. }
  248. ]]>
  249. </script>
  250. </button>
  251. <caption id="caption3" class="search_name" style="left:241px; top:18px; width:86px; height:17px; ">급여종류:</caption>
  252. <select1 id="cmb_SalDfrayFlag" ref="/root/send/paydedu/saldfrayflag" class="combo_s_essential" appearance="minimal" style="left:322px; top:17px; width:125px; height:19px; ">
  253. <choices>
  254. <itemset>
  255. <label/>
  256. <value/>
  257. </itemset>
  258. </choices>
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. btn_search.dispatch("DOMActivate");
  262. ]]>
  263. </script>
  264. </select1>
  265. <input id="ipt_payym" ref="/root/send/paydedu/payym" class="input_default" inputtype="date" format="yyyy-mm" style="left:545px; top:17px; width:94px; height:19px; text-align:center; vertical-align:middle; ">
  266. <script type="javascript" ev:event="xforms-value-changed">
  267. <![CDATA[
  268. btn_search.dispatch("DOMActivate");
  269. ]]>
  270. </script>
  271. </input>
  272. <caption id="caption22" class="search_name" style="left:476px; top:18px; width:70px; height:17px; ">지급월:</caption>
  273. </group>
  274. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  275. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  276. <caption>저장</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. for (var i = 1; i < grd_grntpsn1.rows; i ++){
  280. if (model.getValue("/root/main/grnt/grntlist1[" + i + "]/emplno") == ""){
  281. messageBox(i + "번째 사원번호는 필수 입력항목입니다.", "E999", "");
  282. return;
  283. }
  284. }
  285. if (misfSave("TXRWP10701")){
  286. btn_search.dispatch("DOMActivate");
  287. }
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1069px; top:3; width:68px; height:22px; ">
  292. <caption>초기화</caption>
  293. </button>
  294. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  295. </group>
  296. </xhtml:body>
  297. </xhtml:html>