123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747 |
- <?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>
- <balamtpr>
- <list/>
- </balamtpr>
- <totalnotepr>
- <list/>
- </totalnotepr>
- <totalbalamtpr>
- <list/>
- </totalbalamtpr>
- <balamt>
- <instcd/>
- <supacntcd4/>
- <acntcd/>
- <entrregno/>
- <custnm/>
- <frdate/>
- <todate/>
- <acntyy/>
- </balamt>
- <totalnote>
- <instcd/>
- <supacntcd4/>
- <acntcd/>
- <entrregno/>
- <custnm/>
- <frdate/>
- <todate/>
- <acntyy/>
- </totalnote>
- <totalbalamt>
- <instcd/>
- <supacntcd4/>
- <acntcd/>
- <entrregno/>
- <custnm/>
- <frdate/>
- <todate/>
- <acntyy/>
- </totalbalamt>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <supacntcd4/>
- <acntcd/>
- <entrregno/>
- <frdate/>
- <todate/>
- <acntyy/>
- <flag/>
- <instnm/>
- <selectedIndex/>
- <custnm/>
- </retrparams>
- <date/>
- <prntlist>
- </prntlist>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRAD00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/balamtpr"/>
- <submission id="TRRAD00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/totalnotepr"/>
- <submission id="TRRAD00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/totalbalamtpr"/>
- </model>
- <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="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // fCheckAuth();//권한체크
- fInit();
- fSetDate();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- function fInit()
- {
- model.removenode("/root/main/balamtpr/list");
- model.removenode("/root/main/totalnotepr/list");
- model.removenode("/root/main/totalbalamtpr/list");
- misfComboComCdList("Z0007", cmb_instcd1, "N");
- misfComboComCdList("Z0007", cmb_instcd2, "N");
- misfComboComCdList("Z0007", cmb_instcd3, "N");
- model.setValue("/root/main/balamt/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/main/totalnote/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/main/totalbalamt/instcd", getUserInfo("dutplceinstcd"));
-
- racfAcntMngtListCombo("R0010", model.getValue("/root/main/balamt/instcd"), cmb_supacntcd41, "N");
- racfAcntMngtListCombo("R0010", model.getValue("/root/main/totalnote/instcd"), cmb_supacntcd42, "N");
- racfAcntMngtListCombo("R0010", model.getValue("/root/main/totalbalamt/instcd"), cmb_supacntcd43, "N");
-
- cmb_supacntcd41.select(0);
- cmb_supacntcd42.select(0);
- cmb_supacntcd43.select(0);
-
- model.setValue("/root/send/retrparams/flag", "balamt");
-
- radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_instcd1);
- radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_instcd2);
- radfCheckInstSearchAuth(getUserInfo("dutplceinstcd"), cmb_instcd3);
-
- model.refresh();
- }
- function fSetDate()
- {
- var dt = new Date(getCurrentDate().substr(0, 4), getCurrentDate().substr(4, 2), 0);
-
- ipt_frdate1.value = getCurrentDate().substr(0, 6) + "01";
- ipt_todate1.value = getCurrentDate().substr(0, 6) + dt.getDate();
- ipt_frdate2.value = getCurrentDate().substr(0, 6) + "01";
- ipt_todate2.value = getCurrentDate().substr(0, 6) + dt.getDate();
- ipt_frdate3.value = getCurrentDate().substr(0, 6) + "01";
- ipt_todate3.value = getCurrentDate().substr(0, 6) + dt.getDate();
-
- ipt_frdate1.dispatch("xforms-value-changed");
- ipt_frdate2.dispatch("xforms-value-changed");
- ipt_frdate3.dispatch("xforms-value-changed");
- }
- /*******************************
- 그리드에 색깔 넣기.
- ********************************/
- function fSetRowColor(pGrid)
- {
- var iCnt = 0;
-
- for(var i=0; i<pGrid.rows;i++)
- {
- if(pGrid.valueMatrix(i, pGrid.colRef("gubn")) == "0")
- {
- pGrid.rowStyle(i, "all", "background-color") = "#ccffff";
- }
- else if(pGrid.valueMatrix(i, pGrid.colRef("gubn")) == "3")
- {
- pGrid.rowStyle(i, "all", "background-color") = "#ffccff";
- }
- else if(pGrid.valueMatrix(i, pGrid.colRef("gubn")) == "4")
- {
- pGrid.rowStyle(i, "all", "background-color") = "#ffffcc";
- }
- }
-
- //pGrid.frozenRows = 1;
- // pGrid.frozenBottomRows = 1;
- // pGrid.backColorFrozen = "#dddddd";
- }
- function fRetrieve()
- {
- model.setValue("/root/send/retrparams/instcd", model.getValue("/root/main/" + model.getValue("/root/send/retrparams/flag") + "/instcd"));
- model.setValue("/root/send/retrparams/supacntcd4", model.getValue("/root/main/" + model.getValue("/root/send/retrparams/flag") + "/supacntcd4"));
- model.setValue("/root/send/retrparams/acntcd", model.getValue("/root/main/" + model.getValue("/root/send/retrparams/flag") + "/acntcd"));
- model.setValue("/root/send/retrparams/entrregno", model.getValue("/root/main/" + model.getValue("/root/send/retrparams/flag") + "/entrregno"));
- model.setValue("/root/send/retrparams/frdate", model.getValue("/root/main/" + model.getValue("/root/send/retrparams/flag") + "/frdate"));
- model.setValue("/root/send/retrparams/todate", model.getValue("/root/main/" + model.getValue("/root/send/retrparams/flag") + "/todate"));
- model.setValue("/root/send/retrparams/acntyy", model.getValue("/root/main/" + model.getValue("/root/send/retrparams/flag") + "/acntyy"));
- model.refresh();
-
- switch(model.getValue("/root/send/retrparams/flag"))
- {
- case "balamt":
- submit("TRRAD00801");
- break;
-
- case "totalnote":
- model.removeNodeset("/root/main/totalnotepr/list");
- model.refresh();
- submit("TRRAD00802");
-
- fSetRowColor(grd_totalnotelist);
-
- break;
-
- case "totalbalamt":
- submit("TRRAD00803");
- break;
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">거래처원장</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <switch id="switch1" class="sw_box" style="left:0px; top:26px; width:1195px; height:712px; border-style:solid; ">
- <case id="case_balamt" style="left:0px; top:0px; width:1193px; height:710px; ">
- <button id="btn_excel1" class="btn2_letter4" style="left:1125px; top:74px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // radfSaveExcel(grd_balamtlist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_balamtlist.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- <caption id="caption21" class="tit_2" style="left:5px; top:80px; width:131px; height:14px; ">잔액</caption>
- <group id="group4" style="left:0px; top:10px; width:1193px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line30" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:51px; "/>
- <caption id="caption24" style="left:609px; top:35px; width:15px; height:20px; ">~</caption>
- <caption id="caption25" class="search_name" style="left:420px; top:33px; width:86px; height:17px; ">기 간 :</caption>
- <caption id="caption26" class="search_name" style="left:16px; top:35px; width:88px; height:17px; ">거 래 처 :</caption>
- <caption id="caption27" class="search_name" style="left:16px; top:8px; width:90px; height:17px; ">기관코드 :</caption>
- <caption id="caption28" class="search_name" style="left:420px; top:9px; width:90px; height:17px; ">계정과목 :</caption>
- <caption id="caption29" class="search_name" visibility="hidden" style="left:930px; top:36px; width:86px; height:17px; ">출력구분 :</caption>
- <select1 id="cmb_instcd1" ref="/root/main/balamt/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:105px; top:8px; width:299px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_entrregno1" ref="/root/main/balamt/entrregno" class="input_s_essential" navindex="6" style="left:105px; top:34px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm");
- model.setFocus("ipt_custnm1");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm");
- ]]>
- </script>
- </input>
- <button id="btn_custhelp1" class="icon_search" style="left:201px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("14", ipt_entrregno1, "", "entrregno,custnm");
- model.setValue("/root/main/totalnote/entrregno" , model.getValue("/root/main/balamt/entrregno"));
- model.setValue("/root/main/totalnote/custnm" , model.getValue("/root/main/balamt/custnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_custnm1" ref="/root/main/balamt/custnm" class="input_s_essential" navindex="6" style="left:219px; top:34px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm");
- model.setFocus("ipt_frdate1");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm");
- ]]>
- </script>
- </input>
- <input id="ipt_frdate1" ref="/root/main/balamt/frdate" class="input_s_essential" inputtype="date" style="left:510px; top:34px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- model.setValue("/root/send/date", model.getValue("/root/main/balamt/frdate"));
- racfGetCadlYmd("/root/send/date", "/root/temp");
- model.setValue("/root/main/balamt/acntyy", model.getValue("/root/temp/acntyy"));
-
- ]]>
- </script>
- </input>
- <input id="ipt_todate1" ref="/root/main/balamt/todate" class="input_s_essential" inputtype="date" style="left:622px; top:34px; width:95px; height:19px; "/>
- <button id="btn_search1" class="btn1_letter2" style="left:1122px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_supacntcd41" ref="/root/main/balamt/supacntcd4" class="combo_s_essential" navindex="1" appearance="minimal" style="left:510px; top:8px; width:155px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfGetSupAcntPrAcntListCombo(model.getValue("/root/main/balamt/supacntcd4"), cmb_acntcd1, "Y");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_acntcd1" ref="/root/main/balamt/acntcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:664px; top:8px; width:155px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1193px; y2:95px; "/>
- <datagrid id="grd_balamtlist" nodeset="/root/main/balamtpr/list" caption="사업자등록번호^거래처명^계정코드^계정명^전기(월) 이월^차변(지불)^대변(구입)^잔액^잔액^은행" colwidth="120, 250, 40, 40, 190, 190, 190, 190, 40, 40" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:100px; width:1193px; height:605px; ">
- <col ref="cstmcd" format="999-99-99999" style="text-align:center; "/>
- <col ref="custnm"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="acntnm" visibility="hidden"/>
- <col ref="preamt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="dramnt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="cramnt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="janamt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="janamtsum" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="banknm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_balamtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_totalnote" selected="true">
- <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:131px; height:14px; ">총괄내용</caption>
- <group id="group5" style="left:0px; top:10px; width:1193px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line1" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:51px; "/>
- <caption id="caption3" class="search_name" style="left:16px; top:35px; width:88px; height:17px; ">거 래 처 :</caption>
- <caption id="caption11" style="left:609px; top:35px; width:15px; height:20px; ">~</caption>
- <caption id="caption12" class="search_name" style="left:420px; top:33px; width:86px; height:17px; ">기 간 :</caption>
- <select1 id="cmb_instcd2" ref="/root/main/totalnote/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:105px; top:8px; width:299px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" style="left:16px; top:8px; width:90px; height:17px; ">기관코드 :</caption>
- <caption id="caption14" class="search_name" style="left:420px; top:9px; width:90px; height:17px; ">계정과목 :</caption>
- <caption id="caption15" class="search_name" visibility="hidden" style="left:930px; top:36px; width:86px; height:17px; ">출력구분 :</caption>
- <input id="ipt_entrregno2" ref="/root/main/totalnote/entrregno" class="input_s_essential" navindex="6" style="left:105px; top:34px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm");
- model.setFocus("ipt_custnm2");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm");
- ]]>
- </script>
- </input>
- <input id="ipt_custnm2" ref="/root/main/totalnote/custnm" class="input_s_essential" navindex="6" style="left:219px; top:34px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm");
- model.setFocus("ipt_frdate2");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm");
- ]]>
- </script>
- </input>
- <button id="btn_custhelp2" class="icon_search" style="left:201px; top:36px; width:16px; height:16px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("14", ipt_entrregno2, "", "entrregno,custnm");
- model.setValue("/root/main/balamt/entrregno" , model.getValue("/root/main/totalnote/entrregno"));
- model.setValue("/root/main/balamt/custnm" , model.getValue("/root/main/totalnote/custnm"));
- model.refresh();
- ]]>
- </script>
- <caption/>
- </button>
- <input id="ipt_frdate2" ref="/root/main/totalnote/frdate" class="input_s_essential" inputtype="date" style="left:510px; top:34px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/date", model.getValue("/root/main/totalnote/frdate"));
- racfGetCadlYmd("/root/send/date", "/root/temp");
- model.setValue("/root/main/totalnote/acntyy", model.getValue("/root/temp/acntyy"));
- ]]>
- </script>
- </input>
- <input id="ipt_todate2" ref="/root/main/totalnote/todate" class="input_s_essential" inputtype="date" style="left:622px; top:34px; width:95px; height:19px; "/>
- <button id="btn_search2" class="btn1_letter2" style="left:1122px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fRetrieve();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_acntcd2" ref="/root/main/totalnote/acntcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:664px; top:8px; width:155px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_supacntcd42" ref="/root/main/totalnote/supacntcd4" class="combo_s_essential" navindex="1" appearance="minimal" style="left:510px; top:8px; width:155px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfGetSupAcntPrAcntListCombo(model.getValue("/root/main/totalnote/supacntcd4"), cmb_acntcd2, "Y");
- ]]>
- </script>
- </select1>
- </group>
- <line id="line4" class="line_1" style="x1:0px; y1:95px; x2:1193px; y2:95px; "/>
- <button id="btn_excel2" class="btn2_letter4" style="left:1125px; top:74px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //radfSaveExcel(grd_totalnotelist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_totalnotelist.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- <datagrid id="grd_totalnotelist" nodeset="/root/main/totalnotepr/list" caption="결재전표일자^전표일자^전표번호^사업자등록번호^거래처명^계정코드^계정명^기재사항^차변^대변^잔액^누계^년월^구분" colsep="^" colwidth="120, 100, 60, 40, 150, 40, 150, 300, 140, 140, 40, 140, 40, 40" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" tooltip="true" style="left:0px; top:100px; width:1193px; height:605px; ">
- <col ref="apsldt" style="text-align:center; "/>
- <col ref="unsldt" visibility="hidden"/>
- <col ref="unslno" style="text-align:center; "/>
- <col ref="cstmcd" visibility="hidden"/>
- <col ref="custnm"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="acntnm"/>
- <col ref="kije00"/>
- <col ref="dramnt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="cramnt" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="janamt" visibility="hidden" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="janamtsum" format="(-)#,###" savetype="digit" style="text-align:right; "/>
- <col ref="yyyymm" visibility="hidden"/>
- <col ref="gubn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_totalnotelist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (grd_totalnotelist.row > 0 && grd_totalnotelist.valueMatrix(grd_totalnotelist.row, grd_totalnotelist.colRef("gubn")) == "1")
- {
- model.makeValue("/root/source/slipinfo/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/source/slipinfo/slipdt", model.getValue(grd_totalnotelist.nodeset + "[" + grd_totalnotelist.row + "]/unsldt"));
- model.makeValue("/root/source/slipinfo/slipno", model.getValue(grd_totalnotelist.nodeset + "[" + grd_totalnotelist.row + "]/unslno").substr(0, 4));
-
- model.refresh();
- modal("SMRAD00100","","","","","/root/source", "/root/target" );
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_totalbalamt">
- <caption id="caption16" class="tit_2" style="left:5px; top:80px; width:131px; height:14px; ">총괄잔액</caption>
- <group id="group6" style="left:0px; top:10px; width:1193px; height:60px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption18" class="search_name" style="left:420px; top:9px; width:90px; height:17px; ">계정과목 :</caption>
- <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:51px; "/>
- <caption id="caption19" class="search_name" visibility="hidden" style="left:930px; top:36px; width:86px; height:17px; ">출력구분 :</caption>
- <select1 id="combo3" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1020px; top:35px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>combo1</label>
- <value>combo1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption20" class="search_name" style="left:16px; top:35px; width:88px; height:17px; ">거 래 처 :</caption>
- <caption id="caption22" style="left:609px; top:35px; width:15px; height:20px; ">~</caption>
- <caption id="caption23" class="search_name" style="left:420px; top:33px; width:86px; height:17px; ">기 간 :</caption>
- <caption id="caption17" class="search_name" style="left:16px; top:8px; width:90px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd3" ref="/root/main/totalbalamt/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:105px; top:8px; width:299px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_frdate3" ref="/root/main/totalbalamt/frdate" class="input_s_essential" inputtype="date" style="left:510px; top:34px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/date", model.getValue("/root/main/totalbalamt/frdate"));
- racfGetCadlYmd("/root/send/date", "/root/temp");
- model.setValue("/root/main/totalbalamt/acntyy", model.getValue("/root/temp/acntyy"));
- ]]>
- </script>
- </input>
- <input id="ipt_todate3" ref="/root/main/totalbalamt/todate" class="input_s_essential" inputtype="date" style="left:622px; top:34px; width:95px; height:19px; "/>
- <input id="ipt_entrregno3" ref="/root/main/totalbalamt/entrregno" class="input_s_essential" navindex="6" style="left:105px; top:34px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm");
- model.setFocus("ipt_custnm3");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm");
- ]]>
- </script>
- </input>
- <input id="ipt_custnm3" ref="/root/main/totalbalamt/custnm" class="input_s_essential" navindex="6" style="left:219px; top:34px; width:185px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- racfCustValidCheck("entrregno,custnm");
- model.setFocus("ipt_frdate3");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfCustValidCheck("entrregno,custnm");
- ]]>
- </script>
- </input>
- <button id="btn_custhelp3" class="icon_search" style="left:201px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfOpenPopUpList("14", ipt_entrregno3, "", "entrregno,custnm");
- alert(model.getValue("/root/main/totalbalamt/entrregno"));
- alert(model.getValue("/root/main/totalbalamt/custnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_search3" class="btn1_letter2" style="left:1122px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <select1 id="cmb_acntcd3" ref="/root/main/totalbalamt/acntcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:664px; top:8px; width:155px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_supacntcd43" ref="/root/main/totalbalamt/supacntcd4" class="combo_s_essential" navindex="1" appearance="minimal" style="left:510px; top:8px; width:155px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfGetSupAcntPrAcntListCombo(model.getValue("/root/main/totalbalamt/supacntcd4"), cmb_acntcd3, "Y");
- ]]>
- </script>
- </select1>
- </group>
- <line id="line6" class="line_1" style="x1:0px; y1:95px; x2:1193px; y2:95px; "/>
- <button id="btn_excel3" class="btn2_letter4" style="left:1125px; top:74px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //radfSaveExcel(grd_totalbalamtlist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_totalbalamtlist.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- <datagrid id="grd_totalbalamtlist" nodeset="/root/main/totalbalamtpr/list" caption="코드^계정과목^전기(월)이월^증가^감소^잔액" colsep="^" colwidth="100, 260, 200, 200, 200, 200" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:100px; width:1193px; height:610px; ">
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_swbalamt" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:36px; height:22px; ">
- <caption>잔액</caption>
- <toggle case="case_balamt" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/retrparams/flag", "balamt");
- model.setValue("/root/main/balamt/frdate", model.getValue("/root//main/totalnote/frdate"));
- model.setValue("/root/main/balamt/todate", model.getValue("/root/main/totalnote/todate"));
- fRetrieve();
-
- ]]>
- </script>
- </button>
- <button id="btn_swtotalnote" class="btn_sw" group="tab" style="left:36px; top:5px; width:60px; height:22px; ">
- <caption>총괄내용</caption>
- <toggle case="case_totalnote" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/retrparams/flag", "totalnote");
- model.setValue("/root//main/totalnote/frdate", model.getValue("/root/main/balamt/frdate"));
- model.setValue("/root//main/totalnote/todate", model.getValue("/root/main/balamt/todate"));
- fRetrieve();
- ]]>
- </script>
- </button>
- <button id="btn_swtotalbalamt" class="btn_sw" visibility="hidden" group="tab" style="left:96px; top:5px; width:60px; height:22px; ">
- <caption>총괄잔액</caption>
- <toggle case="case_totalbalamt" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/retrparams/flag", "totalbalamt");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/retrparams/instnm", cmb_instcd1.label);
- model.setValue("/root/send/retrparams/frdate", model.getValue("/root/main/totalnote/frdate"));
- model.setValue("/root/send/retrparams/todate", model.getValue("/root/main/totalnote/todate"));
- model.setValue("/root/send/retrparams/supacntcd4", model.getValue("/root/main/totalnote/supacntcd4"));
- model.setValue("/root/send/retrparams/custnm", model.getValue("/root/main/totalnote/custnm"));
- model.setValue("/root/send/retrparams/selectedIndex", switch1.selectedIndex);
-
- if(switch1.selectedIndex == 0){
- model.resetInstanceNode("/root/send/prntlist");
- model.copyNode("/root/send/prntlist", "/root/main/balamtpr");
- }else if(switch1.selectedIndex == 1){
- model.resetInstanceNode("/root/send/prntlist");
- model.copyNode("/root/send/prntlist", "/root/main/totalnotepr");
- }
- exeReportPreview("RPRAD01500", "XMLSTR", "/root/send/retrparams");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|