SMRPA07300_신협공제등록.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  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. <credasctnload>
  11. <credasctnloadlist/>
  12. </credasctnload>
  13. <list01>
  14. <gridsummary/>
  15. </list01>
  16. <list02>
  17. <return>
  18. <jryn/>
  19. </return>
  20. </list02>
  21. </main>
  22. <send>
  23. <attach>
  24. <file/>
  25. </attach>
  26. <title/>
  27. <jobkind/>
  28. <delflag/>
  29. <jrflag/>
  30. <savelist>
  31. <credasctnloadlist/>
  32. </savelist>
  33. <searchlist>
  34. <notiym/>
  35. <emplno/>
  36. <emplnm/>
  37. <instcd/>
  38. <nondedu/>
  39. <dutinstcd/>
  40. </searchlist>
  41. <payappsend>
  42. <instcd/>
  43. <payym/>
  44. <payitemcd/>
  45. <cancelyn/>
  46. </payappsend>
  47. </send>
  48. <temp>
  49. <cnt/>
  50. <doduyn/>
  51. <payappyn/>
  52. <hidden/>
  53. </temp>
  54. <init>
  55. </init>
  56. </root>
  57. </instance>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  62. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  63. <script type="javascript" src="../../../mis/pubwelfmngtweb/js/RPS001.js"/>
  64. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  65. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. fInitialize();
  69. misfGridInit(grd_credasctnloadlist);
  70. misfGridInit(grd_attach);
  71. misfMsterDetailSet(grd_credasctnloadlist, null, "TRRPA07301" ,"Y");
  72. misfComboComCdList('Z0007', cmb_instcd,"Y");
  73. //misfComboComCdList('Z0007', grd_credasctnloadlist.instcd,"");
  74. misfComboInstCdListMulti("grd_credasctnloadlist.instcd",getCurrentDate(),"","Y");
  75. // misfComboCopyItemSet(cmb_instcd, "", grd_credasctnloadlist, "instcd");
  76. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  77. model.setValue("/root/send/searchlist/dutinstcd", getUserInfo("dutplceinstcd"));
  78. model.refresh();
  79. //화면 권한 설정
  80. btn_save.disabled = !(checkAuth("X"));
  81. model.setFocus("ipt_notiym");
  82. ]]>
  83. </script>
  84. <submission id="TRRPA07301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/main/credasctnload"/>
  85. <submission id="TXRPA07301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
  86. <submission id="TRRPA07302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/temp"/>
  87. <submission id="TXRPA07302" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main/list01"/>
  88. <submission id="TXRPA07303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/temp"/>
  89. <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payappsend" resultref="/root/temp/hidden"/>
  90. </model>
  91. <script type="javascript">
  92. <![CDATA[
  93. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  94. function fInitialize() {
  95. model.removeNodeset("/root/main/credasctnloadlist");
  96. model.removeNodeset("/root/main/list/filelist");
  97. model.resetInstanceNode("/root/send");
  98. model.refresh();
  99. var curDate = getCurrentDate().toDate();
  100. model.setValue("/root/send/searchlist/notiym", curDate.getDateFormat('YYYYMM'));
  101. }
  102. /** 왼쪽 공백 제거 */
  103. function funcLtrim( str ) {
  104. var src = new String( str );
  105. var tmp = new String();
  106. var i,firstnum, len = src.length;
  107. for(i = 0;i < len ;i++) {
  108. tmp = src.substring(i,i+1);
  109. if (tmp != ' ' ) {
  110. firstnum = i;
  111. break;
  112. }
  113. }
  114. tmp = src.substring(firstnum);
  115. return tmp;
  116. }
  117. var fso=new ActiveXObject("Scripting.FileSystemObject");
  118. function fCsvUpload() {
  119. var maxsize = upload1.attribute("filesize");
  120. //var files = window.fileDialog("open", "|", true);
  121. //var filename = window.fileDialog("open", "|", true,dirPath + fileName, "txt", "All File(*.*)|*.*");
  122. var filename = window.fileDialog("open", ",", false, "", "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
  123. var filelist = filename.split("|");
  124. model.removeNodeset("/root/main/list/filelist");
  125. model.removeNodeset("/root/send/attach");
  126. //타이틀을 획득한다.
  127. var s = new String(filelist[filelist.length-1]);
  128. var ss = s.split("\\");
  129. if(filename !=""){
  130. if (!fso.FileExists(filename)) {
  131. fso.CreateTextFile(filename,true);
  132. }
  133. var ts=fso.OpenTextFile(filename,1);
  134. var i=0;
  135. while (!ts.AtEndOfStream) {
  136. i++;
  137. strData = ts.ReadLine();
  138. ts.Close();
  139. if(!fIsValidate(strData))return;
  140. if(i == 1)break;
  141. } //end of while
  142. //var notiym = strData.substring(3, 6);
  143. //model.setValue("/root/send/searchlist/notiym", notiym);
  144. submit("TRRPA07302");
  145. var doduyn = ipt_doduyn.value;
  146. doduyn = "N";
  147. if(doduyn =='Y'){
  148. messageBox("["+cmb_instcd.label+"] 해당월의 자료가 ","E006");
  149. return;
  150. }else{
  151. //작업 전 row를 추가 >파일명 유/무에 따른 분기>
  152. for(var i = 0 ; i < filelist.length ; i++ ){
  153. grd_attach.addRow(false);
  154. if(filelist[i] == ""){
  155. //alert(grd_attach.rows - 1);
  156. grd_attach.removeRow(false);
  157. grd_attach.refresh();
  158. }
  159. else{
  160. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  161. //파일크기('tfHelper.checkFileSize' 참조)
  162. var fileCnt = upload1.getFileCount();
  163. var lastIndex = fileCnt - 1;
  164. var fileSize = upload1.getFileSize(lastIndex);
  165. grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
  166. if (!checkFileSize(upload1)){
  167. grd_attach.removeItem();
  168. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  169. return;
  170. }
  171. }
  172. }
  173. openLoadingBar("파일업로드 작업중입니다... ") ;
  174. submit("TXRPA07302");
  175. closeLoadingBar();
  176. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  177. messageBox("작업이","I002");
  178. btn_search.dispatch("DOMActivate");
  179. }
  180. }
  181. }
  182. }
  183. //=============================================================================================
  184. // 전환할 Line의 유효성 검사
  185. //=============================================================================================
  186. function fIsValidate(strData) {
  187. if(lvGetByteSize(strData) == 109) { //레코드길이 100 bytes
  188. var notiymStr=model.getValue("/root/send/searchlist/notiym");
  189. var notiym =notiymStr.substring(1,6);
  190. //작업 년월을 비교한다.
  191. if(strData.substring(1, 6) != notiym) {
  192. messageBox("선택한 파일의 년월과 입력한 년월 값이 ", "E004");
  193. return false;
  194. }
  195. }
  196. return true;
  197. }
  198. /**
  199. * @group : lvString 확장
  200. * @ver : 2004.07.29 (KUHDEV-0002)
  201. * @by : LeeHJ.
  202. * @---------------------------------------------------
  203. * @type : function
  204. * @access : public
  205. * @desc : 파라미터 값의 Byte 크기를 리턴
  206. * @param : N/A
  207. * @return : 파라미터 값의 Byte 크기
  208. * @---------------------------------------------------
  209. */
  210. function lvGetByteSize(strData)
  211. {
  212. var tcount = 0;
  213. var tmpStr = new String(strData);
  214. var temp = tmpStr.length;
  215. var onechar;
  216. for ( k=0; k<temp; k++ )
  217. {
  218. onechar = tmpStr.charAt(k);
  219. if (escape(onechar).length > 4) {
  220. tcount += 2;
  221. }
  222. else {
  223. tcount += 1;
  224. }
  225. }
  226. return tcount;
  227. }
  228. ]]>
  229. </script>
  230. </xhtml:head>
  231. <xhtml:body style="margin-left:8; margin-right:8; ">
  232. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  233. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:500px; height:14px; ">신협공제</caption>
  234. </group>
  235. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  236. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  237. <caption id="caption2" class="search_name" style="left:16px; top:19px; width:65px; height:17px; ">년 월 :</caption>
  238. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:19px; width:56px; height:22px; ">
  239. <caption>조회</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. if(!isRequiredControls("ipt_notiym"))return;
  243. misfMsterDetailRetrieve();
  244. // if(chkdedu.value== "Y"){
  245. // grd_credasctnloadlist.colDisabled(2) =false;
  246. // grd_credasctnloadlist.colDisabled(3) =false;
  247. // grd_credasctnloadlist.colDisabled(7) =false;
  248. // }else{
  249. // grd_credasctnloadlist.colDisabled(2) =true;
  250. // grd_credasctnloadlist.colDisabled(3) =true;
  251. // grd_credasctnloadlist.colDisabled(7) =true;
  252. // }
  253. ]]>
  254. </script>
  255. </button>
  256. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1194px; y2:69px; "/>
  257. <datagrid id="grd_credasctnloadlist" nodeset="/root/main/credasctnload/credasctnloadlist" caption="기관^사원번호^성명^근무상태^퇴직일자^출자금^적금^자립예금^자유저축예금^대출원금^대출이자^기타금액^합계^급여적용여부^급여기관코드^순번^조정금액^합계^년월|기관^사원번호^성명^근무상태^퇴직일자^출자금^적금^자립예금^자유저축예금^대출원금^대출이자^기타금액^합계^급여적용여부^급여기관코드^순번^조정금액^합계^년월" colsep="^" colwidth="116, 74, 79, 92, 81, 87, 83, 79, 86, 88, 76, 73, 85, 47, 30, 21, 28, 27, 33" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1194px; height:640px; ">
  258. <col id="instcd" disabled="true" ref="instcd" type="combo">
  259. <choices>
  260. <itemset>
  261. <label/>
  262. <value/>
  263. </itemset>
  264. </choices>
  265. </col>
  266. <col ref="emplno" type="inputbutton" _key="true"/>
  267. <col ref="emplnm"/>
  268. <col ref="preststatnm"/>
  269. <col ref="retiredd" format="yyyy-mm-dd"/>
  270. <col ref="invstamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  271. <col ref="installamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  272. <col ref="selfsaveamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  273. <col ref="freesaveamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  274. <col ref="loanprincamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  275. <col ref="loanamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  276. <col ref="etcamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  277. <col ref="credasctnamt" type="output" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  278. <col ref="payappyn" style="text-align:center; "/>
  279. <col ref="payinst" visibility="hidden"/>
  280. <col ref="seqno" visibility="hidden"/>
  281. <col ref="adjtamt" type="input" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  282. <col ref="totcredasctnamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  283. <col ref="notiym" visibility="hidden" format="yyyy-mm" style="text-align:center; "/>
  284. <script type="javascript" ev:event="onentercell">
  285. <![CDATA[
  286. // if(grd_credasctnloadlist.valueMatrix(grd_credasctnloadlist.row, grd_credasctnloadlist.colRef("payappyn")) == "Y")
  287. // {
  288. // messageBox("급여적용되었으므로 수정" ,"E001");
  289. // misfSetReadOnlyCol(grd_credasctnloadlist,"emplno,adjtamt,credasctnamt",true);
  290. // }
  291. ]]>
  292. </script>
  293. <script type="javascript" ev:event="onbuttonclick">
  294. <![CDATA[
  295. var cur_row=grd_credasctnloadlist.row;
  296. if (grd_credasctnloadlist.colAttribute(grd_credasctnloadlist.col,"ref") == "emplno" ) { //계산기준코드
  297. var recv_list = "emplno,emplnm,payinst,preststatnm,retiredd";
  298. rpbfOpenPopUpList("SPRPB00101", grd_credasctnloadlist, recv_list,"","Y");
  299. grd_credasctnloadlist.valueMatrix(cur_row,grd_credasctnloadlist.colRef("instcd"))=grd_credasctnloadlist.valueMatrix(cur_row,grd_credasctnloadlist.colRef("payinst"));
  300. model.refresh();
  301. }
  302. ]]>
  303. </script>
  304. <script type="javascript" ev:event="onaftersort">
  305. <![CDATA[
  306. grd_credasctnloadlist.gridToInstance();
  307. ]]>
  308. </script>
  309. <script type="javascript" ev:event="xforms-value-changed">
  310. <![CDATA[
  311. var adjtamt = grd_credasctnloadlist.valueMatrix(grd_credasctnloadlist.row,grd_credasctnloadlist.colRef("adjtamt"));
  312. var credasctnamt = grd_credasctnloadlist.valueMatrix(grd_credasctnloadlist.row,grd_credasctnloadlist.colRef("credasctnamt"));
  313. grd_credasctnloadlist.valueMatrix(grd_credasctnloadlist.row,grd_credasctnloadlist.colRef("totcredasctnamt")) =parseInt(adjtamt)+parseInt(credasctnamt);
  314. ]]>
  315. </script>
  316. <script type="javascript" ev:event="onrowchanged">
  317. <![CDATA[
  318. if(grd_credasctnloadlist.valueMatrix(grd_credasctnloadlist.row, grd_credasctnloadlist.colRef("payappyn")) == "Y")
  319. {
  320. //messageBox("급여적용되었으므로 수정" ,"E001");
  321. misfSetReadOnlyCol(grd_credasctnloadlist,"emplno,adjtamt,invstamt,installamt,selfsaveamt,freesaveamt,loanprincamt,loanamt,etcamt",true);
  322. }
  323. else
  324. {
  325. misfSetReadOnlyCol(grd_credasctnloadlist,"emplno,adjtamt,invstamt,installamt,selfsaveamt,freesaveamt,loanprincamt,loanamt,etcamt",false);
  326. }
  327. ]]>
  328. </script>
  329. </datagrid>
  330. <input id="ipt_notiym" ref="/root/send/searchlist/notiym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:83px; top:19px; width:74px; height:19px; ">
  331. <script type="javascript" ev:event="xforms-value-changed">
  332. <![CDATA[
  333. var instcd = cmb_instcd.value;
  334. if( getStringLength(ipt_notiym.value) == "6" ) {
  335. model.removeNodeset(cmb_instcd.attribute("ref"));
  336. model.makeNode("/root/send/searchlist/instcd");
  337. misfComboInstCdListMulti("cmb_instcd",ipt_notiym.value,"","Y");
  338. cmb_instcd.value = instcd;
  339. model.refresh();
  340. }
  341. ]]>
  342. </script>
  343. </input>
  344. <caption id="caption9" class="tit_2" style="left:10px; top:54px; width:179px; height:14px; ">신협공제</caption>
  345. <button id="btn_upload" class="btn5_letter5" style="left:1048px; top:48px; width:75px; height:19px; ">
  346. <caption>파일업로드</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. if(!isRequiredControls("ipt_notiym"))return;
  350. fCsvUpload();
  351. ]]>
  352. </script>
  353. </button>
  354. <caption id="caption5" class="search_name" style="left:393px; top:20px; width:65px; height:17px; ">사 번 :</caption>
  355. <input id="ipt_emplno" ref="/root/send/searchlist/emplno" class="input_search" imemode="hangul" style="left:463px; top:19px; width:85px; height:19px; ">
  356. <script type="javascript" ev:event="xforms-value-changed">
  357. <![CDATA[
  358. var recv_list = "emplno,emplnm" ;
  359. rpbfValidationCheck("EMPLNO", recv_list);
  360. model.refresh();
  361. ]]>
  362. </script>
  363. </input>
  364. <select1 id="cmb_instcd" ref="/root/send/searchlist/instcd" class="combo_s_essential" appearance="minimal" style="left:259px; top:19px; width:121px; height:19px; ">
  365. <choices>
  366. <itemset>
  367. <label/>
  368. <value/>
  369. </itemset>
  370. </choices>
  371. </select1>
  372. <input id="ipt_doduyn" ref="/root/temp/doduyn" visibility="hidden"/>
  373. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:95px; top:45px; width:25px; height:20px; "/>
  374. <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:75px; top:180px; width:505px; height:69px; ">
  375. <col ref="file" style="text-align:center; "/>
  376. <col ref="filesize" format="#,###" style="text-align:right; "/>
  377. </datagrid>
  378. <button id="btn_exceldetail" class="btn2_letter4" style="left:1125px; top:48px; width:64px; height:19px; ">
  379. <caption>엑셀저장</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  383. if (fileName != "")
  384. {
  385. grd_credasctnloadlist.saveExcel(fileName, "SheetName", true, true, "", "");
  386. }
  387. ]]>
  388. </script>
  389. </button>
  390. <caption id="caption1" class="search_name" style="left:188px; top:20px; width:101px; height:17px; ">기 관 :</caption>
  391. <button id="btn_emplno" class="icon_search" style="left:552px; top:21px; width:16px; height:16px; ">
  392. <caption/>
  393. <script type="javascript" ev:event="DOMActivate">
  394. <![CDATA[
  395. var recv_list = "emplno,emplnm" ;
  396. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"1","N");
  397. model.refresh();
  398. ]]>
  399. </script>
  400. </button>
  401. <input id="ipt_emplnm" ref="/root/send/searchlist/emplnm" class="input_default" imemode="hangul" style="left:570px; top:19px; width:99px; height:19px; ">
  402. <script type="javascript" ev:event="onkeypress">
  403. <![CDATA[
  404. inputEnterKey("btn_search", "DOMActivate");
  405. ]]>
  406. </script>
  407. </input>
  408. <select id="chkdedu" ref="/root/send/searchlist/nondedu" overflow="visible" appearance="full" style="left:690px; top:21px; width:55px; height:20px; border-style:none; ">
  409. <choices>
  410. <item>
  411. <label>비공제</label>
  412. <value>Y</value>
  413. </item>
  414. </choices>
  415. </select>
  416. <button id="btn_grddelfamylist" class="btn2_letter3" visibility="hidden" style="left:920px; top:50px; width:53px; height:19px; ">
  417. <caption>행삭제</caption>
  418. <script type="javascript" ev:event="DOMActivate">
  419. <![CDATA[
  420. var cur_row =grd_credasctnloadlist.row;
  421. var rowStatus=grd_credasctnloadlist.rowStatus(cur_row);
  422. /* if(rowStatus =='0' || rowStatus =='2'){
  423. grd_famylist.valueMatrix(cur_row, grd_famylist.colRef("delynaftupdt")) ="Y";
  424. grd_famylist.valueMatrix(cur_row, grd_famylist.colRef("datachgbn"))='D';
  425. grd_famylist.addStatus(cur_row,"update");
  426. }else{*/
  427. misfGridIUD(grd_credasctnloadlist, "D");
  428. // }
  429. ]]>
  430. </script>
  431. </button>
  432. <button id="btn_grdaddfamylist" class="btn2_letter3" visibility="hidden" style="left:985px; top:48px; width:53px; height:19px; ">
  433. <caption>행추가</caption>
  434. <script type="javascript" ev:event="DOMActivate">
  435. <![CDATA[
  436. misfGridIUD(grd_credasctnloadlist, "A");
  437. var cur_row=grd_credasctnloadlist.row;
  438. grd_credasctnloadlist.valueMatrix(cur_row,grd_credasctnloadlist.colRef("payappyn")) ='N';
  439. grd_credasctnloadlist.valueMatrix(cur_row,grd_credasctnloadlist.colRef("adjtamt")) ='0';
  440. ]]>
  441. </script>
  442. </button>
  443. </group>
  444. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  445. <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:1130px; top:2px; width:56px; height:22px; ">
  446. <caption>저장</caption>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. var updtdata = getGridUpdateData(grd_credasctnloadlist);
  450. if (updtdata == "" ) {
  451. messageBox("변경된 데이터가","I004");
  452. return;
  453. }
  454. if(!checkKeyColumn("grd_credasctnloadlist"))return;
  455. var retMes = messageBox("자료를 저장하시겠습니까?", "Q999");
  456. if ( retMes != 6) {
  457. return;
  458. }
  459. // submit("TRRPA07302");
  460. // var payappyn =model.getValue("/root/temp/payappyn");
  461. // if(payappyn == "Y"){
  462. // messageBox("급여이체가 완료된 자료는 저장","E001");
  463. // return;
  464. // }
  465. misfSave("TXRPA07301");
  466. btn_search.dispatch("DOMActivate")
  467. ]]>
  468. </script>
  469. </button>
  470. <button id="btn_init" class="btn4_letter3" style="left:814px; top:2px; width:68px; height:22px; ">
  471. <caption>초기화</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. var updtdata = getGridUpdateData(grd_credasctnloadlist);
  475. if (updtdata != "") {
  476. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  477. if (ret != 6) { // not OK
  478. return;
  479. }
  480. }
  481. fInitialize();
  482. ]]>
  483. </script>
  484. </button>
  485. <line id="line9" class="line_6" style="x1:0; y1:25; x2:673; y2:25; "/>
  486. <button id="button2" class="btn4_letter4" style="left:883px; top:2px; width:80px; height:22px; ">
  487. <caption>자료삭제</caption>
  488. <script type="javascript" ev:event="DOMActivate">
  489. <![CDATA[
  490. var retMes = messageBox("["+cmb_instcd.label+"] 자료를 삭제하시겠습니까?", "Q999");
  491. if ( retMes != 6) {
  492. return;
  493. }
  494. submit("TRRPA07302");
  495. var doduyn= model.getValue("/root/temp/doduyn");
  496. var payappyn =model.getValue("/root/temp/payappyn");
  497. if(payappyn == "Y"){
  498. messageBox("급여이체가 완료된 자료는 삭제 할 수 ","I004");
  499. return;
  500. }
  501. submit("TXRPA07303");
  502. ipt_doduyn.value="";
  503. misfGridInit(grd_credasctnloadlist);
  504. ]]>
  505. </script>
  506. </button>
  507. <button id="btn_payapp" class="btn4_letter4" style="left:1049px; top:2px; width:80px; height:22px; ">
  508. <caption>급여이체</caption>
  509. <script type="javascript" ev:event="DOMActivate">
  510. <![CDATA[
  511. var retMes = messageBox("자료를 급여이체하시겠습니까?", "Q999");
  512. if ( retMes != 6) {
  513. return;
  514. }
  515. // submit("TRRPA07302");
  516. // var doduyn= model.getValue("/root/temp/doduyn");
  517. // var payappyn =model.getValue("/root/temp/payappyn");
  518. //
  519. // if(doduyn !='Y'){
  520. // messageBox("이체할 자료가 ","I004");
  521. // return;
  522. // }
  523. // if(payappyn =='Y'){
  524. // messageBox("급여이체 자료가 이미","I001");
  525. // return;
  526. // }
  527. var instcd = getUserInfo("dutplceinstcd");
  528. var payym = model.getValue("/root/send/searchlist/notiym");
  529. var payitemcd = "60200";
  530. model.setValue("/root/send/payappsend/instcd",instcd);
  531. model.setValue("/root/send/payappsend/payym",payym);
  532. model.setValue("/root/send/payappsend/payitemcd",payitemcd);
  533. model.setValue("/root/send/payappsend/cancelyn","N");
  534. submit("TXRWZ00303");
  535. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  536. messageBox("급여이체작업이","I001");
  537. misfMsterDetailRetrieve();
  538. }
  539. ]]>
  540. </script>
  541. </button>
  542. <button id="btn_canpayapp" class="btn4_letter4" style="left:967px; top:2px; width:80px; height:22px; ">
  543. <caption>이체취소</caption>
  544. <script type="javascript" ev:event="DOMActivate">
  545. <![CDATA[
  546. var retMes = messageBox("급여 이체 취소 하시겠습니까?", "Q999");
  547. if ( retMes != 6) {
  548. return;
  549. }
  550. var instcd = getUserInfo("dutplceinstcd");
  551. var payym = model.getValue("/root/send/searchlist/notiym");
  552. var payitemcd = "60200";
  553. model.setValue("/root/send/payappsend/instcd",instcd);
  554. model.setValue("/root/send/payappsend/payym",payym);
  555. model.setValue("/root/send/payappsend/payitemcd",payitemcd);
  556. model.setValue("/root/send/payappsend/cancelyn","Y");
  557. submit("TXRWZ00303");
  558. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  559. messageBox("급여 이체 취소 작업이","I001");
  560. misfMsterDetailRetrieve();
  561. }
  562. ]]>
  563. </script>
  564. </button>
  565. </group>
  566. </xhtml:body>
  567. </xhtml:html>