SMRWY01900_년간급여자료조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>년간급여자료조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <ponyemplform>
  11. <yyendcalcmanbaselist>
  12. <emplno/>
  13. <calcyy/>
  14. <emplnm/>
  15. <calcinst/>
  16. <entcodd/>
  17. <grupjoblnnm/>
  18. <deptnm/>
  19. <jobposnm/>
  20. <jobgradnm/>
  21. <payclsnm/>
  22. </yyendcalcmanbaselist>
  23. </ponyemplform>
  24. <yypaysum>
  25. <yypaysumlist>
  26. <emplno/>
  27. <emplnm/>
  28. <totpayitemamt/>
  29. <payitemnm/>
  30. <payitemcd/>
  31. <calcyy/>
  32. </yypaysumlist>
  33. </yypaysum>
  34. <yypaydetail>
  35. <yypaydetaillist>
  36. <paymm/>
  37. <payitemnm/>
  38. <payitemamt/>
  39. <payitemadjamt/>
  40. <payitemcd/>
  41. <emplno/>
  42. <calcyy/>
  43. </yypaydetaillist>
  44. </yypaydetail>
  45. </main>
  46. <send>
  47. <searchlist>
  48. <calcyy/>
  49. <instcd/>
  50. <dutplcedeptcd/>
  51. <actndeptqualyn/>
  52. <workym/>
  53. <retireyn/>
  54. <emplno/>
  55. <dutplcedeptnm/>
  56. <emplnm/>
  57. </searchlist>
  58. <ponyemplform>
  59. <emplno/>
  60. <calcyy/>
  61. </ponyemplform>
  62. <savelist>
  63. <yypaydetaillist/>
  64. </savelist>
  65. <yypaysum>
  66. <emplno/>
  67. <calcyy/>
  68. <payitemcd/>
  69. </yypaysum>
  70. </send>
  71. <init/>
  72. <temp>
  73. </temp>
  74. </root>
  75. </instance>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. fInitialize();
  79. /* Grid 초기화 */
  80. misfGridInit(grd_yyendcalcmanbaselist);
  81. misfGridInit(grd_yypaydetaillist);
  82. misfGridInit(grd_yypaysumlist);
  83. /* Grid의 Mater, Detail관계 설정
  84. misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
  85. misfMsterDetailSet(grd_yyendcalcmanbaselist, null, "TRRWY00401" ,"N");
  86. misfMsterDetailSet(grd_yypaydetaillist, grd_yyendcalcmanbaselist, "TRRWY01901" ,"Y");
  87. misfMsterDetailSet(grd_yypaysumlist, grd_yyendcalcmanbaselist, "TRRWY01902" ,"N");
  88. btn_save.disabled = !(checkAuth("X"));
  89. //misfMsterDetailSet(grd_clubempllist,grd_clubcodelist, "TRRPA00401","N" );
  90. // 공통코드 바인딩 silver
  91. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  92. var instcd = getUserInfo("dutplceinstcd");
  93. cmb_instcd.value=instcd;
  94. misfGetUserAuth();
  95. if (DUTY_PAY_YN == "Y" ) {
  96. cmb_instcd.disabled = false;
  97. }
  98. else {
  99. //cmb_instcd.disabled = true;
  100. }
  101. ]]>
  102. </script>
  103. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  105. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  106. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  108. <script type="javascript">
  109. <![CDATA[
  110. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  111. function fInitialize() {
  112. model.removeNodeset("/root/main/ponyemplform/yyendcalcmanbaselist");
  113. model.removeNodeset("/root/main/yypaysum/yypaysumlist");
  114. model.removeNodeset("/root/main/yypaysum/yypaydetaillist");
  115. model.resetInstanceNode("/root/send");
  116. model.refresh();
  117. var nowdate = getCurrentDate();
  118. var yy = nowdate.substring(0,4);
  119. ipt_calcyy.value = yy;
  120. // ipt_paymm.value = getday.substring(0,6);
  121. var instcd = getUserInfo("dutplceinstcd");
  122. cmb_instcd.value=instcd;
  123. }
  124. ]]>
  125. </script>
  126. <submission id="TRRWY00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchlist" resultref="/root/main/ponyemplform"/>
  127. <submission id="TRRWY01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ponyemplform" resultref="/root/main/yypaysum"/>
  128. <submission id="TXRWY01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
  129. <submission id="TRRWY01902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/yypaysum" resultref="/root/main/yypaydetail"/>
  130. </model>
  131. </xhtml:head>
  132. <xhtml:body>
  133. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  134. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">년간급여자료조회</caption>
  135. </group>
  136. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
  137. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  138. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:17px; width:56px; height:22px; ">
  139. <caption>조회</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. if(ipt_calcyy.value==""){
  143. messageBox("정산년도는","I003");
  144. return;
  145. }
  146. if(cmb_instcd.value==""){
  147. messageBox("기관은","I003");
  148. return;
  149. }
  150. misfMsterDetailRetrieve();
  151. ]]>
  152. </script>
  153. </button>
  154. <caption id="cap_calcyy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">정산년도 :</caption>
  155. <caption id="caption3" class="search_name" style="left:425px; top:19px; width:99px; height:17px; ">근무부서 :</caption>
  156. <caption id="caption4" class="search_name" style="left:745px; top:19px; width:86px; height:17px; ">사원번호 :</caption>
  157. <line id="line3" class="line_4" style="x1:1107px; y1:16px; x2:1107px; y2:38px; border-color:#ffe4bb; border-left-style:solid; "/>
  158. <line id="line4" class="line_1" style="x1:0px; y1:268px; x2:547px; y2:269px; "/>
  159. <input id="ipt_calcyy" ref="/root/send/searchlist/calcyy" class="input_default" inputtype="date" format="yyyy" style="left:100px; top:18px; width:90px; height:19px; "/>
  160. <datagrid id="grd_yyendcalcmanbaselist" nodeset="/root/main/ponyemplform/yyendcalcmanbaselist" caption="사원번호^사원명^부서^직군^직위^직급^호봉^입사일" colsep="^" colwidth="100, 100, 150, 150, 150, 150,150, 150" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:73px; width:1195px; height:298px; ">
  161. <col ref="emplno" style="text-align:center; "/>
  162. <col ref="emplnm" style="text-align:center; "/>
  163. <col ref="deptnm"/>
  164. <col ref="grupjoblnnm" style="text-align:center; "/>
  165. <col ref="jobposnm" style="text-align:center; "/>
  166. <col ref="jobgradnm" style="text-align:center; "/>
  167. <col ref="payclsnm" style="text-align:center; "/>
  168. <col ref="entcodd" format="yyyy-mm-dd" style="text-align:center; "/>
  169. <script type="javascript" ev:event="onrowchanged">
  170. <![CDATA[
  171. misfMsterDetailRetrieve();
  172. ]]>
  173. </script>
  174. </datagrid>
  175. <select1 id="cmb_instcd" ref="/root/send/searchlist/instcd" class="combo_s_essential" appearance="minimal" style="left:299px; top:18px; width:100px; height:19px; ">
  176. <choices>
  177. <itemset>
  178. <label/>
  179. <value/>
  180. </itemset>
  181. </choices>
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. btn_search.dispatch("DOMActivate");
  185. ]]>
  186. </script>
  187. </select1>
  188. <input id="ipt_dutdeptnm" ref="/root/send/searchlist/dutplcedeptnm" class="input_search" disabled="true" navindex="3" style="left:605px; top:18px; width:115px; height:19px; ">
  189. <script type="javascript" ev:event="xforms-value-changed">
  190. <![CDATA[
  191. misfValidationCheck("02", "", "dutplcedeptcd,dutdeptnm_s" );
  192. model.refresh();
  193. ]]>
  194. </script>
  195. </input>
  196. <input id="ipt_dutdeptcd" ref="/root/send/searchlist/dutplcedeptcd" class="input_search" navindex="2" style="left:510px; top:18px; width:70px; height:19px; ">
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. misfValidationCheck("02", "", "dutplcedeptcd,dutplcedeptnm" );
  200. model.refresh();
  201. ]]>
  202. </script>
  203. </input>
  204. <caption id="cap_instcd" class="search_name" style="left:215px; top:19px; width:85px; height:17px; ">기 관 :</caption>
  205. <button id="btn_dutdept" class="icon_search" style="left:585px; top:20px; width:16px; height:16px; ">
  206. <caption/>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. var recv_list = "dutplcedeptcd,dutplcedeptnm";
  210. misfOpenPopUpList("02", ipt_dutdeptcd,"",recv_list);
  211. model.refresh();
  212. ]]>
  213. </script>
  214. </button>
  215. <caption id="caption18" class="tit_2" style="left:5px; top:381px; width:157px; height:13px; ">급여지급내역</caption>
  216. <datagrid id="grd_yypaydetaillist" nodeset="/root/main/yypaydetail/yypaydetaillist" caption="수당구분^지급월^지급금액^조정금액^수당구분코드^사원번호^정산년도" colsep="^" colwidth="223, 75, 131, 143, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:580px; top:402px; width:615px; height:332px; ">
  217. <col ref="payitemnm" style="text-align:center; "/>
  218. <col ref="paymm" style="text-align:center; "/>
  219. <col ref="payitemamt" type="output" format="#,###" maxlength="12" style="text-align:right; padding-right:5; "/>
  220. <col ref="payitemadjamt" type="input" format="#,###" maxlength="12" style="text-align:right; padding-right:5; "/>
  221. <col ref="payitemcd" visibility="hidden"/>
  222. <col ref="emplno" visibility="hidden"/>
  223. <col ref="calcyy" visibility="hidden"/>
  224. </datagrid>
  225. <line id="line6" class="line_1" style="x1:580px; y1:398px; x2:1195px; y2:399px; "/>
  226. <caption id="caption8" class="tit_2" style="left:585px; top:380px; width:157px; height:13px; ">월별지급내역</caption>
  227. <input id="ipt_emplnm" ref="/root/send/searchlist/emplnm" class="input_search" navindex="21" imemode="hangul" style="left:928px; top:18px; width:115px; height:19px; ">
  228. <script type="javascript" ev:event="xforms-value-changed">
  229. <![CDATA[
  230. var recv_list = "emplno,emplnm";
  231. rpbfValidationCheck("EMPLNM", recv_list);
  232. model.refresh();
  233. ]]>
  234. </script>
  235. </input>
  236. <input id="ipt_emplno" ref="/root/send/searchlist/emplno" class="input_search" navindex="20" style="left:833px; top:18px; width:70px; height:19px; ">
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. var recv_list = "emplno,emplnm";
  240. rpbfValidationCheck("EMPLNO", recv_list);
  241. model.refresh();
  242. ]]>
  243. </script>
  244. </input>
  245. <button id="btn_emplsearch" class="icon_search" style="left:908px; top:20px; width:16px; height:16px; ">
  246. <caption/>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. var recv_list = "emplno,emplnm";
  250. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  251. model.refresh();
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_exceldetail" class="btn2_letter4" style="left:1131px; top:376px; width:64px; height:19px; ">
  256. <caption>엑셀저장</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  260. if (fileName != "")
  261. {
  262. grd_yypaydetaillist.saveExcel(fileName, "SheetName", true, true, "", "");
  263. }
  264. ]]>
  265. </script>
  266. </button>
  267. <button id="btn_excelmaster" class="btn2_letter4" style="left:1131px; top:47px; width:64px; height:19px; ">
  268. <caption>엑셀저장</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  272. if (fileName != "")
  273. {
  274. grd_yyendcalcmanbaselist.saveExcel(fileName, "SheetName", true, true, "", "");
  275. }
  276. ]]>
  277. </script>
  278. </button>
  279. <line id="line22" class="line_1" style="x1:0px; y1:68px; x2:1195px; y2:68px; "/>
  280. <caption id="caption46" class="tit_2" style="left:5px; top:54px; width:157px; height:13px; ">사원정보</caption>
  281. <datagrid id="grd_yypaysumlist" nodeset="/root/main/yypaysum/yypaysumlist" caption="사원번호^사원명^수당구분^금액^수당구분코드^정산년도" colsep="^" colwidth="100, 87, 200, 144, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:402px; width:575px; height:332px; ">
  282. <col ref="emplno" style="text-align:center; "/>
  283. <col ref="emplnm" style="text-align:center; "/>
  284. <col ref="payitemnm" style="text-align:center; "/>
  285. <col ref="totpayitemamt" format="#,###" style="text-align:right; padding-right:5; "/>
  286. <col ref="payitemcd" visibility="hidden"/>
  287. <col ref="calcyy" visibility="hidden"/>
  288. <script type="javascript" ev:event="ondblclick">
  289. <![CDATA[
  290. var cur_row=grd_yypaysumlist.row;
  291. model.setValue("/root/send/yypaysum/payitemcd",model.getValue("/root/main/yypaysum/yypaysumlist["+cur_row+"]/payitemcd"));
  292. submit("TRRWY01902");
  293. grd_yypaydetaillist.mergecol(2) = false;
  294. grd_yypaydetaillist.mergecol(3) = false;
  295. grd_yypaydetaillist.mergecol(4) = false;
  296. grd_yypaydetaillist.mergecells = "bycol";
  297. ]]>
  298. </script>
  299. </datagrid>
  300. <line id="line2" class="line_1" style="x1:0px; y1:397px; x2:575px; y2:397px; "/>
  301. <button id="button1" class="btn2_letter4" style="left:511px; top:376px; width:64px; height:19px; ">
  302. <caption>엑셀저장</caption>
  303. <script type="javascript" ev:event="DOMActivate">
  304. <![CDATA[
  305. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  306. if (fileName != "")
  307. {
  308. grd_yypaysumlist.saveExcel(fileName, "SheetName", true, true, "", "");
  309. }
  310. ]]>
  311. </script>
  312. </button>
  313. </group>
  314. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  315. <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  316. <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
  317. <caption>초기화</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. var updtdata = getGridUpdateData(grd_yypaydetaillist);
  321. if (updtdata != "") {
  322. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  323. if (ret != 6) { // not OK
  324. return;
  325. }
  326. }
  327. fInitialize();
  328. ]]>
  329. </script>
  330. </button>
  331. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  332. <caption>저장</caption>
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. var updtdata = getGridUpdateData(grd_yypaydetaillist);
  336. if (updtdata == "" ) {
  337. messageBox("변경된 데이터가","I004");
  338. return;
  339. }
  340. misfSave("TXRWY01901");
  341. ]]>
  342. </script>
  343. </button>
  344. </group>
  345. </xhtml:body>
  346. </xhtml:html>