SMRPA07400_직할국민연금보험.xrw 26 KB

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