SMRPA01200_사학연금.xrw 26 KB

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