123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- <?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>
- <paymentsheet/>
- <racmcust>
- <entrregno/>
- <custnm/>
- <prsdnm/>
- <bizcont/>
- <item/>
- <supaddr/>
- <infaddr/>
- <bankcd/>
- <depor/>
- <paycond/>
- <aactno/>
- <seizureyn/>
- <seizurecmt/>
- </racmcust>
- </main>
- <send>
- <condition>
- <instcd/>
- <ymdd/>
- <acntcd4/>
- <acntcd/>
- <entrregno/>
- <custnm/>
- </condition>
- <data>
- <instcd/>
- <mngtcd/>
- </data>
- <custinfo>
- <entrregno/>
- <todd/>
- </custinfo>
- <retrparams>
- <frdate/>
- <todate/>
- </retrparams>
- </send>
- <init>
- <code>
- <codelist/>
- </code>
- </init>
- <temp/>
- <hidden>
- </hidden>
- <source>
- <slipinfo/>
- </source>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAM001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize()
- {
- model.removenode("/root/main/paymentsheet");
-
- var instcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/send/condition/instcd", instcd);
-
- model.setValue(ipt_ymdd.attribute("ref"), getCurrentDate().toString());
-
- model.setValue("/root/send/data/instcd", instcd);
- model.setValue("/root/send/data/mngtcd", "%");
- submit("TRRAZ00001");
-
- model.makeNode("/root/init/code/code/acnt4");
- model.makeValue("/root/init/code/code/acnt4[1]/cdnm", "전 체");
- model.makeValue("/root/init/code/code/acnt4[1]/cdid", "");
- // model.makeValue("/root/init/code/code/acnt4[1]/cdgbn", "R0010");
- var seq = 1;
- for (i=1; i<= instance1.selectNodes("root/init/code/code/codelist").length; i++)
- {
- cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
- seq++;
- //alert(i + " " + cdgbn)
- if (cdgbn == "R0010")
- {
- //alert(i + " " + cdgbn + " " + seq)
- model.makeNode( "/root/init/code/code/acnt4[" + seq + "]");
- model.makeValue( "/root/init/code/code/acnt4[" + seq + "]/cdid", model.getValue("/root/init/code/code/codelist[" + i + "]/cdid"));
- model.makeNode( "/root/init/code/code/acnt4[" + seq + "]");
- model.makeValue( "/root/init/code/code/acnt4[" + seq + "]/cdnm", model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm"));
- }
- }
- cmb_supacntcd4.dispatch("xforms-value-changed");
- cmb_supacntcd4.select(0);
- }
-
-
- function fCheckAuth()
- {
- btn_search.disabled = !checkAuth("R");
- }
-
- ]]>
- </script>
- <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/init/code/codelist"/>
- <submission id="TRRAC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/custinfo" resultref="/root/main/racmcust"/>
- <submission id="TRRAD00311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/paymentsheet"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">반제장부화면</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="grp_3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- radfRenewalBebtClos(getUserInfo("dutplceinstcd"), '', model.getValue(ipt_ymdd.attribute("ref")));
-
- submit("TRRAD00311");
-
- model.setValue("/root/send/custinfo/entrregno", model.getValue(ipt_regno.attribute("ref")));
-
- submit("TRRAC00602");
-
- for(var i = grd_paymentsheet.fixedRows ; i < grd_paymentsheet.rows ; i++)
- {
- if(grd_paymentsheet.valueMatrix(i, grd_paymentsheet.colRef("seq")) == "1")
- {
- grd_paymentsheet.rowStyle(i, "data", "background-color") = "#00ffff";
- }
- }
- ]]>
- </script>
- </button>
- <line id="lin_5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:9px; width:101px; height:17px; ">년 도 :</caption>
- <caption id="caption1" class="search_name" style="left:705px; top:9px; width:104px; height:17px; ">사업자번호 :</caption>
- <input id="ipt_regnm" ref="/root/send/condition/custnm" navindex="6" imemode="hangul" style="left:922px; top:9px; width:158px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm", "name");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm", "name");
- ]]>
- </script>
- </input>
- <button id="btn_entregnohelp" class="icon_search" style="left:904px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfOpenPopUpList("14", ipt_regno, "", "entrregno,custnm");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_regno" ref="/root/send/condition/entrregno" navindex="5" format="999-99-99999" style="left:805px; top:9px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm", "code");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm", "code");
- ]]>
- </script>
- </input>
- <select1 id="cmb_acntcd" ref="/root/send/condition/acntcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:465px; top:9px; width:192px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_supacntcd4" ref="/root/send/condition/acntcd4" class="combo_s_essential" navindex="1" appearance="minimal" style="left:351px; top:9px; width:109px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/code/code/acnt4">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfGetSupAcntPrAcntListCombo(model.getValue("/root/send/condition/acntcd4"), cmb_acntcd, "Y");
- model.setValue(cmb_acntcd.choices.itemset.attribute("nodeset") + "[1]/acntnm", "전 체");
- cmb_acntcd.refresh();
- cmb_acntcd.select(0);
- ]]>
- </script>
- </select1>
- <caption id="caption37" class="search_name" style="left:250px; top:9px; width:100px; height:17px; ">계정과목 :</caption>
- <input id="ipt_ymdd" ref="/root/send/condition/ymdd" class="input_s_essential" inputtype="date" style="left:120px; top:9px; width:110px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_paymentsheet" nodeset="/root/main/paymentsheet" backcoloralternate="#ffffff" caption="순번^기관코드^전표일자^전표번호^전표일련번호^승인일^계정코드^계정과목^세금일자^사업자등록번호^거래처명^적 요^매입금액^지급금액^계산전잔액^잔액" colsep="^" colwidth="0, 0, 80, 65, 80, 80, 0, 130, 80, 0, 100, 250, 90, 90, 0, 90" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:1px; top:150px; width:1193px; height:590px; font-size:10pt; ">
- <col ref="seq" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="unsldd" format="yyyy-mm-dd"/>
- <col ref="unslno"/>
- <col ref="unslseqno"/>
- <col ref="apsldd" format="yyyy-mm-dd"/>
- <col ref="acntcd"/>
- <col ref="acntnm"/>
- <col ref="taxdd" format="yyyy-mm-dd"/>
- <col ref="custcd"/>
- <col ref="custnm"/>
- <col ref="etcnotefact"/>
- <col ref="cramt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="dramt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="balamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <col ref="calcamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_paymentsheet.isCell(event.target) && grd_paymentsheet.row > 0 && grd_paymentsheet.valueMatrix(grd_paymentsheet.row, grd_paymentsheet.colRef("unsldd")) != "") {
- model.makeValue("/root/source/slipinfo/instcd", grd_paymentsheet.valueMatrix(grd_paymentsheet.row, grd_paymentsheet.colRef("instcd")));
- model.makeValue("/root/source/slipinfo/slipdt", grd_paymentsheet.valueMatrix(grd_paymentsheet.row, grd_paymentsheet.colRef("unsldd")));
- model.makeValue("/root/source/slipinfo/slipno", grd_paymentsheet.valueMatrix(grd_paymentsheet.row, grd_paymentsheet.colRef("unslno")));
-
- model.refresh();
- modal("SMRAD00100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_item" ref="/root/main/racmcust/item" class="input_default" navindex="24" style="left:142px; top:102px; width:148px; height:19px; "/>
- <input id="ipt_bizcont" ref="/root/main/racmcust/bizcont" class="input_default" navindex="23" style="left:142px; top:127px; width:148px; height:19px; "/>
- <input id="ipt_custnm2" ref="/root/main/racmcust/custnm" class="input_essential" navindex="15" style="left:432px; top:52px; width:315px; height:19px; "/>
- <caption id="cap_custnm" class="cell_1" style="left:295px; top:50px; width:135px; height:23px; text-align:left; vertical-align:middle; ">거래처명</caption>
- <caption id="cap_prsdnm" class="cell_1" style="left:5px; top:75px; width:135px; height:23px; text-align:left; vertical-align:middle; ">대표자명</caption>
- <caption id="cap_item" class="cell_1" style="left:5px; top:100px; width:135px; height:23px; text-align:left; vertical-align:middle; ">종목</caption>
- <caption id="cap_bizcont" class="cell_1" style="left:5px; top:125px; width:135px; height:23px; text-align:left; vertical-align:middle; ">업태</caption>
- <input id="ipt_prsdnm" ref="/root/main/racmcust/prsdnm" class="input_default" navindex="19" style="left:142px; top:77px; width:148px; height:19px; "/>
- <input id="ipt_entrregno2" ref="/root/main/racmcust/entrregno" class="input_essential" navindex="14" format="999-99-99999" style="left:142px; top:52px; width:148px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(radfcheckCustExist(getUserInfo("dutplceinstcd"), ipt_entrregno2.value, "Y") != "")
- {
- model.setValue("/root/send/custlist/entrregno", ipt_entrregno2.value);
- submit("TRRAC00602");
- model.setValue("/root/main/racmcust/statflag", "u");
- ipt_entrregno2.disabled = true;
- }
- ]]>
- </script>
- </input>
- <caption id="cap_entrregno" class="cell_1" style="left:5px; top:50px; width:135px; height:23px; text-align:left; vertical-align:middle; ">사업자등록번호</caption>
- <caption id="cap_infaddr" class="cell_1" style="left:295px; top:100px; width:135px; height:23px; text-align:left; vertical-align:middle; ">상세주소</caption>
- <input id="ipt_supaddr" ref="/root/main/racmcust/supaddr" class="input_default" navindex="34" style="left:432px; top:77px; width:315px; height:19px; "/>
- <caption id="cap_supaddr" class="cell_1" style="left:295px; top:75px; width:135px; height:23px; text-align:left; vertical-align:middle; ">주소</caption>
- <input id="ipt_cntctel" ref="/root/main/racmcust/infaddr" class="input_default" navindex="35" style="left:432px; top:102px; width:315px; height:19px; "/>
- <caption id="cap_bankcd" class="cell_1" style="left:750px; top:50px; width:135px; height:23px; text-align:left; vertical-align:middle; ">은행</caption>
- <caption id="cap_depor" class="cell_1" style="left:750px; top:75px; width:135px; height:23px; text-align:left; vertical-align:middle; ">예금주</caption>
- <caption id="cap_aactno" class="cell_1" style="left:750px; top:100px; width:135px; height:23px; text-align:left; vertical-align:middle; ">계좌번호</caption>
- <input id="ipt_aactno" ref="/root/main/racmcust/aactno" class="input_default" navindex="49" style="left:887px; top:102px; width:172px; height:19px; "/>
- <input id="ipt_depor" ref="/root/main/racmcust/depor" class="input_default" navindex="47" style="left:887px; top:77px; width:172px; height:19px; "/>
- <input id="ipt_paycond" ref="/root/main/racmcust/paycond" class="input_default" navindex="48" format="9" style="left:888px; top:127px; width:121px; height:19px; text-align:right; "/>
- <caption id="caption3" style="left:1003px; top:129px; width:40px; height:15px; text-align:center; ">개월</caption>
- <caption id="cap_paycond" class="cell_1" style="left:750px; top:125px; width:135px; height:23px; text-align:left; vertical-align:middle; ">지불조건</caption>
- <input id="ipt_seizurecmt" ref="/root/main/racmcust/seizurecmt" class="input_default" navindex="52" style="left:607px; top:125px; width:140px; height:19px; "/>
- <caption id="caption20" class="cell_1" style="left:519px; top:125px; width:85px; height:19px; text-align:left; vertical-align:middle; ">압류내용</caption>
- <caption id="caption19" class="cell_1" style="left:295px; top:125px; width:135px; height:19px; text-align:left; vertical-align:middle; ">압류</caption>
- <select1 id="cmb_bankcd" ref="/root/main/racmcust/bankcd" class="combo_search" navindex="1" appearance="minimal" showvalue="true" style="left:887px; top:52px; width:172px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0001list/R0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(cmb_bankcd.value == '01')
- {
- model.setValue("/root/main/valuelist/rcipntacntno", "지로납부");
- model.setValue("/root/main/valuelist/depor", "지로납부");
- ipt_rcipntacntno.refresh();
- ipt_depor.refresh();
- }
- else if(cmb_bankcd.value == '99')
- {
- model.setValue("/root/main/valuelist/rcipntacntno", "현금");
- model.setValue("/root/main/valuelist/depor", "현금");
- ipt_rcipntacntno.refresh();
- ipt_depor.refresh();
- }
- ]]>
- </script>
- </select1>
- <select1 id="cmb_seizureyn" ref="/root/main/racmcust/seizureyn" class="combo_search" navindex="1" appearance="minimal" style="left:432px; top:125px; width:81px; height:19px; ">
- <choices>
- <item>
- <label>정상</label>
- <value>N</value>
- </item>
- <item>
- <label>압류</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(cmb_bankcd.value == '01')
- {
- model.setValue("/root/main/valuelist/rcipntacntno", "지로납부");
- model.setValue("/root/main/valuelist/depor", "지로납부");
- ipt_rcipntacntno.refresh();
- ipt_depor.refresh();
- }
- else if(cmb_bankcd.value == '99')
- {
- model.setValue("/root/main/valuelist/rcipntacntno", "현금");
- model.setValue("/root/main/valuelist/depor", "현금");
- ipt_rcipntacntno.refresh();
- ipt_depor.refresh();
- }
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="lin_2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_11" class="btn6_letter2" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- if(grd_paymentsheet.rows == grd_paymentsheet.fixedRows)
- {
- messageBox("출력할 내용이" ,"I004");
- return;
- }
- radfgetAcntYY(getUserInfo("dutplceinstcd"), ipt_ymdd.value, "", "", "", "", "", "", "/root/send/retrparams/frdate", "")
- model.setValue("/root/send/retrparams/todate", ipt_ymdd.value);
- model.refresh();
- exeReportPreview("RPRAD00310", "XMLSTR", "/root/send/retrparams");
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_9" class="btn2_letter4" style="left:1128px; top:170px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- radfSaveExcel(grd_paymentsheet);
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|