SMRWP22000_가족수당신청.xrw 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="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. <fmlyheader>
  11. <emplno/>
  12. <emplnm/>
  13. <empfirsebornyn/>
  14. <empmarryyn/>
  15. <spousejob/>
  16. <spousephone/>
  17. <rregno/>
  18. <jobkindcd/>
  19. <jobkindnm/>
  20. <jobposcd/>
  21. <jobposnm/>
  22. <dutplcedeptcd/>
  23. <dutplcedeptnm/>
  24. <fstappntdd/>
  25. <retiredd/>
  26. <residncaddr/>
  27. <residnczipcd1/>
  28. <residnczipcd2/>
  29. <mpphonno/>
  30. <cntctel/>
  31. <hosinseqno/>
  32. <aplctndate/>
  33. </fmlyheader>
  34. <fmlymaster/>
  35. </main>
  36. <send>
  37. <save>
  38. </save>
  39. <emplno/>
  40. <emplnm/>
  41. <dutunitcd/>
  42. <dutunitnm/>
  43. <save20>
  44. <emplno20/>
  45. <rregno20/>
  46. <payyn20/>
  47. <aplctnflag20/>
  48. <aplctndate20/>
  49. </save20>
  50. <rregno/>
  51. </send>
  52. <temp>
  53. <data2/>
  54. </temp>
  55. <init>
  56. </init>
  57. <hidden>
  58. <savelist>
  59. <fmlyheader/>
  60. <fmlymaster/>
  61. </savelist>
  62. </hidden>
  63. <temp2>
  64. <fmlyrregno>
  65. <emplno/>
  66. <emplnm/>
  67. </fmlyrregno>
  68. </temp2>
  69. </root>
  70. </instance>
  71. <submission id="TRRWP22001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main"/>
  72. <submission id="TXRWP22001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/savelist" replace="instance" resultref="/root/temp"/>
  73. <submission id="TXRWP22002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save20" replace="instance" resultref="/root/temp"/>
  74. <submission id="TRRWP22003" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/temp2"/>
  75. </model>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  81. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  82. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  83. <script type="javascript" ev:event="xforms-ready">
  84. <![CDATA[
  85. fInitialize();
  86. ]]>
  87. </script>
  88. <script type="javascript">
  89. <![CDATA[
  90. function fInitialize()
  91. {
  92. misfGridInit(dtg_fmlymaster);
  93. misfComboComCdListMulti("R0077,R0061,R0062","dtg_fmlymaster.relation,cmb_jobkind,cmb_jobpos");
  94. btnAdd.disabled = true;
  95. btnDel.disabled = true;
  96. btn20save.disabled = true;
  97. // 부서가 총무팀일 경우, 사번 전체조회가능, 20세이상, 엑셀저장버튼 Disabled = false
  98. var logindeptcd = getUserInfo("dutplcecd");
  99. var loginid = getUserInfo("userid");
  100. // 4020300000
  101. if( logindeptcd == "4020323000" || logindeptcd == "4020327000" || loginid == "97089" ){
  102. btn20save.visible = true;
  103. btn_excelsave.visible = true;
  104. ipt_emplno.disabled = false;
  105. btn_emplno.disabled = false;
  106. }else{
  107. ipt_emplno.disabled = true;
  108. btn_emplno.disabled = true;
  109. btn20save.visible = false;
  110. btn_excelsave.visible = false;
  111. }
  112. if(instance1.selectNodes("/root/temp/data2").length > 0)
  113. {
  114. if( model.getValue("/root/temp/data2/emplno") != "" ){
  115. ipt_emplno.value = model.getValue("/root/temp/data2/emplno");
  116. }else{
  117. model.setValue("/root/send/emplno", getUserInfo("userid"));
  118. model.setValue("/root/send/emplnm", getUserInfo("usernm"));
  119. }
  120. }else{
  121. model.setValue("/root/send/emplno", getUserInfo("userid"));
  122. model.setValue("/root/send/emplnm", getUserInfo("usernm"));
  123. }
  124. btn_search.dispatch("DOMActivate");
  125. model.refresh();
  126. }
  127. function fSave(){
  128. var len = getNodesetCount("/root/main/fmlymaster");
  129. var age = 0;
  130. var relation = "";
  131. var job = "";
  132. var payyn = "";
  133. if( len < 1 ){
  134. messageBox("부양가족 데이터를 입력해주세요.", "E999", "");
  135. return;
  136. }
  137. for( var i = 1 ; i <= len ; i++){
  138. age = model.getValue("/root/main/fmlymaster[" + i + "]/relage");
  139. relation = model.getValue("/root/main/fmlymaster[" + i + "]/relation");
  140. job = model.getValue("/root/main/fmlymaster[" + i + "]/job");
  141. payyn = model.getValue("/root/main/fmlymaster[" + i + "]/payyn");
  142. if( age != "" ){
  143. if( ( relation == "05" && age < 60 && payyn == "Y" ) || ( relation == "07" && age < 55 && payyn == "Y" )
  144. || ( relation == "13" && age >19 && payyn == "Y" ) || ( relation == "14" && age > 19 && payyn == "Y" ) ){
  145. model.setValue("/root/main/fmlymaster[" + i + "]/payyn", "N");
  146. messageBox("(부)만60세이상, (모)만55세이상, (자)만20세미만의 \n경우에만 가족수당이 지급가능합니다.", "E999", "");
  147. model.refresh();
  148. return;
  149. }
  150. }else{
  151. messageBox(i+"번째 행의 나이를 확인해주세요.", "E999", "");
  152. return;
  153. }
  154. }
  155. var updtdata_m = getGridUpdateData(dtg_fmlymaster);
  156. var updtdata_h = getGridUpdateData(dtg_fmlyheader);
  157. if (updtdata_m == "" && updtdata_h == "" ){
  158. messageBox("변경된 데이터가","I004");
  159. return;
  160. }
  161. var num = 0;
  162. if( len > 0 ){
  163. for( var i = 1; i <= len ; i++ ){
  164. num = 0;
  165. if( model.getValue("/root/main/fmlymaster[" + i + "]/aplctndate" ) == "" ){
  166. messageBox("신청일자는 필수입력값입니다.", "E999", "");
  167. return;
  168. }
  169. if( model.getValue("/root/main/fmlymaster[" + i + "]/aplctnflag" ) == "" ){
  170. messageBox("신청구분은 필수입력값입니다.", "E999", "");
  171. return;
  172. }
  173. if( model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ) == "" ){
  174. messageBox("주민번호는 필수입력값입니다.", "E999", "");
  175. return;
  176. }
  177. model.setValue("/root/send/rregno", model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ) );
  178. if( submit("TRRWP22003") ){
  179. if( model.getValue("/root/temp2/fmlyrregno/emplno") != ""){
  180. messageBox( "해당 주민등록번호는 우리병원직원의 주민등록번호입니다.\n[ " + i + "번째 행 : " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(0,6) + " - " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(6,13) + " ] ", "E999", "");
  181. return;
  182. }
  183. }
  184. for( var j = 1; j <= len ; j++ ){
  185. if( model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ) == model.getValue("/root/main/fmlymaster[" + j + "]/rregno" ) ){
  186. if( model.getValue("/root/main/fmlymaster[" + i + "]/aplctnflag" ) == model.getValue("/root/main/fmlymaster[" + j + "]/aplctnflag") ){
  187. num++;
  188. }
  189. }
  190. if( num > 1 ){
  191. messageBox( "중복된 주민번호가 존재합니다.\n[ " + i + "번째 행 : " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(0,6) + " - " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(6,13) + " ] ", "E999", "");
  192. return;
  193. }
  194. }
  195. if( model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ).length != 13 ){
  196. messageBox( "잘못된 형식의 주민번호가 존재합니다.\n[ " + i + "번째 행 : " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(0,6) + " - " + model.getValue( "/root/main/fmlymaster[" + i + "]/rregno" ).substring(6,13) + " ] ", "E999", "");
  197. return;
  198. }
  199. }
  200. }
  201. model.copyNode("/root/hidden/savelist/fmlyheader", "/root/main/fmlyheader");
  202. if( dtg_fmlyheader.rowStatus(1) == 0 || dtg_fmlyheader.rowStatus(1) == 1 || dtg_fmlyheader.rowStatus(1) == 3 ){
  203. model.makeValue("/root/hidden/savelist/fmlyheader/rowstatus", "i" );
  204. }else if( dtg_fmlyheader.rowStatus(1) == 2 ){
  205. model.makeValue("/root/hidden/savelist/fmlyheader/rowstatus", "u" );
  206. }else if( dtg_fmlyheader.rowStatus(1) == 4 || dtg_fmlyheader.rowStatus(1) == 5 || dtg_fmlyheader.rowStatus(1) == 6 ){
  207. model.makeValue("/root/hidden/savelist/fmlyheader/rowstatus", "d" );
  208. }
  209. model.makeValue("/root/hidden/savelist/fmlymaster",dtg_fmlymaster.getUpdateData() );
  210. if( submit("TXRWP22001") ){
  211. messageBox("저장되었습니다.", "I000");
  212. btn_search.dispatch("DOMActivate");
  213. }
  214. model.refresh();
  215. }
  216. ]]>
  217. </script>
  218. </xhtml:head>
  219. <xhtml:body style="margin-left:8; margin-right:8; ">
  220. <group id="group2" scroll="auto" style="left:0px; top:25px; width:1195px; height:744px; ">
  221. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:1195px; height:40px; "/>
  222. <caption id="caption278" class="tit_2" style="left:0px; top:52px; width:162px; height:13px; ">사원정보</caption>
  223. <line id="line207" class="line_1" style="x1:0px; y1:181px; x2:1192px; y2:180px; "/>
  224. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1113px; top:11px; width:56px; height:22px; text-align:left; ">
  225. <caption>조회</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. if(model.getValue("/root/send/emplno") == "" )
  229. {
  230. messageBox("사원번호를 입력해주세요.", "E999");
  231. return;
  232. }
  233. if( submit("TRRWP22001") ){
  234. if( model.getValue( "/root/main/fmlyheader/emplno" ) != "" ){
  235. btnAdd.disabled = false;
  236. btnDel.disabled = false;
  237. btn20save.disabled = false;
  238. }
  239. if( model.getValue("/root/send/emplnm") == "" ){
  240. model.setValue( "/root/send/emplnm", model.getValue("/root/main/fmlyheader/emplnm") );
  241. }
  242. // 부서가 총무팀일 경우에만 지급여부, 비고란 수정가능
  243. var logindeptcd = getUserInfo("dutplcecd");
  244. var loginid = getUserInfo("userid");
  245. if( logindeptcd == "4020323000" || logindeptcd == "4020327000" || loginid == "97089" ){ //4020300000
  246. dtg_fmlymaster.colDisabled(14) = false;
  247. dtg_fmlymaster.colDisabled(17) = false;
  248. }else{
  249. dtg_fmlymaster.colDisabled(14) = true;
  250. dtg_fmlymaster.colDisabled(17) = true;
  251. }
  252. for( var i = 1 ; i < dtg_fmlymaster.rows ; i++ ){
  253. if( model.getValue("/root/main/fmlymaster[" + i + "]/approveflag") == "Y" ){
  254. dtg_fmlymaster.cellAttribute("disabled", i, 1 , i, 20 ) = "true";
  255. }
  256. }
  257. }
  258. ]]>
  259. </script>
  260. </button>
  261. <line id="line3" class="line_4" style="x1:1080px; y1:8px; x2:1080px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  262. <button id="btn_excelsave" class="btn2_letter4" navindex="6" style="left:1018px; top:158px; width:64px; height:19px; ">
  263. <caption>엑셀저장</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. var fileName = window.fileDialog("save", ",", false, "부양가족사항_"+getCurrentDate() , "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  267. if (fileName != "")
  268. {
  269. dtg_fmlymaster.saveExcel(fileName);
  270. }
  271. ]]>
  272. </script>
  273. </button>
  274. <datagrid id="dtg_fmlymaster" nodeset="/root/main/fmlymaster" caption="신청일자^신청구분^승인여부^사번^성명^관계^가족성명^주민번호^나이^신고사유^사유발생일^직업^지급여부^동거여부^장남여부^18세이하형제자매여부^장애여부^최초일자^수정일자^비고" colsep="^" colwidth="90, 63, 70, 53, 64, 54, 60, 96, 36, 110, 90, 56, 55, 55, 55, 130, 55, 90, 90, 125, 100, 100, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:184px; width:1193px; height:532px; ">
  275. <col ref="aplctndate" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  276. <col ref="aplctnflag" type="combo" style="text-align:center; ">
  277. <choices>
  278. <item>
  279. <label>추가</label>
  280. <value>1</value>
  281. </item>
  282. <item>
  283. <label>상실</label>
  284. <value>2</value>
  285. </item>
  286. </choices>
  287. </col>
  288. <col disabled="true" ref="approveflag" type="combo" style="text-align:center; ">
  289. <choices>
  290. <item>
  291. <label>확인완료</label>
  292. <value>Y</value>
  293. </item>
  294. <item>
  295. <label>확인중</label>
  296. <value>N</value>
  297. </item>
  298. </choices>
  299. </col>
  300. <col ref="emplno" style="text-align:center; "/>
  301. <col ref="emplnm" format="yyyy-mm-dd" style="text-align:center; "/>
  302. <col editmode="inputsearch" ref="relation" type="combo" style="text-align:center; ">
  303. <choices>
  304. <itemset>
  305. <label/>
  306. <value/>
  307. </itemset>
  308. </choices>
  309. </col>
  310. <col ref="relname" type="input" style="text-align:center; "/>
  311. <col ref="rregno" type="input" format="999999-9999999" style="text-align:center; "/>
  312. <col ref="relage" type="input" style="text-align:center; "/>
  313. <col ref="reason" type="input" style="text-align:left; "/>
  314. <col ref="reasonindate" type="inputdate" style="text-align:center; "/>
  315. <col ref="job" type="combo" style="text-align:center; ">
  316. <choices>
  317. <item>
  318. <label>공무원</label>
  319. <value>1</value>
  320. </item>
  321. <item>
  322. <label>기타</label>
  323. <value>2</value>
  324. </item>
  325. </choices>
  326. </col>
  327. <col ref="payyn" type="combo" style="text-align:center; ">
  328. <choices>
  329. <item>
  330. <label>Y</label>
  331. <value>Y</value>
  332. </item>
  333. <item>
  334. <label>N</label>
  335. <value>N</value>
  336. </item>
  337. </choices>
  338. </col>
  339. <col ref="togetheryn" type="combo" style="text-align:center; ">
  340. <choices>
  341. <item>
  342. <label>Y</label>
  343. <value>Y</value>
  344. </item>
  345. <item>
  346. <label>N</label>
  347. <value>N</value>
  348. </item>
  349. </choices>
  350. </col>
  351. <col ref="firsebornyn" type="combo" style="text-align:center; ">
  352. <choices>
  353. <item>
  354. <label>Y</label>
  355. <value>Y</value>
  356. </item>
  357. <item>
  358. <label>N</label>
  359. <value>N</value>
  360. </item>
  361. </choices>
  362. </col>
  363. <col ref="under18" type="combo" style="text-align:center; ">
  364. <choices>
  365. <item>
  366. <label>Y</label>
  367. <value>Y</value>
  368. </item>
  369. <item>
  370. <label>N</label>
  371. <value>N</value>
  372. </item>
  373. </choices>
  374. </col>
  375. <col ref="disabledyn" type="combo" style="text-align:center; ">
  376. <choices>
  377. <item>
  378. <label>Y</label>
  379. <value>Y</value>
  380. </item>
  381. <item>
  382. <label>N</label>
  383. <value>N</value>
  384. </item>
  385. </choices>
  386. </col>
  387. <col disabled="true" ref="fstrgstdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  388. <col disabled="true" ref="lastupdtdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  389. <col ref="note" type="input" style="text-align:left; "/>
  390. <col ref="bfrregno" type="input" visibility="hidden" format="999999-9999999" style="text-align:center; "/>
  391. <col ref="approverid" visibility="hidden"/>
  392. <col ref="approvedate" visibility="hidden"/>
  393. <col ref="deaplctndate" visibility="hidden"/>
  394. <col ref="deaplctnflag" visibility="hidden"/>
  395. <script type="javascript" ev:event="xforms-value-changed">
  396. <![CDATA[
  397. // 공무원은 가족수당을 지급하지 않는다.
  398. // 부 만60세이상, 모 만55세이상, 자 만20세미만일 경우에 가족수당 지급.
  399. var age = model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/relage");
  400. var relation = model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/relation");
  401. var job = model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/job");
  402. var payyn = model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn");
  403. if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "job" || dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "relation" ){
  404. // 05 부 , 07 모 , 13 아들 , 14 딸
  405. if( age != "" ){
  406. if( ( relation == "05" && age >= 60 ) || ( relation == "07" && age >= 55 ) || ( relation == "13" && age < 20 ) || ( relation == "14" && age < 20 ) ){
  407. model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn", "Y");
  408. if(dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == 0 ){
  409. dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) = 2;
  410. }
  411. }else{
  412. model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn", "N");
  413. if(dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == 0 ){
  414. dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) = 2;
  415. }
  416. }
  417. }
  418. if( dtg_fmlymaster.valueMatrix(dtg_fmlymaster.row, dtg_fmlymaster.colRef("job")) == "1" && payyn == "Y" ){
  419. model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn" , "N");
  420. dtg_fmlymaster.cellStyle("disabled", dtg_fmlymaster.row, dtg_fmlymaster.col ) = "true";
  421. messageBox("공무원은 가족수당을 지급하지않습니다.", "E999", "");
  422. return;
  423. }else{
  424. dtg_fmlymaster.cellStyle("disabled", dtg_fmlymaster.row, dtg_fmlymaster.col ) = "false";
  425. }
  426. }
  427. if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "rregno" ){
  428. if( isResidentNo( model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/rregno")) ){
  429. var calage = getFullAge( model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/rregno") );
  430. model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/relage", calage);
  431. }else{
  432. model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/rregno", "");
  433. messageBox("유효하지않은 주민등록번호입니다. 다시확인해주십시오.", "E999", "");
  434. return;
  435. }
  436. }
  437. if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "payyn" ){
  438. if( age != "" ){
  439. if( ( relation == "05" && age < 60 && payyn == "Y" ) || ( relation == "07" && age < 55 && payyn == "Y" )
  440. || ( relation == "13" && age >19 && payyn == "Y" ) || ( relation == "14" && age > 19 && payyn == "Y" ) ){
  441. model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/payyn", "N");
  442. messageBox("(부)만60세이상, (모)만55세이상, (자)만20세미만의 \n경우에만 가족수당이 지급가능합니다.", "E999", "");
  443. model.refresh();
  444. return;
  445. }
  446. }
  447. }
  448. if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "aplctndate" && dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == "1" ||
  449. dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "aplctndate" && dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == "3" ){
  450. model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/deaplctndate", model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/aplctndate") );
  451. }
  452. if( dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "aplctnflag" && dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == "1" ||
  453. dtg_fmlymaster.colAttribute(dtg_fmlymaster.col,"ref") == "aplctnflag" && dtg_fmlymaster.rowStatus(dtg_fmlymaster.row) == "3" ){
  454. model.setValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/deaplctnflag", model.getValue("/root/main/fmlymaster[" + dtg_fmlymaster.row + "]/aplctnflag") );
  455. }
  456. model.refresh();
  457. ]]>
  458. </script>
  459. </datagrid>
  460. <caption id="caption1" class="search_name" style="left:20px; top:14px; width:86px; height:17px; ">사원번호 :</caption>
  461. <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" disabled="true" navindex="3" style="left:205px; top:12px; width:150px; height:19px; "/>
  462. <button id="btn_emplno" class="icon_search" style="left:185px; top:13px; width:16px; height:16px; ">
  463. <caption/>
  464. <script type="javascript" ev:event="DOMActivate">
  465. <![CDATA[
  466. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
  467. model.refresh();
  468. ]]>
  469. </script>
  470. </button>
  471. <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" navindex="3" style="left:111px; top:12px; width:70px; height:19px; text-align:center; ">
  472. <script type="javascript" ev:event="onkeypress">
  473. <![CDATA[
  474. if(event.keyCode == 13)
  475. {
  476. if(ipt_emplno.value == ipt_emplno.currentText) return;
  477. ipt_emplno.value = ipt_emplno.currentText;
  478. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  479. model.refresh();
  480. // btn_search.dispatch("DOMActivate");
  481. }
  482. ]]>
  483. </script>
  484. <script type="javascript" ev:event="xforms-value-changed">
  485. <![CDATA[
  486. rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
  487. model.refresh();
  488. // btn_search.dispatch("DOMActivate");
  489. ]]>
  490. </script>
  491. </input>
  492. <caption id="caption2" class="search_name" visibility="hidden" style="left:713px; top:14px; width:86px; height:17px; ">장남여부 :</caption>
  493. <caption id="caption3" class="search_name" visibility="hidden" style="left:390px; top:14px; width:65px; height:17px; ">성별 :</caption>
  494. <caption id="caption4" class="search_name" visibility="hidden" style="left:585px; top:14px; width:86px; height:17px; ">결혼여부 :</caption>
  495. <bool id="bool1" visibility="hidden" style="left:668px; top:10px; width:25px; height:25px; "/>
  496. <select1 id="radio1" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:454px; top:14px; width:105px; height:20px; border-style:none; ">
  497. <choices>
  498. <item>
  499. <label>남자</label>
  500. <value>1</value>
  501. </item>
  502. <item>
  503. <label>여자</label>
  504. <value>2</value>
  505. </item>
  506. </choices>
  507. </select1>
  508. <bool id="bool2" visibility="hidden" style="left:796px; top:10px; width:25px; height:25px; "/>
  509. <button id="btnDel" class="btn2_letter3" style="left:1138px; top:158px; width:53px; height:19px; ">
  510. <caption>행삭제</caption>
  511. <script type="javascript" ev:event="DOMActivate">
  512. <![CDATA[
  513. misfGridIUD(dtg_fmlymaster,"D");
  514. model.refresh();
  515. ]]>
  516. </script>
  517. </button>
  518. <button id="btnAdd" class="btn2_letter3" style="left:1083px; top:158px; width:53px; height:19px; ">
  519. <caption>행추가</caption>
  520. <script type="javascript" ev:event="DOMActivate">
  521. <![CDATA[
  522. var cnt = 0;
  523. misfGridIUD(dtg_fmlymaster,"A");
  524. cnt = getNodesetCount("/root/main/fmlymaster");
  525. model.setValue( "/root/main/fmlymaster[" + cnt + "]/emplno", model.getValue("/root/main/fmlyheader/emplno") );
  526. model.setValue( "/root/main/fmlymaster[" + cnt + "]/emplnm", model.getValue("/root/main/fmlyheader/emplnm") );
  527. model.setValue( "/root/main/fmlymaster[" + cnt + "]/fstrgstdt", getCurrentDate() );
  528. model.setValue( "/root/main/fmlymaster[" + cnt + "]/lastupdtdt", getCurrentDate() );
  529. model.setValue( "/root/main/fmlymaster[" + cnt + "]/reasonindate", getCurrentDate() );
  530. model.setValue( "/root/main/fmlymaster[" + cnt + "]/aplctndate", getCurrentDate() );
  531. model.setValue( "/root/main/fmlymaster[" + cnt + "]/deaplctndate", getCurrentDate() );
  532. model.setValue( "/root/main/fmlymaster[" + cnt + "]/approveflag", "N" );
  533. model.setValue("/root/main/fmlymaster[" + cnt + "]/togetheryn" , "N" );
  534. model.setValue("/root/main/fmlymaster[" + cnt + "]/firsebornyn" , "N" );
  535. model.setValue("/root/main/fmlymaster[" + cnt + "]/under18" , "N" );
  536. model.setValue("/root/main/fmlymaster[" + cnt + "]/disabledyn" , "N" );
  537. model.setValue("/root/main/fmlymaster[" + cnt + "]/job" , "2" );
  538. // model.setValue("/root/main/fmlymaster[" + cnt + "]/payyn" , "N" );
  539. dtg_fmlymaster.editCell();
  540. dtg_fmlymaster.col = 1;
  541. model.refresh();
  542. ]]>
  543. </script>
  544. </button>
  545. <button id="btn20save" class="btn5_letter4" style="left:952px; top:158px; width:64px; height:19px; ">
  546. <caption>20세이상</caption>
  547. <script type="javascript" ev:event="DOMActivate">
  548. <![CDATA[
  549. var len = getNodesetCount("/root/main/fmlymaster");
  550. if( len > 0 ){
  551. for( var i = 1; i <= len ; i++ ){ // 13 아들, 14 딸 자녀가 만20세 이상이 되면 지급여부에 자동 N처리
  552. if( ( model.getValue("/root/main/fmlymaster[" + i + "]/relation" ) == "13" && model.getValue("/root/main/fmlymaster[" + i + "]/relage" ) > 19 && model.getValue("/root/main/fmlymaster[" + i + "]/payyn" ) == "Y" )
  553. || ( model.getValue("/root/main/fmlymaster[" + i + "]/relation" ) == "14" && model.getValue("/root/main/fmlymaster[" + i + "]/relage" ) > 19 && model.getValue("/root/main/fmlymaster[" + i + "]/payyn" ) == "Y" ) ){
  554. var req = messageBox("자녀가 만20세 이상인 경우에는 가족수당이 지급되지 않습니다.\n[ " + i + "번째 행 : " + model.getValue("/root/main/fmlymaster[" + i + "]/relname" ) + " ] ", "Q002");
  555. if( req == 6 ){
  556. model.setValue("/root/main/fmlymaster[" + i + "]/payyn", "Y" );
  557. dtg_fmlymaster.rowStatus(i) = 2;
  558. model.setValue("/root/send/save20/emplno20", model.getValue("/root/main/fmlymaster[" + i + "]/emplno" ));
  559. model.setValue("/root/send/save20/rregno20", model.getValue("/root/main/fmlymaster[" + i + "]/rregno" ));
  560. model.setValue("/root/send/save20/aplctndate20", model.getValue("/root/main/fmlymaster[" + i + "]/aplctndate" ));
  561. model.setValue("/root/send/save20/aplctnflag20", model.getValue("/root/main/fmlymaster[" + i + "]/aplctnflag" ));
  562. model.setValue("/root/send/save20/payyn20", "N" );
  563. if( submit("TXRWP22002") ){
  564. messageBox("저장되었습니다.", "I000");
  565. btn_search.dispatch("DOMActivate");
  566. }
  567. }
  568. }
  569. }
  570. }
  571. // 업데이트 로직 넣기
  572. ]]>
  573. </script>
  574. </button>
  575. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1192px; y2:69px; "/>
  576. <input id="ipt_zipcd1" ref="/root/main/fmlyheader/residnczipcd1" class="input_essential" disabled="true" editable="false" style="left:513px; top:100px; width:39px; height:19px; "/>
  577. <input id="ipt_fstappntdd" ref="/root/main/fmlyheader/fstappntdd" disabled="true" inputtype="date" style="left:1101px; top:74px; width:90px; height:19px; "/>
  578. <input id="ipt_retiredd" ref="/root/main/fmlyheader/retiredd" disabled="true" inputtype="date" style="left:1101px; top:100px; width:90px; height:19px; "/>
  579. <caption id="caption317" class="cell_1" style="left:294px; top:74px; width:62px; height:20px; vertical-align:middle; ">주민번호</caption>
  580. <input id="ipt_hemplno" ref="/root/main/fmlyheader/emplno" disabled="true" style="left:66px; top:74px; width:72px; height:19px; "/>
  581. <caption id="caption5" class="cell_1" style="left:294px; top:125px; width:90px; height:21px; ">배우자 연락처</caption>
  582. <caption id="caption319" class="cell_1" style="left:160px; top:99px; width:65px; height:21px; vertical-align:middle; ">내선번호</caption>
  583. <caption id="caption24" class="cell_1" style="left:467px; top:99px; width:44px; height:21px; vertical-align:middle; ">주 소</caption>
  584. <caption id="caption7" class="cell_1" style="left:0px; top:99px; width:65px; height:21px; ">전화번호</caption>
  585. <caption id="caption8" class="cell_1" style="left:1039px; top:74px; width:60px; height:20px; vertical-align:middle; ">임용일자</caption>
  586. <caption id="caption164" class="cell_1" style="left:0px; top:74px; width:65px; height:19px; ">사원번호</caption>
  587. <caption id="caption144" class="cell_1" style="left:1039px; top:100px; width:60px; height:20px; vertical-align:middle; ">퇴직일자</caption>
  588. <input id="ipt_hemplnm" ref="/root/main/fmlyheader/emplnm" disabled="true" style="left:207px; top:74px; width:85px; height:19px; "/>
  589. <input id="ipt_cntctel" ref="/root/main/fmlyheader/cntctel" style="left:66px; top:100px; width:92px; height:19px; ">
  590. <script type="javascript" ev:event="xforms-value-changed">
  591. <![CDATA[
  592. dtg_fmlyheader.rowStatus(1) = 2;
  593. ]]>
  594. </script>
  595. </input>
  596. <input id="ipt_rregno" ref="/root/main/fmlyheader/rregno" disabled="true" format="999999-9999999" style="left:358px; top:74px; width:148px; height:19px; "/>
  597. <input id="ipt_hosinseqno" ref="/root/main/fmlyheader/hosinseqno" style="left:226px; top:100px; width:65px; height:19px; ">
  598. <script type="javascript" ev:event="xforms-value-changed">
  599. <![CDATA[
  600. dtg_fmlyheader.rowStatus(1) = 2;
  601. ]]>
  602. </script>
  603. </input>
  604. <input id="ipt_mpphonno" ref="/root/main/fmlyheader/mpphonno" style="left:358px; top:100px; width:107px; height:19px; ">
  605. <script type="javascript" ev:event="xforms-value-changed">
  606. <![CDATA[
  607. dtg_fmlyheader.rowStatus(1) = 2;
  608. ]]>
  609. </script>
  610. </input>
  611. <caption id="caption9" class="cell_1" style="left:508px; top:74px; width:45px; height:20px; vertical-align:middle; ">직 종</caption>
  612. <caption id="caption10" class="cell_1" style="left:294px; top:99px; width:62px; height:21px; vertical-align:middle; ">휴대폰</caption>
  613. <caption id="caption12" class="cell_1" style="left:660px; top:74px; width:45px; height:20px; vertical-align:middle; ">직 위</caption>
  614. <input id="ipt_zipcd2" ref="/root/main/fmlyheader/residnczipcd2" class="input_essential" disabled="true" editable="false" style="left:565px; top:100px; width:39px; height:19px; "/>
  615. <button id="button5" class="icon_search" style="left:607px; top:102px; width:16px; height:16px; ">
  616. <caption/>
  617. <script type="javascript" ev:event="DOMActivate">
  618. <![CDATA[
  619. ]]>
  620. </script>
  621. </button>
  622. <caption id="caption11" style="left:554px; top:98px; width:12px; height:26px; ">-</caption>
  623. <input id="ipt_residncaddr" ref="/root/main/fmlyheader/residncaddr" disabled="true" style="left:625px; top:100px; width:412px; height:19px; "/>
  624. <input id="ipt_dutplcedeptnm" ref="/root/main/fmlyheader/dutplcedeptnm" disabled="true" style="left:867px; top:74px; width:170px; height:19px; "/>
  625. <caption id="caption13" class="cell_1" style="left:821px; top:74px; width:45px; height:20px; vertical-align:middle; ">부 서</caption>
  626. <input id="ipt_spousephone" ref="/root/main/fmlyheader/spousephone" style="left:385px; top:126px; width:94px; height:19px; ">
  627. <script type="javascript" ev:event="xforms-value-changed">
  628. <![CDATA[
  629. dtg_fmlyheader.rowStatus(1) = 2;
  630. ]]>
  631. </script>
  632. </input>
  633. <caption id="caption14" class="cell_1" style="left:481px; top:125px; width:80px; height:21px; ">배우자 직업</caption>
  634. <select1 id="cmb_spousejob" ref="/root/main/fmlyheader/spousejob" appearance="minimal" style="left:563px; top:126px; width:97px; height:19px; ">
  635. <choices>
  636. <item>
  637. <label>공무원</label>
  638. <value>1</value>
  639. </item>
  640. <item>
  641. <label>우리병원직원</label>
  642. <value>3</value>
  643. </item>
  644. <item>
  645. <label>기타</label>
  646. <value>2</value>
  647. </item>
  648. </choices>
  649. <script type="javascript" ev:event="xforms-value-changed">
  650. <![CDATA[
  651. dtg_fmlyheader.rowStatus(1) = 2;
  652. ]]>
  653. </script>
  654. </select1>
  655. <caption id="caption15" class="tit_2" style="left:0px; top:163px; width:162px; height:13px; ">부양가족</caption>
  656. <line id="line8" class="line_3" style="x1:0px; y1:122px; x2:1191px; y2:122px; "/>
  657. <line id="line2" class="line_3" style="x1:0px; y1:96px; x2:1191px; y2:96px; "/>
  658. <select1 id="cmb_jobkind" ref="/root/main/fmlyheader/jobkindcd" disabled="true" navindex="7" appearance="minimal" style="left:555px; top:74px; width:103px; height:19px; ">
  659. <choices>
  660. <itemset>
  661. <label/>
  662. <value/>
  663. </itemset>
  664. </choices>
  665. </select1>
  666. <select1 id="cmb_jobpos" ref="/root/main/fmlyheader/jobposcd" disabled="true" navindex="7" appearance="minimal" style="left:706px; top:74px; width:113px; height:19px; ">
  667. <choices>
  668. <itemset>
  669. <label/>
  670. <value/>
  671. </itemset>
  672. </choices>
  673. </select1>
  674. <datagrid id="dtg_fmlyheader" nodeset="/root/main/fmlyheader" visibility="hidden" caption="사번^성명^장남여부^결혼여부^배우자직업^배우자연락처^주민번호^직종^직종명^직위^직위명^부서코드^부서명^임용일자^퇴직일자^집주소^우편번호1^우편번호2^핸드폰^집전화번호^병원내선번호" colsep="^" colwidth="46, 51, 54, 65, 64, 75, 74, 62, 60, 60, 67, 72, 56, 61, 72, 71, 68, 59, 78, 71, 80" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:270px; width:848px; height:165px; ">
  675. <col ref="emplno"/>
  676. <col ref="emplnm"/>
  677. <col ref="empfirsebornyn"/>
  678. <col ref="empmarryyn"/>
  679. <col ref="spousejob"/>
  680. <col ref="spousephone"/>
  681. <col ref="rregno"/>
  682. <col ref="jobkindcd"/>
  683. <col ref="jobkindnm"/>
  684. <col ref="jobposcd"/>
  685. <col ref="jobposnm"/>
  686. <col ref="dutplcedeptcd"/>
  687. <col ref="dutplcedeptnm"/>
  688. <col ref="fstappntdd"/>
  689. <col ref="retiredd"/>
  690. <col ref="residncaddr"/>
  691. <col ref="residnczipcd1"/>
  692. <col ref="residnczipcd2"/>
  693. <col ref="mpphonno"/>
  694. <col ref="cntctel"/>
  695. <col ref="hosinseqno"/>
  696. </datagrid>
  697. <line id="line4" class="line_3" style="x1:0px; y1:148px; x2:1191px; y2:148px; "/>
  698. <caption id="caption16" class="cell_1" style="left:0px; top:125px; width:65px; height:21px; ">장남여부</caption>
  699. <caption id="caption17" class="cell_1" style="left:140px; top:74px; width:65px; height:19px; ">사원번호</caption>
  700. <select1 id="combo1" ref="/root/main/fmlyheader/empfirsebornyn" appearance="minimal" style="left:66px; top:126px; width:92px; height:19px; ">
  701. <choices>
  702. <item>
  703. <label>Y</label>
  704. <value>Y</value>
  705. </item>
  706. <item>
  707. <label>N</label>
  708. <value>N</value>
  709. </item>
  710. </choices>
  711. <script type="javascript" ev:event="xforms-value-changed">
  712. <![CDATA[
  713. dtg_fmlyheader.rowStatus(1) = 2;
  714. ]]>
  715. </script>
  716. </select1>
  717. <caption id="caption18" class="cell_1" style="left:160px; top:125px; width:65px; height:21px; vertical-align:middle; ">결혼여부</caption>
  718. <select1 id="combo2" ref="/root/main/fmlyheader/empmarryyn" appearance="minimal" style="left:226px; top:126px; width:65px; height:19px; ">
  719. <choices>
  720. <item>
  721. <label>기혼</label>
  722. <value>Y</value>
  723. </item>
  724. <item>
  725. <label>미혼</label>
  726. <value>N</value>
  727. </item>
  728. </choices>
  729. <script type="javascript" ev:event="xforms-value-changed">
  730. <![CDATA[
  731. dtg_fmlyheader.rowStatus(1) = 2;
  732. ]]>
  733. </script>
  734. </select1>
  735. <caption id="caption19" style="left:848px; top:50px; width:340px; height:15px; font-weight:bold; color:#ff0000; letter-spacing:1; ">※ 배우자 4만원, 그 외 가족 2만원, 셋째자녀 5만원</caption>
  736. </group>
  737. <group id="grp_btn" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
  738. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  739. <button id="btn_save" class="btn4_letter2" navindex="5" style="left:1135px; top:3px; width:56px; height:22px; ">
  740. <caption>저장</caption>
  741. <script type="javascript" ev:event="DOMActivate">
  742. <![CDATA[
  743. fSave();
  744. ]]>
  745. </script>
  746. </button>
  747. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:13px; ">부양가족수당 신청</caption>
  748. <button id="button4" class="btn4_letter9" navindex="5" style="left:994px; top:3px; width:140px; height:22px; ">
  749. <caption>가족수당신청서출력</caption>
  750. <script type="javascript" ev:event="DOMActivate">
  751. <![CDATA[
  752. model.removeNodeset("/root/prntlst/fmlyheader");
  753. model.removeNodeset("/root/prntlst/fmlymaster");
  754. model.makeNode("/root/prntlst/fmlyheader");
  755. model.makeNode("/root/prntlst/fmlymaster");
  756. model.copyNode("/root/prntlst/fmlyheader", "/root/main/fmlyheader");
  757. var marrycheck = "N";
  758. var familycheck = "N";
  759. var jumincheck = "N";
  760. var disabledcheck = "N";
  761. if( model.getValue("/root/main/fmlyheader/empmarryyn") =="N" && dtg_fmlymaster.rows > 1 ){
  762. jumincheck = "Y";
  763. }
  764. if( model.getValue("/root/main/fmlyheader/empmarryyn") =="Y" ){
  765. marrycheck = "Y";
  766. }
  767. for( var i = 1 ; i <= (dtg_fmlymaster.rows-1) ; i++ ){
  768. if( model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "02" || model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "04" ||
  769. model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "06" || model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "07" ||
  770. (model.getValue("/root/main/fmlyheader/empmarryyn") =="Y" && model.getValue("/root/main/fmlymaster[" + i + "]/under18") == "N") ){
  771. familycheck = "Y";
  772. }
  773. if( model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "13" || model.getValue("/root/main/fmlymaster[" + i + "]/relation") == "14" ){
  774. familycheck = "Y";
  775. jumincheck = "Y";
  776. }
  777. if( model.getValue("/root/main/fmlymaster[" + i + "]/disabledyn") == "Y" ){
  778. disabledcheck = "Y";
  779. }
  780. }
  781. model.makeValue("/root/prntlst/fmlyheader/disabledcheck", disabledcheck );
  782. model.makeValue("/root/prntlst/fmlyheader/familycheck", familycheck );
  783. model.makeValue("/root/prntlst/fmlyheader/marrycheck", marrycheck );
  784. model.makeValue("/root/prntlst/fmlyheader/jumincheck", jumincheck );
  785. var monthbf = "";
  786. var idx = 1;
  787. var count = 0 ;
  788. if( dtg_fmlymaster.rows < 6 ){
  789. for( var i = 1 ; i < dtg_fmlymaster.rows ; i++ ){
  790. monthbf = model.getValue("/root/main/fmlymaster[" + i + "]/fstrgstdt").toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
  791. monthbf = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
  792. if( model.getValue("/root/main/fmlymaster[" + i + "]/fstrgstdt") >= monthbf ){
  793. model.makeNode("/root/prntlst/fmlymaster[" + idx + "]");
  794. model.copyNode("/root/prntlst/fmlymaster[" + idx +"]", "/root/main/fmlymaster[" + i + "]");
  795. model.setValue("/root/prntlst/fmlymaster[" + idx +"]/job", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("job")) );
  796. model.setValue("/root/prntlst/fmlymaster[" + idx +"]/relation", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("relation")) );
  797. model.setValue("/root/prntlst/fmlymaster[" + idx +"]/aplctnflag", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("aplctnflag")) );
  798. idx++;
  799. }
  800. }
  801. for( var i = 1 ; i <= (6-idx) ; i++ ){
  802. model.makeNode("/root/prntlst/fmlymaster[" + idx + "]");
  803. model.copyNode("/root/prntlst/fmlymaster[" + idx +"]", "/root/main/fmlymaster[" + i + "]");
  804. model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/job", "" );
  805. model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/relation", "" );
  806. model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/relname", "" );
  807. model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/rregno", "" );
  808. model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/reason", "" );
  809. model.makeValue("/root/prntlst/fmlymaster[" + idx +"]/reasonindate", "" );
  810. model.setValue("/root/prntlst/fmlymaster[" + idx +"]/aplctnflag", "");
  811. idx++;
  812. }
  813. }else{
  814. for( var i = 1 ; i < dtg_fmlymaster.rows ; i++ ){
  815. monthbf = model.getValue("/root/main/fmlymaster[" + i + "]/fstrgstdt").toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
  816. monthbf = getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD");
  817. if( model.getValue("/root/main/fmlymaster[" + i + "]/fstrgstdt") >= monthbf ){
  818. model.makeNode("/root/prntlst/fmlymaster[" + idx + "]");
  819. model.copyNode("/root/prntlst/fmlymaster[" + idx +"]", "/root/main/fmlymaster[" + i + "]");
  820. model.setValue("/root/prntlst/fmlymaster[" + idx +"]/job", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("job")) );
  821. model.setValue("/root/prntlst/fmlymaster[" + idx +"]/relation", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("relation")) );
  822. model.setValue("/root/prntlst/fmlymaster[" + idx +"]/aplctnflag", dtg_fmlymaster.labelMatrix( i , dtg_fmlymaster.colRef("aplctnflag")) );
  823. idx++;
  824. }
  825. }
  826. }
  827. model.refresh();
  828. exeReportPreview("RPRWP22001", "XMLSTR");
  829. ]]>
  830. </script>
  831. </button>
  832. <button id="button6" class="btn4_letter5" navindex="5" style="left:901px; top:3px; width:92px; height:22px; ">
  833. <caption>신청HELP</caption>
  834. <script type="javascript" ev:event="DOMActivate">
  835. <![CDATA[
  836. modal("SPRWP00907");
  837. ]]>
  838. </script>
  839. </button>
  840. </group>
  841. </xhtml:body>
  842. </xhtml:html>