SMRWD01200_월별전화료이체.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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>SMRWD00900_개인별월별공제내역조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <telempl>
  12. <telempllist/>
  13. </telempl>
  14. </list>
  15. </main>
  16. <send>
  17. <telempl>
  18. <instcd/>
  19. <telym/>
  20. <appidflag/>
  21. <telcostflag/>
  22. <dutdeptcd/>
  23. <dutdeptnm/>
  24. <emplno/>
  25. <emplnm/>
  26. <workgbn/>
  27. <sumyn/>
  28. </telempl>
  29. <payappsend>
  30. <instcd/>
  31. <payym/>
  32. <payitemcd/>
  33. </payappsend>
  34. </send>
  35. <temp>
  36. <checklist>
  37. <creatyn/>
  38. <sumyn/>
  39. <payappyn/>
  40. <installsumyn/>
  41. </checklist>
  42. </temp>
  43. <paytemp/>
  44. </root>
  45. </instance>
  46. <!--<bind id="winqty" ref="/root/main/list/telempl/telempllist/telamt" calculate="../telmnt *../mntcost"/>-->
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. misfGridInit(grd_telempl);
  50. misfMsterDetailSet(grd_telempl,null, "TRRWD01201" ,"N");
  51. misfComboComCdList("R0299",cmb_appidflag,"Y");
  52. misfComboComCdList("R0300",cmb_telcostflag,"Y");
  53. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  54. var curdate = getCurrentDate();
  55. var cvtdate = curdate.toDate("YYYYMM");
  56. model.setValue(ipt_telym.attribute("ref") , cvtdate.getAddDate(-1,"M").getDateFormat("YYYYMM"));
  57. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  58. grd_telempl.subtotalposition = "after";
  59. model.refresh();
  60. ]]>
  61. </script>
  62. <submission id="TRRWD01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/main/list/telempl"/>
  63. <submission id="TXRWD01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/temp"/>
  64. <submission id="TRRWD01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/temp"/>
  65. <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payappsend" resultref="/root/paytemp"/>
  66. </model>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  71. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  72. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  73. </xhtml:head>
  74. <xhtml:body>
  75. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  76. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">개인별 월별 전화료이체 관리</caption>
  77. </group>
  78. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  79. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  80. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:25px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. misfMsterDetailRetrieve();
  85. for(var i=grd_telempl.fixedRows; i<grd_telempl.rows; i++){
  86. if (grd_telempl.valueMatrix(i, grd_telempl.colRef("telcostflag"))=='02') {
  87. grd_telempl.rowstyle(i, "data", "background-color") = "#ffff99";
  88. }else {
  89. grd_telempl.rowstyle(i, "data", "background-color") = "#ffffff";
  90. }
  91. }
  92. //grd_telempl.subtotal("clear", 0, 0);
  93. //grd_telempl.subtotal("sum",grd_telempl.colRef("dutplcedeptnm") , grd_telempl.colRef("telamt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  94. //grd_telempl.subtotal("sum",grd_telempl.colRef("dutplcedeptnm") , grd_telempl.colRef("telcnt"), "format:#,###; ", "background-color:#ffff99; font-weight:bold; ", 1, "합계");
  95. ]]>
  96. </script>
  97. </button>
  98. <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:61px; "/>
  99. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
  100. <datagrid id="grd_telempl" nodeset="/root/main/list/telempl/telempllist" caption="신청인구분^사번^성명^소속기관^부서^통화구분^통화수^금액^집계여부^급여반영여부^통화구분코드" colsep="^" colwidth="93, 98, 118, 143, 149, 100, 105, 137, 103, 92, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:101px; width:1194px; height:627px; ">
  101. <col ref="appidflagnm" style="text-align:center; "/>
  102. <col ref="emplno" style="text-align:center; "/>
  103. <col ref="emplnm" style="text-align:center; "/>
  104. <col ref="instnm"/>
  105. <col ref="dutplcedeptnm"/>
  106. <col ref="telcostflagnm" style="text-align:center; "/>
  107. <col ref="telcnt" style="text-align:center; "/>
  108. <col ref="telamt" format="#,###" style="text-align:right; "/>
  109. <col ref="sumyn" style="text-align:center; "/>
  110. <col ref="paytransyn" style="text-align:center; "/>
  111. <col ref="telcostflag" visibility="hidden"/>
  112. <script type="javascript" ev:event="onaftersort">
  113. <![CDATA[
  114. grd_telempl.gridToInstance();
  115. ]]>
  116. </script>
  117. </datagrid>
  118. <select1 id="cmb_telcostflag" ref="/root/send/telempl/telcostflag" class="combo_default" appearance="minimal" style="left:100px; top:45px; width:119px; height:19px; ">
  119. <choices>
  120. <itemset>
  121. <label/>
  122. <value/>
  123. </itemset>
  124. </choices>
  125. </select1>
  126. <select1 id="cmb_instcd" ref="/root/send/telempl/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:16px; width:120px; height:19px; ">
  127. <choices>
  128. <itemset>
  129. <label/>
  130. <value/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <select1 id="cmb_appidflag" ref="/root/send/telempl/appidflag" class="combo_default" appearance="minimal" style="left:365px; top:45px; width:100px; height:19px; ">
  135. <choices>
  136. <itemset>
  137. <label/>
  138. <value/>
  139. </itemset>
  140. </choices>
  141. </select1>
  142. <caption id="caption1" class="search_name" style="left:265px; top:45px; width:106px; height:17px; ">신청인구분 :</caption>
  143. <button id="btn_dutdeptcd" class="icon_search" style="left:663px; top:46px; width:16px; height:16px; ">
  144. <caption/>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. var recv_list = "dutdeptcd,dutdeptnm";
  148. rpbfOpenDeptCdHelp(ipt_dutdeptnm,recv_list);
  149. model.refresh();
  150. ]]>
  151. </script>
  152. </button>
  153. <caption id="caption3" class="search_name" style="left:10px; top:18px; width:93px; height:17px; ">기 관 :</caption>
  154. <input id="ipt_dutdeptnm" ref="/root/send/telempl/dutdeptnm" class="input_default" style="left:684px; top:45px; width:110px; height:19px; ">
  155. <script type="javascript" ev:event="xforms-value-changed">
  156. <![CDATA[
  157. misfValidationCheck("02", "", "dutdeptcd,deptnm" );
  158. model.refresh();
  159. ]]>
  160. </script>
  161. </input>
  162. <caption id="caption4" class="search_name" style="left:10px; top:45px; width:106px; height:17px; ">통화구분:</caption>
  163. <caption id="caption5" class="search_name" style="left:495px; top:45px; width:70px; height:17px; ">부 서 :</caption>
  164. <input id="ipt_dutdeptcd" ref="/root/send/telempl/dutdeptcd" class="input_default" style="left:570px; top:45px; width:90px; height:19px; ">
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. misfValidationCheck("02", "", "dutdeptcd,deptnm" );
  168. model.refresh();
  169. ]]>
  170. </script>
  171. </input>
  172. <button id="btn_emplno" class="icon_search" style="left:663px; top:20px; width:16px; height:16px; ">
  173. <caption/>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. var recv_list = "emplno,emplnm" ;
  177. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  178. model.refresh();
  179. ]]>
  180. </script>
  181. </button>
  182. <caption id="caption7" class="search_name" style="left:495px; top:20px; width:70px; height:17px; ">사 번 :</caption>
  183. <input id="ipt_emplnos" ref="/root/send/telempl/emplno" class="input_default" style="left:570px; top:20px; width:90px; height:19px; ">
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. var recv_list = "emplno,emplnm" ;
  187. rpbfValidationCheck("EMPLNO", recv_list);
  188. model.refresh();
  189. ]]>
  190. </script>
  191. </input>
  192. <input id="ipt_emplnms" ref="/root/send/telempl/emplnm" class="input_default" style="left:684px; top:20px; width:110px; height:19px; ">
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. var recv_list = "emplno,emplnm" ;
  196. rpbfValidationCheck("EMPLNM", recv_list);
  197. model.refresh();
  198. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  199. btn_search.dispatch("DOMActivate");
  200. }
  201. ]]>
  202. </script>
  203. </input>
  204. <input id="ipt_telym" ref="/root/send/telempl/telym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:366px; top:17px; width:100px; height:19px; "/>
  205. <caption id="cap_telym" class="search_name" style="left:265px; top:17px; width:93px; height:17px; ">통 화 월 :</caption>
  206. <button id="btn_exceldetail" class="btn2_letter4" style="left:1120px; top:74px; width:64px; height:19px; ">
  207. <caption>엑셀저장</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  211. if (fileName != "")
  212. {
  213. grd_telempl.saveExcel(fileName, "SheetName", true, true, "", "");
  214. }
  215. ]]>
  216. </script>
  217. </button>
  218. </group>
  219. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  220. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  221. <button id="button35" class="btn4_letter3" style="left:829px; top:4px; width:68px; height:22px; ">
  222. <caption>초기화</caption>
  223. </button>
  224. <button id="button36" class="btn4_letter6" style="left:898px; top:4px; width:104px; height:22px; ">
  225. <caption>집계자료생성</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. if(!isRequiredControls("ipt_telym"))return;
  229. var retMes = messageBox("집계자료를 생성 하시겠습니까?", "Q999");
  230. if ( retMes != 6) {
  231. return;
  232. }
  233. submit("TRRWD01202");
  234. var creatyn=model.getValue("/root/temp/checklist/creatyn");
  235. var sumyn= model.getValue("/root/temp/checklist/sumyn");
  236. var payappyn =model.getValue("/root/temp/checklist/payappyn");
  237. if(creatyn!='Y'){
  238. messageBox("집계할 자료가 ","I004");
  239. return;
  240. }
  241. if(sumyn =='Y'){
  242. messageBox("집계이체 자료가 이미","I001");
  243. return;
  244. }
  245. model.setValue("/root/send/telempl/workgbn","C");
  246. model.setValue("/root/send/telempl/sumyn","Y");
  247. misfSave("TXRWD01201");
  248. if (model.getValue(gvErrorMsgPath + "/type") != "error")misfMsterDetailRetrieve();
  249. ]]>
  250. </script>
  251. </button>
  252. <button id="button1" class="btn4_letter6" style="left:1004px; top:4px; width:104px; height:22px; ">
  253. <caption>집계자료취소</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. if(!isRequiredControls("ipt_telym"))return;
  257. var retMes = messageBox("집계자료를 취소하시겠습니까?", "Q999");
  258. if ( retMes != 6) {
  259. return;
  260. }
  261. submit("TRRWD01202");
  262. var sumyn= model.getValue("/root/temp/checklist/sumyn");
  263. var payappyn =model.getValue("/root/temp/checklist/payappyn");
  264. // if(sumyn !='Y'){
  265. // messageBox("취소할 자료가 ","I004");
  266. // return;
  267. // }
  268. if(payappyn =='Y'){
  269. messageBox("급여이체가 완료된 자료는 취소 할수 ","I004");
  270. return;
  271. }
  272. model.setValue("/root/send/telempl/workgbn","D");
  273. model.setValue("/root/send/telempl/sumyn","N");
  274. misfSave("TXRWD01201");
  275. if (model.getValue(gvErrorMsgPath + "/type") != "error")misfMsterDetailRetrieve();
  276. ]]>
  277. </script>
  278. </button>
  279. <button id="button2" class="btn4_letter4" style="left:1109px; top:4px; width:80px; height:22px; ">
  280. <caption>급여이체</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. if(!isRequiredControls("ipt_telym"))return;
  284. var retMes = messageBox("자료를 급여이체하시겠습니까?", "Q999");
  285. if ( retMes != 6) {
  286. return;
  287. }
  288. submit("TRRWD01202");
  289. var sumyn= model.getValue("/root/temp/checklist/sumyn");
  290. var payappyn =model.getValue("/root/temp/checklist/payappyn");
  291. var installsumyn=model.getValue("/root/temp/checklist/installsumyn");
  292. if(sumyn !='Y'){
  293. messageBox("이체할 자료가 ","I004");
  294. return;
  295. }
  296. if(installsumyn =='N'){
  297. messageBox("집계자료가 생성되지 않았습니다. 급여이체를 할 수 ","I004");
  298. return;
  299. }
  300. if(payappyn =='Y'){
  301. messageBox("급여이체 자료가 이미","I001");
  302. return;
  303. }
  304. var instcd = getUserInfo("dutplceinstcd");
  305. var payym = model.getValue("root/send/telempl/telym");
  306. var payitemcd = "60230";
  307. model.setValue("/root/send/payappsend/instcd",instcd);
  308. model.setValue("/root/send/payappsend/payym",payym);
  309. model.setValue("/root/send/payappsend/payitemcd",payitemcd);
  310. misfSave("TXRWZ00303");
  311. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  312. messageBox("급여이체작업이","I001");
  313. misfMsterDetailRetrieve();
  314. }
  315. ]]>
  316. </script>
  317. </button>
  318. </group>
  319. </xhtml:body>
  320. </xhtml:html>