SMRPA02000_학자금관리.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  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. <gvnoffcorddetl>
  11. <gvnoffcorddetllist/>
  12. </gvnoffcorddetl>
  13. <gvnoffcorddetldata>
  14. <gvnoffcorddetllist/>
  15. </gvnoffcorddetldata>
  16. <masterscholexp>
  17. <scholexplist>
  18. <emplno/>
  19. <emplnm/>
  20. <dutdeptnm/>
  21. <chldrnresdnrgstnm/>
  22. <chldrnnm/>
  23. <scholexppayyymm/>
  24. <qurtyy/>
  25. <scholflagnm/>
  26. <schoolnm/>
  27. <schoolyy/>
  28. <scholexppayamt/>
  29. <appdd/>
  30. <psnworkapryn/>
  31. <paydeducretendyn/>
  32. <payappyn/>
  33. <chldrnresdnrgst/>
  34. <instcd/>
  35. </scholexplist>
  36. </masterscholexp>
  37. <detailscholexp>
  38. <scholexpdetaillist>
  39. <emplno/>
  40. <chldrnresdnrgst/>
  41. <scholexppayyymm/>
  42. <qurtyynm/>
  43. <qurtyy/>
  44. <scholflagnm/>
  45. <schoolnm/>
  46. <schoolyy/>
  47. <scholexppayamt/>
  48. <spclschoolyn/>
  49. <admischoolamt/>
  50. <scho/>
  51. <asctfeereliztpln/>
  52. <stdasctfee/>
  53. <cmt/>
  54. <psnworkapryn/>
  55. <payappyn/>
  56. <stdyabrdyn/>
  57. <sekjbngschoolyn/>
  58. <appdd/>
  59. <psnworkaprdd/>
  60. <scholflag/>
  61. </scholexpdetaillist>
  62. </detailscholexp>
  63. </main>
  64. <send>
  65. <masterscholexp>
  66. <emplno/>
  67. <chldrnresdnrgst/>
  68. <payappmm/>
  69. </masterscholexp>
  70. <search>
  71. <payappmm/>
  72. <chldrnresdnrgst1/>
  73. <chldrnresdnrgst2/>
  74. <chldrnnm/>
  75. <emplno/>
  76. <psnworkapryn/>
  77. <chldrnresdnrgst/>
  78. <dutinstcd/>
  79. <emplnm/>
  80. </search>
  81. <savelist>
  82. <scholexplist/>
  83. <workgbn/>
  84. <payappmm/>
  85. </savelist>
  86. <payappsend>
  87. <instcd/>
  88. <payym/>
  89. <payitemcd/>
  90. </payappsend>
  91. </send>
  92. <init>
  93. <radio1>
  94. <label>예</label>
  95. <value>Y</value>
  96. <label>아니오</label>
  97. <value>N</value>
  98. </radio1>
  99. <totcount/>
  100. </init>
  101. <temp>
  102. <payappyn/>
  103. <paytargetyn/>
  104. <paycreatyn/>
  105. <sumyn/>
  106. </temp>
  107. </root>
  108. </instance>
  109. <script type="javascript">
  110. <![CDATA[
  111. var GVN_TARGET_NODE = "/root/main/gvnoffcorddetldata";
  112. var GVN_SOURCE_NODE = "/root/main/gvnoffcorddetl";
  113. ]]>
  114. </script>
  115. <script type="javascript" ev:event="xforms-ready">
  116. <![CDATA[
  117. fInitialize();
  118. btn_save.disabled = !(checkAuth("X"));
  119. misfGridInit(grd_scholexplist);
  120. misfGridInit(grd_scholexpdetaillist);
  121. rpafMsterDetailSet(grd_scholexplist,null, "TRRPA02001" ,"Y");
  122. rpafMsterDetailSet(grd_scholexpdetaillist,grd_scholexplist, "TRRPA00602","Y" );
  123. rpaComboInstBase(cmb_instcd,getUserInfo("dutplceinstcd"),"Y");
  124. var instcd = getUserInfo("dutplceinstcd");
  125. cmb_instcd.value=instcd;
  126. misfGetUserAuth();
  127. if(DUTY_WELF_YN =='Y'){
  128. cmb_instcd.disabled = false;
  129. }
  130. model.refresh();
  131. ]]>
  132. </script>
  133. <submission id="TRRPA00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/masterscholexp" resultref="/root/main/detailscholexp"/>
  134. <submission id="TRRPA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/masterscholexp"/>
  135. <submission id="TXRPA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/main/masterscholexp"/>
  136. <submission id="TRRPA00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
  137. <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payappsend" resultref="/root/temp"/>
  138. </model>
  139. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  142. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  143. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  144. <script type="javascript" src="../../../mis/pubwelfmngtweb/js/RPS001.js"/>
  145. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  147. <script type="javascript" src="../../../mis/insurancemngtweb/js/RPA001.js"/>
  148. <script type="javascript">
  149. <![CDATA[
  150. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  151. function fInitialize() {
  152. model.removeNodeset("/root/main/masterscholexp/scholexplist");
  153. model.removeNodeset("/root/main/detailscholexp/scholexpdetaillist");
  154. model.removeNodeset("/root/main/gvnoffcorddetl/gvnoffcorddetllist");
  155. model.resetInstanceNode("/root/send");
  156. model.resetInstanceNode("/root/main/gvnoffcorddetldata/gvnoffcorddetllist");
  157. //btn_donecancel.disabled=true;
  158. //btn_creatdone.disabled=true;
  159. //btn_save.disabled=true;
  160. model.refresh();
  161. var curDate = getCurrentDate().toDate();
  162. model.setValue("/root/send/search/payappmm", curDate.getDateFormat('YYYYMM'));
  163. }
  164. ]]>
  165. </script>
  166. </xhtml:head>
  167. <xhtml:body guideline="1,1350;1,1349;" style="margin-left:8; margin-right:8; ">
  168. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  169. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">학자금관리</caption>
  170. </group>
  171. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  172. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; "/>
  173. <line id="line13" class="line_4" style="x1:1109px; y1:16px; x2:1109px; y2:38px; "/>
  174. <button id="btn_excelsave" class="btn2_letter4" style="left:1130px; top:48px; width:64px; height:19px; ">
  175. <caption>엑셀저장</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  179. if (fileName != "")
  180. {
  181. grd_scholexplist.saveExcel(fileName);
  182. }
  183. ]]>
  184. </script>
  185. </button>
  186. <caption id="caption16" class="search_name" style="left:435px; top:20px; width:86px; height:17px; ">사원번호 :</caption>
  187. <caption id="caption2" class="search_name" visibility="hidden" style="left:620px; top:50px; width:86px; height:17px; ">주민번호 :</caption>
  188. <input id="ipt_chldrnresdnrgst1" ref="/root/send/search/chldrnresdnrgst1" class="input_default" visibility="hidden" maxlength="6" style="left:704px; top:49px; width:70px; height:19px; ">
  189. <script type="javascript" ev:event="onkeypress">
  190. <![CDATA[
  191. inputEnterKey("btn_search", "DOMActivate");
  192. ]]>
  193. </script>
  194. </input>
  195. <input id="ipt_chldrnresdnrgst2" ref="/root/send/search/chldrnresdnrgst2" class="input_default" visibility="hidden" maxlength="7" style="left:792px; top:49px; width:70px; height:19px; ">
  196. <script type="javascript" ev:event="onkeypress">
  197. <![CDATA[
  198. inputEnterKey("btn_search", "DOMActivate");
  199. ]]>
  200. </script>
  201. </input>
  202. <caption id="caption309" visibility="hidden" style="left:776px; top:51px; width:16px; height:17px; font-weight:bold; text-align:center; vertical-align:bottom; ">~</caption>
  203. <caption id="caption3" class="search_name" style="left:720px; top:19px; width:83px; height:17px; ">자 녀 명 :</caption>
  204. <input id="ipt_chldrnnm" ref="/root/send/search/chldrnnm" class="input_default" imemode="hangul" style="left:802px; top:18px; width:80px; height:19px; ">
  205. <script type="javascript" ev:event="onkeypress">
  206. <![CDATA[
  207. inputEnterKey("btn_search", "DOMActivate");
  208. ]]>
  209. </script>
  210. </input>
  211. <caption id="caption14" class="tit_2" style="left:5px; top:54px; width:191px; height:13px; ">학자금지급대상 현황</caption>
  212. <line id="line4" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  213. <datagrid id="grd_scholexpdetaillist" nodeset="/root/main/detailscholexp/scholexpdetaillist" caption="사원번호^자녀주민번호^신청년월^자녀명^지급년월^학력구분^학년^분기^학교명^입학금^수업료^기성회비^학생회비^합계금액^해외유학여부^특수학교여부^비고^승인여부^급여반영여부^해외유학여부^성의교정여부^신청일자^승인일자^학력코드" colsep="^" colwidth="24, 25, 70, 62, 60, 81, 45, 45, 109, 70, 70, 70, 70, 70, 89, 81, 95, 64, 76, 87, 49, 50, 47, 49" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:514px; width:1195px; height:221px; ">
  214. <col ref="emplno" visibility="hidden"/>
  215. <col ref="chldrnresdnrgst" visibility="hidden"/>
  216. <col ref="scholexppayyymm" visibility="hidden" format="yyyy-mm" style="text-align:center; "/>
  217. <col ref="chldrnnm" style="text-align:center; "/>
  218. <col ref="payappmm" format="yyyy-mm" style="text-align:center; "/>
  219. <col ref="scholflagnm"/>
  220. <col ref="schoolyy" style="text-align:center; "/>
  221. <col ref="qurtyy" style="text-align:center; "/>
  222. <col ref="schoolnm"/>
  223. <col ref="payadmischoolamt" format="#,###" style="text-align:right; "/>
  224. <col ref="payscho" format="#,###" style="text-align:right; "/>
  225. <col ref="payasctfeereliztpln" format="#,###" style="text-align:right; "/>
  226. <col ref="paystdasctfee" format="#,###" style="text-align:right; "/>
  227. <col ref="payamt" format="#,###" style="text-align:right; "/>
  228. <col checkvalue="Y,N" disabled="true" ref="stdyabrdyn" type="checkbox"/>
  229. <col checkvalue="Y,N" disabled="true" ref="spclschoolyn" type="checkbox" style="text-align:center; "/>
  230. <col ref="cmt"/>
  231. <col ref="psnworkapryn" style="text-align:center; "/>
  232. <col ref="payappyn" style="text-align:center; "/>
  233. <col ref="stdyabrdyn" visibility="hidden"/>
  234. <col ref="sekjbngschoolyn" visibility="hidden"/>
  235. <col ref="appdd" visibility="hidden"/>
  236. <col ref="psnworkaprdd" visibility="hidden"/>
  237. <col ref="scholflag" visibility="hidden"/>
  238. </datagrid>
  239. <caption id="caption23" class="tit_2" style="left:5px; top:494px; width:113px; height:13px; ">학자금 지급이력</caption>
  240. <line id="line7" class="line_1" style="x1:0px; y1:509px; x2:1195px; y2:509px; "/>
  241. <button id="button6" class="btn2_letter4" style="left:1130px; top:488px; width:64px; height:19px; ">
  242. <caption>엑셀저장</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  246. if (fileName != "")
  247. {
  248. grd_scholexpdetaillist.saveExcel(fileName);
  249. }
  250. ]]>
  251. </script>
  252. </button>
  253. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:16px; width:56px; height:22px; text-align:left; ">
  254. <caption>조회</caption>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. var payappmm=ipt_payappmm.value;
  258. ipt_chldrnresdnrgst.value=ipt_chldrnresdnrgst1.value+ ipt_chldrnresdnrgst2.value;
  259. if(payappmm ==""){
  260. messageBox("지급년월은","I003");
  261. return;
  262. }
  263. misfMsterDetailRetrieve();
  264. var totcount=0;
  265. for(i = grd_scholexplist.fixedRows ; i < grd_scholexplist.rows ; i++ ){
  266. var paydeducretendyn=model.getValue(grd_scholexplist.attribute("nodeset")+"["+(i-1)+"]/paydeducretendyn");
  267. if(paydeducretendyn =='Y'){
  268. misfSetReadOnlyCol(grd_scholexplist, "psnworkapryn", true, i);
  269. }else{
  270. misfSetReadOnlyCol(grd_scholexplist, "psnworkapryn", false, i);
  271. }
  272. totcount=totcount+1;
  273. }
  274. totcount= totcount;
  275. model.setValue("/root/init/totcount",totcount);
  276. model.refresh();
  277. ]]>
  278. </script>
  279. </button>
  280. <datagrid id="grd_gvnoffcorddetllist" nodeset="/root/main/gvnoffcorddetl/gvnoffcorddetllist" visibility="hidden" caption="사번^성명^기관^부서^직책명^입사일^교직구분" colsep="^" colwidth="68, 89, 88, 68, 68,90,90" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:30px; top:575px; width:185px; height:81px; ">
  281. <col ref="emplno" type="output"/>
  282. <col ref="emplnm" type="output"/>
  283. </datagrid>
  284. <input id="ipt_emplnm" ref="/root/send/search/emplnm" class="input_default" navindex="21" imemode="hangul" style="left:615px; top:19px; width:90px; height:19px; "/>
  285. <input id="ipt_emplno" ref="/root/send/search/emplno" class="input_default" navindex="20" style="left:520px; top:19px; width:69px; height:19px; ">
  286. <script type="javascript" ev:event="xforms-value-changed">
  287. <![CDATA[
  288. var recv_list = "emplno,emplnm";
  289. rpbfValidationCheck("EMPLNO", recv_list);
  290. model.refresh();
  291. ]]>
  292. </script>
  293. </input>
  294. <button id="btn_emplsearch" class="icon_search" style="left:595px; top:23px; width:16px; height:16px; ">
  295. <caption/>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. var recv_list = "emplno,emplnm";
  299. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  300. model.refresh();
  301. // fInitialize()
  302. ]]>
  303. </script>
  304. </button>
  305. <input id="ipt_payappmm" ref="/root/send/search/payappmm" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:100; top:18; width:100px; height:19px; ">
  306. <script type="javascript" ev:event="xforms-value-changed">
  307. <![CDATA[
  308. //ipt_payappmm_s.value=ipt_payappmm.value;
  309. //if(ipt_payappmm_s.value !=""){
  310. // btn_search.dispatch("DOMActivate");
  311. //}
  312. var instcd = cmb_instcd.value;
  313. if( getStringLength(ipt_payappmm.value) == "6" ) {
  314. //model.removeNodeset(cmb_instcd.attribute("ref"));
  315. //model.makeNode("/root/send/search/dutinstcd");
  316. misfComboInstCdListMulti("cmb_instcd",ipt_payappmm.value,"","Y");
  317. cmb_instcd.value = instcd;
  318. model.refresh();
  319. }
  320. ]]>
  321. </script>
  322. </input>
  323. <caption id="caption1" class="search_name" style="left:15px; top:19; width:86px; height:17px; ">지급년월 :</caption>
  324. <caption id="caption4" class="search_name" style="left:893px; top:20px; width:86px; height:17px; ">승인여부 :</caption>
  325. <select1 id="rdo_psnworkapryn" ref="/root/send/search/psnworkapryn" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:978px; top:20px; width:90px; height:16px; text-align:center; border-style:none; ">
  326. <choices>
  327. <itemset nodeset="/root/init/radio1">
  328. <label ref="label"/>
  329. <value ref="value"/>
  330. </itemset>
  331. </choices>
  332. </select1>
  333. <input id="ipt_chldrnresdnrgst" ref="/root/send/search/chldrnresdnrgst" class="input_default" visibility="hidden" style="left:485px; top:50px; width:25px; height:19px; "/>
  334. <input id="ipt_workgbn" ref="/root/send/savelist/workgbn" class="input_default" navindex="20" visibility="hidden" style="left:550px; top:50px; width:26px; height:19px; "/>
  335. <input id="ipt_payappmm_s" ref="/root/send/savelist/payappmm" class="input_default" visibility="hidden" style="left:450px; top:50px; width:25px; height:19px; "/>
  336. <multilinegrid id="grd_scholexplist" nodeset="/root/main/masterscholexp/scholexplist" caption="사원번호^사원명^기관^자녀주민번호^학력구분코드^학력구분^학년^분기^구분^입학금^수업료^기성회비^학생회비^합계금액^지급년월^유학&#xA;여부^승인&#xA;여부^마감&#xA;여부^지급&#xA;여부^비고^신청년월|사원번호^사원명^근무부서^자녀명^학력구분코드^학교명^학과^학과^구분^입학금^수업료^기성회비^학생회비^합계금액^지급년월^유학&#xA;여부^승인&#xA;여부^마감&#xA;여부^지급&#xA;여부^비고^신청년월" colsep="^" colwidth="75, 67, 100, 91, 29, 126, 46, 48, 69, 67, 64, 63, 64, 64, 58, 37, 32, 35, 35, 99, 100" ellipsis="true" rowheader="update" rowsep="|" tooltip="true" mergecellsfixedrows="bycolrec" style="left:0px; top:74px; width:1194px; height:400px; ">
  337. <row>
  338. <col ref="emplno" rowspan="2" style="text-align:center; "/>
  339. <col ref="emplnm" rowspan="2" style="text-align:center; "/>
  340. <col ref="instnm" style="text-align:center; "/>
  341. <col ref="chldrnresdnrgst" format="999999-9999999" style="text-align:center; "/>
  342. <col ref="scholflag" rowspan="2" visibility="hidden"/>
  343. <col ref="scholflagnm" style="text-align:center; "/>
  344. <col ref="schoolyy" style="text-align:center; "/>
  345. <col ref="qurtyy" style="text-align:center; "/>
  346. <col ref="amtgbn1" style="text-align:center; "/>
  347. <col ref="admischoolamt" format="#,###" style="text-align:right; "/>
  348. <col ref="scho" format="#,###" style="text-align:right; "/>
  349. <col ref="asctfeereliztpln" format="#,###" style="text-align:right; "/>
  350. <col ref="stdasctfee" format="#,###" style="text-align:right; "/>
  351. <col ref="scholexppayamt" format="#,###" style="text-align:right; "/>
  352. <col ref="payappmm" rowspan="2" format="yyyy-mm" style="text-align:center; "/>
  353. <col checkvalue="Y,N" disabled="true" ref="stdyabrdyn" rowspan="2" type="checkbox"/>
  354. <col checkvalue="Y,N" ref="psnworkapryn" rowspan="2" type="checkbox" style="text-align:center; "/>
  355. <col ref="paydeducretendyn" rowspan="2" style="text-align:center; "/>
  356. <col ref="payappyn" rowspan="2" style="text-align:center; "/>
  357. <col ref="cmt" rowspan="2" type="input"/>
  358. <col ref="scholexppayyymm" rowspan="2" visibility="hidden"/>
  359. <col ref="oldpsnworkapryn" rowspan="2" visibility="hidden"/>
  360. </row>
  361. <row>
  362. <col ref="dutdeptnm" style="text-align:center; "/>
  363. <col ref="chldrnnm" style="text-align:center; "/>
  364. <col ref="schoolnm" style="text-align:center; "/>
  365. <col colspan="2" ref="sbjnm" style="text-align:center; "/>
  366. <col ref="amtgbn2" style="text-align:center; "/>
  367. <col ref="payadmischoolamt" type="input" format="#,###" style="text-align:right; "/>
  368. <col ref="payscho" type="input" format="#,###" style="text-align:right; "/>
  369. <col ref="payasctfeereliztpln" type="input" format="#,###" style="text-align:right; "/>
  370. <col ref="paystdasctfee" type="input" format="#,###" style="text-align:right; "/>
  371. <col ref="payamt" type="output" format="#,###" style="text-align:right; "/>
  372. </row>
  373. <script type="javascript" ev:event="onrowchanged">
  374. <![CDATA[
  375. var cur_row=grd_scholexplist.row;
  376. var emplno= grd_scholexplist.valueMatrix(cur_row,grd_scholexplist.colRef("emplno"));
  377. var chldrnresdnrgst = grd_scholexplist.valueMatrix(cur_row,grd_scholexplist.colRef("chldrnresdnrgst"));
  378. var payappmm = grd_scholexplist.valueMatrix(cur_row,grd_scholexplist.colRef("payappmm"));
  379. model.setValue("/root/send/masterscholexp/emplno",emplno);
  380. model.setValue("/root/send/masterscholexp/chldrnresdnrgst",chldrnresdnrgst);
  381. model.setValue("/root/send/masterscholexp/payappmm",payappmm);
  382. submit("TRRPA00602");
  383. model.refresh();
  384. grd_scholexplist.dispatch("onmouseup");
  385. ]]>
  386. </script>
  387. <script type="javascript" ev:event="xforms-value-changed">
  388. <![CDATA[
  389. var deduamt =0;
  390. var payadmischoolamt = grd_scholexplist.valueMatrix(grd_scholexplist.row, grd_scholexplist.colRef("payadmischoolamt")) ;
  391. var payscho = grd_scholexplist.valueMatrix(grd_scholexplist.row, grd_scholexplist.colRef("payscho")) ;
  392. var payasctfeereliztpln = grd_scholexplist.valueMatrix(grd_scholexplist.row, grd_scholexplist.colRef("payasctfeereliztpln")) ;
  393. var paystdasctfee = grd_scholexplist.valueMatrix(grd_scholexplist.row, grd_scholexplist.colRef("paystdasctfee")) ;
  394. if (grd_scholexplist.col== 28 || grd_scholexplist.col== 29 ||grd_scholexplist.col== 30 || grd_scholexplist.col== 31) {
  395. deduamt =parseFloat(payadmischoolamt)+parseFloat(payscho)+parseFloat(payasctfeereliztpln)+parseFloat(paystdasctfee);
  396. grd_scholexplist.valueMatrix(grd_scholexplist.row, grd_scholexplist.colRef("payamt"))=deduamt;
  397. }
  398. grd_scholexplist.dispatch("onmouseup");
  399. ]]>
  400. </script>
  401. <script type="javascript" ev:event="ondblclick">
  402. <![CDATA[
  403. model.removenode("/root/temp/source");
  404. model.makeNode("/root/temp/source");
  405. model.makeValue("/root/temp/source/emplno",grd_scholexplist.valueMatrix(grd_scholexplist.row, grd_scholexplist.colRef("emplno")) );
  406. model.makeValue("/root/temp/source/emplnm",grd_scholexplist.valueMatrix(grd_scholexplist.row, grd_scholexplist.colRef("emplnm")) );
  407. modal("SMRPA00600","","","","","/root/temp/source", "/root/target" );
  408. ]]>
  409. </script>
  410. </multilinegrid>
  411. <caption id="cap_instcd" class="search_name" style="left:220px; top:20px; width:70px; height:17px; ">기 관 :</caption>
  412. <select1 id="cmb_instcd" ref="/root/send/search/dutinstcd" class="combo_s_essential" appearance="minimal" disabled="true" style="left:285px; top:18px; width:135px; height:19px; ">
  413. <choices>
  414. <itemset>
  415. <label/>
  416. <value/>
  417. </itemset>
  418. </choices>
  419. </select1>
  420. <caption id="caption5" style="left:172px; top:49px; width:95px; height:20px; font-weight:bold; color:#0000ff; ">* 조회건수:</caption>
  421. <output id="output1" ref="/root/init/totcount" style="left:242px; top:49px; width:110px; height:19px; font-weight:bold; color:#0000ff; "/>
  422. <button id="button1" class="btn2_letter4" style="left:1064px; top:48px; width:64px; height:19px; ">
  423. <caption>전체취소</caption>
  424. <script type="javascript" ev:event="DOMActivate">
  425. <![CDATA[
  426. var updtdata = getGridUpdateData(grd_scholexplist);
  427. if (updtdata != "") {
  428. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 저장후","C002");
  429. return;
  430. }
  431. for (var i = grd_scholexplist.fixedRows; i < grd_scholexplist.rows; i++ ) {
  432. grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("psnworkapryn")) = 'N';
  433. if(grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("oldpsnworkapryn"))!=grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("psnworkapryn"))){
  434. grd_scholexplist.addStatus(i,"update");
  435. }else if(grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("oldpsnworkapryn"))==grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("psnworkapryn"))){
  436. grd_scholexplist.rowStatus(i) =0;
  437. }
  438. }
  439. ]]>
  440. </script>
  441. </button>
  442. <button id="button12" class="btn2_letter4" style="left:997px; top:48px; width:64px; height:19px; ">
  443. <caption>전체선택</caption>
  444. <script type="javascript" ev:event="DOMActivate">
  445. <![CDATA[
  446. var updtdata = getGridUpdateData(grd_scholexplist);
  447. if (updtdata != "") {
  448. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 저장후","C002");
  449. return;
  450. }
  451. for (var i = grd_scholexplist.fixedRows; i < grd_scholexplist.rows; i++ ) {
  452. grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("psnworkapryn")) = 'Y';
  453. if(grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("oldpsnworkapryn"))!=grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("psnworkapryn"))){
  454. grd_scholexplist.addStatus(i,"update");
  455. }else if(grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("oldpsnworkapryn"))==grd_scholexplist.valueMatrix(i, grd_scholexplist.colRef("psnworkapryn"))){
  456. grd_scholexplist.rowStatus(i) =0;
  457. }
  458. }
  459. ]]>
  460. </script>
  461. </button>
  462. </group>
  463. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  464. <button id="btn_move" class="btn3_letter4" visibility="hidden" style="left:0px; top:3; width:80px; height:22px; ">
  465. <caption>화면이동</caption>
  466. </button>
  467. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  468. <button id="btn_init" class="btn4_letter3" style="left:824px; top:3px; width:68px; height:22px; ">
  469. <caption>초기화</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. var updtdata = getGridUpdateData(grd_scholexplist);
  473. if (updtdata != "" ) {
  474. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  475. if (ret != 6) { // not OK
  476. return;
  477. }
  478. }
  479. fInitialize();
  480. ]]>
  481. </script>
  482. </button>
  483. <button id="btn_save" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  484. <caption>저장</caption>
  485. <script type="javascript" ev:event="DOMActivate">
  486. <![CDATA[
  487. var updtdata = getGridUpdateData(grd_scholexplist);
  488. if (updtdata == "" ) {
  489. messageBox("변경된 데이터가","I004");
  490. return;
  491. }
  492. var retMes = messageBox(" ", "Q002");
  493. if ( retMes != 6) {
  494. return;
  495. }
  496. submit("TRRPA00603");
  497. var payappyn=model.getValue("/root/temp/payappyn");
  498. if(payappyn=='Y'){
  499. messageBox("급여이체가 완료된 자료는 수정 할 수 ","E001");
  500. return;
  501. }
  502. ipt_workgbn.value="A";
  503. if(ipt_workgbn.value =="A"){
  504. misfSave("TXRPA02001");
  505. }
  506. btn_search.dispatch("DOMActivate");
  507. model.refresh();
  508. ]]>
  509. </script>
  510. </button>
  511. <button id="btn_donecancel" class="btn4_letter4" visibility="visible" style="left:974px; top:3px; width:80px; height:22px; ">
  512. <caption>마감취소</caption>
  513. <script type="javascript" ev:event="DOMActivate">
  514. <![CDATA[
  515. var retMes = messageBox("자료를 마감을", "Q007");
  516. if ( retMes != 6) {
  517. return;
  518. }
  519. submit("TRRPA00603");
  520. var payappyn =model.getValue("/root/temp/payappyn");
  521. if(payappyn =='Y'){
  522. messageBox("급여이체가 완료된 건은 취소","E001");
  523. return;
  524. }
  525. ipt_workgbn.value="F";
  526. if(ipt_workgbn.value =="F"){
  527. for(i=1;i < grd_scholexplist.rows;i++){
  528. grd_scholexplist.addStatus(i,"update");
  529. }
  530. misfSave("TXRPA02001")
  531. }
  532. btn_search.dispatch("DOMActivate");
  533. model.refresh();
  534. ]]>
  535. </script>
  536. </button>
  537. <button id="btn_creatdone" class="btn4_letter4" visibility="visible" style="left:893px; top:3px; width:80px; height:22px; ">
  538. <caption>자료마감</caption>
  539. <script type="javascript" ev:event="DOMActivate">
  540. <![CDATA[
  541. var retMes = messageBox("자료를 마감을", "Q004");
  542. if ( retMes != 6) {
  543. return;
  544. }
  545. ipt_workgbn.value="C";
  546. if(ipt_workgbn.value =="C"){
  547. for(i=1;i < grd_scholexplist.rows;i++){
  548. grd_scholexplist.addStatus(i,"update");
  549. }
  550. misfSave("TXRPA02001");
  551. }
  552. btn_search.dispatch("DOMActivate");
  553. model.refresh();
  554. ]]>
  555. </script>
  556. </button>
  557. <button id="button2" class="btn4_letter4" style="left:1055px; top:3px; width:80px; height:22px; ">
  558. <caption>급여이체</caption>
  559. <script type="javascript" ev:event="DOMActivate">
  560. <![CDATA[
  561. if(!isRequiredControls("ipt_telym","cmb_instcd"))return;
  562. var retMes = messageBox("급여이체를 ", "Q004");
  563. if ( retMes != 6) {
  564. return;
  565. }
  566. submit("TRRPA00603");
  567. var sumyn= model.getValue("/root/temp/sumyn");
  568. var payappyn =model.getValue("/root/temp/payappyn");
  569. var paytargetyn = model.getValue("/root/temp/paytargetyn");
  570. var paycreatyn = model.getValue("/root/temp/paycreatyn");
  571. if(sumyn !='Y'){
  572. messageBox("이체할 자료가 ","I004");
  573. return;
  574. }
  575. if(paycreatyn =='N'){
  576. messageBox("자료마감이 완료되지 않아 급여이체를 ","E001");
  577. return;
  578. }
  579. if(paytargetyn !='Y'){
  580. messageBox("급여대상자가 생성되지 않아 급여이체를","E001");
  581. return;
  582. }
  583. if(payappyn =='Y'){
  584. messageBox("급여이체 자료가 이미","I001");
  585. return;
  586. }
  587. var instcd = getUserInfo("dutplceinstcd");
  588. var payym = model.getValue("/root/send/search/payappmm");
  589. var payitemcd = "10490";
  590. model.setValue("/root/send/payappsend/instcd",instcd);
  591. model.setValue("/root/send/payappsend/payym",payym);
  592. model.setValue("/root/send/payappsend/payitemcd",payitemcd);
  593. misfSave("TXRWZ00303");
  594. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  595. messageBox("급여이체작업이","I001");
  596. misfMsterDetailRetrieve();
  597. }
  598. ]]>
  599. </script>
  600. </button>
  601. </group>
  602. </xhtml:body>
  603. </xhtml:html>