SPPIF30401_지급보류관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. <send>
  10. <clamym/>
  11. <clamdd/>
  12. <acptno/>
  13. <judgdg/>
  14. <clamno/>
  15. <cpcd/>
  16. <assocd/>
  17. </send>
  18. <main>
  19. <list01>
  20. <gridpifmmiun>
  21. <choice/>
  22. <depoyn/>
  23. <flag/>
  24. <docuseqno/>
  25. <pid/>
  26. <patnm/>
  27. <clamamt/>
  28. <jrhandicaprfund/>
  29. <handicapcvrtamt/>
  30. <instreductamt/>
  31. <jrjudgdeciamt/>
  32. <jrprocinstmark/>
  33. <jrprocinstmarknm/>
  34. <remainamt/>
  35. <handicapdepoamt/>
  36. <subtamt/>
  37. <subtdepoamt/>
  38. <decotretflag/>
  39. <clamym/>
  40. <clamdg/>
  41. <pidsn/>
  42. <decoseq/>
  43. <inddepoflag/>
  44. </gridpifmmiun>
  45. </list01>
  46. <list02>
  47. <gridpifmmiun/>
  48. </list02>
  49. <list03>
  50. <gridpifmmiun/>
  51. </list03>
  52. <list04>
  53. <gridpifmmide/>
  54. </list04>
  55. </main>
  56. <init>
  57. <temp>
  58. <docuseqno/>
  59. </temp>
  60. <P0407list>
  61. <P0407>
  62. <cdid/>
  63. <cdnm/>
  64. </P0407>
  65. </P0407list>
  66. </init>
  67. </root>
  68. </instance>
  69. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  70. <submission id="TRPIF30408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  71. <submission id="TRPIF30409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list03"/>
  72. <submission id="TXPIF30403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/result"/>
  73. </model>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  77. <script type="javascript" ev:event="xforms-ready">
  78. <![CDATA[
  79. zbcfGetCodeList(new Array("P0407"), new Array( "/root/init/P0407list"));
  80. // 공통코드 Load작업
  81. CommCode_Load();
  82. ]]>
  83. </script>
  84. <script type="javascript">
  85. <![CDATA[
  86. // 공통코드 Load작업
  87. function CommCode_Load() {
  88. submit("TRPIF30408");
  89. var rows = grd_pifmmiun.rows;
  90. if(rows > 1) {
  91. for(var i=1;i<rows;i++) {
  92. if(grd_pifmmiun.valueMatrix(i,1) == "Y") {
  93. grd_pifmmiun.isReadOnly(i,1) = true;
  94. grd_pifmmiun.isReadOnly(i,8) = false;
  95. grd_pifmmiun.isReadOnly(i,9) = false;
  96. } else {
  97. grd_pifmmiun.isReadOnly(i,8) = true;
  98. grd_pifmmiun.isReadOnly(i,9) = true;
  99. }
  100. }
  101. }
  102. grd_pifmmiun.colStyle(8,"data","background-color") = "#ffff00";
  103. grd_pifmmiun.colStyle(9,"data","background-color") = "#ffff00";
  104. }
  105. ]]>
  106. </script>
  107. </xhtml:head>
  108. <xhtml:body pagewidth="1120" pageheight="700">
  109. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1100px; height:640px; ">
  110. <line id="line8" class="line_1" style="x1:0px; y1:25px; x2:1100px; y2:25px; "/>
  111. <caption id="caption4" class="tit_2" style="left:6px; top:10px; width:144px; height:14px; ">지급보류관리</caption>
  112. <datagrid id="grd_pifmmiun" nodeset="/root/main/list01/gridpifmmiun" class="datagrid2" caption="선택^입금&#xA;여부^명일련^등록번호^수진자^청구액^심결&#xA;장애인기금^장애인전환금^기관삭감액^심사결정액^심결입금&#xA;기관기호^기관명^장애인잔액^장애인입금액^대불금^대불입금액^심결입금액^심결구분^caption1" colsep="^" colwidth="34, 40, 50, 60, 50, 80, 80, 80, 80, 80, 70, 110, 80, 80, 80, 80, 80, 60, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1100px; height:605px; ">
  113. <col checkvalue="Y,N" ref="choice" type="checkbox" style="text-align:center; "/>
  114. <col ref="depoyn" style="text-align:center; "/>
  115. <col ref="docuseqno" style="text-align:center; "/>
  116. <col ref="pid" style="text-align:center; "/>
  117. <col ref="patnm" style="text-align:center; "/>
  118. <col ref="clamamt" format="#,###" style="left:214px; top:32px; width:80px; height:23px; text-align:right; "/>
  119. <col ref="jrhandicaprfund" format="#,###" style="text-align:right; "/>
  120. <col ref="handicapcvrtamt" type="input" format="#,###" style="text-align:right; ">
  121. <choices>
  122. <itemset nodeset="/root/init/P0287list/P0287">
  123. <label ref="cdnm"/>
  124. <value ref="cdid"/>
  125. </itemset>
  126. </choices>
  127. </col>
  128. <col ref="instreductamt" type="input" format="#,###" style="text-align:right; "/>
  129. <col ref="jrjudgdeciamt" type="output" format="#,###" style="text-align:right; "/>
  130. <col ref="jrprocinstmark" style="text-align:center; "/>
  131. <col ref="jrprocinstmarknm" format="#,###"/>
  132. <col ref="remainamt" format="#,###" style="text-align:right; "/>
  133. <col ref="handicapdepoamt" format="#,###" style="text-align:right; "/>
  134. <col ref="subtamt" format="#,###" style="text-align:right; "/>
  135. <col ref="subtdepoamt" format="#,###" style="text-align:right; "/>
  136. <col ref="jrdepoamt" format="#,###" style="text-align:right; "/>
  137. <col ref="decotretflag" type="combo">
  138. <choices>
  139. <itemset nodeset="/root/init/P0407list/P0407">
  140. <label ref="cdnm"/>
  141. <value ref="cdid"/>
  142. </itemset>
  143. </choices>
  144. </col>
  145. <col ref="clamym" visibility="hidden"/>
  146. <col ref="clamdg" visibility="hidden"/>
  147. <col ref="pidsn" visibility="hidden"/>
  148. <col ref="decoseq" visibility="hidden"/>
  149. <col ref="inddepoflag" visibility="hidden"/>
  150. <script type="javascript" ev:event="xforms-value-changed">
  151. <![CDATA[
  152. var row = grd_pifmmiun.row;
  153. if(grd_pifmmiun.col == 1) {
  154. if(grd_pifmmiun.valueMatrix(row,1)=="Y") {
  155. grd_pifmmiun.rowStatus(row) = "2";
  156. grd_pifmmiun.isReadOnly(row,8) = false;
  157. grd_pifmmiun.isReadOnly(row,9) = false;
  158. } else {
  159. grd_pifmmiun.valueMatrix(row,8) = "0";
  160. grd_pifmmiun.valueMatrix(row,9) = "0";
  161. grd_pifmmiun.isReadOnly(row,8) = true;
  162. grd_pifmmiun.isReadOnly(row,9) = true;
  163. grd_pifmmiun.rowStatus(row) = "0";
  164. }
  165. }
  166. ]]>
  167. </script>
  168. </datagrid>
  169. <button id="button1" class="btn2_letter4" style="left:901px; top:4px; width:64px; height:19px; ">
  170. <caption>전체선택</caption>
  171. <script type="javascript" ev:event="onclick">
  172. <![CDATA[
  173. var rows = grd_pifmmiun.rows;
  174. for(var i=1;i<=rows;i++) {
  175. if(grd_pifmmiun.valueMatrix(i,1) == "Y") {
  176. continue;
  177. } else {
  178. grd_pifmmiun.valueMatrix(i,1) = "Y";
  179. grd_pifmmiun.rowStatus(i) = "2";
  180. grd_pifmmiun.isReadOnly(i,8) = false;
  181. grd_pifmmiun.isReadOnly(i,9) = false;
  182. }
  183. }
  184. ]]>
  185. </script>
  186. </button>
  187. <button id="button2" class="btn2_letter4" style="left:967px; top:4px; width:64px; height:19px; ">
  188. <caption>전체해제</caption>
  189. <script type="javascript" ev:event="onclick">
  190. <![CDATA[
  191. var rows = grd_pifmmiun.rows;
  192. for(var i=1;i<=rows;i++) {
  193. if(grd_pifmmiun.valueMatrix(i,1) == "N" || grd_pifmmiun.rowStatus(i) == "0") {
  194. continue;
  195. } else {
  196. grd_pifmmiun.valueMatrix(i,1) = "N";
  197. grd_pifmmiun.rowStatus(i) = "0";
  198. grd_pifmmiun.valueMatrix(i,8) = "0";
  199. grd_pifmmiun.valueMatrix(i,9) = "0";
  200. grd_pifmmiun.isReadOnly(i,8) = true;
  201. grd_pifmmiun.isReadOnly(i,9) = true;
  202. }
  203. }
  204. ]]>
  205. </script>
  206. </button>
  207. </group>
  208. <group id="group1" scroll="auto" style="left:0px; top:648px; width:1100px; height:27px; ">
  209. <button id="btn_cancel" class="btn4_letter2" style="left:1044px; top:3px; width:56px; height:22px; ">
  210. <caption>닫기</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. model.close();
  214. ]]>
  215. </script>
  216. </button>
  217. <button id="button3" class="btn5_letter2" style="left:943px; top:4px; width:42px; height:19px; ">
  218. <caption>저장</caption>
  219. <script type="javascript" ev:event="onclick">
  220. <![CDATA[
  221. var rows = grd_pifmmiun.rows;
  222. var cnt = 0;
  223. for(var i=1;i<=rows;i++) {
  224. if(grd_pifmmiun.rowStatus(i) == "2") {
  225. cnt++;
  226. }
  227. }
  228. if(cnt > 0) {
  229. model.setValue("/root/main/list02/gridpifmmiun", grd_pifmmiun.getUpdateData());
  230. if(submit("TXPIF30403")) { // 장애인전환금, 기관삭감액 보호개인미수테이블에 업데이트
  231. CommCode_Load(); // 업데이트 한 데이터 재조회
  232. }
  233. }
  234. ]]>
  235. </script>
  236. </button>
  237. <caption id="caption1" class="search_name" style="left:15px; top:4px; width:100px; height:17px; ">명일련 추가</caption>
  238. <input id="ipt_docuseqno" ref="/root/init/temp/docuseqno" class="input_search" maxlength="5" style="left:120px; top:4px; width:95px; height:19px; ">
  239. <script type="javascript" ev:event="onkeyup">
  240. <![CDATA[
  241. if(event.keyCode == "13") {
  242. setInputNodeCurText();
  243. var docuseqno = ipt_docuseqno.value;
  244. if(docuseqno.length == 1) {
  245. docuseqno = "0000"+docuseqno;
  246. }
  247. if(docuseqno.length == 2) {
  248. docuseqno = "000"+docuseqno;
  249. }
  250. if(docuseqno.length == 3) {
  251. docuseqno = "00"+docuseqno;
  252. }
  253. if(docuseqno.length == 4) {
  254. docuseqno = "0"+docuseqno;
  255. }
  256. model.makeNode("/root/send/docuseqno");
  257. model.setValue("/root/send/docuseqno", docuseqno);
  258. if(submit("TRPIF30409")) {
  259. if(model.getValue("/root/main/list03/gridpifmmiun/docuseqno") != "") {
  260. grd_pifmmiun.addRow();
  261. var rows = grd_pifmmiun.rows;
  262. model.copyNode("/root/main/list01/gridpifmmiun["+(rows-1)+"]", "/root/main/list03/gridpifmmiun");
  263. grd_pifmmiun.rowStatus(rows-1) = "2";
  264. }
  265. model.refresh();
  266. }
  267. }
  268. ]]>
  269. </script>
  270. </input>
  271. <button id="button5" class="btn5_letter3" style="left:888px; top:4px; width:53px; height:19px; ">
  272. <caption>행삭제</caption>
  273. <script type="javascript" ev:event="onclick">
  274. <![CDATA[
  275. var rows = grd_pifmmiun.rows;
  276. for(var i=1;i<=rows;i++) {
  277. if(grd_pifmmiun.valueMatrix(i,1) == "Y") {
  278. grd_pifmmiun.deleteItem(i);
  279. }
  280. }
  281. ]]>
  282. </script>
  283. </button>
  284. <button id="button6" class="btn4_letter2" style="left:987px; top:3px; width:56px; height:22px; ">
  285. <caption>확인</caption>
  286. <script type="javascript" ev:event="onclick">
  287. <![CDATA[
  288. var rows = grd_pifmmiun.rows;
  289. var cnt = 0;
  290. var handicaprfund = 0;
  291. var handicapcvrtamt = 0;
  292. var instreductamt = 0;
  293. var totsum = 0;
  294. for(var i=1;i<rows;i++) {
  295. if(grd_pifmmiun.rowStatus(i) == "2") {
  296. cnt++;
  297. // handicaprfund = eval(handicaprfund)+eval(model.getValue("/root/main/list01/gridpifmmiun["+i+"]/jrhandicaprfund"));
  298. // handicapcvrtamt = eval(handicapcvrtamt)+eval(model.getValue("/root/main/list01/gridpifmmiun["+i+"]/handicapcvrtamt"));
  299. // instreductamt = eval(instreductamt)+eval(model.getValue("/root/main/list01/gridpifmmiun["+i+"]/instreductamt"));
  300. totsum = eval(totsum)+eval(model.getValue("/root/main/list01/gridpifmmiun["+i+"]/jrjudgdeciamt"));
  301. model.setValue("/root/main/list01/gridpifmmiun["+i+"]/inddepoflag","09"); // 개인별입금구분값(09) 세팅
  302. }
  303. }
  304. if(cnt > 0) {
  305. model.setValue("/root/main/list04/gridpifmmide", grd_pifmmiun.getUpdateData());
  306. opener.model.makeNode("/root/main/list02/gridpifmmide");
  307. opener.model.setValue("/root/main/list02/gridpifmmide",model.getValue("/root/main/list04/gridpifmmide"));
  308. opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),5) = cnt; // 부모창의 건수란에 건수 입력
  309. opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),6) = totsum; // 부모창의 통장입금액란에 Sum 금액 입력
  310. model.close();
  311. }
  312. ]]>
  313. </script>
  314. </button>
  315. <caption id="caption2" style="left:225px; top:5px; width:576px; height:20px; color:#ff6600; ">(명일련 추가 후 추가할 데이터가 맞으면 저장버튼을, 틀리면 체크박스 체크 후 행삭제 버튼을 클릭하세요.)</caption>
  316. </group>
  317. <button id="button4" class="btn2_letter4" style="left:1033px; top:4px; width:64px; height:19px; ">
  318. <caption>엑셀저장</caption>
  319. <script type="javascript" ev:event="onclick">
  320. <![CDATA[
  321. var today = new Date();
  322. var yy = today.getYear()+"";
  323. var mm = today.getMonth()+1;
  324. var dd = today.getDate();
  325. if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
  326. if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
  327. var tmp = yy+mm+dd;
  328. var fileName = window.fileDialog("save", ",", false, "지급보류관리_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  329. if (fileName != "") { grd_pifmmiun.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
  330. ]]>
  331. </script>
  332. </button>
  333. </xhtml:body>
  334. </xhtml:html>