123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?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="">
- <main>
- <acctinfo>
- <acctconfinfolist/>
- </acctinfo>
- </main>
- <cond>
- <acctfromdd/>
- <accttodd/>
- <flag/>
- </cond>
- <send>
- <savedata>
- </savedata>
- </send>
- <hidden>
- <acctsubjinfo/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.removeNodeset("/root/main/acctinfo/acctconfinfolist");
- var subjid = opener.javascript.getParameter("subjid");
- var seqno = opener.javascript.getParameter("seqno");
- var depokind = opener.javascript.getParameter("depokind");
- var instcd = opener.javascript.getParameter("instcd");
- var direcamt = opener.javascript.getParameter("direcamt");
- var crccamt = opener.javascript.getParameter("crccamt");
- var hospamt = opener.javascript.getParameter("hospamt");
- var judgamt = opener.javascript.getParameter("judgamt");
- var depodd = opener.javascript.getParameter("depodd");
- var flag = opener.javascript.getParameter("flag");
- var subjno = opener.javascript.getParameter("subjno");
- var reqcmpynm = opener.javascript.getParameter("reqcmpynm");
- var usernm = opener.javascript.getParameter("usernm");
- var drugmngtamt = opener.javascript.getParameter("drugmngtamt");
- var documngtamt = opener.javascript.getParameter("documngtamt");
-
- if(depodd == "") {
- model.setValue("/root/cond/acctfromdd",getCurrentDate());
- model.setValue("/root/cond/accttodd",getCurrentDate());
- }else{
- model.setValue("/root/cond/acctfromdd",depodd);
- model.setValue("/root/cond/accttodd", depodd);
- model.setValue("/root/cond/flag", flag);
- if(submit("TRIRM00201")){
- model.removeNodeset("/root/hidden/acctsubjinfo");
- model.makeValue("/root/hidden/acctsubjinfo/status" ,"i");
- model.makeValue("/root/hidden/acctsubjinfo/subjid" ,subjid);
- model.makeValue("/root/hidden/acctsubjinfo/seqno" ,seqno);
- model.makeValue("/root/hidden/acctsubjinfo/depokind" ,depokind);
- model.makeValue("/root/hidden/acctsubjinfo/instcd" ,instcd);
- model.makeValue("/root/hidden/acctsubjinfo/direcamt" ,direcamt);
- model.makeValue("/root/hidden/acctsubjinfo/crccamt" ,crccamt);
- model.makeValue("/root/hidden/acctsubjinfo/hospamt" ,hospamt);
- model.makeValue("/root/hidden/acctsubjinfo/judgamt" ,judgamt);
- model.makeValue("/root/hidden/acctsubjinfo/depodd" ,depodd);
-
- model.makeValue("/root/hidden/acctsubjinfo/subjno" ,subjno);
- model.makeValue("/root/hidden/acctsubjinfo/reqcmpynm" ,reqcmpynm);
- model.makeValue("/root/hidden/acctsubjinfo/usernm" ,usernm);
- // ***** kjw 추가(2009.12.14) *****
- model.makeValue("/root/hidden/acctsubjinfo/drugmngtamt" ,drugmngtamt);
- model.makeValue("/root/hidden/acctsubjinfo/documngtamt" ,documngtamt);
- // ***** 2009.12.14 끝 *****
-
- for(var k = 1; k < grd_acctconfinfolist.rows;k++){
- var depoamt = grd_acctconfinfolist.valueMatrix(k,grd_acctconfinfolist.colRef("depoamt"));
- var confamt = grd_acctconfinfolist.valueMatrix(k,grd_acctconfinfolist.colRef("confamt"));
- if(depoamt == confamt){
- grd_acctconfinfolist.isReadOnly(k,grd_acctconfinfolist.colRef("flag")) =true;
- }
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRIRM00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/acctinfo"/>
- <submission id="TXIRM00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/main/acctinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="500" pageheight="480">
- <button id="btn_save" class="btn4_letter2" style="left:435px; top:65px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_acctconfinfolist.clearStatus();
- //2009.06.26 수정
- // 선택된 합계금액에 대해서 입금금액이 맞는지 확인 필요
- var unconfamtsum = 0;
- var checked_line_count = 0;
- var acntdd ="";
-
- for(var i = 1; i < grd_acctconfinfolist.rows;i++){
- var flag = model.getValue("/root/main/acctinfo/acctconfinfolist["+i+"]/flag");
- if(flag =="Y"){
- grd_acctconfinfolist.addStatus(i,"insert");
- acntdd = model.getValue("/root/main/acctinfo/acctconfinfolist["+i+"]/acntdd");
- unconfamtsum = unconfamtsum + parseInt(model.getValue("/root/main/acctinfo/acctconfinfolist["+i+"]/unconfamt"));
- checked_line_count = checked_line_count + 1;
- }
- }
- // 만일,함계금액이 맞지 않으면 메시지
- if ( checked_line_count > 1 && model.getValue("/root/hidden/acctsubjinfo/depokind") == 'J' ) {
- if (unconfamtsum != parseInt(model.getValue("/root/hidden/acctsubjinfo/judgamt")) ) {
- messageBox("입금금액이 맞지 않습니다.", "I");
- return false;
- }
- } else if ( checked_line_count > 1 && model.getValue("/root/hidden/acctsubjinfo/depokind") == 'R' ) {
- if (unconfamtsum != parseInt(model.getValue("/root/hidden/acctsubjinfo/direcamt")) + parseInt(model.getValue("/root/hidden/acctsubjinfo/crccamt")) + parseInt(model.getValue("/root/hidden/acctsubjinfo/hospamt")) + parseInt(model.getValue("/root/hidden/acctsubjinfo/drugmngtamt")) + parseInt(model.getValue("/root/hidden/acctsubjinfo/documngtamt")) ) {
- messageBox("입금금액이 맞지 않습니다.", "I");
- return false;
- }
- } else if ( checked_line_count == 1 && model.getValue("/root/hidden/acctsubjinfo/depokind") == 'R' ) {
- if (unconfamtsum < parseInt(model.getValue("/root/hidden/acctsubjinfo/direcamt")) + parseInt(model.getValue("/root/hidden/acctsubjinfo/crccamt")) + parseInt(model.getValue("/root/hidden/acctsubjinfo/hospamt")) + parseInt(model.getValue("/root/hidden/acctsubjinfo/drugmngtamt")) + parseInt(model.getValue("/root/hidden/acctsubjinfo/documngtamt")) ) {
- messageBox("입금금액이 맞지 않습니다.", "I");
- return false;
- }
- } else if ( checked_line_count == 1 && model.getValue("/root/hidden/acctsubjinfo/depokind") == 'J' ) {
- if (unconfamtsum < parseInt(model.getValue("/root/hidden/acctsubjinfo/judgamt")) ) {
- messageBox("입금금액이 맞지 않습니다.", "I");
- return false;
- }
- }
- //2009.07.12 우종윤 추가
- //입금일이 맞지 않을경우 진행여부 체크
- if ( checked_line_count == 1 && model.getValue("/root/hidden/acctsubjinfo/depodd") != acntdd ) {
- //alert(acntdd);
- //alert(model.getValue("/root/hidden/acctsubjinfo/depodd"));
- messageBox("입금일이 맞지 않습니다", "I999");
- return;
- }
-
-
-
- model.makeValue("/root/send/savedata/cond/acctfromdd",model.getValue("/root/cond/acctfromdd"));
- model.makeValue("/root/send/savedata/cond/accttodd",model.getValue("/root/cond/accttodd"));
- model.makeNode("/root/send/savedata/acctsubjinfo");
- model.copyNode("/root/send/savedata/acctsubjinfo","/root/hidden/acctsubjinfo");
- model.makeValue("/root/send/savedata/acctconfinfolist",grd_acctconfinfolist.getUpdateData());
- if(submit("TXIRM00102")){
- for(var k = 1; k < grd_acctconfinfolist.rows;k++){
- var depoamt = grd_acctconfinfolist.valueMatrix(k,grd_acctconfinfolist.colRef("depoamt"));
- var confamt = grd_acctconfinfolist.valueMatrix(k,grd_acctconfinfolist.colRef("confamt"));
- if(depoamt == confamt){
- grd_acctconfinfolist.isReadOnly(k,grd_acctconfinfolist.colRef("flag")) =true;
- }
- }
- grd_acctconfinfolist.refresh();
- var oprnerId = opener.window.javascript.getScreenID();
- if(oprnerId =="SMIPG00101"){
- opener.javascript.fSendConfInfo();
-
- }
- }
- window.close();
- ]]>
- </script>
- </button>
- <datagrid id="grd_acctconfinfolist" nodeset="/root/main/acctinfo/acctconfinfolist" caption="^입금일자^입금인^입금액^확인금액^미확인금액^depoconfdd^acntseqno^entrregno^기관코드" colsep="^" colwidth="18, 85, 102, 94, 92, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:93px; width:495px; height:347px; ">
- <col checkvalue="Y,N" ref="flag" type="checkbox"/>
- <col ref="acntdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="depor" style="text-align:center; "/>
- <col ref="depoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="confamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="unconfamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="depoconfdd" visibility="hidden"/>
- <col ref="acntseqno" visibility="hidden"/>
- <col ref="entrregno" visibility="hidden"/>
- </datagrid>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">통장입금정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:88px; x2:495px; y2:88px; "/>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:495px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:66px; width:165px; height:14px; ">통장입금정보</caption>
- <caption id="caption60" class="search_no_b" style="left:212px; top:32px; width:12px; height:17px; ">~</caption>
- <input id="ipt_acctfromdd" ref="/root/cond/acctfromdd" class="input_search" inputtype="date" style="left:111px; top:31px; width:100px; height:19px; "/>
- <caption id="cap_orddd" class="search_name" style="left:21px; top:32px; width:86px; height:17px; ">입금일자 :</caption>
- <input id="ipt_accttodd" ref="/root/cond/accttodd" class="input_search" inputtype="date" style="left:226px; top:31px; width:100px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:406px; y1:30px; x2:406px; y2:52px; "/>
- <button id="bnt_srch" class="btn1_letter2" style="left:415px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRIRM00201")){
- for(var k = 1; k < grd_acctconfinfolist.rows;k++){
- var depoamt = grd_acctconfinfolist.valueMatrix(k,grd_acctconfinfolist.colRef("depoamt"));
- var confamt = grd_acctconfinfolist.valueMatrix(k,grd_acctconfinfolist.colRef("confamt"));
- if(depoamt == confamt){
- grd_acctconfinfolist.isReadOnly(k,grd_acctconfinfolist.colRef("flag")) =true;
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" _auth="X" style="left:450px; top:445px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(checkOpener()){
-
- }else{
- messageBox("상위 화면이 변경되어 데이터를 전달", "E001");
- }
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|