123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417 |
- <?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>
- <day>
- <dayrept/>
- </day>
- <month>
- <monthrept/>
- </month>
- <date>
- <daydate>
- <frdate/>
- <todate/>
- </daydate>
- <month>
- <frdate/>
- <todate/>
- </month>
- </date>
- <apln>
- <approval11/>
- <approval12/>
- <approval13/>
- <approval14/>
- <approval15/>
- <approval16/>
- <approval21/>
- <approval22/>
- <approval23/>
- <approval24/>
- <approval25/>
- <approval26/>
- <arbitrary1/>
- <arbitrary2/>
- <arbitrary3/>
- <arbitrary4/>
- <arbitrary5/>
- <arbitrary6/>
- <iudflag/>
- <instcd/>
- <deptcd/>
- <expansion/>
- </apln>
- </main>
- <send>
- <params>
- <frdate/>
- <todate/>
- <prntflag/>
- <cashacntcd/>
- <acntclsflag/>
- <termflag>day</termflag>
- </params>
- <retrmngt>
- <mngtcd>cashcd</mngtcd>
- <instcd/>
- </retrmngt>
- <test/>
- <retrparams>
- <instnm/>
- <selectedIndex/>
- <frdate/>
- <todate/>
- <usernm/>
- <approval21/>
- <approval22/>
- <approval23/>
- <approval24/>
- <approval25/>
- <approval26/>
- <arbitrary1/>
- <arbitrary2/>
- <arbitrary3/>
- <arbitrary4/>
- <arbitrary5/>
- <arbitrary6/>
- <expansion/>
- </retrparams>
- <prntlist>
- <gridlist/>
- </prntlist>
- <retrparam>
- <instcd/>
- <deptcd/>
- <aplnflag>1</aplnflag>
- </retrparam>
- </send>
- <init>
- <acntclsflag>
- <cd>1</cd>
- <nm>목 단위</nm>
- </acntclsflag>
- <acntclsflag>
- <cd>0</cd>
- <nm>세목 단위</nm>
- </acntclsflag>
- <prntflag>
- <cd>Y</cd>
- <nm>전체</nm>
- </prntflag>
- <prntflag>
- <cd>N</cd>
- <nm>지정</nm>
- </prntflag>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRRAD00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/day"/>
- <submission id="TRRAD00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/params" resultref="/root/main/month"/>
- <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrmngt" resultref="/root/temp"/>
- <submission id="TRRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/apln"/>
- </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[
-
- model.setValue("/root/send/retrmngt/instcd", getUserInfo("dutplceinstcd"));
- model.removenode("/root/main/day/dayrept");
- model.removenode("/root/main/month/monthrept");
- fSetDayMonthDate();
-
- rdo_acntclsflag.value = '0';
- rdo_prntflag.value = 'Y';
-
- submit("TRRAZ00001");
- model.setValue("/root/send/params/cashacntcd", model.getValue("/root/code/codelist/cdid"));
-
- btn_showdayrept.dispatch("DOMActivated");
- misfMsterDetailSet(grd_dayrept, null, "TRRAD00501", "N");
- model.setValue("/root/send/retrparams/usernm", getUserInfo("usernm"));
-
-
- model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/retrparam/deptcd", getUserInfo("dutplcecd"));
-
- submit("TRRAD00151");
-
- model.setValue("/root/send/retrparams/approval21", model.getValue("/root/main/apln/approval21"));
- model.setValue("/root/send/retrparams/approval22", model.getValue("/root/main/apln/approval22"));
- model.setValue("/root/send/retrparams/approval23", model.getValue("/root/main/apln/approval23"));
- model.setValue("/root/send/retrparams/approval24", model.getValue("/root/main/apln/approval24"));
- model.setValue("/root/send/retrparams/approval25", model.getValue("/root/main/apln/approval25"));
- model.setValue("/root/send/retrparams/approval26", model.getValue("/root/main/apln/approval26"));
- model.setValue("/root/send/retrparams/arbitrary1", model.getValue("/root/main/apln/arbitrary1"));
- model.setValue("/root/send/retrparams/arbitrary2", model.getValue("/root/main/apln/arbitrary2"));
- model.setValue("/root/send/retrparams/arbitrary3", model.getValue("/root/main/apln/arbitrary3"));
- model.setValue("/root/send/retrparams/arbitrary4", model.getValue("/root/main/apln/arbitrary4"));
- model.setValue("/root/send/retrparams/arbitrary5", model.getValue("/root/main/apln/arbitrary5"));
- model.setValue("/root/send/retrparams/arbitrary6", model.getValue("/root/main/apln/arbitrary6"));
-
- var expansion = radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition3');
- model.setValue("/root/send/retrparams/expansion", expansion);
-
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fSetDayMonthDate()
- {
- ipt_frdate1.value = getCurrentDate();
- ipt_todate1.value = getCurrentDate();
- ipt_frdate2.value = getCurrentDate().substr(0, 6);
- ipt_todate2.value = getCurrentDate().substr(0, 6);
- }
- function fSetDayMonthReptParams()
- {
- if(sw_grid.selectedIndex == 0)
- {
- if(model.getValue(ipt_todate1.attribute("ref")) == "")
- {
- model.setValue(ipt_todate1.attribute("ref"), model.getValue(ipt_frdate1.attribute("ref")));
- }
- model.setValue("/root/send/params/frdate", model.getValue("/root/main/date/daydate/frdate"));
- model.setValue("/root/send/params/todate", model.getValue("/root/main/date/daydate/todate"));
- }
- else if(sw_grid.selectedIndex == 1)
- {
- if(model.getValue(ipt_todate2.attribute("ref")) == "")
- {
- model.setValue(ipt_todate2.attribute("ref"), model.getValue(ipt_frdate2.attribute("ref")));
- }
-
- var dt = new Date(model.getValue("/root/main/date/month/todate").substr(0, 4), model.getValue("/root/main/date/month/todate").substr(4, 2), 0);
-
- model.setValue("/root/send/params/frdate", model.getValue("/root/main/date/month/frdate") + "01");
- model.setValue("/root/send/params/todate", model.getValue("/root/main/date/month/todate") + dt.getDate());
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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:293px; 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="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[
-
-
-
- fSetDayMonthReptParams();
-
- if(sw_grid.selectedIndex == 0)
- {
- submit("TRRAD00501");
- }
- else if(sw_grid.selectedIndex == 1)
- {
- submit("TRRAD00502");
- }
- // misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:354px; top:10px; width:96px; height:17px; ">출력구분 :</caption>
- <switch id="sw_params" style="left:4px; top:3px; width:321px; height:30px; background-color:transparent; border-color:transparent; ">
- <case id="cs_dayrept" selected="true" style="left:0px; top:0px; width:338px; height:28px; background-color:#fffbf2; border-color:#ffd799; ">
- <caption id="caption2" class="search_name" style="left:12px; top:5px; width:86px; height:17px; ">기 간 :</caption>
- <caption id="caption3" style="left:203px; top:6px; width:15px; height:20px; ">~</caption>
- <input id="ipt_frdate1" ref="/root/main/date/daydate/frdate" class="input_s_essential" inputtype="date" style="left:102px; top:5px; width:100px; height:19px; "/>
- <input id="ipt_todate1" ref="/root/main/date/daydate/todate" class="input_s_essential" inputtype="date" style="left:214px; top:5px; width:100px; height:19px; "/>
- </case>
- <case id="cs_monthrept" navindex="0" style="left:0px; top:0px; width:338px; height:28px; background-color:#fffbf2; border-color:#ffd799; ">
- <caption id="caption5" class="search_name" style="left:12px; top:5px; width:86px; height:17px; ">기 간 :</caption>
- <caption id="caption7" style="left:203px; top:6px; width:15px; height:20px; ">~</caption>
- <input id="ipt_frdate2" ref="/root/main/date/month/frdate" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:102px; top:5px; width:100px; height:19px; "/>
- <input id="ipt_todate2" ref="/root/main/date/month/todate" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:214px; top:5px; width:100px; height:19px; "/>
- </case>
- </switch>
- <select1 id="rdo_acntclsflag" ref="/root/send/params/acntclsflag" class="radio_search" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:915px; top:8px; width:175px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/acntclsflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_8" class="search_name" style="left:825px; top:9px; width:86px; height:17px; ">구 분 :</caption>
- <select1 id="rdo_prntflag" ref="/root/send/params/prntflag" class="radio_search" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:450px; top:8px; width:175px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/prntflag">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <case id="case2" selected="true">
- <caption id="caption2" style="left:130px; top:95px; width:100px; height:20px; vertical-align:middle; ">caption2</caption>
- </case>
- <button id="btn_showdayrept" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:60px; height:22px; ">
- <caption>일계표</caption>
- <toggle case="case_dayrept" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- sw_params.selectedIndex = 0;
- model.setValue("/root/send/params/termflag", "day");
-
- ]]>
- </script>
- </button>
- <button id="btn_showmonthrept" class="btn_sw" group="tab" style="left:60px; top:49px; width:62px; height:22px; ">
- <caption>월계표</caption>
- <toggle case="case_monthrept" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- sw_params.selectedIndex = 1;
- model.setValue("/root/send/params/termflag", "month");
-
- ]]>
- </script>
- </button>
- <switch id="sw_grid" class="sw_box" style="left:0px; top:70px; width:1195px; height:669px; border-style:solid; ">
- <case id="case_dayrept" selected="true">
- <caption id="caption21" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">일계표</caption>
- <datagrid id="grd_dayrept" nodeset="/root/main/day/dayrept" caption="차변^차변^차변^계정과목^대변^대변^대변|계^대체^현금^계정과목^현금^대체^계" colsep="^" colwidth="147, 147, 147, 260, 147, 147, 147, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:637px; ">
- <col ref="dtotal" format="(-)#,###" style="text-align:right; "/>
- <col ref="rdramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="cdramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="abbrnm" style="text-align:left; padding-left:30; "/>
- <col ref="ccramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="ctotal" format="(-)#,###" style="text-align:right; "/>
- <col ref="upaccd"/>
- <col ref="acntgb"/>
- <col ref="sumgbn"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
- <button id="btn_excel" class="btn2_letter4" style="left:1127px; top:4px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_dayrept);
- ]]>
- </script>
- </button>
- </case>
- <case id="case_monthrept">
- <caption id="caption8" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">월계표</caption>
- <datagrid id="grd_monthrept" nodeset="/root/main/month/monthrept" caption="차변^차변^차변^계정과목^대변^대변^대변|계^대체^현금^계정과목^현금^대체^계" colsep="^" colwidth="147, 147, 147, 260, 147, 147, 147, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:30px; width:1193px; height:637px; ">
- <col ref="dtotal" format="(-)#,###" style="text-align:right; "/>
- <col ref="rdramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="cdramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="abbrnm" style="text-align:left; "/>
- <col ref="ccramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="rcramt" format="(-)#,###" style="text-align:right; "/>
- <col ref="ctotal" format="(-)#,###" style="text-align:right; "/>
- <col ref="upaccd"/>
- <col ref="acntgb"/>
- <col ref="sumgbn"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
- <button id="btn_excel2" class="btn2_letter4" style="left:1126px; top:4px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_monthrept);
- ]]>
- </script>
- </button>
- </case>
- </switch>
- </group>
- <group id="group4" 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[
-
-
-
- if(sw_grid.selectedIndex == 0)
- {
- if(grd_dayrept.rows == grd_dayrept.fixedRows)
- {
- messageBox("출력할 내용이" ,"I004");
- return;
- }
- model.setValue("/root/send/retrparams/frdate", ipt_frdate1.value);
- model.setValue("/root/send/retrparams/todate", ipt_todate1.value);
-
- for(var i = 1 ; i <= model.instance1.selectNodes("/root/main/day/dayrept").length ; i++)
- {
- model.makeNode("/root/send/prntlist/gridlist[" + i + "]");
- model.copyNode("/root/send/prntlist/gridlist[" + i + "]", "/root/main/day/dayrept[" + i + "]");
- }
-
- }
- else
- {
- if(grd_monthrept.rows == grd_monthrept.fixedRows)
- {
- messageBox("출력할 내용이" ,"I004");
- return;
- }
- model.setValue("/root/send/retrparams/frdate", ipt_frdate2.value);
- model.setValue("/root/send/retrparams/todate", ipt_todate2.value);
-
- for(var i = 1 ; i <= model.instance1.selectNodes("/root/main/month/monthrept").length ; i++)
- {
- model.makeNode("/root/send/prntlist/gridlist[" + i + "]");
- model.copyNode("/root/send/prntlist/gridlist[" + i + "]", "/root/main/month/monthrept[" + i + "]");
- }
-
- }
- model.setValue("/root/send/retrparams/instnm", getUserInfo("dutplceinstnm"));
- model.setValue("/root/send/retrparams/selectedIndex", sw_grid.selectedIndex);
-
- exeReportPreview("RPRAD00501", "XMLSTR", "/root/send/retrparams");
-
- model.removeNodeset("/root/send/prntlist/gridlist");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|