SMRWC00400_상여지급율등록.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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. <bnusinfo>
  11. <bnusinfolist/>
  12. </bnusinfo>
  13. <bnusitem>
  14. <bnusitemlist/>
  15. </bnusitem>
  16. <payitem>
  17. <payitemlist/>
  18. </payitem>
  19. </main>
  20. <send>
  21. <bnusinfo>
  22. <saldfrayflag/>
  23. <appdd/>
  24. <prfshipflag/>
  25. <payitemcd/>
  26. <instcd/>
  27. <payclsprfshipflag/>
  28. </bnusinfo>
  29. <save>
  30. <bnusinfolist/>
  31. <bnusitemlist/>
  32. </save>
  33. <payitem>
  34. <appdd/>
  35. <paydeduflag/>
  36. <calcmthd/>
  37. <saldfrayflag/>
  38. <prfshipflag/>
  39. <instcd/>
  40. <payclsprfshipflag/>
  41. </payitem>
  42. <bnusitem>
  43. <saldfrayflag/>
  44. <basedd/>
  45. <prfshipflag/>
  46. <payitemcd/>
  47. <bnusflag/>
  48. <paymm/>
  49. <instcd/>
  50. <payclsprfshipflag/>
  51. </bnusitem>
  52. </send>
  53. <init/>
  54. <hidden>
  55. <temp/>
  56. </hidden>
  57. <temp>
  58. <target/>
  59. </temp>
  60. </root>
  61. </instance>
  62. <script type="javascript" ev:event="xforms-ready">
  63. <![CDATA[
  64. misfGridInit(grd_payitemtitle);
  65. misfGridInit(grd_bnusinfolist);
  66. misfGridInit(grd_bnusitemlist);
  67. misfMsterDetailSet(grd_payitemtitle,null, "TRRWC00403" ,"N");
  68. misfMsterDetailSet(grd_bnusinfolist,grd_payitemtitle, "TRRWC00401" ,"Y");
  69. misfMsterDetailSet(grd_bnusitemlist,grd_bnusinfolist, "TRRWC00402" ,"Y");
  70. if(instance1.selectNodes("/root/temp/target/*").length > 0)
  71. {
  72. btn_close.visible = true;
  73. ipt_appdd.value = model.getValue("/root/temp/target/appdd");
  74. cmb_SalDfrayFlag.value = model.getValue("/root/temp/target/saldfrayflag");
  75. cmb_instcd.value = model.getValue("/root/temp/target/instcd");
  76. misfComboComCdListMulti("R0097,R0105,R0105,R0323","cmb_payclsprfshipflag,grd_bnusinfolist.rateamtflag,grd_bnusitemlist.rateamtflag,cmb_SalDfrayFlag");
  77. }
  78. else {
  79. var curdate = getCurrentDate();
  80. model.setValue(ipt_appdd.attribute("ref") , curdate);
  81. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  82. //model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("posdeptcd"));
  83. //model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("posdeptnm"));
  84. // misfComboComCdListMulti("R0058,R0105,R0112,R0105","cmb_prfshipflag,grd_bnusinfolist.rate_amtflag,grd_bnusinfolist.bnusflag,grd_bnusitemlist.rate_amtflag");
  85. misfComboComCdListMulti("R0097,R0105,R0105,R0112","cmb_payclsprfshipflag,grd_bnusinfolist.rateamtflag,grd_bnusitemlist.rateamtflag,cmb_SalDfrayFlag");
  86. }
  87. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  88. misfGetUserAuth();
  89. if (DUTY_PAY_YN == "Y" ) {
  90. cmb_instcd.disabled = false;
  91. }
  92. else {
  93. cmb_instcd.disabled = true;
  94. }
  95. ]]>
  96. </script>
  97. <submission id="TXRWC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  98. <submission id="TRRWC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bnusinfo" resultref="/root/main/bnusinfo"/>
  99. <submission id="TRRWC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payitem" resultref="/root/main/payitem"/>
  100. <submission id="TRRWC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bnusitem" resultref="/root/main/bnusitem"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  106. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  107. </xhtml:head>
  108. <xhtml:body>
  109. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  110. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">상여지급율등록</caption>
  111. </group>
  112. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  113. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  114. <line id="line13" class="line_4" style="x1:1109px; y1:16px; x2:1109px; y2:38px; "/>
  115. <caption id="caption3" class="search_name" style="left:8px; top:19px; width:86px; height:17px; ">적용일자 :</caption>
  116. <caption id="caption5" class="tit_2" style="left:275px; top:55px; width:157px; height:13px; ">상여지급율</caption>
  117. <line id="line2" class="line_1" style="x1:273px; y1:70px; x2:1194px; y2:70px; "/>
  118. <caption id="caption4" class="search_name" style="left:657px; top:19px; width:112px; height:17px; ">호봉구분 :</caption>
  119. <select1 id="cmb_payclsprfshipflag" ref="/root/send/payitem/payclsprfshipflag" class="combo_s_essential" appearance="minimal" style="left:744px; top:18px; width:100px; height:19px; ">
  120. <choices>
  121. <itemset>
  122. <label/>
  123. <value/>
  124. </itemset>
  125. </choices>
  126. </select1>
  127. <input id="ipt_appdd" ref="/root/send/payitem/appdd" class="input_s_essential" inputtype="date" style="left:95px; top:18px; width:100px; height:19px; "/>
  128. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:16px; width:56px; height:22px; ">
  129. <caption>조회</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. model.setValue("/root/send/payitem/paydeduflag","%");
  133. model.setValue("/root/send/payitem/calcmthd","006");
  134. misfMsterDetailRetrieve();
  135. ]]>
  136. </script>
  137. </button>
  138. <datagrid id="grd_bnusinfolist" nodeset="/root/main/bnusinfo/bnusinfolist" caption="상여구분^지급월^율/금액구분^율/금액^대상일자^대상일자^적용일자^비고^기관코드^교직구분^지급구분^급여항목코드^기준일자|상여구분^지급월^율/금액구분^율/금액^부터^까지^적용일자^비고^기관코드^교직구분^지급구분^급여항목코드^기준일자" colsep="^" colwidth="109, 115, 86, 79, 107, 101, 116, 170, 40, 32, 33, 35, 31" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:273px; top:75px; width:921px; height:295px; ">
  139. <col id="bnusflag" ref="bnusflag" type="combo">
  140. <choices>
  141. <item>
  142. <label>상여</label>
  143. <value>1</value>
  144. </item>
  145. </choices>
  146. </col>
  147. <col ref="paymm" type="inputdate" format="mm" style="text-align:center; vertical-align:middle; "/>
  148. <col id="rateamtflag" ref="rateamtflag" type="combo">
  149. <choices>
  150. <itemset>
  151. <label/>
  152. <value/>
  153. </itemset>
  154. </choices>
  155. </col>
  156. <col ref="rateamt" type="input" format="#,###.0" style="text-align:right; vertical-align:middle; "/>
  157. <col ref="fromtrgtdd" type="inputdate" style="text-align:center; vertical-align:middle; "/>
  158. <col ref="totrgtdd" type="inputdate" style="text-align:center; vertical-align:middle; "/>
  159. <col ref="appdd" type="inputdate" style="text-align:center; vertical-align:middle; "/>
  160. <col ref="cmt" type="input"/>
  161. <col ref="instcd" visibility="hidden"/>
  162. <col id="payclsprfshipflag" ref="payclsprfshipflag" type="output" visibility="hidden">
  163. <choices>
  164. <itemset>
  165. <label/>
  166. <value/>
  167. </itemset>
  168. </choices>
  169. </col>
  170. <col ref="saldfrayflag" visibility="hidden"/>
  171. <col ref="payitemcd" visibility="hidden"/>
  172. <col ref="basedd" visibility="hidden"/>
  173. <script type="javascript" ev:event="onrowchanged">
  174. <![CDATA[
  175. misfMsterDetailRetrieve();
  176. ]]>
  177. </script>
  178. </datagrid>
  179. <datagrid id="grd_bnusitemlist" nodeset="/root/main/bnusitem/bnusitemlist" caption="상여항목코드^상여항목명^율_금액구분^율_금액^적용일자^기관코드^saldfrayflag^교직구분^상여구분^지급일자^급여항목코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시|상여항목코드^상여항목명^율_금액구분^율_금액^적용일자^기관코드^saldfrayflag^교직구분^상여구분^지급일자^급여항목코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="160, 253, 154, 149, 164, 44, 35, 43, 39, 44, 49, 35, 31, 49, 45" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:273px; top:400px; width:921px; height:335px; ">
  180. <col ref="bnusitemcd" type="inputbutton" style="text-align:center; vertical-align:middle; ">
  181. <choices>
  182. <itemset>
  183. <label/>
  184. <value/>
  185. </itemset>
  186. </choices>
  187. </col>
  188. <col ref="prntnm"/>
  189. <col id="col1" ref="rateamtflag" type="combo">
  190. <choices>
  191. <itemset>
  192. <label/>
  193. <value/>
  194. </itemset>
  195. </choices>
  196. </col>
  197. <col ref="rateamt" type="input" format="#,###.0" style="text-align:right; vertical-align:middle; "/>
  198. <col ref="appdd" type="inputdate" style="text-align:center; vertical-align:middle; "/>
  199. <col ref="instcd" visibility="hidden"/>
  200. <col ref="saldfrayflag" visibility="hidden"/>
  201. <col ref="payclsprfshipflag" visibility="hidden"/>
  202. <col ref="bnusflag" visibility="hidden"/>
  203. <col ref="paymm" visibility="hidden"/>
  204. <col ref="payitemcd" visibility="hidden"/>
  205. <col ref="fstrgstrid" visibility="hidden"/>
  206. <col ref="fstrgstdt" visibility="hidden"/>
  207. <col ref="lastupdtrid" visibility="hidden"/>
  208. <col ref="lastupdtdt" visibility="hidden"/>
  209. <script type="javascript" ev:event="onbuttonclick">
  210. <![CDATA[
  211. if (grd_bnusitemlist.colAttribute(grd_bnusitemlist.col,"ref") == "bnusitemcd" ) { //급여항목코드
  212. var recv_list = "bnusitemcd,prntnm";
  213. misfOpenPopUpList("13", grd_bnusitemlist,"", recv_list,"cmb_SalDfrayFlag") ;
  214. model.refresh();
  215. }
  216. ]]>
  217. </script>
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. if (grd_bnusitemlist.colAttribute(grd_bnusitemlist.col,"ref") == "bnusitemcd" ) { //급여항목코드
  221. var recv_list = "bnusitemcd,prntnm";
  222. var saldfrayflag = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("saldfrayflag"));
  223. var paydeduflag = "1";
  224. rwcfValidationCheck("PAYITEM",saldfrayflag, paydeduflag, recv_list)
  225. model.refresh();
  226. }
  227. ]]>
  228. </script>
  229. </datagrid>
  230. <button id="btn_savegrdbnusinfoexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
  231. <caption>엑셀저장</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  235. if (fileName != "")
  236. {
  237. grd_bnusinfolist.saveExcel(fileName);
  238. }
  239. ]]>
  240. </script>
  241. </button>
  242. <button id="btn_grdaddbnusinfo" class="btn2_letter3" style="left:1018px; top:49px; width:53px; height:19px; ">
  243. <caption>행추가</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. misfGridIUD(grd_bnusinfolist, "A");
  247. ]]>
  248. </script>
  249. </button>
  250. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:186px; height:14px; ">상여 지급 항목List</caption>
  251. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:270px; y2:70px; "/>
  252. <datagrid id="grd_payitemtitle" nodeset="/root/main/payitem/payitemlist" caption="급여항목^급여항목코드명^계산기준^적용일자^지급구분^교직구분^기준일자^기관^호봉교직|급여항목^급여항목코드명^계산기준^적용일자^지급구분^교직구분^기준일자^기관^호봉교직" colsep="^" colwidth="81, 151, 36, 48, 43, 37, 32, 31, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:270px; height:660px; ">
  253. <col ref="payitemcd" type="output" style="text-align:center; vertical-align:middle; "/>
  254. <col ref="prntnm" type="output"/>
  255. <col ref="calcbase" visibility="hidden"/>
  256. <col ref="appdd" visibility="hidden"/>
  257. <col ref="saldfrayflag" visibility="hidden"/>
  258. <col ref="prfshipflag" visibility="hidden"/>
  259. <col ref="basedd" visibility="hidden"/>
  260. <col ref="instcd" visibility="hidden"/>
  261. <col ref="payclsprfshipflag" visibility="hidden"/>
  262. <script type="javascript" ev:event="onrowchanged">
  263. <![CDATA[
  264. misfMsterDetailRetrieve();
  265. ]]>
  266. </script>
  267. </datagrid>
  268. <caption id="caption2" class="tit_2" style="left:275px; top:380px; width:157px; height:14px; ">상여 계산 항목 List</caption>
  269. <line id="line3" class="line_1" style="x1:273px; y1:395px; x2:1194px; y2:395px; "/>
  270. <caption id="caption7" class="search_name" style="left:425px; top:19px; width:86px; height:17px; ">급여종류:</caption>
  271. <select1 id="cmb_SalDfrayFlag" ref="/root/send/payitem/saldfrayflag" class="combo_s_essential" appearance="minimal" style="left:506px; top:18px; width:125px; height:19px; ">
  272. <choices>
  273. <itemset>
  274. <label/>
  275. <value/>
  276. </itemset>
  277. </choices>
  278. <script type="javascript" ev:event="xforms-value-changed">
  279. <![CDATA[
  280. if (DUTY_PAY_YN == "Y" || cmb_SalDfrayFlag.value == "2") {
  281. cmb_instcd.disabled = false;
  282. }
  283. else {
  284. cmb_instcd.disabled = true;
  285. }
  286. ]]>
  287. </script>
  288. </select1>
  289. <button id="btn_grddelbnusinfo" class="btn2_letter3" style="left:1074px; top:49px; width:53px; height:19px; ">
  290. <caption>행삭제</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. misfGridIUD(grd_bnusinfolist, "D");
  294. ]]>
  295. </script>
  296. </button>
  297. <button id="btn_savebnusitemexcel" class="btn2_letter4" style="left:1130px; top:374px; width:64px; height:19px; ">
  298. <caption>엑셀저장</caption>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  302. if (fileName != "")
  303. {
  304. grd_bnusitemlist.saveExcel(fileName);
  305. }
  306. ]]>
  307. </script>
  308. </button>
  309. <button id="btn_grdaddbnusitem" class="btn2_letter3" style="left:1018px; top:374px; width:53px; height:19px; ">
  310. <caption>행추가</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. misfGridIUD(grd_bnusitemlist, "A");
  314. ]]>
  315. </script>
  316. </button>
  317. <button id="btn_grddelbnusitem" class="btn2_letter3" style="left:1074px; top:374px; width:53px; height:19px; ">
  318. <caption>행삭제</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. misfGridIUD(grd_bnusitemlist, "D");
  322. ]]>
  323. </script>
  324. </button>
  325. <select1 id="cmb_instcd" ref="/root/send/payitem/instcd" class="combo_s_essential" appearance="minimal" style="left:279px; top:18px; width:125px; height:19px; ">
  326. <choices>
  327. <itemset>
  328. <label/>
  329. <value/>
  330. </itemset>
  331. </choices>
  332. </select1>
  333. <caption id="caption8" class="search_name" style="left:220px; top:19px; width:61px; height:17px; ">기관:</caption>
  334. </group>
  335. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  336. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  337. <button id="btn_save" class="btn4_letter2" style="left:1074px; top:3px; width:56px; height:22px; ">
  338. <caption>저장</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. misfSave("TXRWC00401");
  342. ]]>
  343. </script>
  344. </button>
  345. <button id="btn_clear" class="btn4_letter3" style="left:1004px; top:3px; width:68px; height:22px; ">
  346. <caption>초기화</caption>
  347. </button>
  348. <button id="btn_close" class="btn4_letter2" visibility="hidden" style="left:1135px; top:3px; width:56px; height:22px; ">
  349. <caption>종료</caption>
  350. <script type="javascript" ev:event="DOMActivate">
  351. <![CDATA[
  352. window.close();
  353. ]]>
  354. </script>
  355. </button>
  356. </group>
  357. </xhtml:body>
  358. </xhtml:html>