SMRPA07800_동호회비공제내역.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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. <deducord>
  11. <clubclublist>
  12. <cmninstcd/>
  13. <instnm/>
  14. <cmntcd/>
  15. <cmntnm/>
  16. <reglmbrcnt/>
  17. <asctmbrcnt/>
  18. <reglmbrannconvnt/>
  19. <asctmbrannconvnt/>
  20. <totmmconvnt/>
  21. <basedd/>
  22. <holdmembcnt/>
  23. <workgbn/>
  24. </clubclublist>
  25. </deducord>
  26. <deducorddetail>
  27. <clubdedulist>
  28. <cmntnm/>
  29. <emplno/>
  30. <emplnm/>
  31. <posinstnm/>
  32. <posinstcd/>
  33. <deptcd/>
  34. <deptnm/>
  35. <reglmbrgrdenm/>
  36. <reglmbrgrde/>
  37. <clubcost/>
  38. <paydeducretyn/>
  39. <payappyn/>
  40. <cmninstcd/>
  41. <payappmm/>
  42. <cmntcd/>
  43. <paydeducretendyn/>
  44. <paydedutrgtmanyn/>
  45. </clubdedulist>
  46. </deducorddetail>
  47. <deducordreport>
  48. <clubdedulist/>
  49. </deducordreport>
  50. </main>
  51. <send>
  52. <getcond>
  53. <basedd/>
  54. <cmninstcd/>
  55. <cmntcd/>
  56. <workgbn/>
  57. </getcond>
  58. <clubdedusave>
  59. <workgbn/>
  60. <basepayappmm/>
  61. <clubdedulist/>
  62. <cmninstcd/>
  63. <cmntcd/>
  64. </clubdedusave>
  65. <deducord>
  66. <cmntcd/>
  67. <cmninstcd/>
  68. <basedd/>
  69. <workgbn/>
  70. <selyn>Y</selyn>
  71. </deducord>
  72. <basedd_s/>
  73. <repotsend>
  74. <basedd/>
  75. <cmninstcd/>
  76. <cmntcd/>
  77. </repotsend>
  78. <clubclublist/>
  79. </send>
  80. <init>
  81. <regclubcodelist/>
  82. </init>
  83. <hidden>
  84. <temp/>
  85. </hidden>
  86. </root>
  87. </instance>
  88. <script type="javascript" ev:event="xforms-ready">
  89. <![CDATA[
  90. submit("TRRPA00405");
  91. misfGetUserAuth();
  92. cmb_cmninstcd.disabled = true;
  93. cmb_cmntcd.disabled = true;
  94. if(DUTY_PAY_YN == 'Y'){
  95. cmb_cmninstcd.disabled = false;
  96. cmb_cmntcd.disabled = false;
  97. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"Y");
  98. }else{
  99. if(getUserInfo("dutplcecd") == '4030100000'){ // 재무팀 (?)
  100. cmb_cmntcd.disabled = false;
  101. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"Y");
  102. }else{
  103. if(model.getValue("/root/init/regclubcodelist/cmntcd") == ''){ // 회장/총무인클럽이 없는경우
  104. messageBox('권한이 없습니다.','');
  105. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"Y");
  106. button5.disabled = true;
  107. btn_search.disabled = true;
  108. }else{
  109. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"",getUserInfo("userid")); // 회장/총무인것만 콤보박스에
  110. cmb_cmntcd.disabled = false;
  111. }
  112. }
  113. }
  114. misfGridInit(grd_clubclublist);
  115. misfGridInit(grd_clubdedulist);
  116. misfMsterDetailSet(grd_clubclublist, null, "TRRPA02601" ,"N");
  117. misfMsterDetailSet(grd_clubdedulist, grd_clubclublist, "TRRPA02603" ,"Y");
  118. grd_clubclublist.fixedcellcheckbox(0, 1) = true;
  119. misfComboComCdList('Z0007', cmb_cmninstcd,'Y');
  120. var cmninstcd = getUserInfo("dutplceinstcd");
  121. cmb_cmninstcd.value=cmninstcd;
  122. var curdate = getCurrentDate();
  123. var cvtdate = curdate.toDate("YYYYMM");
  124. ipt_basedd_s.value=cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM");
  125. ipt_basedd.value=cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM");
  126. /*
  127. misfGridInit(grd_clubclublist);
  128. misfGridInit(grd_clubdedulist);
  129. grd_clubclublist.fixedcellcheckbox(0, 1) = true;
  130. misfComboComCdList('Z0007', cmb_cmninstcd,'Y');
  131. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"Y");
  132. misfMsterDetailSet(grd_clubclublist, null, "TRRPA02601" ,"N");
  133. misfMsterDetailSet(grd_clubdedulist, grd_clubclublist, "TRRPA02603" ,"Y");
  134. var cmninstcd = getUserInfo("dutplceinstcd");
  135. cmb_cmninstcd.value=cmninstcd;
  136. var curdate = getCurrentDate();
  137. var cvtdate = curdate.toDate("YYYYMM");
  138. ipt_basedd_s.value=cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM");
  139. ipt_basedd.value=cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM");*/
  140. ]]>
  141. </script>
  142. <submission id="TRRPA02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/getcond" resultref="/root/main/deducord"/>
  143. <submission id="TRRPA02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deducord" resultref="/root/main/deducorddetail"/>
  144. <submission id="TRRPA02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/clubclublist" resultref="/root/main/deducordreport"/>
  145. <submission id="TRRPA00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  146. </model>
  147. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  151. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  152. <script type="javascript" src="../../../mis/pubwelfmngtweb/js/RPS001.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  154. </xhtml:head>
  155. <xhtml:body style="margin-left:8; margin-right:8; ">
  156. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  157. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">급여기관별 동호회비조회</caption>
  158. </group>
  159. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:742px; ">
  160. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  161. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  162. <caption>조회</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. var ddstr=ipt_basedd_s.value.substr(0,6);
  166. ipt_basedd.value =ddstr;
  167. ipt_basepayappmm.value=ddstr;
  168. if(ipt_basedd.value ==""){
  169. messageBox("기준년월은","I003");
  170. return;
  171. }
  172. model.setValue("/root/send/getcond/workgbn","P");
  173. misfMsterDetailRetrieve();
  174. grd_clubclublist.subtotalposition = "below";
  175. grd_clubclublist.subtotal("clear", 0, 0);
  176. grd_clubclublist.subtotal("sum",grd_clubclublist.colRef("payinst") , grd_clubclublist.colRef("totmancnt"), "format:(-)#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  177. grd_clubclublist.subtotal("sum",grd_clubclublist.colRef("payinst") , grd_clubclublist.colRef("holdmembcnt"), "format:(-)#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "");
  178. grd_clubclublist.subtotal("sum",grd_clubclublist.colRef("payinst") , grd_clubclublist.colRef("totmmconvnt"), "format:(-)#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "");
  179. grd_clubclublist.subtotal("sum",grd_clubclublist.colRef("payinst") , grd_clubclublist.colRef("paymmconvnt"), "format:(-)#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "");
  180. ]]>
  181. </script>
  182. </button>
  183. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  184. <group id="group4" style="left:495px; top:50px; width:695px; height:690px; ">
  185. <caption id="caption1" class="tit_2" style="left:0px; top:15px; width:170px; height:13px; ">동호회원 LIST</caption>
  186. <line id="line3" class="line_1" style="x1:0px; y1:30px; x2:695px; y2:30px; "/>
  187. <datagrid id="grd_clubdedulist" nodeset="/root/main/deducorddetail/clubdedulist" caption="순번^급여기관명^사번^성명^근무부서^등급^회비^공제대상^급여반영여부^비 고" colsep="^" colwidth="36, 88, 63, 59, 85, 45, 74, 58, 80, 67, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:35px; width:694px; height:650px; ">
  188. <col ref="numno" style="padding-left:5; "/>
  189. <col ref="posinstnm"/>
  190. <col ref="emplno" style="text-align:center; "/>
  191. <col ref="emplnm" style="text-align:center; "/>
  192. <col ref="deptnm"/>
  193. <col ref="reglmbrgrdenm"/>
  194. <col ref="clubcost" format="#,###" style="text-align:right; "/>
  195. <col ref="paydedutrgtmanyn" style="text-align:center; "/>
  196. <col ref="payappyn" style="text-align:center; "/>
  197. <col ref="cmt"/>
  198. <col ref="seqno" visibility="hidden"/>
  199. <col ref="cmninstcd" visibility="hidden" _key="true"/>
  200. <col ref="payappmm" visibility="hidden"/>
  201. <col ref="cmntcd" visibility="hidden"/>
  202. <col ref="payinst" visibility="hidden"/>
  203. <script type="javascript" ev:event="onaftersort">
  204. <![CDATA[
  205. grd_clubdedulist.gridToInstance();
  206. ]]>
  207. </script>
  208. </datagrid>
  209. </group>
  210. <group id="group3" style="left:0px; top:50px; width:490px; height:690px; ">
  211. <caption id="caption2" class="tit_2" style="left:0px; top:15px; width:109px; height:13px; ">동호회 LIST</caption>
  212. <line id="line2" class="line_1" style="x1:0px; y1:30px; x2:490px; y2:30px; "/>
  213. <datagrid id="grd_clubclublist" nodeset="/root/main/deducord/clubclublist" caption="^기관명^동호회명^총인원^보류인원^공제대상액^급여반영액" colsep="^" colwidth="33, 88, 85, 50, 56, 68, 71, 60, 70, 70, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:35px; width:490px; height:650px; ">
  214. <col checkvalue="Y,N" ref="selyn" type="checkbox"/>
  215. <col ref="instnm"/>
  216. <col ref="cmntnm"/>
  217. <col ref="totmancnt" style="text-align:right; "/>
  218. <col ref="holdmembcnt" style="text-align:right; "/>
  219. <col ref="totmmconvnt" format="#,###" style="text-align:right; "/>
  220. <col ref="paymmconvnt" format="#,###" style="text-align:right; "/>
  221. <col ref="cmninstcd" visibility="hidden"/>
  222. <col ref="instnm" visibility="hidden"/>
  223. <col ref="cmntcd" visibility="hidden"/>
  224. <col ref="basedd" visibility="hidden"/>
  225. <col ref="paydeducretyn" visibility="hidden"/>
  226. <col ref="paydeducretendyn" visibility="hidden"/>
  227. <col ref="payrefmembcnt" visibility="hidden"/>
  228. <col ref="workgbn" visibility="hidden"/>
  229. <col ref="payinst" visibility="hidden"/>
  230. <script type="javascript" ev:event="onrowchanged">
  231. <![CDATA[
  232. var cmntcd = grd_clubclublist.valueMatrix(grd_clubclublist.row, grd_clubclublist.colRef("cmntcd"));
  233. var cmninstcd = grd_clubclublist.valueMatrix(grd_clubclublist.row, grd_clubclublist.colRef("cmninstcd"));
  234. var basedd = grd_clubclublist.valueMatrix(grd_clubclublist.row, grd_clubclublist.colRef("basedd"));
  235. model.setValue("/root/send/deducord/cmntcd",cmntcd);
  236. model.setValue("/root/send/deducord/cmninstcd",cmninstcd);
  237. model.setValue("/root/send/deducord/basedd",basedd);
  238. model.setValue("/root/send/deducord/selyn","Y");
  239. //misfMsterDetailRetrieve();
  240. submit("TRRPA02603");
  241. for(i=grd_clubdedulist.fixedRows; i< grd_clubdedulist.rows;i++){
  242. var paydedutrgtmanyn= grd_clubdedulist.valueMatrix(i,grd_clubdedulist.colRef("paydedutrgtmanyn"));
  243. var payappyn= grd_clubdedulist.valueMatrix(i,grd_clubdedulist.colRef("payappyn"));
  244. var null_check3 = model.getValue(grd_clubdedulist.attribute("nodeset")+"[" + i + "]/payrefmembcnt");
  245. if(null_check3 !='0' && paydedutrgtmanyn =='Y' && payappyn=='N'){
  246. grd_clubdedulist.rowStyle(i, "all", "background-color") = "#ffcccc";
  247. }else{
  248. grd_clubdedulist.rowStyle(i, "all", "background-color") = "#ffffff";
  249. }
  250. }
  251. grd_clubdedulist.subtotalposition = "below";
  252. grd_clubdedulist.subtotal("clear", 0, 0);
  253. grd_clubdedulist.subtotal("sum",grd_clubdedulist.colRef("payinst") , grd_clubdedulist.colRef("clubcost"), "format:(-)#,###; ", "background-color:#ffff99; font-weight:bold; ", 2, "합계");
  254. grd_clubclublist.dispatch("onmouseup");
  255. ]]>
  256. </script>
  257. </datagrid>
  258. </group>
  259. <input id="ipt_basedd_s" ref="/root/send/basedd_s" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:90px; top:18px; width:125px; height:19px; ">
  260. <script type="javascript" ev:event="xforms-value-changed">
  261. <![CDATA[
  262. var instcd = cmb_cmninstcd.value;
  263. if( getStringLength(ipt_basedd_s.value) == "6" ) {
  264. model.removeNodeset(cmb_cmninstcd.attribute("ref"));
  265. model.makeNode("/root/send/getcond/cmninstcd");
  266. misfComboInstCdListMulti("cmb_cmninstcd",ipt_basedd_s.value,"","Y");
  267. cmb_cmninstcd.value = instcd;
  268. model.refresh();
  269. }
  270. ]]>
  271. </script>
  272. </input>
  273. <input id="ipt_basedd" ref="/root/send/getcond/basedd" visibility="hidden"/>
  274. <caption id="caption8" class="search_name" style="left:6px; top:19px; width:81px; height:17px; vertical-align:middle; ">기준년월:</caption>
  275. <input id="ipt_basepayappmm" ref="/root/send/clubdedusave/basepayappmm"/>
  276. <input id="input1" ref="/root/send/clubdedusave/workgbn" visibility="hidden"/>
  277. <caption id="caption3" class="search_name" style="left:235px; top:20px; width:81px; height:17px; vertical-align:middle; ">기 관:</caption>
  278. <select1 id="cmb_cmninstcd" ref="/root/send/getcond/cmninstcd" class="combo_default" appearance="minimal" style="left:320px; top:20px; width:160px; height:19px; ">
  279. <choices>
  280. <itemset nodeset="/root/main/init">
  281. <label ref="cnstnm"/>
  282. <value ref="cnstcd"/>
  283. </itemset>
  284. </choices>
  285. <script type="javascript" ev:event="xforms-value-changed">
  286. <![CDATA[
  287. var instcd = model.getValue(cmb_cmninstcd.attribute("ref"));
  288. misfComboClubCdList(instcd,cmb_cmntcd_s,"Y");
  289. model.refresh();
  290. ]]>
  291. </script>
  292. </select1>
  293. </group>
  294. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  295. <line id="line1" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  296. <button id="button5" class="btn4_letter2" style="left:1135px; top:2px; width:56px; height:22px; ">
  297. <caption>출력</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. if(ipt_basedd_s.value ==""){
  301. messageBox("기준년월은","I003");
  302. return;
  303. }
  304. // model.setValue("/root/send/repotsend/basedd",ipt_basedd_s.value );
  305. // model.setValue("/root/send/repotsend/cmninstcd",getUserInfo("dutplceinstcd"));
  306. // model.setValue("/root/send/repotsend/cmntcd","");
  307. for (var i = grd_clubclublist.fixedRows; i < grd_clubclublist.rows; i++) {
  308. if (grd_clubclublist.valueMatrix(i, grd_clubclublist.colRef("selyn")) == "Y") {
  309. grd_clubclublist.rowStatus(i) = "2";
  310. }
  311. }
  312. model.setValue("/root/send/clubclublist", grd_clubclublist.getUpdateData());
  313. submit("TRRPA02605");
  314. exeReportPreview("RPRPA02601", "XMLSTR", "/root/send/report");
  315. ]]>
  316. </script>
  317. </button>
  318. </group>
  319. <caption id="caption4" class="search_name" style="left:510px; top:59px; width:81px; height:17px; vertical-align:middle; ">동호회명:</caption>
  320. <select1 id="cmb_cmntcd" ref="/root/send/getcond/cmntcd" class="combo_search" appearance="minimal" style="left:595px; top:59px; width:160px; height:19px; ">
  321. <choices>
  322. <itemset nodeset="/root/main/init">
  323. <label ref="cnstnm"/>
  324. <value ref="cnstcd"/>
  325. </itemset>
  326. </choices>
  327. </select1>
  328. </xhtml:body>
  329. </xhtml:html>