SMRWD00200_월별지급공제사항등록.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  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. <payitem>
  11. <payitemlist/>
  12. </payitem>
  13. <paydedu>
  14. <paydedulist/>
  15. </paydedu>
  16. <paydeducopy>
  17. <paydeducopylist/>
  18. </paydeducopy>
  19. <excel>
  20. <excellist/>
  21. </excel>
  22. </main>
  23. <send>
  24. <payitem>
  25. <appdd/>
  26. <instcd/>
  27. <paydeduflag/>
  28. <saldfrayflag/>
  29. <calcmthd/>
  30. <payitemcd/>
  31. </payitem>
  32. <paydedu>
  33. <paydedudd/>
  34. <instcd/>
  35. <paydeduflag/>
  36. <payitemcd/>
  37. <saldfrayflag/>
  38. </paydedu>
  39. <save>
  40. <paydedulist/>
  41. </save>
  42. <attach>
  43. <file/>
  44. <paydedudd/>
  45. <saldfrayflag/>
  46. <paydeduflag/>
  47. <payitemcd/>
  48. </attach>
  49. <vindedu>
  50. <instcd/>
  51. <payym/>
  52. <saldfrayflag/>
  53. </vindedu>
  54. </send>
  55. <init>
  56. <searchtext/>
  57. </init>
  58. </root>
  59. </instance>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. misfGridInit(grd_payitemtitle);
  63. misfGridInit(grd_paydedulist);
  64. misfMsterDetailSet(grd_payitemtitle,null, "TRRWD00202" ,"N");
  65. misfMsterDetailSet(grd_paydedulist,grd_payitemtitle, "TRRWD00201" ,"Y");
  66. var curdate = getCurrentDate();
  67. model.setValue(ipt_paydeduym.attribute("ref") , curdate.substr(0,6));
  68. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  69. model.setValue(cmb_SalDfrayFlag.attribute("ref") , "1");
  70. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  71. misfComboComCdListMulti("R0099,R0112,R0130","cmb_paydeduflag,cmb_SalDfrayFlag,grd_paydedulist.timsamtflag");
  72. ]]>
  73. </script>
  74. <submission id="TRRWD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/paydedu"/>
  75. <submission id="TRRWD00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payitem" resultref="/root/main/payitem"/>
  76. <submission id="TXRWD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  77. <submission id="TRRWD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/paydeducopy"/>
  78. <submission id="TRRWD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payitem" resultref="/root/hidden/temp"/>
  79. <submission id="TRRWD00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/hidden/temp"/>
  80. <submission id="TXRWD00202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
  81. <submission id="TXRWD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/vindedu" resultref="/root/hidden/temp"/>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  87. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  88. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  89. <script type="javascript">
  90. <![CDATA[
  91. function fseqnoset()
  92. {
  93. for (var i = grd_paydedulist.fixedRows; i < grd_paydedulist.rows; i++ ) {
  94. grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("seqno")) = i - grd_paydedulist.fixedRows + 1;
  95. }
  96. }
  97. var fso=new ActiveXObject("Scripting.FileSystemObject");
  98. function fExcelUpload() {
  99. var maxsize = upload1.attribute("filesize");
  100. var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  101. var filelist = filename.split("|");
  102. model.removeNodeset("/root/main/list/filelist");
  103. model.removeNodeset("/root/send/attach");
  104. //타이틀을 획득한다.
  105. var s = new String(filelist[filelist.length-1]);
  106. var ss = s.split("\\");
  107. if(filename !=""){
  108. //작업 전 row를 추가 >파일명 유/무에 따른 분기>
  109. for(var i = 0 ; i < filelist.length ; i++ ){
  110. grd_attach.addRow(false);
  111. if(filelist[i] == ""){
  112. //alert(grd_attach.rows - 1);
  113. grd_attach.removeRow(false);
  114. grd_attach.refresh();
  115. }else{
  116. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  117. //파일크기('tfHelper.checkFileSize' 참조)
  118. var fileCnt = upload1.getFileCount();
  119. var lastIndex = fileCnt - 1;
  120. var fileSize = upload1.getFileSize(lastIndex);
  121. grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
  122. if (!checkFileSize(upload1)){
  123. grd_attach.removeItem();
  124. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  125. return;
  126. }
  127. }
  128. }
  129. model.makeValue("/root/send/attach/paydedudd",ipt_paydeduym.value);
  130. model.makeValue("/root/send/attach/saldfrayflag",cmb_SalDfrayFlag.value);
  131. model.makeValue("/root/send/attach/paydeduflag",cmb_paydeduflag.value);
  132. model.makeValue("/root/send/attach/payitemcd",grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd")) );
  133. openLoadingBar("파일업로드 작업중입니다... ") ;
  134. submit("TXRWD00202");
  135. closeLoadingBar();
  136. //btn_search.dispatch("DOMActivate");
  137. }
  138. }
  139. ]]>
  140. </script>
  141. </xhtml:head>
  142. <xhtml:body>
  143. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  144. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">월별지급공제사항등록</caption>
  145. </group>
  146. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  147. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  148. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  149. <caption>조회</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. model.setValue("/root/send/payitem/calcmthd","012");
  153. misfMsterDetailRetrieve();
  154. var saldfrayflag = cmb_SalDfrayFlag.value;
  155. var paydeduflag = cmb_paydeduflag.value;
  156. if (saldfrayflag == "2" && paydeduflag == "1") {
  157. btn_upload.visible = true;
  158. }
  159. else {
  160. btn_upload.visible = false;
  161. }
  162. ]]>
  163. </script>
  164. </button>
  165. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  166. <caption id="caption278" class="tit_2" style="left:5px; top:55px; width:157px; height:13px; ">지급/공제코드</caption>
  167. <line id="line207" class="line_1" style="x1:0px; y1:70px; x2:355px; y2:70px; "/>
  168. <line id="line1" class="line_1" style="x1:360px; y1:70px; x2:1190px; y2:70px; "/>
  169. <caption id="caption1" class="tit_2" style="left:360px; top:55px; width:198px; height:13px; ">개인별 지급/공제사항등록</caption>
  170. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:888px; top:50px; width:53px; height:19px; ">
  171. <caption>행추가</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. grd_paydedulist.subtotal("clear", 0, 0);
  175. grd_paydedulist.refresh();
  176. misfGridIUD(grd_paydedulist, "A");
  177. // grd_paydedulist.addRow(false);
  178. //
  179. // model.setFocus("grd_paydedulist");
  180. // grd_paydedulist.row = grd_paydedulist.rows - 1;
  181. // grd_paydedulist.col = grd_paydedulist.colRef("emplno");
  182. // //grd_paydedulist.select(grd_paydedulist.rows - 1, grd_paydedulist.colRef("emplno"), grd_paydedulist.rows - 1, grd_paydedulist.colRef("emplno")) = true;
  183. // var a = (grd_paydedulist.rows - 28.5) * 23;
  184. // grd_paydedulist.vscroll.attribute("pos") = a.toString();
  185. //
  186. // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("paydedudd")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("paydedudd"));
  187. // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("instcd")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("instcd"));
  188. // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("paydeduflag")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("paydeduflag"));
  189. // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("payitemcd")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd"));
  190. // grd_paydedulist.valueMatrix(grd_paydedulist.row, grd_paydedulist.colRef("saldfrayflag")) = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("saldfrayflag"));
  191. ]]>
  192. </script>
  193. </button>
  194. <button id="btn_inputexcel" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
  195. <caption>엑셀입력</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. grd_paydedulist.subtotal("clear", 0, 0);
  199. grd_paydedulist.refresh();
  200. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  201. grd_paydedulist.loadExcel(fileName, 1, true);
  202. //grd_paydedulist.deleteRow(grd_paydedulist.fixedRows);
  203. grd_paydedulist.refresh();
  204. var paydedudd = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("paydedudd"));
  205. var instcd = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("instcd"));
  206. var paydeduflag = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("paydeduflag"));
  207. var payitemcd = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd"));
  208. var saldfrayflag = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("saldfrayflag"));
  209. for (var i = grd_paydedulist.fixedRows; i < grd_paydedulist.rows; i++) {
  210. grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("paydedudd")) = paydedudd;
  211. grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("instcd")) = instcd;
  212. grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("paydeduflag")) = paydeduflag;
  213. grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("payitemcd")) = payitemcd;
  214. grd_paydedulist.valueMatrix(i, grd_paydedulist.colRef("saldfrayflag")) = saldfrayflag;
  215. grd_paydedulist.rowStatus(i) = 1;
  216. }
  217. model.refresh();
  218. ]]>
  219. </script>
  220. </button>
  221. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1009px; top:50px; width:53px; height:19px; ">
  222. <caption>행삭제</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. // grd_paydedulist.subtotal("clear", 0, 0);
  226. // grd_paydedulist.refresh();
  227. // grd_paydedulist.row= grd_paydedulist.row - 1;
  228. misfGridIUD(grd_paydedulist, "D");
  229. ]]>
  230. </script>
  231. </button>
  232. <caption id="caption3" class="search_name" style="left:15px; top:19px; width:74px; height:17px; ">적용월 :</caption>
  233. <input id="ipt_paydeduym" ref="/root/send/payitem/appdd" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:90px; top:18px; width:100px; height:19px; "/>
  234. <select1 id="cmb_instcd" ref="/root/send/payitem/instcd" class="combo_s_essential" appearance="minimal" style="left:299px; top:17px; width:125px; height:19px; ">
  235. <choices>
  236. <itemset>
  237. <label/>
  238. <value/>
  239. </itemset>
  240. </choices>
  241. <script type="javascript" ev:event="xforms-value-changed">
  242. <![CDATA[
  243. if (getUserInfo("dutplceinstcd") == "017" && cmb_instcd.value == "017" && cmb_SalDfrayFlag.value == "1" && cmb_paydeduflag.value == "2" ) {
  244. btn_makevindedulist.visible = true;
  245. }
  246. else {
  247. btn_makevindedulist.visible = false;
  248. }
  249. ]]>
  250. </script>
  251. </select1>
  252. <caption id="caption2" class="search_name" style="left:240px; top:18px; width:61px; height:17px; ">기관:</caption>
  253. <datagrid id="grd_payitemtitle" nodeset="/root/main/payitem/payitemlist" caption="복사^급여항목^급여항목코드명^^계산기준^적용일자^지급구분^지급공제구분^기관" colsep="^" colwidth="22, 107, 169, 33, 36, 40, 42, 34, 34" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:355px; height:660px; ">
  254. <col ref="copy" type="inputbutton" visibility="hidden"/>
  255. <col ref="payitemcd" type="output" style="text-align:center; vertical-align:middle; "/>
  256. <col ref="prntnm" type="output"/>
  257. <col ref="chkyn"/>
  258. <col ref="calcbase" visibility="hidden"/>
  259. <col ref="paydedudd" visibility="hidden"/>
  260. <col ref="saldfrayflag" visibility="hidden"/>
  261. <col ref="paydeduflag" visibility="hidden"/>
  262. <col ref="instcd" visibility="hidden"/>
  263. <script type="javascript" ev:event="onrowchanged">
  264. <![CDATA[
  265. //model.setValue("/root/send/paydedu/paydedumm", model.getValue(ipt_paydeduym.attribute("ref")));
  266. if (grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd")) == "10540") {
  267. btn_makeholi.visible = true;
  268. }
  269. else {
  270. btn_makeholi.visible = false;
  271. }
  272. misfMsterDetailRetrieve();
  273. grd_paydedulist.subtotal("clear", 0, 0);
  274. fseqnoset();
  275. grd_paydedulist.subtotal("count",-1 , grd_paydedulist.colRef("emplno"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  276. grd_paydedulist.subtotal("sum",-1 , grd_paydedulist.colRef("paydeduamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  277. ]]>
  278. </script>
  279. <script type="javascript" ev:event="onbuttonclick">
  280. <![CDATA[
  281. if (grd_payitemtitle.colAttribute(grd_payitemtitle.col,"ref") == "copy" ) {
  282. submit("TRRWD00203");
  283. var checkyn = "N";
  284. var node = instance1.selectNodes("/root/main/paydeducopy/*");
  285. for (var i = 1 ; i <= node.length; i++) {
  286. for (var j = grd_paydedulist.fixedRows; j < grd_paydedulist.rows; j++) {
  287. if (grd_paydedulist.valueMatrix(j, grd_paydedulist.colRef("emplno")) == model.getValue("/root/main/paydeducopy/" + "paydeducopylist[" + i + "]/emplno")) {
  288. checkyn = 'Y';
  289. }
  290. }
  291. if (checkyn != "Y") {
  292. misfGridIUD(grd_paydedulist, "A");
  293. model.copyNode("/root/main/paydedu/paydedulist[" + (grd_paydedulist.row - grd_paydedulist.fixedRows + 1) + "]" , "/root/main/paydeducopy/paydeducopylist[" + i + "]" );
  294. }
  295. checkyn = "N";
  296. }
  297. model.refresh();
  298. }
  299. ]]>
  300. </script>
  301. <script type="javascript" ev:event="ondblclick">
  302. <![CDATA[
  303. var payitemcd = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("payitemcd"));
  304. var prntnm = grd_payitemtitle.valueMatrix(grd_payitemtitle.row, grd_payitemtitle.colRef("prntnm"));
  305. var payinst = cmb_instcd.value;
  306. var payym = ipt_paydeduym.value;
  307. model.makeValue("root/temp/source/defaultvalue/payitemcd", payitemcd);
  308. model.makeValue("root/temp/source/defaultvalue/prntnm", prntnm);
  309. model.makeValue("root/temp/source/defaultvalue/payinst", payinst);
  310. model.makeValue("root/temp/source/defaultvalue/payym", payym);
  311. modal("SMRWD02000","","","","","/root/temp/source", "/root/temp/target" );
  312. ]]>
  313. </script>
  314. </datagrid>
  315. <datagrid id="grd_paydedulist" nodeset="/root/main/paydedu/paydedulist" caption="인원^사원번호^성명^지급공제금액/횟수^비고^주민번호^급여대상^급여총액여부^급여기관^기관코드^급여종류^지급공제구분^지급공제코드^적용일자^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^회수금액구분|인원^사원번호^성명^지급공제금액/횟수^비고^주민번호^급여대상^급여총액여부^급여기관^기관코드^급여종류^지급공제구분^지급공제코드^적용일자^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^회수금액구분" colsep="^" colwidth="41, 82, 86, 93, 195, 97, 32, 48, 113, 463, 34, 33, 31, 33, 34, 30, 38, 39, 37" dataheight="25" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:360px; top:75px; width:830px; height:660px; ">
  316. <col ref="seqno" style="text-align:center; vertical-align:middle; "/>
  317. <col ref="emplno" type="inputbutton" style="text-align:right; vertical-align:middle; "/>
  318. <col ref="emplnm"/>
  319. <col ref="paydeduamt" type="input" format="(-)#,###" savetype="digit" style="text-align:right; vertical-align:middle; "/>
  320. <col ref="cmt" type="input"/>
  321. <col ref="rregno"/>
  322. <col ref="payyn"/>
  323. <col ref="paytotamtyn" style="text-align:center; vertical-align:middle; "/>
  324. <col ref="instnm"/>
  325. <col ref="instcd" visibility="hidden"/>
  326. <col ref="saldfrayflag" visibility="hidden"/>
  327. <col ref="paydeduflag" visibility="hidden"/>
  328. <col ref="payitemcd" visibility="hidden"/>
  329. <col ref="paydedudd" visibility="hidden"/>
  330. <col ref="fstrgstrid" visibility="hidden"/>
  331. <col ref="fstrgstdt" visibility="hidden"/>
  332. <col ref="lastupdtrid" visibility="hidden"/>
  333. <col ref="lastupdtdt" visibility="hidden"/>
  334. <col ref="timsamtflag" type="combo" visibility="hidden">
  335. <choices>
  336. <itemset>
  337. <label/>
  338. <value/>
  339. </itemset>
  340. </choices>
  341. </col>
  342. <script type="javascript" ev:event="onbuttonclick">
  343. <![CDATA[
  344. if (grd_paydedulist.colAttribute(grd_paydedulist.col,"ref") == "emplno" ) { //계산기준코드
  345. var recv_list = "emplno,emplnm";
  346. rpbfOpenPopUpList("SPRPB00101", grd_paydedulist, recv_list,"","N");
  347. model.refresh();
  348. }
  349. ]]>
  350. </script>
  351. <script type="javascript" ev:event="xforms-value-changed">
  352. <![CDATA[
  353. if (grd_paydedulist.colAttribute(grd_paydedulist.col,"ref") == "emplno" ) { //계산기준코드
  354. var recv_list = "emplno,emplnm";
  355. misfValidationCheck("01-1", "", recv_list);
  356. model.refresh();
  357. }
  358. ]]>
  359. </script>
  360. <script type="javascript" ev:event="onaftersort">
  361. <![CDATA[
  362. grd_paydedulist.gridToInstance();
  363. fseqnoset();
  364. grd_paydedulist.subtotal("count",-1 , grd_paydedulist.colRef("emplno"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  365. grd_paydedulist.subtotal("sum",-1 , grd_paydedulist.colRef("paydeduamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  366. ]]>
  367. </script>
  368. <script type="javascript" ev:event="onbeforesort">
  369. <![CDATA[
  370. grd_paydedulist.subtotal("clear", 0, 0);
  371. ]]>
  372. </script>
  373. </datagrid>
  374. <select1 id="cmb_paydeduflag" ref="/root/send/payitem/paydeduflag" class="combo_s_essential" appearance="minimal" style="left:809px; top:17px; width:125px; height:19px; ">
  375. <choices>
  376. <itemset>
  377. <label/>
  378. <value/>
  379. </itemset>
  380. </choices>
  381. <script type="javascript" ev:event="xforms-value-changed">
  382. <![CDATA[
  383. if (getUserInfo("dutplceinstcd") == "017" && cmb_instcd.value == "017" && cmb_SalDfrayFlag.value == "1" && cmb_paydeduflag.value == "2" ) {
  384. btn_makevindedulist.visible = true;
  385. }
  386. else {
  387. btn_makevindedulist.visible = false;
  388. }
  389. ]]>
  390. </script>
  391. </select1>
  392. <caption id="caption4" class="search_name" style="left:700px; top:18px; width:107px; height:17px; ">지급공제구분:</caption>
  393. <caption id="caption5" class="search_name" style="left:460px; top:18px; width:86px; height:17px; ">급여종류:</caption>
  394. <select1 id="cmb_SalDfrayFlag" ref="/root/send/payitem/saldfrayflag" class="combo_s_essential" appearance="minimal" style="left:541px; top:17px; width:125px; height:19px; ">
  395. <choices>
  396. <itemset>
  397. <label/>
  398. <value/>
  399. </itemset>
  400. </choices>
  401. <script type="javascript" ev:event="xforms-value-changed">
  402. <![CDATA[
  403. if (getUserInfo("dutplceinstcd") == "017" && cmb_instcd.value == "017" && cmb_SalDfrayFlag.value == "1" && cmb_paydeduflag.value == "2" ) {
  404. btn_makevindedulist.visible = true;
  405. }
  406. else {
  407. btn_makevindedulist.visible = false;
  408. }
  409. ]]>
  410. </script>
  411. </select1>
  412. <button id="btn_saveexcel" class="btn2_letter4" style="left:1064px; top:50px; width:64px; height:19px; ">
  413. <caption>엑셀저장</caption>
  414. <script type="javascript" ev:event="DOMActivate">
  415. <![CDATA[
  416. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  417. if (fileName != "")
  418. {
  419. grd_paydedulist.saveExcel(fileName, "sheetname:savetype", true, true, "", "");
  420. }
  421. ]]>
  422. </script>
  423. </button>
  424. <button id="btn_makeholi" class="btn5_letter8" visibility="hidden" style="left:538px; top:50px; width:103px; height:19px; ">
  425. <caption>휴가보전수당생성</caption>
  426. <script type="javascript" ev:event="DOMActivate">
  427. <![CDATA[
  428. submit("TRRWD00205");
  429. grd_payitemtitle.dispatch("onrowchanged");
  430. ]]>
  431. </script>
  432. </button>
  433. <caption id="caption7" class="search_name" style="left:651px; top:50px; width:55px; height:17px; ">검색:</caption>
  434. <input id="ipt_search" ref="/root/init/searchtext" class="input_s_essential" style="left:706px; top:50px; width:125px; height:19px; ">
  435. <script type="javascript" ev:event="onkeyup">
  436. <![CDATA[
  437. inputEnterKey("btn_find", "DOMActivate");
  438. ]]>
  439. </script>
  440. </input>
  441. <button id="btn_find" class="btn2_letter2" style="left:834px; top:50px; width:42px; height:19px; ">
  442. <caption>검색</caption>
  443. <script type="javascript" ev:event="DOMActivate">
  444. <![CDATA[
  445. model.setFocus("grd_paydedulist");
  446. for(var row = grd_paydedulist.fixedRows+1 ; row < grd_paydedulist.rows; row++)
  447. {
  448. if(grd_paydedulist.valueMatrix(row , grd_paydedulist.colRef("emplnm")).indexOf(model.getValue(ipt_search.attribute("ref"))) != -1)
  449. {
  450. //grd_paydedulist.rowHeight(row)= 23;
  451. grd_paydedulist.row = row;
  452. grd_paydedulist.cellstyle("background-color", row, 1, row, 5) = "#ffff99";
  453. }
  454. else
  455. {
  456. //grd_paydedulist.rowHeight(row)= 0;
  457. //grd_paydedulist.row = row;
  458. grd_paydedulist.cellstyle("background-color", row, 1, row, 5) = "#ffffff";
  459. }
  460. }
  461. model.refresh();
  462. ]]>
  463. </script>
  464. </button>
  465. <button id="btn_grddelpaydedulistall" class="btn2_letter4" style="left:943px; top:50px; width:53px; height:19px; ">
  466. <caption>전체삭제</caption>
  467. <script type="javascript" ev:event="DOMActivate">
  468. <![CDATA[
  469. // grd_paydedulist.subtotal("clear", 0, 0);
  470. // grd_paydedulist.refresh();
  471. model.setFocus("grd_paydedulist");
  472. //grd_paydedulist.row= grd_paydedulist.row - 1;
  473. grd_paydedulist.select(grd_paydedulist.fixedRows, grd_paydedulist.colRef("emplno"), grd_paydedulist.rows - 1, grd_paydedulist.colRef("emplno")) = true;
  474. misfGridIUD(grd_paydedulist, "D");
  475. ]]>
  476. </script>
  477. </button>
  478. <button id="btn_upload" class="btn5_letter7" visibility="hidden" style="left:255px; top:50px; width:97px; height:19px; ">
  479. <caption>인센티브업로드</caption>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. fExcelUpload();
  483. ]]>
  484. </script>
  485. </button>
  486. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:220px; top:50px; width:25px; height:20px; "/>
  487. <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size" colsep="^" colwidth="403, 93" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:135px; top:430px; width:505px; height:69px; ">
  488. <col ref="file" style="text-align:center; "/>
  489. <col ref="filesize" format="#,###" style="text-align:right; "/>
  490. </datagrid>
  491. <button id="btn_makevindedulist" class="btn5_letter4" visibility="hidden" style="left:290px; top:50px; width:64px; height:19px; ">
  492. <caption>회비생성</caption>
  493. <script type="javascript" ev:event="DOMActivate">
  494. <![CDATA[
  495. model.setValue("/root/send/vindedu/instcd",cmb_instcd.value);
  496. model.setValue("/root/send/vindedu/payym",ipt_paydeduym.value);
  497. model.setValue("/root/send/vindedu/saldfrayflag",cmb_SalDfrayFlag.value);
  498. submit("TXRWD00203");
  499. btn_search.dispatch("DOMActivate");
  500. ]]>
  501. </script>
  502. </button>
  503. </group>
  504. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  505. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  506. <caption>저장</caption>
  507. <script type="javascript" ev:event="DOMActivate">
  508. <![CDATA[
  509. misfSave("TXRWD00201");
  510. ]]>
  511. </script>
  512. </button>
  513. <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
  514. <caption>초기화</caption>
  515. </button>
  516. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  517. <button id="btn_copy" class="btn4_letter4" style="left:969px; top:3px; width:68px; height:22px; ">
  518. <caption>전월복사</caption>
  519. <script type="javascript" ev:event="DOMActivate">
  520. <![CDATA[
  521. if (model.getValue("/root/main/payitem/payitemlist[" + grd_payitemtitle.row + "]/payitemcd") == ""){
  522. messageBox("지급/공제코드를 선택한 후 진행하시기 바랍니다.", "E999", "");
  523. return;
  524. }
  525. model.setValue("/root/send/payitem/payitemcd", model.getValue("/root/main/payitem/payitemlist[" + grd_payitemtitle.row + "]/payitemcd"));
  526. submit("TRRWD00204");
  527. btn_search.dispatch("DOMActivate");
  528. ]]>
  529. </script>
  530. </button>
  531. </group>
  532. </xhtml:body>
  533. </xhtml:html>