SMRPA03900_기관국민연금정정내역관리.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <disadiffpayform>
  11. <insurancensticorr>
  12. <notigbnnm/>
  13. <notiym/>
  14. <seqno/>
  15. <instcd/>
  16. <instnm/>
  17. <emplnm/>
  18. <rrgstno/>
  19. <grde/>
  20. <pensinsuamt/>
  21. <updtresn/>
  22. <updtdd/>
  23. <monthno/>
  24. <notigbn/>
  25. <rrgstno1/>
  26. <rrgstno2/>
  27. <workgbn/>
  28. <resngbn/>
  29. </insurancensticorr>
  30. <insurancenstilist>
  31. <notigbnnm/>
  32. <notiym/>
  33. <seqno/>
  34. <instcd/>
  35. <emplnm/>
  36. <rrgstno/>
  37. <grde/>
  38. <pensinsuamt/>
  39. <updtresn/>
  40. <updtdd/>
  41. <monthno/>
  42. <notigbn/>
  43. <rrgstno1/>
  44. <rrgstno2/>
  45. </insurancenstilist>
  46. </disadiffpayform>
  47. <disadiffpayitem>
  48. <notigbnnm/>
  49. <notiym/>
  50. <seqno/>
  51. <instcd/>
  52. <emplnm/>
  53. <rrgstno/>
  54. <grde/>
  55. <pensinsuamt/>
  56. <updtresn/>
  57. <updtdd/>
  58. <monthno/>
  59. <notigbn/>
  60. <rrgstno1/>
  61. <rrgstno2/>
  62. <workgbn/>
  63. <resngbn/>
  64. <adjtamt/>
  65. <cmt/>
  66. <notipensinsuamt/>
  67. </disadiffpayitem>
  68. </main>
  69. <send>
  70. <searchlist>
  71. <notiym/>
  72. <instcd/>
  73. <rrgstno1/>
  74. <rrgstno2/>
  75. <emplnm/>
  76. <workgbn/>
  77. <preststatcd/>
  78. </searchlist>
  79. <disadiffpayitem>
  80. <rrgstno1/>
  81. <rrgstno2/>
  82. <emplnm/>
  83. <notiym/>
  84. <instcd/>
  85. <workgbn/>
  86. </disadiffpayitem>
  87. <savelist>
  88. <insurancensticorr/>
  89. </savelist>
  90. <doduynlist>
  91. <notiym/>
  92. <seqno/>
  93. <workgbn/>
  94. <notigbn/>
  95. </doduynlist>
  96. </send>
  97. <temp>
  98. <medimodiseqnoyn/>
  99. <medicnfmyn/>
  100. <instcnfmyn/>
  101. <doduyn/>
  102. </temp>
  103. <init/>
  104. </root>
  105. </instance>
  106. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  109. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  110. <script type="javascript" src="../../../mis/insurancemngtweb/js/RPA001.js"/>
  111. <script type="javascript" ev:event="xforms-ready">
  112. <![CDATA[
  113. fInitialize();
  114. misfGridInit(grd_insurancensticorr);
  115. misfGridInit(grd_insurancenstilist);
  116. misfMsterDetailSet(grd_insurancensticorr, null, "TRRPA03701" ,"Y");
  117. rpaComboInstBase(cmb_instcd,getUserInfo("dutplceinstcd"),"Y");
  118. misfComboComCdList('R0178', cmb_resngbn);
  119. misfComboComCdList('R0146', cmb_preststatcd,'Y');
  120. misfComboCopyItemSet(cmb_resngbn, "", grd_insurancensticorr, "resngbn");
  121. misfComboCopyItemSet(cmb_preststatcd, "", grd_insurancensticorr, "preststatcd");
  122. misfComboCopyItemSet(cmb_instcd, "", cmb_instcd_i, "");
  123. //화면 권한 설정
  124. btn_save.disabled = !(checkAuth("X"));
  125. btn_insert.disabled= true;
  126. ]]>
  127. </script>
  128. <submission id="TRRPA03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/main/disadiffpayform"/>
  129. <submission id="TXRPA03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
  130. <submission id="TRRPA03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doduynlist" resultref="/root/temp"/>
  131. <submission id="TXRPA03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doduynlist" resultref="/root/temp"/>
  132. <submission id="TXRPA03703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doduynlist" resultref="/root/temp"/>
  133. <submission id="TRRPA01304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/disadiffpayitem" resultref="/root/main/disadiffpayform/insurancenstilist"/>
  134. </model>
  135. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  137. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  138. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  139. <script type="javascript">
  140. <![CDATA[
  141. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  142. function fInitialize() {
  143. model.removeNodeset("/root/main/disadiffpayform/insurancensticorr");
  144. model.removeNodeset("/root/main/disadiffpayform/insurancenstilist");
  145. model.resetInstanceNode("/root/main/disadiffpayitem");
  146. model.resetInstanceNode("/root/send");
  147. model.refresh();
  148. var curDate = getCurrentDate().toDate();
  149. model.setValue("/root/send/searchlist/notiym", curDate.getDateFormat('YYYYMM'));
  150. //model.setValue("/root/main/disadiffpayitem/notiym", curDate.getDateFormat('YYYYMM'));
  151. }
  152. function fEnableInsertButton() {
  153. btn_insert.disabled = true;
  154. btn_update.disabled = true;
  155. }
  156. function fEnableUpdateButton() {
  157. btn_insert.disabled = true;
  158. btn_update.disabled = false;
  159. }
  160. function ftotPenPayAmt(){
  161. var pensinsuamt = 0;
  162. var adjtamt = 0;
  163. if(ipt_pensinsuamt.value!=""){
  164. pensinsuamt=parseInt(ipt_pensinsuamt.value);
  165. }
  166. if(ipt_adjtamt.value!=""){
  167. adjtamt=parseInt(ipt_adjtamt.value);
  168. }
  169. //scholexppayamt=parseInt(scho)+parseInt(admischoolamt)+parseInt(asctfeereliztpln)+parseInt(stdasctfee);
  170. notipensinsuamt=pensinsuamt+adjtamt;
  171. ipt_notipensinsuamt.value=notipensinsuamt;
  172. }
  173. ]]>
  174. </script>
  175. </xhtml:head>
  176. <xhtml:body style="margin-left:8; margin-right:8; ">
  177. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  178. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">기관국민연금정정내역관리</caption>
  179. </group>
  180. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:740px; ">
  181. <line id="line2" class="line_2" style="x1:0px; y1:509px; x2:460px; y2:509px; "/>
  182. <line id="line17" class="line_2" style="x1:0px; y1:581px; x2:460px; y2:581px; "/>
  183. <line id="line1" class="line_2" style="x1:0px; y1:533px; x2:460px; y2:533px; "/>
  184. <line id="line26" class="line_3" style="x1:0px; y1:678px; x2:460px; y2:678px; "/>
  185. <line id="line14" class="line_2" style="x1:0px; y1:629px; x2:460px; y2:629px; "/>
  186. <line id="line12" class="line_2" style="x1:0px; y1:557px; x2:460px; y2:557px; "/>
  187. <line id="line9" class="line_2" style="x1:0px; y1:605px; x2:460px; y2:605px; "/>
  188. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  189. <caption id="caption2" class="search_name" style="left:15px; top:19px; width:105px; height:17px; ">작업년월 :</caption>
  190. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  191. <caption>조회</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. if(!isRequiredControls("ipt_notiym"))return;
  195. model.setValue("/root/send/searchlist/workgbn","3");
  196. submit("TRRPA03701");
  197. ]]>
  198. </script>
  199. </button>
  200. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  201. <input id="ipt_notiym" ref="/root/send/searchlist/notiym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:100px; top:18px; width:85px; height:19px; ">
  202. <script type="javascript" ev:event="xforms-value-changed">
  203. <![CDATA[
  204. // ipt_notiym_i.value=ipt_notiym.value;
  205. ]]>
  206. </script>
  207. </input>
  208. <caption id="caption5" class="search_name" style="left:203px; top:19px; width:99px; height:17px; ">기 관 :</caption>
  209. <select1 id="cmb_instcd" ref="/root/send/searchlist/instcd" class="combo_s_essential" appearance="minimal" style="left:277px; top:20px; width:133px; height:19px; ">
  210. <choices>
  211. <itemset>
  212. <label/>
  213. <value/>
  214. </itemset>
  215. </choices>
  216. </select1>
  217. <line id="line20" class="line_1" style="x1:0px; y1:482px; x2:460px; y2:482px; "/>
  218. <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:162px; height:14px; ">기관국민연금정정내역</caption>
  219. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1193px; y2:69px; "/>
  220. <caption id="caption3" class="tit_2" style="left:5px; top:467px; width:139px; height:13px; ">당월고지금액</caption>
  221. <caption id="caption11" class="cell_1" style="left:0px; top:631px; width:100px; height:23px; vertical-align:middle; ">조정금액</caption>
  222. <caption id="cap_updtresn" class="cell_1" style="left:0px; top:607px; width:100px; height:23px; vertical-align:middle; ">변동사유</caption>
  223. <select1 id="cmb_instcd_i" ref="/root/main/disadiffpayitem/instcd" class="combo_s_essential" appearance="minimal" style="left:103px; top:513px; width:215px; height:19px; ">
  224. <choices>
  225. <itemset>
  226. <label/>
  227. <value/>
  228. </itemset>
  229. </choices>
  230. </select1>
  231. <caption id="cap_notiym_i" class="cell_1" style="left:0px; top:487px; width:100px; height:23px; vertical-align:middle; ">고지년월</caption>
  232. <caption id="caption23" class="cell_1" style="left:230px; top:607px; width:100px; height:23px; vertical-align:middle; ">연금보험료</caption>
  233. <caption id="cap_seqno" class="cell_1" style="left:230px; top:487px; width:100px; height:23px; vertical-align:middle; ">성 명</caption>
  234. <caption id="caption30" class="cell_1" style="left:0px; top:511px; width:100px; height:23px; vertical-align:middle; ">기 관</caption>
  235. <line id="line25" class="line_1" style="x1:465px; y1:482px; x2:1195px; y2:482px; "/>
  236. <input id="ipt_monthno" ref="/root/main/disadiffpayitem/monthno" class="input_search" maxlength="9" format="#,###" style="left:103px; top:584px; width:124px; height:19px; text-align:right; "/>
  237. <caption id="caption33" class="cell_1" style="left:230px; top:583px; width:100px; height:23px; vertical-align:middle; ">변동일자</caption>
  238. <caption id="cap_emplnm" class="cell_1" style="left:0px; top:559px; width:100px; height:23px; vertical-align:middle; ">등 급</caption>
  239. <caption id="cap_resngbn" class="cell_1" style="left:230px; top:559px; width:100px; height:23px; vertical-align:middle; ">정정사유</caption>
  240. <input id="ipt_notiym_i" ref="/root/main/disadiffpayitem/notiym" class="input_s_essential" disabled="true" inputtype="date" format="yyyy-mm" style="left:103px; top:489px; width:103px; height:19px; "/>
  241. <input id="ipt_jobgrad" ref="/root/main/disadiffpayitem/notigbn" class="input_search" disabled="true" visibility="hidden" style="left:205px; top:455px; width:50px; height:19px; "/>
  242. <input id="ipt_jobpos" ref="/root/main/disadiffpayitem/grde" class="input_search" disabled="true" style="left:103px; top:560px; width:124px; height:19px; "/>
  243. <input id="ipt_emplnm_i" ref="/root/main/disadiffpayitem/emplnm" class="input_s_essential" imemode="hangul" maxlength="30" style="left:333px; top:489px; width:103px; height:19px; ">
  244. <script type="javascript" ev:event="onkeyup">
  245. <![CDATA[
  246. /* Enter Key입력시 이벤트 발생 */
  247. inputEnterKey("btn_emplnm", "DOMActivate");
  248. ]]>
  249. </script>
  250. </input>
  251. <input id="ipt_seqno" ref="/root/main/disadiffpayitem/seqno" class="input_s_essential" disabled="true" visibility="hidden" style="left:170px; top:455px; width:25px; height:19px; "/>
  252. <input id="ipt_updtresn" ref="/root/main/disadiffpayitem/updtresn" class="input_search" maxlength="30" style="left:103px; top:609px; width:124px; height:19px; text-align:right; "/>
  253. <caption id="caption10" class="cell_1" style="left:0px; top:583px; width:100px; height:23px; vertical-align:middle; ">월 수</caption>
  254. <input id="ipt_rrgstno1_i" ref="/root/main/disadiffpayitem/rrgstno1" class="input_s_essential" maxlength="6" style="left:103px; top:537px; width:103px; height:19px; ">
  255. <script type="javascript" ev:event="onkeyup">
  256. <![CDATA[
  257. inputEnterKey("btn_rrgstno", "DOMActivate");
  258. ]]>
  259. </script>
  260. </input>
  261. <caption id="cap_rrgstno1" class="cell_1" style="left:0px; top:535px; width:100px; height:23px; vertical-align:middle; ">주민등록번호</caption>
  262. <input id="ipt_rrgstno2_i" ref="/root/main/disadiffpayitem/rrgstno2" class="input_s_essential" maxlength="7" style="left:230px; top:537px; width:100px; height:19px; ">
  263. <script type="javascript" ev:event="onkeyup">
  264. <![CDATA[
  265. inputEnterKey("btn_rrgstno", "DOMActivate");
  266. ]]>
  267. </script>
  268. </input>
  269. <caption id="caption309" style="left:209px; top:538px; width:16px; height:17px; font-weight:bold; text-align:center; vertical-align:bottom; ">~</caption>
  270. <caption id="caption15" class="tit_2" style="left:470px; top:467px; width:214px; height:14px; ">의료원확정 국민연금 내역 리스트</caption>
  271. <select1 id="cmb_resngbn" ref="/root/main/disadiffpayitem/resngbn" class="combo_s_essential" appearance="minimal" style="left:333px; top:560px; width:125px; height:19px; ">
  272. <choices>
  273. <itemset>
  274. <label/>
  275. <value/>
  276. </itemset>
  277. </choices>
  278. </select1>
  279. <input id="ipt_updtdd" ref="/root/main/disadiffpayitem/updtdd" class="input_search" inputtype="date" maxlength="9" format="yyyy-mm-dd" style="left:333px; top:584px; width:125px; height:19px; text-align:right; "/>
  280. <input id="ipt_pensinsuamt" ref="/root/main/disadiffpayitem/pensinsuamt" class="input_s_essential" maxlength="9" format="(-)#,###" style="left:333px; top:608px; width:125px; height:19px; text-align:right; ">
  281. <script type="javascript" ev:event="xforms-value-changed">
  282. <![CDATA[
  283. ftotPenPayAmt();
  284. ]]>
  285. </script>
  286. </input>
  287. <caption id="caption45" class="cell_1" style="left:230px; top:631px; width:100px; height:23px; vertical-align:middle; ">당월보험료</caption>
  288. <button id="btn_update" class="btn2_letter2" navindex="13" style="left:362px; top:461px; width:42px; height:19px; ">
  289. <caption>수정</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. if(!isRequiredControls("ipt_notiym_i","cmb_instcd_i","cmb_resngbn","ipt_seqno","ipt_pensinsuamt"))return;
  293. var nitiym=model.getValue("/root/main/disadiffpayitem/notiym");
  294. var seqno=model.getValue("/root/main/disadiffpayitem/seqno");
  295. var notigbn = model.getValue("/root/main/disadiffpayitem/notigbn");
  296. model.setValue("/root/send/doduynlist/seqno",seqno);
  297. model.setValue("/root/send/doduynlist/notiym",nitiym);
  298. model.setValue("/root/send/doduynlist/notigbn",notigbn);
  299. model.setValue("/root/send/doduynlist/workgbn","3");
  300. submit("TRRPA03702");
  301. var seqnoyn=model.getValue("/root/temp/seqnoyn");
  302. var instyn=model.getValue("/root/temp/instyn");
  303. if(instyn =='Y'){
  304. messageBox("기관확정이 완료된 고지월은 정정 ","E001");
  305. return;
  306. }
  307. if(seqnoyn =='Y'){
  308. messageBox("입력한 사원의 자료가 ","E006");
  309. return;
  310. }
  311. var cur_row = grd_insurancensticorr.row; // 행 번호 가져오기
  312. if (cur_row > 0) {
  313. // 그리드에 추가
  314. model.copyNode("/root/main/disadiffpayform/insurancensticorr["+cur_row+"]","/root/main/disadiffpayitem");
  315. grd_insurancensticorr.addStatus(cur_row,"update"); // 행을 업데이트 상태로 변경
  316. model.refresh();
  317. }
  318. ]]>
  319. </script>
  320. </button>
  321. <button id="btn_delete" class="btn2_letter3" navindex="14" style="left:407px; top:461px; width:53px; height:19px; ">
  322. <caption>지우기</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. model.resetInstanceNode("/root/main/disadiffpayitem");
  326. fEnableInsertButton() ;
  327. ipt_notiym_i.disabled=false;
  328. ipt_rrgstno1_i.disabled=false;
  329. ipt_rrgstno2_i.disabled=false;
  330. ipt_emplnm_i.disabled=false;
  331. model.refresh();
  332. var notiym=model.getValue("/root/send/searchlist/notiym");
  333. ipt_notiym_i.value=notiym;
  334. ]]>
  335. </script>
  336. </button>
  337. <button id="btn_insert" class="btn2_letter6" navindex="12" style="left:273px; top:461px; width:86px; height:19px; ">
  338. <caption>정정내역추가</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. if(!isRequiredControls("ipt_notiym_i","cmb_instcd_i","cmb_resngbn","ipt_seqno","ipt_pensinsuamt"))return;
  342. var nitiym=model.getValue("/root/main/disadiffpayitem/notiym");
  343. var seqno=model.getValue("/root/main/disadiffpayitem/seqno");
  344. var notigbn = model.getValue("/root/main/disadiffpayitem/notigbn");
  345. model.setValue("/root/send/doduynlist/seqno",seqno);
  346. model.setValue("/root/send/doduynlist/notiym",nitiym);
  347. model.setValue("/root/send/doduynlist/notigbn",notigbn);
  348. model.setValue("/root/send/doduynlist/workgbn","3");
  349. submit("TRRPA03702");
  350. var instmodiseqnoyn=model.getValue("/root/temp/instmodiseqnoyn");
  351. var instcnfmyn=model.getValue("/root/temp/instcnfmyn");
  352. if(instcnfmyn =='Y'){
  353. messageBox("기관확정이 완료된 고지월은 정정 ","E001");
  354. return;
  355. }
  356. if(instmodiseqnoyn =='Y'){
  357. messageBox("입력한 사원의 자료가 ","E006");
  358. return;
  359. }
  360. grd_insurancensticorr.addrow(); // 입력할 행 추가.
  361. var cur_row = grd_insurancensticorr.row; // 추가된 행 번호 가져오기
  362. model.copyNode("/root/main/disadiffpayform/insurancensticorr["+cur_row+"]","/root/main/disadiffpayitem");
  363. fEnableUpdateButton();
  364. model.refresh();
  365. ]]>
  366. </script>
  367. </button>
  368. <button id="btn_emplnm" class="icon_search" visibility="hidden" style="left:440px; top:490px; width:16px; height:16px; ">
  369. <caption/>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. if(!isRequiredControls("ipt_emplnm_i","ipt_notiym_i"))return;
  373. model.makeNode("/root/main/disadiffpayitem/workgbn");
  374. model.setValue("/root/main/disadiffpayitem/workgbn","1");
  375. submit("TRRPA01303");
  376. ]]>
  377. </script>
  378. </button>
  379. <button id="btn_rrgstno" class="icon_search" visibility="hidden" style="left:333px; top:538px; width:16px; height:16px; ">
  380. <caption/>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. if(ipt_rrgstno1_i.value=="" && ipt_rrgstno2_i.value=="" ){
  384. messageBox("주민등록번호는 ","I003");
  385. return;
  386. }
  387. if(!isRequiredControls("ipt_notiym_i"))return;
  388. var emplnm=model.getValue("/root/main/disadiffpayitem/emplnm");
  389. model.makeNode("/root/main/disadiffpayitem/workgbn");
  390. model.setValue("/root/main/disadiffpayitem/workgbn","1");
  391. model.makeNode("/root/main/disadiffpayitem/emplnm");
  392. model.setValue("/root/main/disadiffpayitem/emplnm",emplnm);
  393. submit("TRRPA01303");
  394. ]]>
  395. </script>
  396. </button>
  397. <input id="input2" ref="/root/main/disadiffpayitem/workgbn" class="input_s_essential" disabled="true" visibility="hidden" format="#,###" style="left:330px; top:320px; width:65px; height:19px; text-align:right; "/>
  398. <input id="ipt_emplnm" ref="/root/send/searchlist/emplnm" class="input_search" imemode="hangul" style="left:762px; top:18px; width:105px; height:19px; ">
  399. <script type="javascript" ev:event="onkeyup">
  400. <![CDATA[
  401. inputEnterKey("btn_search", "DOMActivate");
  402. ]]>
  403. </script>
  404. </input>
  405. <caption id="caption32" style="left:594px; top:20px; width:16px; height:17px; font-weight:bold; text-align:center; vertical-align:bottom; ">~</caption>
  406. <caption id="caption34" class="search_name" style="left:431px; top:19px; width:99px; height:17px; ">주민번호:</caption>
  407. <caption id="caption37" class="search_name" style="left:702px; top:19px; width:60px; height:17px; ">성명:</caption>
  408. <input id="ipt_chldrnresdnrgst1" ref="/root/send/searchlist/rrgstno1" class="input_search" maxlength="6" style="left:512px; top:18px; width:80px; height:19px; ">
  409. <script type="javascript" ev:event="onkeypress">
  410. <![CDATA[
  411. inputEnterKey("btn_search", "DOMActivate");
  412. ]]>
  413. </script>
  414. <script type="javascript" ev:event="onkeyup">
  415. <![CDATA[
  416. inputEnterKey("btn_search", "DOMActivate");
  417. ]]>
  418. </script>
  419. </input>
  420. <input id="ipt_chldrnresdnrgst2" ref="/root/send/searchlist/rrgstno2" class="input_search" maxlength="7" style="left:612px; top:18px; width:80px; height:19px; ">
  421. <script type="javascript" ev:event="onkeypress">
  422. <![CDATA[
  423. inputEnterKey("btn_search", "DOMActivate");
  424. ]]>
  425. </script>
  426. <script type="javascript" ev:event="onkeyup">
  427. <![CDATA[
  428. inputEnterKey("btn_search", "DOMActivate");
  429. ]]>
  430. </script>
  431. </input>
  432. <datagrid id="grd_insurancensticorr" nodeset="/root/main/disadiffpayform/insurancensticorr" caption="고지구분^고지년월^일련번호^기관^성명^주민등록번호^근무상태^등급^연금보험료^조정금액^당월고지금액^변동사유^변동일자^월수^정정사유" colwidth="89, 62, 55, 120, 74, 104, 81, 54, 91, 100, 93, 82, 84, 62, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:74px; width:1195px; height:371px; text-align:center; ">
  433. <col ref="notigbnnm" visibility="hidden"/>
  434. <col ref="notiym" format="yyyy-mm"/>
  435. <col ref="seqno" visibility="hidden"/>
  436. <col ref="instnm" style="text-align:center; "/>
  437. <col ref="emplnm" style="text-align:center; "/>
  438. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  439. <col id="preststatcd" ref="preststatcd" type="combo" style="text-align:left; ">
  440. <choices>
  441. <itemset>
  442. <label/>
  443. <value/>
  444. </itemset>
  445. </choices>
  446. </col>
  447. <col ref="grde" style="text-align:center; "/>
  448. <col ref="pensinsuamt" format="(-)#,###" style="text-align:right; "/>
  449. <col ref="adjtamt" format="(-)#,###" style="text-align:right; "/>
  450. <col ref="notipensinsuamt" format="(-)#,###" style="text-align:right; "/>
  451. <col ref="updtresn" style="text-align:center; "/>
  452. <col ref="updtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  453. <col ref="monthno" visibility="visible" format="yyyy-mm" style="text-align:center; "/>
  454. <col id="resngbn" ref="resngbn" type="combo" style="text-align:left; ">
  455. <choices>
  456. <itemset>
  457. <label/>
  458. <value/>
  459. </itemset>
  460. </choices>
  461. </col>
  462. <col ref="notigbn" visibility="hidden"/>
  463. <col ref="instcd" visibility="hidden"/>
  464. <col ref="workgbn" visibility="hidden"/>
  465. <script type="javascript" ev:event="onclick">
  466. <![CDATA[
  467. var cur_row = grd_insurancensticorr.row;
  468. if ( cur_row > 0 ) {
  469. fEnableUpdateButton();
  470. model.copyNode("/root/main/disadiffpayitem","/root/main/disadiffpayform/insurancensticorr["+cur_row+"]");
  471. ipt_notiym_i.disabled=true;
  472. ipt_rrgstno1_i.disabled=true;
  473. ipt_rrgstno2_i.disabled=true;
  474. ipt_emplnm_i.disabled=true;
  475. model.refresh();
  476. }
  477. var notiym = model.getValue("/root/main/disadiffpayform/insurancensticorr["+cur_row+"]/notiym");
  478. var rrgstno = model.getValue("/root/main/disadiffpayform/insurancensticorr["+cur_row+"]/rrgstno");
  479. var rrgstno1 = rrgstno.substr(0,6);
  480. var rrgstno2 = rrgstno.substr(6,7);
  481. model.setValue("/root/send/disadiffpayitem/notiym",notiym);
  482. model.setValue("/root/send/disadiffpayitem/rrgstno1",rrgstno1);
  483. model.setValue("/root/send/disadiffpayitem/rrgstno2",rrgstno2);
  484. model.setValue("/root/send/disadiffpayitem/workgbn","3");
  485. submit("TRRPA01304");
  486. ]]>
  487. </script>
  488. </datagrid>
  489. <datagrid id="grd_insurancenstilist" nodeset="/root/main/disadiffpayform/insurancenstilist" caption="고지구분^고지년월^일련번호^기관^성명^주민등록번호^근무상태^퇴직일자^등급^연금보험료^조정금액^당월고지금액^정정사유^변동사유^변동일자^월수^비고" colwidth="18, 14, 12, 137, 74, 104, 75, 70, 48, 78, 64, 83, 64, 63, 70, 41, 131, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:465px; top:487px; width:730px; height:243px; text-align:center; ">
  490. <col ref="notigbnnm" visibility="hidden"/>
  491. <col ref="notiym" visibility="hidden" format="yyyy-mm"/>
  492. <col ref="seqno" visibility="hidden"/>
  493. <col ref="instnm" style="text-align:left; "/>
  494. <col ref="emplnm" style="text-align:center; "/>
  495. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  496. <col ref="preststatnm" style="text-align:center; "/>
  497. <col ref="retiredd" format="yyyy-mm-dd" style="text-align:center; "/>
  498. <col ref="grde" visibility="hidden" style="text-align:center; "/>
  499. <col ref="pensinsuamt" format="#,###" style="text-align:right; "/>
  500. <col ref="adjtamt" format="(-)#,###" style="text-align:right; "/>
  501. <col ref="notipensinsuamt" format="(-)#,###" style="text-align:right; "/>
  502. <col ref="resngbnnm" style="text-align:center; "/>
  503. <col ref="updtresn" style="text-align:center; "/>
  504. <col ref="updtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  505. <col ref="monthno" style="text-align:center; "/>
  506. <col ref="cmt"/>
  507. <col ref="notigbn" visibility="hidden"/>
  508. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  509. <col ref="rrgstno1" visibility="hidden" style="text-align:center; "/>
  510. <col ref="rrgstno2" visibility="hidden" style="text-align:center; "/>
  511. <col ref="preststatcd" visibility="hidden" style="text-align:center; "/>
  512. <col ref="resngbn" visibility="hidden" style="text-align:center; "/>
  513. <script type="javascript" ev:event="onclick">
  514. <![CDATA[
  515. btn_insert.disabled= false;
  516. btn_update.disabled=true;
  517. var cur_row = grd_insurancenstilist.row;
  518. if ( cur_row > 0 ) {
  519. ipt_notiym_i.disabled=true;
  520. ipt_rrgstno1_i.disabled=true;
  521. ipt_rrgstno2_i.disabled=true;
  522. ipt_emplnm_i.disabled=true;
  523. model.copyNode("/root/main/disadiffpayitem","/root/main/disadiffpayform/insurancenstilist["+cur_row+"]");
  524. model.makeNode("/root/main/disadiffpayitem/workgbn");
  525. model.setValue("/root/main/disadiffpayitem/workgbn","3");
  526. model.refresh();
  527. }
  528. ]]>
  529. </script>
  530. <script type="javascript" ev:event="onaftersort">
  531. <![CDATA[
  532. grd_insurancenstilist.gridToInstance();
  533. ]]>
  534. </script>
  535. </datagrid>
  536. <button id="button1" class="icon_search" visibility="hidden" style="left:333px; top:514px; width:16px; height:16px; ">
  537. <caption/>
  538. <script type="javascript" ev:event="DOMActivate">
  539. <![CDATA[
  540. if(!isRequiredControls("ipt_notiym_i"))return;
  541. var emplnm=model.getValue("/root/main/disadiffpayitem/emplnm");
  542. model.makeNode("/root/main/disadiffpayitem/workgbn");
  543. model.setValue("/root/main/disadiffpayitem/workgbn","1");
  544. model.makeNode("/root/main/disadiffpayitem/emplnm");
  545. model.setValue("/root/main/disadiffpayitem/emplnm",emplnm);
  546. submit("TRRPA01304");
  547. ]]>
  548. </script>
  549. </button>
  550. <input id="input3" ref="/root/main/disadiffpayitem/notigbnnm" class="input_search" disabled="true" visibility="hidden" style="left:205px; top:455px; width:40px; height:19px; "/>
  551. <input id="ipt_workgbn" ref="/root/main/disadiffpayitem/workgbn" class="input_s_essential" disabled="true" visibility="hidden" style="left:505px; top:580px; width:65px; height:19px; text-align:right; "/>
  552. <input id="input5" ref="/root/main/disadiffpayitem/notigbn" class="input_search" disabled="true" visibility="hidden" style="left:600px; top:580px; width:120px; height:19px; "/>
  553. <input id="input6" ref="/root/main/disadiffpayitem/rrgstno" class="input_search" visibility="hidden" maxlength="6" style="left:750px; top:580px; width:91px; height:19px; ">
  554. <script type="javascript" ev:event="onkeyup">
  555. <![CDATA[
  556. inputEnterKey("btn_rrgstno", "DOMActivate");
  557. ]]>
  558. </script>
  559. </input>
  560. <button id="button2" class="icon_search" visibility="hidden" style="left:209px; top:490px; width:16px; height:16px; ">
  561. <caption/>
  562. <script type="javascript" ev:event="DOMActivate">
  563. <![CDATA[
  564. if(!isRequiredControls("ipt_notiym_i"))return;
  565. var emplnm=model.getValue("/root/main/disadiffpayitem/emplnm");
  566. model.makeNode("/root/main/disadiffpayitem/workgbn");
  567. model.setValue("/root/main/disadiffpayitem/workgbn","1");
  568. model.makeNode("/root/main/disadiffpayitem/emplnm");
  569. model.setValue("/root/main/disadiffpayitem/emplnm",emplnm);
  570. submit("TRRPA01304");
  571. ]]>
  572. </script>
  573. </button>
  574. <input id="input1" ref="/root/send/searchlist/workgbn" visibility="hidden" style="left:1075px; top:15px; width:40px; height:19px; "/>
  575. <input id="ipt_adjtamt" ref="/root/main/disadiffpayitem/adjtamt" class="input_s_essential" maxlength="9" format="(-)#,###" style="left:103px; top:633px; width:124px; height:19px; text-align:right; ">
  576. <script type="javascript" ev:event="xforms-value-changed">
  577. <![CDATA[
  578. ftotPenPayAmt();
  579. ]]>
  580. </script>
  581. </input>
  582. <caption id="caption1" class="cell_1" style="left:0px; top:655px; width:100px; height:23px; vertical-align:middle; ">비 고</caption>
  583. <input id="ipt_cmt" ref="/root/main/disadiffpayitem/cmt" class="input_search" maxlength="100" style="left:103px; top:658px; width:355px; height:19px; "/>
  584. <line id="line3" class="line_2" style="x1:0px; y1:653px; x2:460px; y2:653px; "/>
  585. <input id="ipt_notipensinsuamt" ref="/root/main/disadiffpayitem/notipensinsuamt" class="input_s_essential" disabled="true" maxlength="9" format="(-)#,###" style="left:333px; top:633px; width:125px; height:19px; text-align:right; "/>
  586. <caption id="caption4" class="search_name" style="left:875px; top:20px; width:81px; height:17px; ">근무상태:</caption>
  587. <select1 id="cmb_preststatcd" ref="/root/send/searchlist/preststatcd" class="combo_s_essential" appearance="minimal" style="left:955px; top:20px; width:95px; height:19px; ">
  588. <choices>
  589. <itemset>
  590. <label/>
  591. <value/>
  592. </itemset>
  593. </choices>
  594. </select1>
  595. </group>
  596. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  597. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  598. <button id="button3" class="btn4_letter4" style="left:847px; top:3px; width:80px; height:22px; ">
  599. <caption>기관확정</caption>
  600. <script type="javascript" ev:event="DOMActivate">
  601. <![CDATA[
  602. if(!isRequiredControls("ipt_notiym"))return;
  603. var retMes = messageBox("자료를 확정 하시겠습니까?", "Q999");
  604. if ( retMes != 6) {
  605. return;
  606. }
  607. var notiym=model.getValue("/root/send/searchlist/notiym");
  608. model.setValue("/root/send/doduynlist/notiym",notiym);
  609. model.setValue("/root/send/doduynlist/workgbn","I");
  610. submit("TRRPA03702");
  611. var medicnfmyn=model.getValue("/root/temp/medicnfmyn");
  612. var instcnfmyn=model.getValue("/root/temp/instcnfmyn");
  613. if(medicnfmyn !='Y'){
  614. messageBox("확정할 국민연금 자료가 ","I004");
  615. return;
  616. }
  617. if(instcnfmyn =='Y'){
  618. messageBox("해당월의 자료는 이미 확정 ","I001");
  619. return;
  620. }
  621. submit("TXRPA03703");
  622. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  623. messageBox("작업이","I001");
  624. }
  625. ]]>
  626. </script>
  627. </button>
  628. <button id="button4" class="btn4_letter4" style="left:929px; top:3px; width:80px; height:22px; ">
  629. <caption>확정취소</caption>
  630. <script type="javascript" ev:event="DOMActivate">
  631. <![CDATA[
  632. if(!isRequiredControls("ipt_notiym"))return;
  633. var retMes = messageBox("기관확정을 취소 하시겠습니까?", "Q999");
  634. if ( retMes != 6) {
  635. return;
  636. }
  637. var notiym=model.getValue("/root/send/searchlist/notiym");
  638. model.setValue("/root/send/doduynlist/notiym",notiym);
  639. model.makeValue("/root/send/doduynlist/workgbn","D");
  640. // model.makeValue("/root/send/report/togglegbn","D");
  641. submit("TRRPA03702");
  642. var instcnfmyn=model.getValue("/root/temp/instcnfmyn");
  643. var payrefltyn=model.getValue("/root/temp/payrefltyn");
  644. if(payrefltyn =='Y' ){
  645. messageBox("급여반영이 완료된 자료는 취소 ","E001");
  646. return;
  647. }
  648. if(instcnfmyn !='Y' ){
  649. messageBox("취소할 자료가 ","I004");
  650. return;
  651. }
  652. submit("TXRPA03703");
  653. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  654. messageBox("작업이","I001");
  655. }
  656. ]]>
  657. </script>
  658. </button>
  659. <button id="button5" class="btn4_letter2" style="left:1081px; top:3px; width:56px; height:22px; ">
  660. <caption>삭제</caption>
  661. <script type="javascript" ev:event="DOMActivate">
  662. <![CDATA[
  663. var retMes = messageBox("삭제 하시겠습니까?", "Q999");
  664. if ( retMes != 6) {
  665. return;
  666. }
  667. var nitiym=model.getValue("/root/main/disadiffpayitem/notiym");
  668. var seqno=model.getValue("/root/main/disadiffpayitem/seqno");
  669. var notigbn = model.getValue("/root/main/disadiffpayitem/notigbn");
  670. model.setValue("/root/send/doduynlist/seqno",seqno);
  671. model.setValue("/root/send/doduynlist/notiym",nitiym);
  672. model.setValue("/root/send/doduynlist/notigbn",notigbn);
  673. model.setValue("/root/send/doduynlist/workgbn","3");
  674. submit("TRRPA03702");
  675. var instmodiseqnoyn=model.getValue("/root/temp/instmodiseqnoyn");
  676. var instcnfmyn=model.getValue("/root/temp/instcnfmyn");
  677. if(instcnfmyn =='Y'){
  678. messageBox("기관확정이 완료된 고지월은 정정 ","E001");
  679. return;
  680. }
  681. misfGridIUD(grd_insurancensticorr,"D");
  682. model.resetInstanceNode("/root/main/disadiffpayitem");
  683. misfSave("TXRPA03701");
  684. model.refresh();
  685. ]]>
  686. </script>
  687. </button>
  688. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  689. <caption>저장</caption>
  690. <script type="javascript" ev:event="DOMActivate">
  691. <![CDATA[
  692. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  693. if ( retMes != 6) {
  694. return;
  695. }
  696. var updtdata = getGridUpdateData(grd_insurancensticorr);
  697. var notiym=model.getValue("/root/send/searchlist/notiym");
  698. model.setValue("/root/send/doduynlist/notiym",notiym);
  699. model.makeValue("/root/send/doduynlist/workgbn","D");
  700. // model.makeValue("/root/send/report/togglegbn","D");
  701. submit("TRRPA03702");
  702. /* var payrefltyn=model.getValue("/root/temp/payrefltyn");
  703. if(payrefltyn =='Y' ){
  704. messageBox("급여반영이 완료된 자료는 저장 ","E001");
  705. return;
  706. }*/
  707. if (updtdata == "" ) {
  708. messageBox("변경된 데이터가","I004");
  709. return;
  710. }
  711. misfSave("TXRPA03701");
  712. ]]>
  713. </script>
  714. </button>
  715. <button id="btn_clear" class="btn4_letter3" style="left:1011px; top:3px; width:68px; height:22px; ">
  716. <caption>초기화</caption>
  717. <script type="javascript" ev:event="DOMActivate">
  718. <![CDATA[
  719. var updtdata = getGridUpdateData(grd_insurancensticorr);
  720. if (updtdata != "" ) {
  721. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  722. if (ret != 6) { // not OK
  723. return;
  724. }
  725. }
  726. fInitialize();
  727. ipt_notiym_i.disabled=false;
  728. ipt_rrgstno1_i.disabled=false;
  729. ipt_rrgstno2_i.disabled=false;
  730. ipt_emplnm_i.disabled=false;
  731. ]]>
  732. </script>
  733. </button>
  734. </group>
  735. <button id="btn_exceldetail" class="btn2_letter4" style="left:1130px; top:86px; width:64px; height:19px; ">
  736. <caption>엑셀저장</caption>
  737. <script type="javascript" ev:event="DOMActivate">
  738. <![CDATA[
  739. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  740. if (fileName != "")
  741. {
  742. grd_insurancensticorr.saveExcel(fileName, "SheetName", true, true, "", "");
  743. }
  744. ]]>
  745. </script>
  746. </button>
  747. </xhtml:body>
  748. </xhtml:html>