SMRPA02600_동호회비공제관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  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. <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. </clubclublist>
  24. </deducord>
  25. <deducorddetail>
  26. <clubdedulist>
  27. <cmntnm/>
  28. <emplno/>
  29. <emplnm/>
  30. <posinstnm/>
  31. <posinstcd/>
  32. <deptcd/>
  33. <deptnm/>
  34. <reglmbrgrdenm/>
  35. <reglmbrgrde/>
  36. <clubcost/>
  37. <paydeducretyn/>
  38. <payappyn/>
  39. <cmninstcd/>
  40. <payappmm/>
  41. <cmntcd/>
  42. <paydeducretendyn/>
  43. <paydedutrgtmanyn/>
  44. </clubdedulist>
  45. </deducorddetail>
  46. <deducordreport>
  47. <clubdedulist/>
  48. </deducordreport>
  49. </main>
  50. <send>
  51. <getcond>
  52. <basedd/>
  53. <cmninstcd/>
  54. <cmntcd/>
  55. <workgbn/>
  56. </getcond>
  57. <clubdedusave>
  58. <workgbn/>
  59. <basepayappmm/>
  60. <clubdedulist/>
  61. <cmninstcd/>
  62. <cmntcd/>
  63. </clubdedusave>
  64. <deducord>
  65. <cmntcd/>
  66. <cmninstcd/>
  67. <basedd/>
  68. </deducord>
  69. <basedd_s/>
  70. <repotsend>
  71. <basedd/>
  72. <cmninstcd/>
  73. <cmntcd/>
  74. </repotsend>
  75. </send>
  76. <init>
  77. <regclubcodelist/>
  78. </init>
  79. <hidden>
  80. <temp/>
  81. </hidden>
  82. </root>
  83. </instance>
  84. <script type="javascript" ev:event="xforms-ready">
  85. <![CDATA[
  86. submit("TRRPA00405");
  87. misfGetUserAuth();
  88. cmb_instcd.disabled = true;
  89. cmb_cmntcd.disabled = true;
  90. if(DUTY_PAY_YN == 'Y'){
  91. cmb_instcd.disabled = false;
  92. cmb_cmntcd.disabled = false;
  93. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"Y");
  94. }else{
  95. if(getUserInfo("dutplcecd") == '4030100000'){ // 재무팀 (?)
  96. cmb_cmntcd.disabled = false;
  97. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"Y");
  98. }else{
  99. if(model.getValue("/root/init/regclubcodelist/cmntcd") == ''){ // 회장/총무인클럽이 없는경우
  100. messageBox('권한이 없습니다.','');
  101. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"Y");
  102. btn_donecancel2.disabled = true;
  103. btn_save2.disabled = true;
  104. button5.disabled = true;
  105. btn_init.disabled = true;
  106. btn_search.disabled = true;
  107. }else{
  108. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"",getUserInfo("userid")); // 회장/총무인것만 콤보박스에
  109. cmb_cmntcd.disabled = false;
  110. }
  111. }
  112. }
  113. misfGridInit(grd_clubclublist);
  114. misfGridInit(grd_clubdedulist);
  115. misfMsterDetailSet(grd_clubclublist, null, "TRRPA02601" ,"N");
  116. misfMsterDetailSet(grd_clubdedulist, grd_clubclublist, "TRRPA02602" ,"Y");
  117. var curdate = getCurrentDate();
  118. var cvtdate = curdate.toDate("YYYYMM");
  119. ipt_basedd_s.value=cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM");
  120. ipt_basedd.value=cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM");
  121. misfComboComCdList("Z0007",cmb_instcd,"Y");
  122. model.setValue("/root/send/getcond/cmninstcd" , getUserInfo("dutplceinstcd"));
  123. btn_creat.disabled = true;
  124. btn_cancel.disabled = true;
  125. btn_grddel.disabled = true;
  126. btn_save.disabled =true;
  127. btn_imsisave.disabled=true;
  128. btn_donecancel.disabled=true;
  129. btn_creatall.disabled = true;
  130. btn_cancelall.disabled = true;
  131. btn_saveall.disabled =true;
  132. btn_donecancelall.disabled=true;
  133. model.refresh();
  134. /*
  135. misfGridInit(grd_clubclublist);
  136. misfGridInit(grd_clubdedulist);
  137. misfComboClubCdList(getUserInfo("dutplceinstcd"),cmb_cmntcd,"Y");
  138. btn_save.disabled = !(checkAuth("X"));
  139. misfComboComCdList("Z0007",cmb_instcd,"Y");
  140. misfMsterDetailSet(grd_clubclublist, null, "TRRPA02601" ,"N");
  141. misfMsterDetailSet(grd_clubdedulist, grd_clubclublist, "TRRPA02602" ,"Y");
  142. var cmninstcd = getUserInfo("dutplceinstcd");
  143. //ipt_cmninstcd.value=cmninstcd;
  144. var curdate = getCurrentDate();
  145. var cvtdate = curdate.toDate("YYYYMM");
  146. ipt_basedd_s.value=cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM");
  147. ipt_basedd.value=cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM");
  148. btn_creat.disabled = true;
  149. btn_cancel.disabled = true;
  150. btn_grddel.disabled = true;
  151. btn_save.disabled =true;
  152. btn_imsisave.disabled=true;
  153. btn_donecancel.disabled=true;
  154. btn_creatall.disabled = true;
  155. btn_cancelall.disabled = true;
  156. btn_saveall.disabled =true;
  157. btn_donecancelall.disabled=true;*/
  158. ]]>
  159. </script>
  160. <submission id="TRRPA02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/getcond" resultref="/root/main/deducord"/>
  161. <submission id="TRRPA02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deducord" resultref="/root/main/deducorddetail"/>
  162. <submission id="TXRPA02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/clubdedusave" resultref="/root/hidden/temp"/>
  163. <submission id="TXRPA02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/clubdedusave" resultref="/root/hidden/temp"/>
  164. <submission id="TRRPA02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/repotsend" resultref="/root/main/deducordreport"/>
  165. <submission id="TRRPA00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  166. </model>
  167. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  169. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  170. <script type="javascript" src="../../../mis/pubwelfmngtweb/js/RPS001.js"/>
  171. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  172. </xhtml:head>
  173. <xhtml:body style="margin-left:8; margin-right:8; ">
  174. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  175. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">동호회비 공제내역생성</caption>
  176. </group>
  177. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:742px; ">
  178. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  179. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  180. <caption>조회</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. var ddstr=ipt_basedd_s.value.substr(0,6);
  184. ipt_basedd.value =ddstr;
  185. ipt_basepayappmm.value=ddstr;
  186. if(ipt_basedd.value ==""){
  187. messageBox("기준년월은","I003");
  188. return;
  189. }
  190. model.setValue("/root/send/getcond/workgbn","C");
  191. misfMsterDetailRetrieve();
  192. var null_check1="";
  193. if(grd_clubdedulist.rows-1 > 0 ){
  194. null_check1 = model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/paydeducretyn");
  195. null_check2 = model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/paydeducretendyn");
  196. null_check3 = model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/payappyn");
  197. if(null_check3=="Y"){
  198. btn_creat.disabled=true;
  199. btn_save.disabled=true;
  200. btn_cancel.disabled=true;
  201. btn_grddel.disabled=true;
  202. btn_imsisave.disabled=true;
  203. btn_donecancel.disabled=true;
  204. btn_creatall.disabled=true;
  205. btn_saveall.disabled=true;
  206. btn_cancelall.disabled=true;
  207. btn_donecancelall.disabled=true;
  208. }else if(null_check2 =="Y" && null_check3=="N"){
  209. btn_creat.disabled=true;
  210. btn_save.disabled=false;
  211. btn_cancel.disabled=true;
  212. btn_grddel.disabled=true;
  213. btn_imsisave.disabled=true;
  214. btn_donecancel.disabled=false;
  215. btn_creatall.disabled=true;
  216. btn_saveall.disabled=false;
  217. btn_cancelall.disabled=true;
  218. btn_donecancelall.disabled=false;
  219. }else if(null_check1 =="Y" && null_check2 =="N" ){
  220. btn_creat.disabled=true;
  221. btn_save.disabled=false;
  222. btn_cancel.disabled=false;
  223. btn_grddel.disabled=false;
  224. btn_imsisave.disabled=false;
  225. btn_donecancel.disabled=true;
  226. btn_creatall.disabled=true;
  227. btn_saveall.disabled=false;
  228. btn_cancelall.disabled=false;
  229. btn_donecancelall.disabled=true;
  230. }else if(null_check1 =="N" ) {
  231. btn_creat.disabled=false;
  232. btn_save.disabled=true;
  233. btn_cancel.disabled=true;
  234. btn_grddel.disabled=true;
  235. btn_imsisave.disabled=true;
  236. btn_donecancel.disabled=true;
  237. btn_creatall.disabled=false;
  238. btn_saveall.disabled=true;
  239. btn_cancelall.disabled=true;
  240. btn_donecancelall.disabled=true;
  241. }
  242. }
  243. ]]>
  244. </script>
  245. </button>
  246. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  247. <group id="group4" style="left:420px; top:50px; width:775px; height:690px; ">
  248. <caption id="caption1" class="tit_2" style="left:0px; top:15px; width:170px; height:13px; ">동호회원 LIST</caption>
  249. <line id="line3" class="line_1" style="x1:0px; y1:30px; x2:775px; y2:30px; "/>
  250. <datagrid id="grd_clubdedulist" nodeset="/root/main/deducorddetail/clubdedulist" caption="순번^급여기관명^사번^성명^소속기관코드^근무부서^근무부서코드^등급^회원등급코드^회비^생성여부^공제대상^완료여부^급여반영여부^비 고" colsep="^" colwidth="43, 93, 74, 62, 31, 85, 30, 45, 18, 62, 59, 58, 62, 80, 95, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:35px; width:775px; height:650px; ">
  251. <col ref="numno" style="padding-left:5; "/>
  252. <col ref="posinstnm"/>
  253. <col ref="emplno" style="text-align:center; "/>
  254. <col ref="emplnm" style="text-align:center; "/>
  255. <col ref="posinstcd" visibility="hidden"/>
  256. <col ref="deptnm"/>
  257. <col ref="deptcd" visibility="hidden"/>
  258. <col ref="reglmbrgrdenm"/>
  259. <col ref="reglmbrgrde" visibility="hidden"/>
  260. <col ref="clubcost" format="#,###" style="text-align:right; "/>
  261. <col ref="paydeducretyn" style="text-align:center; "/>
  262. <col ref="paydedutrgtmanyn" style="text-align:center; "/>
  263. <col ref="paydeducretendyn" style="text-align:center; "/>
  264. <col ref="payappyn" style="text-align:center; "/>
  265. <col ref="cmt" type="input"/>
  266. <col ref="seqno" visibility="hidden"/>
  267. <col ref="cmninstcd" visibility="hidden" _key="true"/>
  268. <col ref="payappmm" visibility="hidden"/>
  269. <col ref="cmntcd" visibility="hidden"/>
  270. <script type="javascript" ev:event="onaftersort">
  271. <![CDATA[
  272. grd_clubdedulist.gridToInstance();
  273. ]]>
  274. </script>
  275. </datagrid>
  276. <button id="btn_grddel" class="btn2_letter6" style="left:521px; top:10px; width:86px; height:19px; ">
  277. <caption>공제대상제외</caption>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. misfGridIUD(grd_clubdedulist,"D");
  281. model.refresh();
  282. ]]>
  283. </script>
  284. </button>
  285. <button id="btn_creat" class="btn2_letter2" visibility="hidden" style="left:409px; top:10px; width:42px; height:19px; ">
  286. <caption>생성</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. /*for(var i=1;i<=grd_clubclublist.rows-1;i++)
  290. {
  291. null_check1 = model.getValue(grd_clubclublist.attribute("nodeset")+"["+i+"]/workyn");
  292. if(null_check1 =="") {
  293. messageBox("생성할 동호회 선택은","I003");
  294. return;
  295. }
  296. }*/
  297. checkVal_1= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmntcd");
  298. checkVal_2= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmninstcd");
  299. ipt_cmntcd_detail.value=checkVal_1;
  300. ipt_cmninstcd_detail.value=checkVal_2;
  301. ipt_workgbn.value="I";
  302. if(ipt_workgbn.value =="I"){
  303. submit("TXRPA02601");
  304. }
  305. btn_search.dispatch("DOMActivate");
  306. model.refresh();
  307. ]]>
  308. </script>
  309. </button>
  310. <input id="ipt_cmntcd_detail" ref="/root/send/clubdedusave/cmntcd" visibility="hidden" style="left:225px; top:5px; width:110px; height:19px; "/>
  311. <input id="ipt_cmninstcd_detail" ref="/root/send/clubdedusave/cmninstcd" visibility="hidden" style="left:105px; top:5px; width:110px; height:19px; "/>
  312. <button id="btn_cancel" class="btn2_letter4" visibility="hidden" style="left:454px; top:10px; width:64px; height:19px; ">
  313. <caption>생성취소</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. checkVal_1= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmntcd");
  317. checkVal_2= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmninstcd");
  318. ipt_cmntcd_detail.value=checkVal_1;
  319. ipt_cmninstcd_detail.value=checkVal_2;
  320. ipt_workgbn.value="D";
  321. if(ipt_workgbn.value =="D"){
  322. submit("TXRPA02601");
  323. }
  324. btn_search.dispatch("DOMActivate");
  325. model.refresh();
  326. ]]>
  327. </script>
  328. </button>
  329. <button id="btn_imsisave" class="btn5_letter2" style="left:610px; top:10px; width:42px; height:19px; ">
  330. <caption>저장</caption>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. var updtdata = getGridUpdateData(grd_clubdedulist);
  334. if (updtdata == "" ) {
  335. messageBox("변경된 데이터가","I004");
  336. return;
  337. }
  338. ipt_workgbn.value="Z";
  339. if(ipt_workgbn.value =="Z"){
  340. misfSave("TXRPA02602");
  341. }
  342. btn_search.dispatch("DOMActivate");
  343. model.refresh();
  344. ]]>
  345. </script>
  346. </button>
  347. <button id="btn_save" class="btn5_letter2" visibility="hidden" style="left:655px; top:10px; width:42px; height:19px; ">
  348. <caption>마감</caption>
  349. <script type="javascript" ev:event="DOMActivate">
  350. <![CDATA[
  351. var retMes = messageBox("작업을 완료 하시겠습니까?", "Q999");
  352. if ( retMes != 6) {
  353. return;
  354. }
  355. checkVal_1= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmntcd");
  356. checkVal_2= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmninstcd");
  357. ipt_cmntcd_detail.value=checkVal_1;
  358. ipt_cmninstcd_detail.value=checkVal_2;
  359. ipt_workgbn.value="U";
  360. if(ipt_workgbn.value =="U"){
  361. submit("TXRPA02601");
  362. }
  363. btn_search.dispatch("DOMActivate");
  364. model.refresh();
  365. ]]>
  366. </script>
  367. </button>
  368. <button id="btn_donecancel" class="btn5_letter4" visibility="hidden" style="left:700px; top:10px; width:64px; height:19px; ">
  369. <caption>마감취소</caption>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. var retMes = messageBox("작업을 취소 하시겠습니까?", "Q999");
  373. if ( retMes != 6) {
  374. return;
  375. }
  376. checkVal_1= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmntcd");
  377. checkVal_2= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmninstcd");
  378. ipt_cmntcd_detail.value=checkVal_1;
  379. ipt_cmninstcd_detail.value=checkVal_2;
  380. ipt_workgbn.value="F";
  381. if(ipt_workgbn.value =="F"){
  382. submit("TXRPA02601");
  383. }
  384. btn_search.dispatch("DOMActivate");
  385. model.refresh();
  386. ]]>
  387. </script>
  388. </button>
  389. </group>
  390. <group id="group3" style="left:0px; top:50px; width:415px; height:690px; ">
  391. <caption id="caption2" class="tit_2" style="left:0px; top:15px; width:109px; height:13px; ">동호회 LIST</caption>
  392. <line id="line2" class="line_1" style="x1:0px; y1:30px; x2:415px; y2:30px; "/>
  393. <datagrid id="grd_clubclublist" nodeset="/root/main/deducord/clubclublist" caption="동호회명^정회원수^준회원수^보류인원^총회비" colsep="^" colwidth="125, 62, 64, 69, 73, 60, 70, 70, 100, 100, 100, 100" ellipsis="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:35px; width:415px; height:650px; ">
  394. <col ref="cmntnm"/>
  395. <col ref="reglmbrcnt" style="text-align:right; "/>
  396. <col ref="asctmbrcnt" style="text-align:right; "/>
  397. <col ref="holdmembcnt" style="text-align:right; "/>
  398. <col ref="totmmconvnt" format="#,###" style="text-align:right; "/>
  399. <col ref="cmninstcd" visibility="hidden"/>
  400. <col ref="instnm" visibility="hidden"/>
  401. <col ref="cmntcd" visibility="hidden"/>
  402. <col ref="basedd" visibility="hidden"/>
  403. <col ref="paydeducretyn" visibility="hidden"/>
  404. <col ref="paydeducretendyn" visibility="hidden"/>
  405. <col ref="payrefmembcnt" visibility="hidden"/>
  406. <script type="javascript" ev:event="onrowchanged">
  407. <![CDATA[
  408. var cur_row = grd_clubclublist.row;
  409. null_check1 = model.getValue(grd_clubclublist.attribute("nodeset")+"[" + cur_row + "]/paydeducretyn");
  410. null_check2 = model.getValue(grd_clubclublist.attribute("nodeset")+"[" + cur_row + "]/paydeducretendyn");
  411. null_check3 = model.getValue(grd_clubclublist.attribute("nodeset")+"[" + cur_row + "]/payrefmembcnt");
  412. if(null_check3 !='0'){
  413. btn_creat.disabled=true;
  414. btn_save.disabled=true;
  415. btn_cancel.disabled=true;
  416. btn_grddel.disabled=true;
  417. btn_imsisave.disabled=true;
  418. btn_donecancel.disabled=true;
  419. btn_creatall.disabled=true;
  420. btn_saveall.disabled=true;
  421. btn_cancelall.disabled=true;
  422. btn_donecancelall.disabled=true;
  423. }else if(null_check2 =="Y" && null_check3=="0"){
  424. btn_creat.disabled=true;
  425. btn_save.disabled=false;
  426. btn_cancel.disabled=true;
  427. btn_grddel.disabled=true;
  428. btn_imsisave.disabled=true;
  429. btn_donecancel.disabled=false;
  430. btn_creatall.disabled=true;
  431. btn_saveall.disabled=false;
  432. btn_cancelall.disabled=true;
  433. btn_donecancelall.disabled=false;
  434. }else if(null_check1 =="Y" && null_check2 =="N" ){
  435. btn_creat.disabled=true;
  436. btn_save.disabled=false;
  437. btn_cancel.disabled=false;
  438. btn_grddel.disabled=false;
  439. btn_imsisave.disabled=false;
  440. btn_donecancel.disabled=true;
  441. btn_creatall.disabled=true;
  442. btn_saveall.disabled=false;
  443. btn_cancelall.disabled=false;
  444. btn_donecancelall.disabled=true;
  445. }else if(null_check1 =="N" ) {
  446. btn_creat.disabled=false;
  447. btn_save.disabled=true;
  448. btn_cancel.disabled=true;
  449. btn_grddel.disabled=true;
  450. btn_imsisave.disabled=true;
  451. btn_donecancel.disabled=true;
  452. btn_creatall.disabled=false;
  453. btn_saveall.disabled=true;
  454. btn_cancelall.disabled=true;
  455. btn_donecancelall.disabled=true;
  456. }
  457. misfMsterDetailRetrieve();
  458. for(i=grd_clubdedulist.fixedRows; i< grd_clubdedulist.rows;i++){
  459. var paydedutrgtmanyn= grd_clubdedulist.valueMatrix(i,grd_clubdedulist.colRef("paydedutrgtmanyn"));
  460. var payappyn= grd_clubdedulist.valueMatrix(i,grd_clubdedulist.colRef("payappyn"));
  461. if(null_check3 !='0' && paydedutrgtmanyn =='Y' && payappyn=='N'){
  462. grd_clubdedulist.rowStyle(i, "all", "background-color") = "#ffcccc";
  463. }else{
  464. grd_clubdedulist.rowStyle(i, "all", "background-color") = "#ffffff";
  465. }
  466. }
  467. ]]>
  468. </script>
  469. </datagrid>
  470. <button id="btn_creatall" class="btn5_letter4" style="left:130px; top:10px; width:64px; height:19px; ">
  471. <caption>일괄생성</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. model.setValue("/root/send/clubdedusave/cmninstcd",getUserInfo("dutplceinstcd"));
  475. model.setValue("/root/send/clubdedusave/cmntcd","");
  476. ipt_workgbn.value="I";
  477. if(ipt_workgbn.value =="I"){
  478. submit("TXRPA02601");
  479. }
  480. btn_search.dispatch("DOMActivate");
  481. model.refresh();
  482. ]]>
  483. </script>
  484. </button>
  485. <button id="btn_cancelall" class="btn5_letter6" style="left:195px; top:10px; width:86px; height:19px; ">
  486. <caption>일괄생성취소</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. model.setValue("/root/send/clubdedusave/cmninstcd",getUserInfo("dutplceinstcd"));
  490. model.setValue("/root/send/clubdedusave/cmntcd","");
  491. ipt_workgbn.value="D";
  492. if(ipt_workgbn.value =="D"){
  493. submit("TXRPA02601");
  494. }
  495. btn_search.dispatch("DOMActivate");
  496. model.refresh();
  497. ]]>
  498. </script>
  499. </button>
  500. <button id="btn_saveall" class="btn5_letter4" style="left:283px; top:10px; width:64px; height:19px; ">
  501. <caption>전체마감</caption>
  502. <script type="javascript" ev:event="DOMActivate">
  503. <![CDATA[
  504. model.setValue("/root/send/clubdedusave/cmninstcd",getUserInfo("dutplceinstcd"));
  505. model.setValue("/root/send/clubdedusave/cmntcd","");
  506. ipt_workgbn.value="U";
  507. if(ipt_workgbn.value =="U"){
  508. submit("TXRPA02601");
  509. }
  510. btn_search.dispatch("DOMActivate");
  511. model.refresh();
  512. ]]>
  513. </script>
  514. </button>
  515. <button id="btn_donecancelall" class="btn5_letter4" style="left:348px; top:10px; width:64px; height:19px; ">
  516. <caption>마감취소</caption>
  517. <script type="javascript" ev:event="DOMActivate">
  518. <![CDATA[
  519. model.setValue("/root/send/clubdedusave/cmninstcd",getUserInfo("dutplceinstcd"));
  520. model.setValue("/root/send/clubdedusave/cmntcd","");
  521. ipt_workgbn.value="F";
  522. if(ipt_workgbn.value =="F"){
  523. submit("TXRPA02601");
  524. }
  525. btn_search.dispatch("DOMActivate");
  526. model.refresh();
  527. ]]>
  528. </script>
  529. </button>
  530. </group>
  531. <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; "/>
  532. <input id="ipt_basedd" ref="/root/send/getcond/basedd" visibility="hidden"/>
  533. <caption id="caption8" class="search_name" style="left:6px; top:19px; width:81px; height:17px; vertical-align:middle; ">기준년월:</caption>
  534. <input id="ipt_basepayappmm" ref="/root/send/clubdedusave/basepayappmm"/>
  535. <input id="ipt_workgbn" ref="/root/send/clubdedusave/workgbn" visibility="hidden" style="left:935px; top:15px; width:125px; height:19px; "/>
  536. <!--<input id="ipt_cmninstcd" ref="/root/send/getcond/cmninstcd" visibility="hidden" style="left:720px; top:15px; width:125px; height:19px; "/>-->
  537. <select1 id="cmb_cmntcd" ref="/root/send/getcond/cmntcd" class="combo_search" appearance="minimal" style="left:540px; top:20px; width:160px; height:19px; ">
  538. <choices>
  539. <itemset nodeset="/root/main/init">
  540. <label ref="cnstnm"/>
  541. <value ref="cnstcd"/>
  542. </itemset>
  543. </choices>
  544. </select1>
  545. <caption id="caption3" class="search_name" style="left:455px; top:20px; width:81px; height:17px; vertical-align:middle; ">동호회명:</caption>
  546. <input id="ipt_basedd_r" ref="/root/send/repotsend/basedd" visibility="hidden" style="left:820px; top:25px; width:105px; height:20px; "/>
  547. <select1 id="cmb_instcd" ref="/root/send/getcond/cmninstcd" class="combo_default" appearance="minimal" style="left:307px; top:18px; width:133px; height:19px; ">
  548. <choices>
  549. <itemset nodeset="/root/main/init">
  550. <label ref="cnstnm"/>
  551. <value ref="cnstcd"/>
  552. </itemset>
  553. </choices>
  554. </select1>
  555. <caption id="caption4" class="search_name" style="left:235px; top:19px; width:85px; height:17px; ">기 관 :</caption>
  556. </group>
  557. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  558. <button id="btn_save2" class="btn4_letter2" visibility="hidden" style="left:888px; top:5px; width:56px; height:22px; ">
  559. <caption>완료</caption>
  560. <script type="javascript" ev:event="DOMActivate">
  561. <![CDATA[
  562. var retMes = messageBox("작업을 완료 하시겠습니까?", "Q999");
  563. if ( retMes != 6) {
  564. return;
  565. }
  566. checkVal_1= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmntcd");
  567. checkVal_2= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmninstcd");
  568. ipt_cmntcd_detail.value=checkVal_1;
  569. ipt_cmninstcd_detail.value=checkVal_2;
  570. ipt_workgbn.value="U";
  571. if(ipt_workgbn.value =="U"){
  572. submit("TXRPA02601");
  573. }
  574. btn_search.dispatch("DOMActivate");
  575. model.refresh();
  576. ]]>
  577. </script>
  578. </button>
  579. <button id="btn_init" class="btn4_letter3" style="left:1122px; top:3px; width:68px; height:22px; ">
  580. <caption>초기화</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. misfGridInit(grd_clubclublist);
  584. misfGridInit(grd_clubdedulist);
  585. model.resetInstanceNode("/root/send");
  586. model.refresh();
  587. var cmninstcd = getUserInfo("dutplceinstcd");
  588. ipt_cmninstcd.value=cmninstcd;
  589. ]]>
  590. </script>
  591. </button>
  592. <line id="line1" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  593. <button id="btn_donecancel2" class="btn4_letter4" visibility="hidden" style="left:805px; top:5px; width:80px; height:22px; ">
  594. <caption>완료취소</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. var retMes = messageBox("작업을 취소 하시겠습니까?", "Q999");
  598. if ( retMes != 6) {
  599. return;
  600. }
  601. checkVal_1= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmntcd");
  602. checkVal_2= model.getValue(grd_clubdedulist.attribute("nodeset")+"[1]/cmninstcd");
  603. ipt_cmntcd_detail.value=checkVal_1;
  604. ipt_cmninstcd_detail.value=checkVal_2;
  605. ipt_workgbn.value="F";
  606. if(ipt_workgbn.value =="F"){
  607. submit("TXRPA02601");
  608. }
  609. btn_search.dispatch("DOMActivate");
  610. model.refresh();
  611. ]]>
  612. </script>
  613. </button>
  614. <button id="button5" class="btn4_letter2" style="left:1063px; top:3px; width:56px; height:22px; ">
  615. <caption>출력</caption>
  616. <script type="javascript" ev:event="DOMActivate">
  617. <![CDATA[
  618. if(ipt_basedd_s.value ==""){
  619. messageBox("기준년월은","I003");
  620. return;
  621. }
  622. ipt_basedd_r.value=ipt_basedd_s.value;
  623. model.setValue("/root/send/repotsend/basedd",ipt_basedd_s.value );
  624. model.setValue("/root/send/repotsend/cmninstcd","");
  625. model.setValue("/root/send/repotsend/cmntcd","");
  626. submit("TRRPA02604");
  627. exeReportPreview("RPRPA02600", "XMLSTR", "/root/send/report");
  628. ]]>
  629. </script>
  630. </button>
  631. </group>
  632. </xhtml:body>
  633. </xhtml:html>