123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <?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>
- <maindatalist>
- <acntcd/>
- <acntnm/>
- <frdate/>
- <todate/>
- <ymdwrite/>
- <rmrk/>
- <inamt/>
- <outamt/>
- <janamt/>
- </maindatalist>
- </main>
- <send>
- <params>
- <instcd/>
- <frdate/>
- <todate/>
- <fracntcd/>
- <fracntnm/>
- <toacntcd/>
- <toacntnm/>
- <acntclsflag>1</acntclsflag>
- </params>
- </send>
- </root>
- </instance>
- <submission id="TRRAR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/maindatalist"/>
- </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[
- makeReportPreview(0,110,1195,650);
- model.removenode( "/root/main/maindatalist");
- var dt = new Date();
- var lastdt = new Date(dt.getYear(), dt.getMonth()+1, 0);
- ipt_frdate1.value = getCurrentDate().substr(0, 6) + "01";
- ipt_todate1.value = getCurrentDate().substr(0, 6) + lastdt.getDate();
-
- model.setValue("/root/send/params/instcd", getUserInfo("dutplceinstcd"));
- model.setFocus("ipt_fracntcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckAcntCdNull()
- {
- var bRet = true;
- if(model.getValue("/root/send/params/fracntcd") == "" && model.getValue("/root/send/params/toacntcd") == "") {
- messageBox("선택된 계정과목이 ", "I004");
- return false;
- }
- if(model.getValue("/root/send/params/fracntcd") != "" && model.getValue("/root/send/params/toacntcd") == "") {
- model.setValue("/root/send/params/toacntcd", model.getValue("/root/send/params/fracntcd"));
- model.setValue("/root/send/params/toacntnm", model.getValue("/root/send/params/fracntnm"));
- }else if(model.getValue("/root/send/params/fracntcd") == "" && model.getValue("/root/send/params/toacntcd") != ""){
- model.setValue("/root/send/params/fracntcd", model.getValue("/root/send/params/toacntcd"));
- model.setValue("/root/send/params/fracntnm", model.getValue("/root/send/params/toacntnm"));
- }
- return bRet;
- }
-
-
- //========================================================================================
- //코드 Validation Check
- //========================================================================================
- function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
- {
- if(event.keyCode == 13 || event.name == "xforms-value-changed")
- {
- document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
- misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
- model.refresh();
-
- if (pNextIndex != "") {
- model.setFocus(pNextIndex);
- }
- }
- }
-
- ]]>
- </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; ">
- <group id="group4" style="left:0px; top:5px; width:1195px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption24" class="search_name" visibility="hidden" style="left:425px; top:35px; width:86px; height:17px; ">(class)</caption>
- <line id="line30" class="line_4" style="x1:1109px; y1:3px; x2:1109px; y2:58px; background-color:transparent; border-color:transparent; "/>
- <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1125px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!fCheckAcntCdNull())
- {
- return;
- }
- if (submit("TRRAR00701") ){
- exeReportPreview("SMRAR00701", "XMLSTR");//, "/root/main/payamt");
- }
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_acntclsflag" ref="/root/send/params/acntclsflag" class="combo_s_essential" appearance="minimal" style="left:445px; top:34px; width:63px; height:19px; ">
- <choices>
- <item>
- <label>대분류</label>
- <value>4</value>
- </item>
- <item>
- <label>관</label>
- <value>3</value>
- </item>
- <item>
- <label>항</label>
- <value>2</value>
- </item>
- <item>
- <label>목</label>
- <value>1</value>
- </item>
- <item>
- <label>세목</label>
- <value>0</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/params/fracntcd", "");
- model.setValue("/root/send/params/fracntnm", "");
- model.setValue("/root/send/params/toacntcd", "");
- model.setValue("/root/send/params/toacntnm", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_toacnthelp2" class="icon_search" style="left:596px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("05", ipt_fracntcd, "", "toacntcd,toacntnm", "cmb_acntclsflag", "acntclsflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_fracnthelp2" class="icon_search" style="left:596px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("05", ipt_fracntcd, "", "fracntcd,fracntnm", "cmb_acntclsflag", "acntclsflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fracntcd" ref="/root/send/params/fracntcd" class="input_s_essential" navindex="4" style="left:517px; top:10px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag", "acntclsflag");
- ]]>
- </script>
- </input>
- <caption id="caption28" class="search_name" style="left:425px; top:10px; width:90px; height:17px; ">계정과목 :</caption>
- <input id="ipt_toacntcd" ref="/root/send/params/toacntcd" class="input_s_essential" navindex="6" style="left:517px; top:34px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag", "acntclsflag");
- ]]>
- </script>
- </input>
- <input id="ipt_fracntnm" ref="/root/send/params/fracntnm" class="input_s_essential" navindex="5" style="left:614px; top:10px; width:176px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("05", "fracntcd,fracntnm", "", "", "cmb_acntclsflag", "acntclsflag");
- ]]>
- </script>
- </input>
- <input id="ipt_toacntnm" ref="/root/send/params/toacntnm" class="input_s_essential" navindex="7" style="left:614px; top:34px; width:176px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("05", "toacntcd,toacntnm", "", "", "cmb_acntclsflag", "acntclsflag");
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:12px; top:10px; width:86px; height:17px; ">기 간 :</caption>
- <input id="ipt_frdate1" ref="/root/send/params/frdate" class="input_s_essential" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:10px; width:100px; height:19px; "/>
- <caption id="caption1" style="left:203px; top:12px; width:15px; height:15px; ">~</caption>
- <input id="ipt_todate1" ref="/root/send/params/todate" class="input_s_essential" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:214px; top:10px; width:101px; height:19px; "/>
- </group>
- <line id="line193" class="line_1" style="x1:2px; y1:86px; x2:1192px; y2:86px; "/>
- <caption id="caption7" class="tit_2" style="left:5px; top:73px; width:260px; height:14px; ">총계정원장</caption>
- <datagrid id="datagrid1" nodeset="/root/main/maindatalist" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:60px; top:145px; width:975px; height:50px; ">
- <col ref="acntcd"/>
- <col ref="acntnm"/>
- <col ref="frdate"/>
- <col ref="todate"/>
- <col ref="ymdwrite"/>
- <col ref="rmrk"/>
- <col ref="inamt"/>
- <col ref="outamt"/>
- <col ref="janamt"/>
- </datagrid>
- <button id="button3" class="btn2_letter4" style="left:1035px; top:40px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //radfSaveExcel(ipt_detailist);
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- datagrid1.saveExcel(fileName,"SheetName:sheet1");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|