SMRPA01400_건강보험.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  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. <healthinsulist>
  21. <notiym/>
  22. <bisplceno/>
  23. <unitbizplceno/>
  24. <notidg/>
  25. <acntcd/>
  26. <seqno/>
  27. <certno/>
  28. <emplnm/>
  29. <rrgstno/>
  30. <reductresn/>
  31. <jobkindcd/>
  32. <grde/>
  33. <remunrmmamt/>
  34. <calcinsuamt/>
  35. <calcresn/>
  36. <fromym/>
  37. <toym/>
  38. <calcamt/>
  39. <yyendcalc/>
  40. <notiamt/>
  41. <mtrtcalcinsuamt/>
  42. <mtrtcalcamt/>
  43. <mtrtyyendcalc/>
  44. <mtrtnotiamt/>
  45. <mtrtcalcinsuamtsum/>
  46. <mtrtcalcamtsum/>
  47. <mtrtyyendcalcsum/>
  48. <mtrtnotiamtsum/>
  49. <acqtdd/>
  50. <lossdd/>
  51. <instcd/>
  52. <emplno/>
  53. <mtrtcalcresn/>
  54. <mtrtfromym/>
  55. <mtrttoym/>
  56. </healthinsulist>
  57. </disadiffpayform>
  58. <list01>
  59. <gridsummary/>
  60. </list01>
  61. </main>
  62. <send>
  63. <attach>
  64. <file/>
  65. </attach>
  66. <title/>
  67. <savelist>
  68. <healthinsulist/>
  69. </savelist>
  70. <searchlist>
  71. <notiym/>
  72. <rrgstno1/>
  73. <rrgstno2/>
  74. <emplnm/>
  75. <instcd/>
  76. <workgbn/>
  77. </searchlist>
  78. <disadiffpay>
  79. <instcd/>
  80. <notiym/>
  81. <rrgstno1/>
  82. <rrgstno2/>
  83. <emplnm/>
  84. </disadiffpay>
  85. </send>
  86. <temp>
  87. <cnt/>
  88. <doduyn/>
  89. <instcdyn/>
  90. <creatyn/>
  91. <message/>
  92. </temp>
  93. <init>
  94. <selectValue>1</selectValue>
  95. </init>
  96. </root>
  97. </instance>
  98. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  102. <script type="javascript" src="../../../mis/insurancemngtweb/js/RPA001.js"/>
  103. <script type="javascript" ev:event="xforms-ready">
  104. <![CDATA[
  105. fInitialize();
  106. misfGridInit(grd_disadiffpayinst);
  107. misfGridInit(grd_healthinsulist);
  108. misfGridInit(grd_attach);
  109. misfMsterDetailSet(grd_disadiffpayinst, null, "TRRPA01401" ,"N");
  110. misfMsterDetailSet(grd_healthinsulist, grd_disadiffpayinst, "TRRPA01403" ,"Y");
  111. rpaComboInstBase(cmb_instcd,getUserInfo("dutplceinstcd"));
  112. misfComboCopyItemSet(cmb_instcd, "", grd_healthinsulist, "instcd");
  113. var instcd = getUserInfo("dutplceinstcd");
  114. cmb_instcd.value=instcd;
  115. //화면 권한 설정
  116. btn_save.disabled = !(checkAuth("X"));
  117. //btn_save.disabled=true;
  118. // grd_healthinsulist.explorerbar = "sort";
  119. ]]>
  120. </script>
  121. <submission id="TRRPA01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/main/disadiffpay"/>
  122. <submission id="TXRPA01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
  123. <submission id="TRRPA01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/temp"/>
  124. <submission id="TXRPA01402" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/main/list01"/>
  125. <submission id="TXRPA01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/temp"/>
  126. <submission id="TRRPA01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/disadiffpay" resultref="/root/main/disadiffpayform"/>
  127. <submission id="TXRPA01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/temp"/>
  128. <submission id="TXRPA01405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/temp"/>
  129. <submission id="TXRPA01406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/temp"/>
  130. </model>
  131. <script type="javascript">
  132. <![CDATA[
  133. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  134. function fInitialize() {
  135. model.removeNodeset("/root/main/disadiffpay/disadiffpayinst");
  136. model.removeNodeset("/root/main/disadiffpayform/healthinsulist");
  137. model.removeNodeset("/root/main/list/filelist");
  138. model.resetInstanceNode("/root/send");
  139. model.refresh();
  140. var curDate = getCurrentDate().toDate();
  141. model.setValue("/root/send/searchlist/notiym", curDate.getDateFormat('YYYYMM'));
  142. }
  143. /** 왼쪽 공백 제거 */
  144. function funcLtrim( str ) {
  145. var src = new String( str );
  146. var tmp = new String();
  147. var i,firstnum, len = src.length;
  148. for(i = 0;i < len ;i++) {
  149. tmp = src.substring(i,i+1);
  150. if (tmp != ' ' ) {
  151. firstnum = i;
  152. break;
  153. }
  154. }
  155. tmp = src.substring(firstnum);
  156. return tmp;
  157. }
  158. var fso=new ActiveXObject("Scripting.FileSystemObject");
  159. function fCsvUpload() {
  160. var maxsize = upload1.attribute("filesize");
  161. //var files = window.fileDialog("open", "|", true);
  162. //var filename = window.fileDialog("open", "|", true,dirPath + fileName, "txt", "All File(*.*)|*.*");
  163. var filename = window.fileDialog("open", ",", false, "", "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
  164. var filelist = filename.split("|");
  165. model.removeNodeset("/root/main/list/filelist");
  166. model.removeNodeset("/root/send/attach");
  167. //타이틀을 획득한다.
  168. var s = new String(filelist[filelist.length-1]);
  169. var ss = s.split("\\");
  170. if(filename !=""){
  171. if (!fso.FileExists(filename)) {
  172. fso.CreateTextFile(filename,true);
  173. }
  174. var ts=fso.OpenTextFile(filename,1);
  175. var i=0;
  176. while (!ts.AtEndOfStream) {
  177. i++;
  178. strData = ts.ReadLine();
  179. ts.Close();
  180. if(!fIsValidate(strData))return;
  181. if(i == 1)break;
  182. } //end of while
  183. var notiym = strData.substring(0, 6);
  184. model.setValue("/root/send/searchlist/notiym", notiym);
  185. submit("TRRPA01402");
  186. var doduyn = ipt_doduyn.value;
  187. if(doduyn =='Y'){
  188. messageBox("해당월의 자료가 ","E006");
  189. return;
  190. }
  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("TXRPA01402"); // mis.rwddheas 테이블에 INSERT
  216. if (model.getValue(gvErrorMsgPath + "/type") != "error") submit("TXRPA01405"); // 인사마스터 기관코드로 건강보험 기관코드 업데이트(MIS.SP_RW_SETRWDDHEAS)
  217. if (model.getValue(gvErrorMsgPath + "/type") != "error") submit("TXRPA01406"); //
  218. btn_search.dispatch("DOMActivate");
  219. }
  220. closeLoadingBar();
  221. }
  222. }
  223. //=============================================================================================
  224. // 전환할 Line의 유효성 검사
  225. //=============================================================================================
  226. function fIsValidate(strData) {
  227. //if(lvGetByteSize(strData) == 158) { //레코드길이 158bytes
  228. //작업 년월을 비교한다.
  229. if(strData.substring(0, 6) != model.getValue("/root/send/searchlist/notiym")) {
  230. messageBox("선택한 파일의 년월과 입력한 년월 값이 ", "E004");
  231. return false;
  232. }
  233. return true;
  234. //} else {
  235. // messageBox("파일형태가", "E004");
  236. // return false;
  237. // }
  238. // return true;
  239. }
  240. /**
  241. * @group : lvString 확장
  242. * @ver : 2004.07.29 (KUHDEV-0002)
  243. * @by : LeeHJ.
  244. * @---------------------------------------------------
  245. * @type : function
  246. * @access : public
  247. * @desc : 파라미터 값의 Byte 크기를 리턴
  248. * @param : N/A
  249. * @return : 파라미터 값의 Byte 크기
  250. * @---------------------------------------------------
  251. */
  252. function lvGetByteSize(strData)
  253. {
  254. var tcount = 0;
  255. var tmpStr = new String(strData);
  256. var temp = tmpStr.length;
  257. var onechar;
  258. for ( k=0; k<temp; k++ )
  259. {
  260. onechar = tmpStr.charAt(k);
  261. if (escape(onechar).length > 4) {
  262. tcount += 2;
  263. }
  264. else {
  265. tcount += 1;
  266. }
  267. }
  268. return tcount;
  269. }
  270. ]]>
  271. </script>
  272. </xhtml:head>
  273. <xhtml:body guideline="1,467;1,729;" 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="cap_notiym" 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:17px; 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:17px; x2:1110px; y2:39px; "/>
  290. <line id="line207" class="line_1" style="x1:0px; y1:68px; x2:305px; y2:68px; "/>
  291. <datagrid id="grd_healthinsulist" nodeset="/root/main/disadiffpayform/healthinsulist" caption="순번^고지년월^사업장번호^단위기관^청구기관^성명^주민등록번호^고지차수^회계^일련번호^감면사유^보수월액^건강보험^건강보험^건강보험^건강보험^건강보험^건강보험^건강보험^장기요양^장기요양^장기요양^장기요양^장기요양^장기요양^장기요양^합계^합계^합계^합계^증번호^직종코드^등급^취득일자^상실일자^상실일자2^단위사업장^감면사유코드^정산사유^요양정산사유코드|순번^고지년월^사업장번호^단위기관^청구기관^성명^주민등록번호^고지차수^회계^일련번호^감면사유^보수월액^산출보험료^정산사유^정산시작월^정산종료월^정산보험료^고지보험료^연말정산액^산출보험료^정산사유^정산시작월^정산종료월^정산보험료^고지보험료^연말정산액^산출보험료계^정산보험료계^고지보험료계^연말정산액계^증번호^직종코드^등급^취득일자^상실일자^상실일자2^단위사업장^감면사유코드^정산사유^요양정산사유코드" colwidth="44, 54, 7, 56, 110, 65, 98, 56, 46, 14, 100, 75, 80, 100, 70, 70, 80, 80, 80, 80, 100, 70, 70, 80, 80, 80, 100, 100, 100, 100, 104, 73, 70, 80, 80, 80, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="10" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:310px; top:73px; width:884px; height:661px; text-align:center; ">
  292. <col ref="numno" style="text-align:center; "/>
  293. <col ref="notiym" format="yyyy-mm"/>
  294. <col ref="bisplceno" visibility="hidden"/>
  295. <col ref="unitbizplceno"/>
  296. <col id="instcd" ref="instcd" type="combo" style="text-align:left; ">
  297. <choices>
  298. <itemset>
  299. <label/>
  300. <value/>
  301. </itemset>
  302. </choices>
  303. </col>
  304. <col ref="emplnm" style="text-align:center; "/>
  305. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  306. <col ref="notidg" visibility="hidden" style="text-align:center; "/>
  307. <col ref="acntcd" visibility="hidden" style="text-align:center; "/>
  308. <col ref="seqno" visibility="hidden"/>
  309. <col ref="reductresnnm" style="text-align:center; "/>
  310. <col ref="remunrmmamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  311. <col ref="calcinsuamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  312. <col ref="calcresnnm" style="text-align:center; "/>
  313. <col ref="fromym" format="yyyy-mm" style="text-align:center; "/>
  314. <col ref="toym" format="yyyy-mm" style="text-align:center; "/>
  315. <col ref="calcamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  316. <col ref="notiamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  317. <col ref="yyendcalc" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  318. <col ref="mtrtcalcinsuamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  319. <col ref="mtrtcalcresnnm" style="text-align:center; "/>
  320. <col ref="mtrtfromym" format="yyyy-mm" style="text-align:center; "/>
  321. <col ref="mtrttoym" format="yyyy-mm" style="text-align:center; "/>
  322. <col ref="mtrtcalcamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  323. <col ref="mtrtnotiamt" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  324. <col ref="mtrtyyendcalc" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  325. <col ref="mtrtcalcinsuamtsum" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  326. <col ref="mtrtcalcamtsum" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  327. <col ref="mtrtnotiamtsum" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  328. <col ref="mtrtyyendcalcsum" savetype="digit" format="(-)#,###" style="text-align:right; "/>
  329. <col ref="certno" style="text-align:center; "/>
  330. <col ref="jobkindcd" style="text-align:center; "/>
  331. <col ref="grde" style="text-align:center; "/>
  332. <col ref="acqtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  333. <col ref="lossddnm" format="yyyy-mm-dd" style="text-align:center; "/>
  334. <col ref="lossdd" visibility="hidden"/>
  335. <col ref="unitbizplcenm" visibility="hidden"/>
  336. <col ref="reductresn" visibility="hidden"/>
  337. <col ref="calcresn" visibility="hidden"/>
  338. <col ref="mtrtcalcresn" visibility="hidden"/>
  339. <col ref="mtrtfromym" visibility="hidden"/>
  340. <col ref="mtrttoym" visibility="hidden"/>
  341. <script type="javascript" ev:event="xforms-value-changed">
  342. <![CDATA[
  343. /* var cur_row = grd_healthinsulist.row;
  344. //신청일자 및 시간 유효성 체크
  345. if(grd_healthinsulist.col == 5){
  346. for(i=1; i < grd_healthinsulist.rows ; i++){
  347. var rrgstno= grd_healthinsulist.valueMatrix(grd_healthinsulist.row,7);
  348. var instcd= grd_healthinsulist.valueMatrix(grd_healthinsulist.row,5);
  349. var rrgstno_ch= model.getValue("/root/main/disadiffpayform/healthinsulist["+i+"]/rrgstno");
  350. if(rrgstno == rrgstno_ch){
  351. grd_healthinsulist.valueMatrix(i, grd_healthinsulist.colRef("instcd")) =instcd;
  352. grd_healthinsulist.addStatus(i,"update");
  353. }
  354. }
  355. }*/
  356. ]]>
  357. </script>
  358. <script type="javascript" ev:event="onaftersort">
  359. <![CDATA[
  360. grd_healthinsulist.gridToInstance();
  361. ]]>
  362. </script>
  363. </datagrid>
  364. <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; ">
  365. <script type="javascript" ev:event="xforms-value-changed">
  366. <![CDATA[
  367. btn_search.dispatch("DOMActivate");
  368. ]]>
  369. </script>
  370. </input>
  371. <caption id="caption9" class="tit_2" style="left:5px; top:54px; width:123px; height:14px; ">기관별건수</caption>
  372. <input id="ipt_cnt" ref="/root/temp/cnt" class="input_search" disabled="true" visibility="hidden" format="#,###" style="left:863px; top:47px; width:35px; height:19px; text-align:right; "/>
  373. <button id="btn_upload" class="btn2_letter5" style="left:1054px; top:48px; width:75px; height:19px; ">
  374. <caption>파일업로드</caption>
  375. <script type="javascript" ev:event="DOMActivate">
  376. <![CDATA[
  377. fCsvUpload();
  378. if(!isRequiredControls("ipt_notiym"))return;
  379. ]]>
  380. </script>
  381. </button>
  382. <caption id="caption4" class="search_name" style="left:225px; top:19; width:99px; height:17px; ">주민번호 :</caption>
  383. <caption id="caption309" style="left:415px; top:21px; width:16px; height:17px; font-weight:bold; text-align:center; vertical-align:bottom; ">~</caption>
  384. <input id="ipt_chldrnresdnrgst1" ref="/root/send/searchlist/rrgstno1" class="input_default" maxlength="6" style="left:310px; top:18; width:100; height:19px; ">
  385. <script type="javascript" ev:event="onkeypress">
  386. <![CDATA[
  387. inputEnterKey("btn_search", "DOMActivate");
  388. ]]>
  389. </script>
  390. </input>
  391. <input id="ipt_chldrnresdnrgst2" ref="/root/send/searchlist/rrgstno2" class="input_default" maxlength="8" style="left:434px; top:18; width:100px; height:19px; ">
  392. <script type="javascript" ev:event="onkeypress">
  393. <![CDATA[
  394. inputEnterKey("btn_search", "DOMActivate");
  395. ]]>
  396. </script>
  397. </input>
  398. <caption id="caption5" class="search_name" style="left:560px; top:19; width:85px; height:17px; ">성 명 :</caption>
  399. <input id="ipt_emplnm" ref="/root/send/searchlist/emplnm" imemode="hangul" style="left:645px; top:18; width:105px; height:19px; ">
  400. <script type="javascript" ev:event="onkeypress">
  401. <![CDATA[
  402. inputEnterKey("btn_search", "DOMActivate");
  403. ]]>
  404. </script>
  405. </input>
  406. <select1 id="cmb_instcd" ref="/root/send/searchlist/instcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:753px; top:18; width:144px; height:19px; ">
  407. <choices>
  408. <itemset>
  409. <label/>
  410. <value/>
  411. </itemset>
  412. </choices>
  413. </select1>
  414. <input id="ipt_doduyn" ref="/root/temp/doduyn" visibility="hidden"/>
  415. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:1020px; top:49px; width:25px; height:20px; "/>
  416. <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; ">
  417. <col ref="file" style="text-align:center; "/>
  418. <col ref="filesize" format="#,###" style="text-align:right; "/>
  419. </datagrid>
  420. <datagrid id="grd_disadiffpayinst" nodeset="/root/main/disadiffpay/disadiffpayinst" caption="기관기호^단위기관명^총건수^인원수^기관코드^작업월^caption1^caption2^caption3" colsep="^" colwidth="60, 104, 60, 58, 75, 128" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:73px; width:305px; height:661px; ">
  421. <col ref="unitbizplceno" style="text-align:center; "/>
  422. <col ref="instnm" style="text-align:center; "/>
  423. <col ref="cnt" format="#,###" style="text-align:right; "/>
  424. <col ref="mancnt" format="#,###" style="text-align:right; "/>
  425. <col ref="instcd" visibility="hidden"/>
  426. <col ref="notiym" visibility="hidden"/>
  427. <script type="javascript" ev:event="onrowchanged">
  428. <![CDATA[
  429. grd_disadiffpayinst.subtotal("clear", 0, 0);
  430. grd_disadiffpayinst.subtotalPosition = "below";
  431. grd_disadiffpayinst.multiTotals = true;
  432. grd_disadiffpayinst.subtotal("sum", -1, 4, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "총합계", false);
  433. grd_disadiffpayinst.subtotal("sum", -1, 3, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 1, "총합계", false);
  434. var rrgstno1=model.getValue("/root/send/searchlist/rrgstno1");
  435. var rrgstno2=model.getValue("/root/send/searchlist/rrgstno2");
  436. var emplnm=model.getValue("/root/send/searchlist/emplnm");
  437. model.makeValue("/root/main/disadiffpay/disadiffpayinst/rrgstno1",rrgstno1);
  438. model.makeValue("/root/main/disadiffpay/disadiffpayinst/rrgstno2",rrgstno2);
  439. model.makeValue("/root/main/disadiffpay/disadiffpayinst/emplnm",emplnm);
  440. misfMsterDetailRetrieve();
  441. /* var cur_row=grd_disadiffpayinst.rows-1;
  442. if (grd_disadiffpayinst.row != cur_row){
  443. var instcd=grd_disadiffpayinst.valueMatrix(grd_disadiffpayinst.row,5);
  444. if(instcd =="000"){
  445. btn_save.disabled=false;
  446. }else{
  447. btn_save.disabled=true;
  448. }
  449. misfMsterDetailRetrieve();
  450. }else{
  451. btn_save.disabled=true;
  452. }*/
  453. ]]>
  454. </script>
  455. </datagrid>
  456. <line id="line1" class="line_1" style="x1:310px; y1:68px; x2:1195px; y2:68px; "/>
  457. <caption id="caption1" class="tit_2" style="left:315px; top:54px; width:100px; height:13px; ">건강보험 내역</caption>
  458. <button id="btn_exceldetail" class="btn2_letter4" style="left:1131px; top:48px; width:64px; height:19px; ">
  459. <caption>엑셀저장</caption>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  463. if (fileName != "") {
  464. grd_healthinsulist.saveExcel(fileName, "sheetname:savetype", true, true, "", "");
  465. }
  466. ]]>
  467. </script>
  468. </button>
  469. <button id="button1" class="btn2_letter4" style="left:236px; top:47px; width:64px; height:19px; ">
  470. <caption>엑셀저장</caption>
  471. <script type="javascript" ev:event="DOMActivate">
  472. <![CDATA[
  473. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  474. if (fileName != "") {
  475. grd_disadiffpayinst.saveExcel(fileName, "SheetName", true, true, "", "");
  476. }
  477. ]]>
  478. </script>
  479. </button>
  480. <input id="ipt_instcdyn" ref="/root/temp/instcdyn" class="input_search" disabled="true" visibility="hidden" format="#,###" style="left:780px; top:47px; width:81px; height:19px; text-align:right; "/>
  481. <input id="ipt_creatyn" ref="/root/temp/creatyn" class="input_search" disabled="true" visibility="hidden" format="#,###" style="left:901px; top:47px; width:35px; height:19px; text-align:right; "/>
  482. <input id="input1" ref="/root/send/searchlist/workgbn" visibility="hidden" style="left:939px; top:47px; width:40px; height:19px; "/>
  483. </group>
  484. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  485. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  486. <caption>저장</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. var updtdata = getGridUpdateData(grd_healthinsulist);
  490. if (updtdata == "" ) {
  491. messageBox("변경된 데이터가","I004");
  492. return;
  493. }
  494. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  495. if ( retMes != 6) {
  496. return;
  497. }
  498. misfSave("TXRPA01401");
  499. btn_search.dispatch("DOMActivate");
  500. ]]>
  501. </script>
  502. </button>
  503. <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
  504. <caption>초기화</caption>
  505. <script type="javascript" ev:event="DOMActivate">
  506. <![CDATA[
  507. var updtdata = getGridUpdateData(grd_healthinsulist);
  508. if (updtdata != "") {
  509. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  510. if (ret != 6) { // not OK
  511. return;
  512. }
  513. }
  514. fInitialize();
  515. ]]>
  516. </script>
  517. </button>
  518. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  519. <button id="button2" class="btn4_letter4" style="left:987px; top:3px; width:80px; height:22px; ">
  520. <caption>자료삭제</caption>
  521. <script type="javascript" ev:event="DOMActivate">
  522. <![CDATA[
  523. if(!isRequiredControls("ipt_notiym"))return;
  524. var retMes = messageBox("삭제 하시겠습니까?", "Q999");
  525. if ( retMes != 6) {
  526. return;
  527. }
  528. submit("TRRPA01402");
  529. var creatyn=model.getValue("/root/temp/creatyn");
  530. if(creatyn =='Y'){
  531. messageBox("취합자료를 생성한 자료는 삭제 할 수 ","I004");
  532. return;
  533. }
  534. submit("TXRPA01403");
  535. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  536. messageBox("작업이","I001");
  537. }
  538. ipt_doduyn.value="";
  539. misfGridInit(grd_disadiffpayinst);
  540. misfGridInit(grd_healthinsulist);
  541. ]]>
  542. </script>
  543. </button>
  544. <button id="button3" class="btn4_letter6" style="left:881px; top:3px; width:104px; height:22px; ">
  545. <caption>취합자료삭제</caption>
  546. <script type="javascript" ev:event="DOMActivate">
  547. <![CDATA[
  548. if(!isRequiredControls("ipt_notiym"))return;
  549. var retMes = messageBox("취합자료를 삭제 하시겠습니까?", "Q999");
  550. if ( retMes != 6) {
  551. return;
  552. }
  553. submit("TRRPA01402");
  554. var endyn=model.getValue("/root/temp/endyn");
  555. if(endyn =='Y'){
  556. messageBox("마감이 완료된 자료는 삭제 할 수 ","I004");
  557. return;
  558. }
  559. model.setValue("/root/send/searchlist/workgbn","D");
  560. submit("TXRPA01404");
  561. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  562. messageBox("작업이","I001");
  563. }
  564. ]]>
  565. </script>
  566. </button>
  567. <button id="button4" class="btn4_letter6" style="left:775px; top:3px; width:104px; height:22px; ">
  568. <caption>취합자료생성</caption>
  569. <script type="javascript" ev:event="DOMActivate">
  570. <![CDATA[
  571. if(!isRequiredControls("ipt_notiym"))return;
  572. var retMes = messageBox("취합자료를 생성 하시겠습니까?", "Q999");
  573. if ( retMes != 6) {
  574. return;
  575. }
  576. submit("TRRPA01402");
  577. var doduyn=model.getValue("/root/temp/doduyn");
  578. var instcdyn=model.getValue("/root/temp/instcdyn");
  579. var creatyn=model.getValue("/root/temp/creatyn");
  580. if(doduyn !='Y'){
  581. messageBox("해당월의 자료가 존재하지 않아 생성할 수 ","I004");
  582. return;
  583. }
  584. if(creatyn =='Y'){
  585. messageBox("해당월의 자료생성이 이미 ","I001");
  586. return;
  587. }
  588. if(instcdyn =='Y'){
  589. messageBox("기관이 입력되지 않은 사원이 존재하여 취합자료를 생성 ","E001");
  590. return;
  591. }else{
  592. model.setValue("/root/send/searchlist/workgbn","C");
  593. submit("TXRPA01404");
  594. }
  595. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  596. messageBox("작업이","I001");
  597. }
  598. ipt_doduyn.value="";
  599. ipt_instcdyn.value="";
  600. ]]>
  601. </script>
  602. </button>
  603. </group>
  604. </xhtml:body>
  605. </xhtml:html>