SMRPA07200_월별경조금공제내역.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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. <congramaster>
  11. <congraamtlist>
  12. <baseym/>
  13. <dutplceinstnm/>
  14. <dutplcedeptnm/>
  15. <emplno/>
  16. <emplnm/>
  17. <jobposnm/>
  18. <deduamt/>
  19. <deducnt/>
  20. <deduamttot/>
  21. <cmt/>
  22. <jobposcd/>
  23. <dutplceinst/>
  24. <dutplcedeptcd/>
  25. </congraamtlist>
  26. <congratotlist>
  27. <congrainstamt/>
  28. <congracnt/>
  29. <congratotamt/>
  30. <congratotcnt/>
  31. </congratotlist>
  32. </congramaster>
  33. </main>
  34. <send>
  35. <search>
  36. <dutplceinst/>
  37. <baseym/>
  38. <emplno/>
  39. <emplnm/>
  40. <endyn/>
  41. <gvnoffcordyn/>
  42. <deduexcyn/>
  43. </search>
  44. <savelist>
  45. <congraamtlist/>
  46. </savelist>
  47. <report>
  48. <selectinstnm/>
  49. </report>
  50. <payappsend>
  51. <instcd/>
  52. <payym/>
  53. <payitemcd/>
  54. </payappsend>
  55. </send>
  56. <init>
  57. <checkbox1>
  58. <label>해외연수여부</label>
  59. <value>Y</value>
  60. </checkbox1>
  61. <checkbox2>
  62. <label>공제제외여부</label>
  63. <value>Y</value>
  64. </checkbox2>
  65. </init>
  66. <dataynlist>
  67. <baseamtyn/>
  68. <requestyn/>
  69. <creatyn/>
  70. <endyn/>
  71. <payrefltyn/>
  72. </dataynlist>
  73. <temp/>
  74. </root>
  75. </instance>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. fInitialize();
  79. misfGridInit(grd_congraamtlist);
  80. misfMsterDetailSet(grd_congraamtlist,null,"TRRPA07201","Y");
  81. btn_save.disabled = !(checkAuth("X"));
  82. // 공통코드 바인딩 silver
  83. misfComboComCdList('Z0007', cmb_dutplceinst,"Y");
  84. if (getUserInfo("dutplceinstcd") == "017") {
  85. cmb_dutplceinst.value = "017";
  86. cmb_dutplceinst.disabled = true;
  87. }
  88. // misfComboCopyItemSet(cmb_dutplceinst, "", grd_congraamtlist, "dutplceinst");
  89. //var dutplceinst = getUserInfo("dutplceinstcd");
  90. // cmb_dutplceinst.value=dutplceinst;
  91. //btn_search.dispatch("DOMActivate");
  92. ]]>
  93. </script>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  98. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  99. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  100. <script type="javascript">
  101. <![CDATA[
  102. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  103. function fInitialize() {
  104. model.removeNodeset("/root/main/congramaster/congraamtlist");
  105. model.resetInstanceNode("/root/send");
  106. model.refresh();
  107. var dutplceinst = getUserInfo("dutplceinstcd");
  108. cmb_dutplceinst.value=dutplceinst;
  109. var curDate = getCurrentDate().toDate();
  110. model.setValue("/root/send/search/baseym", curDate.getDateFormat('YYYYMM'));
  111. }
  112. function fPrint() {
  113. model.makeNode("/root/send/report/selectinstnm");
  114. var selectInstnm=cmb_dutplceinst.label;
  115. model.setValue("/root/send/report/selectinstnm", selectInstnm);
  116. exeReportPreview("RPRPA07200", "XMLSTR", "/root/send/report");
  117. }
  118. ]]>
  119. </script>
  120. <submission id="TRRPA07201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/congramaster"/>
  121. <submission id="TXRPA07201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
  122. <submission id="TXRPA07202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
  123. <submission id="TRRPA07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/dataynlist"/>
  124. <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payappsend" resultref="/root/temp"/>
  125. </model>
  126. </xhtml:head>
  127. <xhtml:body style="margin-left:8; margin-right:8; ">
  128. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  129. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">월별 경조금공제내역</caption>
  130. </group>
  131. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  132. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; "/>
  133. <caption id="cap_dutplceinst" class="search_name" style="left:215px; top:19px; width:111px; height:17px; ">급여기관 :</caption>
  134. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  135. <caption>조회</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. if(!isRequiredControls("ipt_baseym"))return;
  139. submit("TRRPA07201");
  140. ]]>
  141. </script>
  142. </button>
  143. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  144. <line id="line207" class="line_1" style="x1:0; y1:69; x2:1195; y2:69px; "/>
  145. <datagrid id="grd_congraamtlist" nodeset="/root/main/congramaster/congraamtlist" caption="기준년월^급여기관^교실^사원번호^성명^직위^공제금액^공제건수^공제금액계^해외연수일자^공제제외여부^비고^급여반영^직위코드^기관코드^부서코드" colsep="^" colwidth="70, 122, 130, 90, 61, 90, 90, 60, 80, 86, 80, 129, 62, 31, 44, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:74px; width:1194px; height:601px; ">
  146. <col ref="baseym" format="yyyy-mm" _key="true" style="text-align:center; "/>
  147. <col ref="dutplceinstnm" style="text-align:center; "/>
  148. <col ref="dutplcedeptnm"/>
  149. <col ref="emplno" style="text-align:center; "/>
  150. <col ref="emplnm" style="text-align:center; "/>
  151. <col ref="jobposnm" style="text-align:center; "/>
  152. <col ref="deduamt" type="input" format="#,###" _key="true" style="text-align:right; padding-right:10; "/>
  153. <col ref="deducnt" style="text-align:center; "/>
  154. <col ref="deduamttot" type="input" format="#,###" style="text-align:right; "/>
  155. <col ref="gvnoffcorddd" format="yyyy-mm-dd" style="text-align:center; "/>
  156. <col checkvalue="Y,N" ref="deduexcyn" type="checkbox"/>
  157. <col imemode="hangul" ref="cmt" type="input"/>
  158. <col ref="payrefltyn" style="text-align:center; "/>
  159. <col ref="jobposcd" visibility="hidden"/>
  160. <col ref="dutplceinst" visibility="hidden"/>
  161. <col ref="dutplcedeptcd" visibility="hidden"/>
  162. </datagrid>
  163. <select1 id="cmb_dutplceinst" ref="/root/send/search/dutplceinst" class="combo_s_essential" appearance="minimal" style="left:300px; top:18px; width:190px; height:19px; ">
  164. <choices>
  165. <itemset>
  166. <label/>
  167. <value/>
  168. </itemset>
  169. </choices>
  170. </select1>
  171. <caption id="caption9" class="tit_2" style="left:0px; top:54px; width:183px; height:14px; ">월별 경조금 공제 요청</caption>
  172. <input id="ipt_baseym" ref="/root/send/search/baseym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:100px; top:18px; width:100px; height:19px; ">
  173. <script type="javascript" ev:event="xforms-value-changed">
  174. <![CDATA[
  175. btn_search.dispatch("DOMActivate");
  176. var instcd = cmb_dutplceinst.value;
  177. if( getStringLength(ipt_baseym.value) == "6" ) {
  178. model.removeNodeset(cmb_dutplceinst.attribute("ref"));
  179. model.makeNode("/root/send/search/dutplceinst");
  180. misfComboInstCdListMulti("cmb_dutplceinst",ipt_baseym.value,"","Y");
  181. cmb_dutplceinst.value = instcd;
  182. model.refresh();
  183. }
  184. ]]>
  185. </script>
  186. </input>
  187. <caption id="cap_baseym" class="search_name" style="left:15px; top:19px; width:91px; height:17px; ">기준년월:</caption>
  188. <caption id="cap_emplno" class="search_name" style="left:513px; top:19px; width:99px; height:17px; ">사원번호 :</caption>
  189. <input id="ipt_emplnm" ref="/root/send/search/emplnm" class="input_search" navindex="21" imemode="hangul" style="left:699px; top:18px; width:106px; height:19px; ">
  190. <script type="javascript" ev:event="onkeypress">
  191. <![CDATA[
  192. inputEnterKey("btn_search", "DOMActivate");
  193. ]]>
  194. </script>
  195. </input>
  196. <input id="ipt_emplno" ref="/root/send/search/emplno" class="input_search" navindex="20" style="left:604px; top:18px; width:69px; height:19px; ">
  197. <script type="javascript" ev:event="onkeypress">
  198. <![CDATA[
  199. inputEnterKey("btn_search", "DOMActivate");
  200. ]]>
  201. </script>
  202. </input>
  203. <button id="btn_emplsearch" class="icon_search" style="left:679px; top:18px; width:16px; height:16px; ">
  204. <caption/>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. var recv_list = "emplno,emplnm";
  208. //rpbfOpenPopUpList("SPRPB00101", grd_congraamtreqlist, recv_list,"","N","Y");
  209. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"ipt_systemflag","N");
  210. model.refresh();
  211. ]]>
  212. </script>
  213. </button>
  214. <input id="ipt_congratotamt" ref="/root/main/congramaster/congratotlist/congratotamt" class="input_default" disabled="true" navindex="45" format="#,###" style="left:625px; top:712px; width:150px; height:19px; text-align:right; vertical-align:middle; "/>
  215. <input id="ipt_congracnt" ref="/root/main/congramaster/congratotlist/congracnt" class="input_default" disabled="true" navindex="45" format="#,###" style="left:365px; top:712px; width:150px; height:19px; text-align:right; vertical-align:middle; "/>
  216. <caption id="caption11" class="cell_1" style="left:0px; top:710px; width:101px; height:23px; vertical-align:middle; ">기관공제금액계</caption>
  217. <caption id="caption12" class="cell_1" style="left:262px; top:710px; width:100px; height:23px; vertical-align:middle; ">기관공제건수계</caption>
  218. <line id="line2" class="line_1" style="x1:0px; y1:705px; x2:1192px; y2:705px; "/>
  219. <caption id="caption7" class="tit_2" style="left:0px; top:690px; width:198px; height:14px; ">월별 경조금 공제합계</caption>
  220. <caption id="caption8" class="cell_1" style="left:522px; top:710px; width:100px; height:23px; vertical-align:middle; ">공제금액총합계</caption>
  221. <input id="ipt_payterm" ref="/root/main/congramaster/congratotlist/congrainstamt" class="input_default" disabled="true" navindex="20" format="#,###" style="left:103px; top:712px; width:150px; height:19px; text-align:right; vertical-align:middle; "/>
  222. <input id="input1" ref="/root/main/congramaster/congratotlist/congratotcnt" class="input_default" disabled="true" navindex="45" format="#,###" style="left:883px; top:710px; width:150px; height:19px; text-align:right; vertical-align:middle; "/>
  223. <caption id="caption1" class="cell_1" style="left:780px; top:708px; width:100px; height:23px; vertical-align:middle; ">공제건수총합계</caption>
  224. <input id="input2" ref="/root/send/search/endyn" visibility="hidden" style="left:1055px; top:20px; width:50px; height:19px; "/>
  225. <button id="btn_saveexcel" class="btn2_letter4" style="left:1124px; top:48px; width:64px; height:19px; ">
  226. <caption>엑셀저장</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  230. if (fileName != "")
  231. {
  232. grd_congraamtlist.saveExcel(fileName, "SheetName", true, true, "", "");
  233. }
  234. ]]>
  235. </script>
  236. </button>
  237. <select id="ckb_famydoduyn" ref="/root/send/search/gvnoffcordyn" class="checkbox_search" overflow="visible" appearance="full" style="left:825px; top:20px; width:90px; height:15px; ">
  238. <choices>
  239. <itemset nodeset="/root/init/checkbox1">
  240. <label ref="label"/>
  241. <value ref="value"/>
  242. </itemset>
  243. </choices>
  244. </select>
  245. <select id="ckb_gvnoffcordyn" ref="/root/send/search/deduexcyn" class="checkbox_search" overflow="visible" appearance="full" style="left:925px; top:20px; width:100px; height:15px; ">
  246. <choices>
  247. <itemset nodeset="/root/init/checkbox2">
  248. <label ref="label"/>
  249. <value ref="value"/>
  250. </itemset>
  251. </choices>
  252. </select>
  253. </group>
  254. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  255. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  256. <button id="btn_save" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
  257. <caption>저장</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. var updtdata = getGridUpdateData(grd_congraamtlist);
  261. if (updtdata == "" ) {
  262. messageBox("변경된 데이터가","I004");
  263. return;
  264. }
  265. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  266. if ( retMes != 6) {
  267. return;
  268. }
  269. submit("TRRPA07102");
  270. var endyn= model.getValue("/root/dataynlist/endyn");
  271. if(endyn =='Y'){
  272. messageBox("마감이 완료된 자료는 수정 ","E001");
  273. return;
  274. }
  275. if(!checkKeyColumn("grd_congraamtlist"))return;
  276. misfSave("TXRPA07201");
  277. ]]>
  278. </script>
  279. </button>
  280. <button id="btn_clear" class="btn4_letter3" style="left:984px; top:3px; width:68px; height:22px; ">
  281. <caption>초기화</caption>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. var updtdata = getGridUpdateData(grd_congraamtlist);
  285. if (updtdata != "" ) {
  286. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  287. if (ret != 6) { // not OK
  288. return;
  289. }
  290. }
  291. fInitialize();
  292. ]]>
  293. </script>
  294. </button>
  295. <button id="button1" class="btn4_letter4" visibility="hidden" style="left:713px; top:2px; width:80px; height:22px; ">
  296. <caption>공제마감</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. var updtdata = getGridUpdateData(grd_congraamtlist);
  300. if (updtdata != "" ) {
  301. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  302. if (ret != 6) { // not OK
  303. return;
  304. }
  305. }
  306. var retMes = messageBox("경조금 공제내역을 마감 하시겠습니까?", "Q999");
  307. if ( retMes != 6) {
  308. return;
  309. }
  310. submit("TRRPA07102");
  311. var creatyn=model.getValue("/root/dataynlist/creatyn");
  312. if(creatyn !='Y'){
  313. messageBox("마감할 자료가 ","I004");
  314. return;
  315. }
  316. model.setValue("/root/send/search/endyn","Y");
  317. submit("TXRPA07202");
  318. ]]>
  319. </script>
  320. </button>
  321. <button id="button2" class="btn4_letter4" visibility="hidden" style="left:795px; top:2px; width:80px; height:22px; ">
  322. <caption>마감취소</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. var updtdata = getGridUpdateData(grd_congraamtlist);
  326. if (updtdata != "" ) {
  327. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  328. if (ret != 6) { // not OK
  329. return;
  330. }
  331. }
  332. var retMes = messageBox("마감된 경조금공제내역을 취소 하시겠습니까?", "Q999");
  333. if ( retMes != 6) {
  334. return;
  335. }
  336. submit("TRRPA07102");
  337. var endyn= model.getValue("/root/dataynlist/endyn");
  338. var payrefltyn=model.getValue("/root/dataynlist/payrefltyn");
  339. if(payrefltyn =='Y'){
  340. messageBox("급여반영이 완료된 자료는 취소 ","E001");
  341. return;
  342. }
  343. if(endyn !='Y'){
  344. messageBox("취소할 자료가 ","I004");
  345. return;
  346. }
  347. model.setValue("/root/send/search/endyn","N");
  348. submit("TXRPA07202");
  349. ]]>
  350. </script>
  351. </button>
  352. <button id="button3" class="btn6_letter5" style="left:0; top:3px; width:92px; height:22px; ">
  353. <caption>내역서출력</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. fPrint();
  357. ]]>
  358. </script>
  359. </button>
  360. <button id="button4" class="btn4_letter4" style="left:1053px; top:3px; width:80px; height:22px; ">
  361. <caption>급여이체</caption>
  362. <script type="javascript" ev:event="DOMActivate">
  363. <![CDATA[
  364. if(!isRequiredControls("ipt_basedd_s"))return;
  365. var retMes = messageBox("자료를 급여이체하시겠습니까?", "Q999");
  366. if ( retMes != 6) {
  367. return;
  368. }
  369. var dutplceinst = '103';//getUserInfo("dutplceinstcd");
  370. model.setValue("/root/send/search/dutplceinst",dutplceinst);
  371. submit("TRRPA07102");
  372. var endyn= model.getValue("/root/dataynlist/endyn");
  373. var payrefltyn=model.getValue("/root/dataynlist/payrefltyn");
  374. if(payrefltyn =='Y'){
  375. messageBox("급여이체 자료가 이미","I001");
  376. return;
  377. }
  378. var instcd = getUserInfo("dutplceinstcd");
  379. var payym = model.getValue("/root/send/search/baseym");
  380. var payitemcd = "60220";
  381. model.setValue("/root/send/payappsend/instcd",instcd);
  382. model.setValue("/root/send/payappsend/payym",payym);
  383. model.setValue("/root/send/payappsend/payitemcd",payitemcd);
  384. misfSave("TXRWZ00303");
  385. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  386. messageBox("급여이체작업이","I001");
  387. misfMsterDetailRetrieve();
  388. }
  389. ]]>
  390. </script>
  391. </button>
  392. </group>
  393. </xhtml:body>
  394. </xhtml:html>