SMRPA03300_교원공제.xrw 21 KB

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