123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>지급보류관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <clamym/>
- <clamdd/>
- <acptno/>
- <judgdg/>
- <clamno/>
- <cpcd/>
- <assocd/>
- </send>
- <main>
- <list01>
- <gridpifmmiun>
- <choice/>
- <depoyn/>
- <flag/>
- <docuseqno/>
- <pid/>
- <patnm/>
- <clamamt/>
- <jrhandicaprfund/>
- <handicapcvrtamt/>
- <instreductamt/>
- <jrjudgdeciamt/>
- <jrprocinstmark/>
- <jrprocinstmarknm/>
- <remainamt/>
- <handicapdepoamt/>
- <subtamt/>
- <subtdepoamt/>
- <decotretflag/>
- <clamym/>
- <clamdg/>
- <pidsn/>
- <decoseq/>
- <inddepoflag/>
- </gridpifmmiun>
- </list01>
- <list02>
- <gridpifmmiun/>
- </list02>
- <list03>
- <gridpifmmiun/>
- </list03>
- <list04>
- <gridpifmmide/>
- </list04>
- </main>
- <init>
- <temp>
- <docuseqno/>
- </temp>
- <P0407list>
- <P0407>
- <cdid/>
- <cdnm/>
- </P0407>
- </P0407list>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIF30408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
- <submission id="TRPIF30409" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list03"/>
- <submission id="TXPIF30403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list02" resultref="/root/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0407"), new Array( "/root/init/P0407list"));
- // 공통코드 Load작업
- CommCode_Load();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 공통코드 Load작업
- function CommCode_Load() {
- submit("TRPIF30408");
- var rows = grd_pifmmiun.rows;
-
- if(rows > 1) {
- for(var i=1;i<rows;i++) {
- if(grd_pifmmiun.valueMatrix(i,1) == "Y") {
- grd_pifmmiun.isReadOnly(i,1) = true;
- grd_pifmmiun.isReadOnly(i,8) = false;
- grd_pifmmiun.isReadOnly(i,9) = false;
- } else {
- grd_pifmmiun.isReadOnly(i,8) = true;
- grd_pifmmiun.isReadOnly(i,9) = true;
- }
- }
- }
-
- grd_pifmmiun.colStyle(8,"data","background-color") = "#ffff00";
- grd_pifmmiun.colStyle(9,"data","background-color") = "#ffff00";
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1120" pageheight="700">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1100px; height:640px; ">
- <line id="line8" class="line_1" style="x1:0px; y1:25px; x2:1100px; y2:25px; "/>
- <caption id="caption4" class="tit_2" style="left:6px; top:10px; width:144px; height:14px; ">지급보류관리</caption>
- <datagrid id="grd_pifmmiun" nodeset="/root/main/list01/gridpifmmiun" class="datagrid2" caption="선택^입금
여부^명일련^등록번호^수진자^청구액^심결
장애인기금^장애인전환금^기관삭감액^심사결정액^심결입금
기관기호^기관명^장애인잔액^장애인입금액^대불금^대불입금액^심결입금액^심결구분^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; ">
- <col checkvalue="Y,N" ref="choice" type="checkbox" style="text-align:center; "/>
- <col ref="depoyn" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="clamamt" format="#,###" style="left:214px; top:32px; width:80px; height:23px; text-align:right; "/>
- <col ref="jrhandicaprfund" format="#,###" style="text-align:right; "/>
- <col ref="handicapcvrtamt" type="input" format="#,###" style="text-align:right; ">
- <choices>
- <itemset nodeset="/root/init/P0287list/P0287">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="instreductamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="jrjudgdeciamt" type="output" format="#,###" style="text-align:right; "/>
- <col ref="jrprocinstmark" style="text-align:center; "/>
- <col ref="jrprocinstmarknm" format="#,###"/>
- <col ref="remainamt" format="#,###" style="text-align:right; "/>
- <col ref="handicapdepoamt" format="#,###" style="text-align:right; "/>
- <col ref="subtamt" format="#,###" style="text-align:right; "/>
- <col ref="subtdepoamt" format="#,###" style="text-align:right; "/>
- <col ref="jrdepoamt" format="#,###" style="text-align:right; "/>
- <col ref="decotretflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0407list/P0407">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="clamym" visibility="hidden"/>
- <col ref="clamdg" visibility="hidden"/>
- <col ref="pidsn" visibility="hidden"/>
- <col ref="decoseq" visibility="hidden"/>
- <col ref="inddepoflag" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_pifmmiun.row;
- if(grd_pifmmiun.col == 1) {
- if(grd_pifmmiun.valueMatrix(row,1)=="Y") {
- grd_pifmmiun.rowStatus(row) = "2";
- grd_pifmmiun.isReadOnly(row,8) = false;
- grd_pifmmiun.isReadOnly(row,9) = false;
- } else {
- grd_pifmmiun.valueMatrix(row,8) = "0";
- grd_pifmmiun.valueMatrix(row,9) = "0";
- grd_pifmmiun.isReadOnly(row,8) = true;
- grd_pifmmiun.isReadOnly(row,9) = true;
-
- grd_pifmmiun.rowStatus(row) = "0";
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter4" style="left:901px; top:4px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var rows = grd_pifmmiun.rows;
- for(var i=1;i<=rows;i++) {
- if(grd_pifmmiun.valueMatrix(i,1) == "Y") {
- continue;
- } else {
- grd_pifmmiun.valueMatrix(i,1) = "Y";
- grd_pifmmiun.rowStatus(i) = "2";
- grd_pifmmiun.isReadOnly(i,8) = false;
- grd_pifmmiun.isReadOnly(i,9) = false;
- }
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:967px; top:4px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var rows = grd_pifmmiun.rows;
- for(var i=1;i<=rows;i++) {
- if(grd_pifmmiun.valueMatrix(i,1) == "N" || grd_pifmmiun.rowStatus(i) == "0") {
- continue;
- } else {
- grd_pifmmiun.valueMatrix(i,1) = "N";
- grd_pifmmiun.rowStatus(i) = "0";
- grd_pifmmiun.valueMatrix(i,8) = "0";
- grd_pifmmiun.valueMatrix(i,9) = "0";
- grd_pifmmiun.isReadOnly(i,8) = true;
- grd_pifmmiun.isReadOnly(i,9) = true;
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:648px; width:1100px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:1044px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter2" style="left:943px; top:4px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var rows = grd_pifmmiun.rows;
- var cnt = 0;
-
- for(var i=1;i<=rows;i++) {
- if(grd_pifmmiun.rowStatus(i) == "2") {
- cnt++;
- }
- }
-
- if(cnt > 0) {
- model.setValue("/root/main/list02/gridpifmmiun", grd_pifmmiun.getUpdateData());
- if(submit("TXPIF30403")) { // 장애인전환금, 기관삭감액 보호개인미수테이블에 업데이트
- CommCode_Load(); // 업데이트 한 데이터 재조회
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:15px; top:4px; width:100px; height:17px; ">명일련 추가</caption>
- <input id="ipt_docuseqno" ref="/root/init/temp/docuseqno" class="input_search" maxlength="5" style="left:120px; top:4px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var docuseqno = ipt_docuseqno.value;
- if(docuseqno.length == 1) {
- docuseqno = "0000"+docuseqno;
- }
- if(docuseqno.length == 2) {
- docuseqno = "000"+docuseqno;
- }
- if(docuseqno.length == 3) {
- docuseqno = "00"+docuseqno;
- }
- if(docuseqno.length == 4) {
- docuseqno = "0"+docuseqno;
- }
- model.makeNode("/root/send/docuseqno");
- model.setValue("/root/send/docuseqno", docuseqno);
-
- if(submit("TRPIF30409")) {
- if(model.getValue("/root/main/list03/gridpifmmiun/docuseqno") != "") {
- grd_pifmmiun.addRow();
- var rows = grd_pifmmiun.rows;
- model.copyNode("/root/main/list01/gridpifmmiun["+(rows-1)+"]", "/root/main/list03/gridpifmmiun");
- grd_pifmmiun.rowStatus(rows-1) = "2";
- }
- model.refresh();
- }
- }
- ]]>
- </script>
- </input>
- <button id="button5" class="btn5_letter3" style="left:888px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var rows = grd_pifmmiun.rows;
- for(var i=1;i<=rows;i++) {
- if(grd_pifmmiun.valueMatrix(i,1) == "Y") {
- grd_pifmmiun.deleteItem(i);
- }
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter2" style="left:987px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var rows = grd_pifmmiun.rows;
- var cnt = 0;
- var handicaprfund = 0;
- var handicapcvrtamt = 0;
- var instreductamt = 0;
- var totsum = 0;
-
- for(var i=1;i<rows;i++) {
- if(grd_pifmmiun.rowStatus(i) == "2") {
- cnt++;
- // handicaprfund = eval(handicaprfund)+eval(model.getValue("/root/main/list01/gridpifmmiun["+i+"]/jrhandicaprfund"));
- // handicapcvrtamt = eval(handicapcvrtamt)+eval(model.getValue("/root/main/list01/gridpifmmiun["+i+"]/handicapcvrtamt"));
- // instreductamt = eval(instreductamt)+eval(model.getValue("/root/main/list01/gridpifmmiun["+i+"]/instreductamt"));
- totsum = eval(totsum)+eval(model.getValue("/root/main/list01/gridpifmmiun["+i+"]/jrjudgdeciamt"));
- model.setValue("/root/main/list01/gridpifmmiun["+i+"]/inddepoflag","09"); // 개인별입금구분값(09) 세팅
- }
- }
-
- if(cnt > 0) {
- model.setValue("/root/main/list04/gridpifmmide", grd_pifmmiun.getUpdateData());
- opener.model.makeNode("/root/main/list02/gridpifmmide");
- opener.model.setValue("/root/main/list02/gridpifmmide",model.getValue("/root/main/list04/gridpifmmide"));
- opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),5) = cnt; // 부모창의 건수란에 건수 입력
- opener.grd_pifhmcdp.valueMatrix(model.getValue("/root/send/opn_row"),6) = totsum; // 부모창의 통장입금액란에 Sum 금액 입력
- model.close();
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" style="left:225px; top:5px; width:576px; height:20px; color:#ff6600; ">(명일련 추가 후 추가할 데이터가 맞으면 저장버튼을, 틀리면 체크박스 체크 후 행삭제 버튼을 클릭하세요.)</caption>
- </group>
- <button id="button4" class="btn2_letter4" style="left:1033px; top:4px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var today = new Date();
-
- var yy = today.getYear()+"";
- var mm = today.getMonth()+1;
- var dd = today.getDate();
-
- if(mm < 10) { mm = "0"+mm; } else { mm = mm+""; }
- if(dd < 10) { dd = "0" + dd; } else { dd = dd + ""; }
-
- var tmp = yy+mm+dd;
- var fileName = window.fileDialog("save", ",", false, "지급보류관리_"+tmp, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") { grd_pifmmiun.saveExcel(fileName, "SheetName", true, true, "", "", ""); }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|