SMRWC01500_근무상태별계산기준등록.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <preststatbase>
  11. <preststatbaselist/>
  12. </preststatbase>
  13. </main>
  14. <send>
  15. <preststatbase>
  16. <appdd/>
  17. <instcd/>
  18. <saldfrayflag/>
  19. <gvnoffcordflag/>
  20. <gvnoffcorddetlflag/>
  21. </preststatbase>
  22. <save>
  23. <preststatbaselist/>
  24. </save>
  25. </send>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. misfGridInit(grd_preststatbaselist);
  31. misfMsterDetailSet(grd_preststatbaselist,null, "TRRWC01501" ,"Y");
  32. var curdate = getCurrentDate();
  33. model.setValue(ipt_paydeduym.attribute("ref") , curdate);
  34. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  35. //model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("posdeptcd"));
  36. //model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("posdeptnm"));
  37. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  38. misfComboComCdListMulti("R0112,R0097,R0222,R0232,R0225,R0091,R0090,R0227",
  39. "cmb_SalDfrayFlag,grd_preststatbaselist.payclsprfshipflag,grd_preststatbaselist.mmflag,grd_preststatbaselist.fromtermflag,grd_preststatbaselist.amtratedaynoflag,cmb_gvnoffcordflag,grd_preststatbaselist.pregvnoffcordcd,grd_preststatbaselist.daynocalcflag");
  40. //misfComboComCdListMulti("Z0007,R0112,R0097,R0222,R0231,R0232,R0225,R0091,R0090,R0227","cmb_instcd,cmb_SalDfrayFlag,grd_preststatbaselist.payclsprfshipflag,grd_preststatbaselist.mmflag,grd_preststatbaselist.ddtermflag,grd_preststatbaselist.fromtermflag,grd_preststatbaselist.amtratedaynoflag,cmb_gvnoffcordflag,grd_preststatbaselist.pregvnoffcordcd,grd_preststatbaselist.daynocalcflag");
  41. misfComboCopyItemSet(grd_preststatbaselist, "fromtermflag", grd_preststatbaselist, "totermflag");
  42. misfGetUserAuth();
  43. if (DUTY_PAY_YN == "Y" ) {
  44. cmb_instcd.disabled = false;
  45. }
  46. else {
  47. cmb_instcd.disabled = true;
  48. }
  49. ]]>
  50. </script>
  51. <submission id="TRRWC01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/preststatbase" resultref="/root/main/preststatbase"/>
  52. <submission id="TXRWC01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  58. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  59. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  60. </xhtml:head>
  61. <xhtml:body>
  62. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  63. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무 상태별 계산 기준 등록</caption>
  64. </group>
  65. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  66. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  67. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  68. <caption>조회</caption>
  69. <script type="javascript" ev:event="DOMActivate">
  70. <![CDATA[
  71. misfMsterDetailRetrieve();
  72. ]]>
  73. </script>
  74. </button>
  75. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  76. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  77. <caption id="caption1" class="tit_2" style="left:0px; top:55px; width:198px; height:14px; ">근무 상태별 계산 기준 List</caption>
  78. <button id="btn_grdaddpreststatbaselist" class="btn2_letter3" style="left:1016px; top:50px; width:53px; height:19px; ">
  79. <caption>행추가</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. misfGridIUD(grd_preststatbaselist, "A");
  83. ]]>
  84. </script>
  85. </button>
  86. <button id="btn_inputexcel" class="btn2_letter4" style="left:1128px; top:50px; width:64px; height:19px; ">
  87. <caption>엑셀저장</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  91. if (fileName != "")
  92. {
  93. grd_preststatbaselist.saveExcel(fileName, "SheetName", true, true, "", "", selectValue1);
  94. }
  95. ]]>
  96. </script>
  97. </button>
  98. <button id="btn_grddelpreststatbaselist" class="btn2_letter3" style="left:1072px; top:50px; width:53px; height:19px; ">
  99. <caption>행삭제</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. misfGridIUD(grd_preststatbaselist, "D");
  103. ]]>
  104. </script>
  105. </button>
  106. <caption id="caption3" class="search_name" style="left:15px; top:19px; width:94px; height:17px; ">적용일자 :</caption>
  107. <input id="ipt_paydeduym" ref="/root/send/preststatbase/appdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:104px; top:18px; width:100px; height:19px; "/>
  108. <select1 id="cmb_instcd" ref="/root/send/preststatbase/instcd" class="combo_s_essential" appearance="minimal" style="left:299px; top:17px; width:125px; height:19px; ">
  109. <choices>
  110. <itemset>
  111. <label/>
  112. <value/>
  113. </itemset>
  114. </choices>
  115. </select1>
  116. <caption id="caption2" class="search_name" style="left:240px; top:18px; width:61px; height:17px; ">기관:</caption>
  117. <datagrid id="grd_preststatbaselist" nodeset="/root/main/preststatbase/preststatbaselist" caption="호봉교직구분^급여항목코드^급여항목명^적용일자^이전발령^월구분^일자기간구분^기간^기간^기간^기간^기간^금액율일할구분^금액/율/일수^일할계산구분^분리계산^rate amt^기관코드^급여지급구분^현상태코드^최초등록자ID^최초등록일시^최종수정자ID^호봉교직구분OLD^발령구분^발령세부구분^oldpayitemcd^oldpregvnoffcordcd^oldmmflag^oldddtermflag^oldfromterm^oldfromtermflag^oldappdd^최종수정일시|호봉교직구분^급여항목코드^급여항목명^적용일자^이전발령^월구분^일자기간구분^시작기간^시작기간^종료기간^종료기간^종료기간^금액율일할구분^금액/율/일수^일할계산구분^분리계산^rate amt^기관코드^급여지급구분^현상태코드^최초등록자ID^최초등록일시^최종수정자ID^호봉교직구분OLD^발령구분^발령세부구분^oldpayitemcd^oldpregvnoffcordcd^oldmmflag^oldddtermflag^oldfromterm^oldfromtermflag^oldappdd^최종수정일시" colsep="^" colwidth="177, 109, 713, 159, 73, 61, 41, 69, 41, 60, 0, 104, 85, 61, 36, 87, 0, 30, 29, 32, 18, 26, 24, 40, 33, 32, 31, 33, 28, 27, 29, 30, 29" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1195px; height:665px; ">
  118. <col ref="payclsprfshipflag" type="combo">
  119. <choices>
  120. <itemset>
  121. <label/>
  122. <value/>
  123. </itemset>
  124. </choices>
  125. </col>
  126. <col ref="payitemcd" type="inputbutton" style="text-align:center; vertical-align:middle; "/>
  127. <col ref="payitemnm"/>
  128. <col ref="appdd" type="inputdate" style="text-align:center; vertical-align:middle; "/>
  129. <col ref="pregvnoffcordcd" type="combo" visibility="hidden">
  130. <choices>
  131. <itemset>
  132. <label/>
  133. <value/>
  134. </itemset>
  135. </choices>
  136. </col>
  137. <col ref="mmflag" type="combo" visibility="hidden">
  138. <choices>
  139. <itemset>
  140. <label/>
  141. <value/>
  142. </itemset>
  143. </choices>
  144. </col>
  145. <col ref="ddtermflag" type="combo" visibility="hidden">
  146. <choices>
  147. <item>
  148. <label>일자기준</label>
  149. <value>1</value>
  150. </item>
  151. <item>
  152. <label>기간기준</label>
  153. <value>2</value>
  154. </item>
  155. <item>
  156. <label>말일기준</label>
  157. <value>3</value>
  158. </item>
  159. </choices>
  160. </col>
  161. <col ref="fromterm" type="input" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  162. <col ref="fromtermflag" type="combo" visibility="hidden">
  163. <choices>
  164. <itemset>
  165. <label/>
  166. <value/>
  167. </itemset>
  168. </choices>
  169. </col>
  170. <col ref="toterm" type="input" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  171. <col disabled="true" ref="totermflag" type="combo">
  172. <choices>
  173. <itemset>
  174. <label/>
  175. <value/>
  176. </itemset>
  177. </choices>
  178. </col>
  179. <col visibility="hidden"/>
  180. <col ref="amtratedaynoflag" type="combo" visibility="hidden">
  181. <choices>
  182. <itemset>
  183. <label/>
  184. <value/>
  185. </itemset>
  186. </choices>
  187. </col>
  188. <col ref="rate_amt" type="input" visibility="hidden" format="#,###" style="text-align:right; vertical-align:middle; "/>
  189. <col ref="daynocalcflag" type="combo" visibility="hidden">
  190. <choices>
  191. <itemset>
  192. <label/>
  193. <value/>
  194. </itemset>
  195. </choices>
  196. </col>
  197. <col checkvalue="Y,N" ref="divcalcyn" type="checkbox" visibility="hidden"/>
  198. <col ref="instcd"/>
  199. <col ref="saldfrayflag" visibility="hidden"/>
  200. <col ref="preststatcd" visibility="hidden"/>
  201. <col ref="fstrgstrid" visibility="hidden"/>
  202. <col ref="fstrgstdt" visibility="hidden"/>
  203. <col ref="lastupdtrid" visibility="hidden"/>
  204. <col ref="lastupdtdt" visibility="hidden"/>
  205. <col ref="oldpayclsprfshipflag" visibility="hidden"/>
  206. <col ref="gvnoffcordflag" visibility="hidden"/>
  207. <col ref="gvnoffcorddetlflag" visibility="hidden"/>
  208. <col ref="oldpayitemcd" visibility="hidden"/>
  209. <col ref="oldpregvnoffcordcd" visibility="hidden"/>
  210. <col ref="oldmmflag" visibility="hidden"/>
  211. <col ref="oldddtermflag" visibility="hidden"/>
  212. <col ref="oldfromterm" visibility="hidden"/>
  213. <col ref="oldfromtermflag" visibility="hidden"/>
  214. <col ref="oldappdd" visibility="hidden"/>
  215. <script type="javascript" ev:event="onbuttonclick">
  216. <![CDATA[
  217. if (grd_preststatbaselist.colAttribute(grd_preststatbaselist.col,"ref") == "payitemcd" ) { //급여항목코드
  218. var recv_list = "payitemcd,payitemnm";
  219. misfOpenPopUpList("13", grd_preststatbaselist,"", recv_list,"cmb_SalDfrayFlag") ;
  220. model.refresh();
  221. }
  222. ]]>
  223. </script>
  224. <script type="javascript" ev:event="xforms-value-changed">
  225. <![CDATA[
  226. if (grd_preststatbaselist.colAttribute(grd_preststatbaselist.col,"ref") == "fromtermflag" ) { //급여항목코드
  227. grd_preststatbaselist.valueMatrix(grd_preststatbaselist.row, grd_preststatbaselist.colRef("totermflag")) = grd_preststatbaselist.valueMatrix(grd_preststatbaselist.row, grd_preststatbaselist.colRef("fromtermflag"));
  228. model.refresh();
  229. }
  230. if (grd_preststatbaselist.colAttribute(grd_preststatbaselist.col,"ref") == "payitemcd" ) { //급여항목코드
  231. if (grd_preststatbaselist.valueMatrix(grd_preststatbaselist.row, grd_preststatbaselist.colRef("payitemcd")) == "%") {
  232. grd_preststatbaselist.valueMatrix(grd_preststatbaselist.row, grd_preststatbaselist.colRef("payitemnm")) = "전체";
  233. }
  234. else {
  235. var recv_list = "payitemcd,payitemnm";
  236. var saldfrayflag = grd_preststatbaselist.valueMatrix(grd_preststatbaselist.row, grd_preststatbaselist.colRef("saldfrayflag"));
  237. var paydeduflag = "1";
  238. rwcfValidationCheck("PAYITEM",saldfrayflag, paydeduflag, recv_list)
  239. }
  240. model.refresh();
  241. }
  242. ]]>
  243. </script>
  244. </datagrid>
  245. <caption id="caption5" class="search_name" style="left:460px; top:18px; width:86px; height:17px; ">급여종류:</caption>
  246. <select1 id="cmb_SalDfrayFlag" ref="/root/send/preststatbase/saldfrayflag" class="combo_s_essential" appearance="minimal" style="left:541px; top:17px; width:125px; height:19px; ">
  247. <choices>
  248. <itemset>
  249. <label/>
  250. <value/>
  251. </itemset>
  252. </choices>
  253. <script type="javascript" ev:event="xforms-value-changed">
  254. <![CDATA[
  255. if (DUTY_PAY_YN == "Y" || cmb_SalDfrayFlag.value == "2") {
  256. cmb_instcd.disabled = false;
  257. }
  258. else {
  259. cmb_instcd.disabled = true;
  260. }
  261. ]]>
  262. </script>
  263. </select1>
  264. <select1 id="cmb_gvnoffcorddetlflag" ref="/root/send/preststatbase/gvnoffcorddetlflag" class="combo_default" navindex="4" appearance="minimal" style="left:858px; top:17px; width:130px; height:19px; ">
  265. <choices>
  266. <itemset>
  267. <label/>
  268. <value/>
  269. </itemset>
  270. </choices>
  271. </select1>
  272. <select1 id="cmb_gvnoffcordflag" ref="/root/send/preststatbase/gvnoffcordflag" class="combo_s_essential" navindex="3" appearance="minimal" style="left:778px; top:17px; width:78px; height:19px; ">
  273. <choices>
  274. <itemset>
  275. <label/>
  276. <value/>
  277. </itemset>
  278. </choices>
  279. <script type="javascript" ev:event="xforms-value-changed">
  280. <![CDATA[
  281. /* 발령구분 선택시 발령 세부구분 자료를 Setting,한다 */
  282. var gvnoffcordflag = model.getValue(cmb_gvnoffcordflag.attribute("ref"));
  283. rpbfComboGvnoffOrddetl(gvnoffcordflag, "cmb_gvnoffcorddetlflag");
  284. ]]>
  285. </script>
  286. </select1>
  287. <caption id="caption46" class="search_name" style="left:690px; top:18px; width:86px; height:17px; ">발령구분 :</caption>
  288. </group>
  289. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  290. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  291. <caption>저장</caption>
  292. <script type="javascript" ev:event="DOMActivate">
  293. <![CDATA[
  294. misfSave("TXRWC01501");
  295. ]]>
  296. </script>
  297. </button>
  298. <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
  299. <caption>초기화</caption>
  300. </button>
  301. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  302. </group>
  303. </xhtml:body>
  304. </xhtml:html>