SMRPA03000_연금대여상환금.xrw 22 KB

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