SMRWD12100_저축사항등록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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. <grnt>
  11. <grntlist1>
  12. <emplno/>
  13. <emplnm/>
  14. <dutplcedeptnm/>
  15. <gaibymd/>
  16. <mangiymd/>
  17. <bankcode/>
  18. <bankno/>
  19. <gigan/>
  20. <wolbulibsum/>
  21. <haejiymd/>
  22. <totbulibcnt/>
  23. <totbulibsum/>
  24. <svgubun/>
  25. </grntlist1>
  26. </grnt>
  27. </main>
  28. <send>
  29. <paydedu>
  30. <instcd/>
  31. <emplno/>
  32. <emplnm/>
  33. <svgubun/>
  34. </paydedu>
  35. <save>
  36. <paydedulist/>
  37. </save>
  38. </send>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. misfGridInit(grd_grntpsn1);
  44. misfMsterDetailSet(grd_grntpsn1,null, "TRRWD12101" ,"Y");
  45. var curdate = getCurrentDate();
  46. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  47. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  48. misfComboComCdListMulti("R0410,R0242","cmb_svgubun,grd_grntpsn1.bankcode");
  49. model.refresh();
  50. ]]>
  51. </script>
  52. <submission id="TRRWD12101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  53. <submission id="TXRWD12101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  59. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  60. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  61. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  62. </xhtml:head>
  63. <xhtml:body>
  64. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  65. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">저축 사항 등록</caption>
  66. </group>
  67. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  68. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  69. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
  70. <caption>조회</caption>
  71. <script type="javascript" ev:event="DOMActivate">
  72. <![CDATA[
  73. if (model.getValue("/root/send/paydedu/svgubun") == ""){
  74. messageBox("저축구분은 필수 선택항목입니다.", "E999", "");
  75. return;
  76. }
  77. misfMsterDetailRetrieve();
  78. ]]>
  79. </script>
  80. </button>
  81. <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  82. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1192px; y2:71px; "/>
  83. <caption id="caption1" class="tit_2" style="left:2px; top:56px; width:198px; height:14px; ">저축사항등록</caption>
  84. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:1013px; top:50px; width:53px; height:19px; ">
  85. <caption>행추가</caption>
  86. <script type="javascript" ev:event="DOMActivate">
  87. <![CDATA[
  88. if (model.getValue("/root/send/paydedu/svgubun") == ""){
  89. messageBox("저축구분은 필수 선택항목입니다.", "E999", "");
  90. return;
  91. }
  92. misfGridIUD(grd_grntpsn1, "A");
  93. ]]>
  94. </script>
  95. </button>
  96. <button id="btn_inputexcel" class="btn2_letter4" visibility="hidden" style="left:860px; top:50px; width:64px; height:19px; ">
  97. <caption>엑셀입력</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  101. grd_grntpsn1.loadExcel(fileName, 1, true);
  102. for (var i = 1; i < grd_grntpsn1.rows; i ++){
  103. grd_grntpsn1.rowStatus(i) = 1;
  104. }
  105. grd_grntpsn1.refresh();
  106. ]]>
  107. </script>
  108. </button>
  109. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1069px; top:50px; width:53px; height:19px; ">
  110. <caption>행삭제</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. misfGridIUD(grd_grntpsn1, "D");
  114. ]]>
  115. </script>
  116. </button>
  117. <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" appearance="minimal" style="left:88px; top:17px; width:125px; height:19px; ">
  118. <choices>
  119. <itemset>
  120. <label/>
  121. <value/>
  122. </itemset>
  123. </choices>
  124. </select1>
  125. <caption id="caption2" class="search_name" style="left:22px; top:18px; width:61px; height:17px; ">기관 :</caption>
  126. <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist1" caption="사원번호^성명^부서^가입일^만기일^은행^계좌번호^기간^월불입액^해지일^납입횟수^납입총액^caption2" colsep="^" colwidth="105, 76, 144, 97, 93, 110, 121, 55, 83, 100, 67, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1192px; height:660px; ">
  127. <col ref="emplno" type="inputbutton"/>
  128. <col ref="emplnm"/>
  129. <col ref="dutplcedeptnm"/>
  130. <col ref="gaibymd" type="inputdate"/>
  131. <col ref="mangiymd" format="yyyy-mm-dd" style="text-align:center; "/>
  132. <col ref="bankcode" type="combo">
  133. <choices>
  134. <itemset>
  135. <label/>
  136. <value/>
  137. </itemset>
  138. </choices>
  139. </col>
  140. <col ref="bankno" type="input" style="text-align:center; "/>
  141. <col ref="gigan" type="input" format="###" style="text-align:center; "/>
  142. <col ref="wolbulibsum" type="input" format="#,###" style="text-align:right; "/>
  143. <col ref="haejiymd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  144. <col ref="totbulibcnt" type="input" format="###" style="text-align:center; "/>
  145. <col ref="totbulibsum" type="input" format="#,###" style="text-align:right; "/>
  146. <col ref="svgubun" visibility="hidden"/>
  147. <script type="javascript" ev:event="onbuttonclick">
  148. <![CDATA[
  149. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "emplno" ) { //계산기준코드
  150. var recv_list = "emplno,emplnm";
  151. rpbfOpenPopUpList("SPRPB00101", grd_grntpsn1, recv_list,"","N");
  152. model.refresh();
  153. }
  154. ]]>
  155. </script>
  156. <script type="javascript" ev:event="xforms-value-changed">
  157. <![CDATA[
  158. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "emplno" ) { //계산기준코드
  159. var recv_list = "emplno,emplnm";
  160. misfValidationCheck("01-1", "", recv_list);
  161. model.refresh();
  162. }
  163. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "gigan" || grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "gaibymd") { //계산기준코드
  164. var sgigan = model.getValue("/root/main/grnt/grntlist1[" + grd_grntpsn1.row + "]/gigan");
  165. var symd = model.getValue("/root/main/grnt/grntlist1[" + grd_grntpsn1.row + "]/gaibymd");
  166. if (sgigan != "" && symd != ""){
  167. var eymd = symd.toDate().getAddDate(parseFloat(sgigan),"Y").getDateFormat("YYYYMMDD")
  168. model.setValue("/root/main/grnt/grntlist1[" + grd_grntpsn1.row + "]/mangiymd", eymd)
  169. model.refresh();
  170. }
  171. }
  172. ]]>
  173. </script>
  174. </datagrid>
  175. <caption id="caption7" class="search_name" style="left:475px; top:17px; width:63px; height:17px; ">사번 :</caption>
  176. <button id="btn_emplno" class="icon_search" style="left:625px; top:17px; width:16px; height:16px; ">
  177. <caption/>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. var recv_list = "emplno,emplnm" ;
  181. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  182. model.refresh();
  183. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  184. btn_search.dispatch("DOMActivate");
  185. }
  186. ]]>
  187. </script>
  188. </button>
  189. <input id="ipt_emplnos" ref="/root/send/paydedu/emplno" class="input_essential" style="left:536px; top:17px; width:87px; height:19px; ">
  190. <script type="javascript" ev:event="onkeyup">
  191. <![CDATA[
  192. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  193. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  194. inputEnterKey("btn_search", "DOMActivate");
  195. }
  196. ]]>
  197. </script>
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. var recv_list = "emplno,emplnm" ;
  201. rpbfValidationCheck("EMPLNO", recv_list);
  202. model.refresh();
  203. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  204. btn_search.dispatch("DOMActivate");
  205. }
  206. ]]>
  207. </script>
  208. </input>
  209. <input id="ipt_emplnms" ref="/root/send/paydedu/emplnm" class="input_default" style="left:642px; top:17px; width:141px; height:19px; ">
  210. <script type="javascript" ev:event="onkeyup">
  211. <![CDATA[
  212. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  213. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  214. inputEnterKey("btn_search", "DOMActivate");
  215. }
  216. ]]>
  217. </script>
  218. <script type="javascript" ev:event="xforms-value-changed">
  219. <![CDATA[
  220. var recv_list = "emplno,emplnm" ;
  221. rpbfValidationCheck("EMPLNM", recv_list);
  222. model.refresh();
  223. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  224. btn_search.dispatch("DOMActivate");
  225. }
  226. ]]>
  227. </script>
  228. </input>
  229. <button id="btn_savegrntpsn1excel" class="btn2_letter4" style="left:1127px; top:50px; width:64px; height:19px; ">
  230. <caption>엑셀저장</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  234. if (fileName != "")
  235. {
  236. grd_grntpsn1.saveExcel(fileName);
  237. }
  238. ]]>
  239. </script>
  240. </button>
  241. <caption id="caption3" class="search_name" style="left:242px; top:18px; width:86px; height:17px; ">저축구분 :</caption>
  242. <select1 id="cmb_svgubun" ref="/root/send/paydedu/svgubun" class="combo_s_essential" appearance="minimal" style="left:331px; top:17px; width:125px; height:19px; ">
  243. <choices>
  244. <itemset>
  245. <label/>
  246. <value/>
  247. </itemset>
  248. </choices>
  249. <script type="javascript" ev:event="xforms-value-changed">
  250. <![CDATA[
  251. btn_search.dispatch("DOMActivate");
  252. ]]>
  253. </script>
  254. </select1>
  255. </group>
  256. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  257. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  258. <caption>저장</caption>
  259. <script type="javascript" ev:event="DOMActivate">
  260. <![CDATA[
  261. for (var i = 1; i < grd_grntpsn1.rows; i ++){
  262. if (model.getValue("/root/main/grnt/grntlist1[" + i + "]/emplno") == ""){
  263. messageBox(i + "번째 사원번호는 필수 입력항목입니다.", "E999", "");
  264. return;
  265. }
  266. if (model.getValue("/root/main/grnt/grntlist1[" + i + "]/gaibymd") == ""){
  267. messageBox(i + "번째 가입일은 필수 입력항목입니다.", "E999", "");
  268. return;
  269. }
  270. if (model.getValue("/root/main/grnt/grntlist1[" + i + "]/gigan") == ""){
  271. messageBox(i + "번째 기간은 필수 입력항목입니다.", "E999", "");
  272. return;
  273. }
  274. if (model.getValue("/root/main/grnt/grntlist1[" + i + "]/bankcode") == ""){
  275. messageBox(i + "번째 은행코드는 필수 선택항목입니다.", "E999", "");
  276. return;
  277. }
  278. if (model.getValue("/root/main/grnt/grntlist1[" + i + "]/wolbulibsum") == "" || model.getValue("/root/main/grnt/grntlist1[" + i + "]/wolbulibsum") == "0"){
  279. messageBox(i + "번째월불입액은 필수 입력항목입니다.", "E999", "");
  280. return;
  281. }
  282. }
  283. if (misfSave("TXRWD12101")){
  284. btn_search.dispatch("DOMActivate");
  285. }
  286. ]]>
  287. </script>
  288. </button>
  289. <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1069px; top:3; width:68px; height:22px; ">
  290. <caption>초기화</caption>
  291. </button>
  292. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  293. </group>
  294. </xhtml:body>
  295. </xhtml:html>