123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <list>
- <cardexpsevdnc>
- <instcd/>
- <seqno/>
- <useflag>3</useflag>
- <instcardseqno/>
- <cardcmpycd/>
- <posspsn/>
- <posspsnnm/>
- <possdeptcd/>
- <possdeptnm/>
- <usedd/>
- <useamt/>
- <mainrec/>
- <entrregno/>
- <custnm/>
- <custaddr/>
- <cntctel/>
- <unsldd/>
- <unslno/>
- <undeciseqno/>
- <profcnt/>
- </cardexpsevdnc>
- </list>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <seqno/>
- <useflag/>
- </retrparams>
- <list>
- <cardexpsevdnc>
- </cardexpsevdnc>
- </list>
- </send>
- <init/>
- <temp>
- <seqno>
- <seqno/>
- </seqno>
- </temp>
- <target/>
- </root>
- </instance>
- <submission id="TRRAD00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/send/list"/>
- <submission id="TXRAD00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list/cardexpsevdnc" resultref="/root/temp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- model.removenode("/root/main/list/cardexpsevdnc");
- model.removenode("/root/send/list");
-
- model.refresh();
-
- model.setValue("/root/send/retrparams/instcd", model.getValue("/root/target/slipinfo/instcd"));
- model.setValue("/root/send/retrparams/seqno", model.getValue("/root/target/slipinfo/seqno"));
- model.setValue("/root/send/retrparams/useflag", model.getValue("/root/target/slipinfo/profflag"));
-
- misfMsterDetailSet(grd_cardexpsevdnc, null, "TRRAD00104", "Y");
- misfMsterDetailRetrieve();
- if(instance1.selectNodes("/root/send/list/cardexpsevdnc").length == 0)
- {
- misfGridIUD(grd_cardexpsevdnc, "A");
- model.setValue("/root/send/list/cardexpsevdnc/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
- model.setValue("/root/send/list/cardexpsevdnc/unslno", model.getValue("/root/target/slipinfo/unslno"));
- model.setValue("/root/send/list/cardexpsevdnc/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
- model.setValue("/root/send/list/cardexpsevdnc/useflag", model.getValue("/root/target/slipinfo/profflag"));
- }
- else
- {
- ipt_usedd.disabled = true;
- }
-
- model.copyNode("/root/main/list", "/root/send/list");
- model.makeValue("/root/main/list/cardexpsevdnc/dummy", "");
- model.makeNode("/root/main/list/cardexpsevdnc/profcnt");
-
- model.refresh();
-
- if (model.getValue("/root/main/list/cardexpsevdnc/entrregno") == "" && model.getValue("/root/target/slipinfo/custcd") != "") {
- model.setValue("/root/main/list/cardexpsevdnc/entrregno", model.getValue("/root/target/slipinfo/custcd"));
- model.refresh();
-
- ipt_entrregno.dispatch("xforms-value-changed");
- }
-
- if(model.getValue("/root/main/list/cardexpsevdnc/posspsn") == "")
- {
- if(checkOpener())
- {
- model.makeValue("/root/main/list/cardexpsevdnc/mainrec", model.getValue("/root/target/slipinfo/etcnotefact"));
- ipt_cmt.refresh();
-
- model.makeValue("/root/main/list/cardexpsevdnc/useamt", model.getValue("/root/target/slipinfo/amt"));
- ipt_amt.refresh();
-
- model.setValue("/root/main/list/cardexpsevdnc/posspsn", model.getValue("root/target/slipinfo/emplno"));
- ipt_posspsn.refresh();
- ipt_posspsn.dispatch("xforms-value-changed");
- }
- }
-
- model.setFocus("ipt_cardno");
- }
- function fSave()
- {
- if(model.getValue("/root/main/list/cardexpsevdnc/usedd") == "")
- {
- messageBox("사용일자는" ,"I003");
- model.setFocus("ipt_usedd");
- return;
- }
-
- misfGridRowStatusChange(grd_cardexpsevdnc, "/root/send/list", "/root/main/list");
- model.refresh();
-
- var aa = grd_cardexpsevdnc.getUpdateData();
-
- misfSave("TXRAD00104");
-
- var receiveref = model.getValue("/root/target/receiveref");
- if (checkOpener())
- {
- opener.model.setValue(receiveref + "/seqno", model.getValue("/root/temp/seqno/seqno"));
- opener.model.setValue(receiveref + "/amt", model.getValue("/root/send/list/cardexpsevdnc/useamt"));
- if(opener.model.getValue(receiveref + "/etcnotefact") == "")
- {
- opener.model.setValue(receiveref + "/etcnotefact", model.getValue("/root/send/list/cardexpsevdnc/mainrec"));
- }
- messageBox("저장이 " ,"I002");
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
-
- model.setValue("/root/main/list/cardexpsevdnc/seqno", model.getValue("/root/temp/seqno/seqno"));
- ipt_usedd.disabled = true;
-
- model.refresh();
- }
- function fDel()
- {
- misfGridRowStatusChange(grd_cardexpsevdnc, "/root/send/list", "/root/main/list");
-
- grd_cardexpsevdnc.addStatus(1, "delete");
-
- model.refresh();
- misfSave("TXRAD00104");
- model.removenode("/root/main/list/cardexpsevdnc");
-
- var receiveref = model.getValue("/root/target/receiveref");
- if (checkOpener())
- {
- opener.model.setValue(receiveref + "/seqno", "");
- }
- else
- {
- messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
-
- misfGridIUD(grd_cardexpsevdnc, "A");
- model.copyNode("/root/main/list", "/root/send/list");
-
- model.makeValue("/root/main/list/cardexpsevdnc/dummy", "");
-
- model.setValue("/root/main/list/cardexpsevdnc/seqno", "");
- model.setValue("/root/main/list/cardexpsevdnc/unsldd", model.getValue("/root/target/slipinfo/unsldd"));
- model.setValue("/root/main/list/cardexpsevdnc/unslno", model.getValue("/root/target/slipinfo/unslno"));
- model.setValue("/root/main/list/cardexpsevdnc/undeciseqno", model.getValue("/root/target/slipinfo/unslseqno"));
- model.setValue("/root/main/list/cardexpsevdnc/useflag", model.getValue("/root/target/slipinfo/profflag"));
- model.setValue("/root/main/list/cardexpsevdnc/entrregno", model.getValue("/root/target/slipinfo/custcd"));
- model.refresh();
-
- ipt_entrregno.dispatch("xforms-value-changed");
-
- ipt_usedd.disabled = false;
- model.setFocus("ipt_cardno");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="560" pageheight="255" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:544px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:316px; height:14px; ">현금영수증 사용내역 관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:12px; width:543px; height:203px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:7px; x2:543px; y2:7px; "/>
- <input id="ipt_usedd" ref="/root/main/list/cardexpsevdnc/usedd" class="input_essential" navindex="2" inputtype="date" style="left:103px; top:37px; width:182px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_amt");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_cmt" ref="/root/main/list/cardexpsevdnc/mainrec" class="input_essential" navindex="4" style="left:103px; top:85px; width:347px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_save");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_amt" ref="/root/main/list/cardexpsevdnc/useamt" class="input_essential" navindex="3" format="(-)#,###" style="left:103px; top:61px; width:182px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_cmt");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_posspsnnm" ref="/root/main/list/cardexpsevdnc/posspsnnm" class="input_essential" navindex="1" style="left:225px; top:13px; width:225px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("49", "", "posspsn,posspsnnm","","","name","");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_usedd");
- }
- ]]>
- </script>
- </input>
- <button id="btn_userhelp" class="icon_search" navindex="-1" style="left:205px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfOpenPopUpList("49", ipt_posspsn, "", "posspsn,posspsnnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line8" class="line_2" style="x1:0px; y1:178px; x2:543px; y2:178px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:154px; x2:543px; y2:154px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:130px; x2:543px; y2:130px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:11px; width:100px; height:23px; vertical-align:middle; ">사용자</caption>
- <line id="line13" class="line_2" style="x1:0px; y1:202px; x2:543px; y2:202px; "/>
- <caption id="caption2" class="cell_1" style="left:30px; top:131px; width:70px; height:23px; vertical-align:middle; ">상호</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:107px; width:29px; height:96px; text-align:left; vertical-align:middle; ">가맹점</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:35px; width:100px; height:23px; vertical-align:middle; ">사용일자</caption>
- <caption id="caption5" class="cell_1" style="left:30px; top:155px; width:70px; height:23px; vertical-align:middle; ">주소</caption>
- <caption id="caption14" class="cell_1" style="left:30px; top:107px; width:70px; height:23px; vertical-align:middle; ">사업자번호</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:83px; width:100px; height:23px; vertical-align:middle; ">적요</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:82px; x2:543px; y2:82px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:59px; width:100px; height:23px; vertical-align:middle; ">사용금액</caption>
- <caption id="caption9" class="cell_1" style="left:30px; top:179px; width:70px; height:23px; vertical-align:middle; ">전화번호</caption>
- <line id="line5" class="line_2" style="x1:0px; y1:34px; x2:543px; y2:34px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:58px; x2:543px; y2:58px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:106px; x2:543px; y2:106px; "/>
- <input id="ipt_custnm" ref="/root/main/list/cardexpsevdnc/custnm" class="input_default" navindex="-1" editable="false" style="left:103px; top:133px; width:222px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm,dummy,cntctel,custaddr", "name");
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/main/list/cardexpsevdnc/custaddr" class="input_default" navindex="-1" editable="false" style="left:103px; top:156px; width:440px; height:19px; "/>
- <input id="input2" ref="/root/main/list/cardexpsevdnc/cntctel" class="input_default" navindex="-1" editable="false" style="left:103px; top:181px; width:222px; height:19px; "/>
- <input id="ipt_entrregno" ref="/root/main/list/cardexpsevdnc/entrregno" class="input_default" navindex="-1" editable="false" format="999-99-99999" style="left:103px; top:109px; width:182px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm,dummy,cntctel,custaddr", "code");
- ]]>
- </script>
- </input>
- <line id="line15" class="line_2" style="x1:29px; y1:106px; x2:29px; y2:203px; "/>
- <line id="line11" class="line_3" style="x1:0px; y1:202px; x2:543px; y2:202px; "/>
- <input id="ipt_posspsn" ref="/root/main/list/cardexpsevdnc/posspsn" class="input_essential" style="left:103px; top:13px; width:97px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- misfValidationCheck("49", "", "posspsn,posspsnnm", "", "", "code","");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_usedd");
- }
- ]]>
- </script>
- </input>
- <caption id="caption12" class="cell_1" style="left:305px; top:59px; width:100px; height:23px; vertical-align:middle; ">증빙매수</caption>
- <input id="ipt_profcnt" ref="/root/main/list/cardexpsevdnc/profcnt" class="input_essential" navindex="3" format="###" style="left:408px; top:61px; width:122px; height:19px; text-align:right; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:222px; width:544px; height:27px; ">
- <line id="line1" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:543px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="5" style="left:372px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- fSave();
- model.setFocus("btn_close");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn4_letter2" navindex="7" style="left:430px; top:4px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDel();
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" navindex="6" style="left:488px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_cardexpsevdnc" nodeset="/root/send/list/cardexpsevdnc" visibility="hidden" caption="기관코드^일련번호^사용구분^법인카드번호^카드사^소유자id^소유자명^소유부서코드^소유부서명^사용일자^사용금액^적요^사업자등록번호^업체명^주소^전화번호^미결전표일자^미결전표번호^미결일련번호" colwidth="30, 29, 26, 52, 37, 54, 26, 47, 43, 35, 35, 31, 50, 39, 38, 39, 50, 50, 50" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:25px; top:228px; width:45px; height:17px; ">
- <col ref="instcd"/>
- <col ref="seqno"/>
- <col ref="useflag"/>
- <col ref="instcardseqno"/>
- <col ref="cardcmpycd"/>
- <col ref="posspsn"/>
- <col ref="posspsnnm"/>
- <col ref="possdeptcd"/>
- <col ref="possdeptnm"/>
- <col ref="usedd"/>
- <col ref="useamt"/>
- <col ref="mainrec"/>
- <col ref="entrregno"/>
- <col ref="custnm"/>
- <col ref="custaddr"/>
- <col ref="cntctel"/>
- <col ref="unsldd"/>
- <col ref="unslno"/>
- <col ref="undeciseqno"/>
- <col ref="profcnt"/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|