123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <?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>
- <item>
- <basecdnm/>
- <month1/>
- <month2/>
- <month3/>
- <month4/>
- <month5/>
- <month6/>
- <month7/>
- <month8/>
- <month9/>
- <month10/>
- <month11/>
- <month12/>
- <sumcnt/>
- </item>
- </list>
- </main>
- <send>
- <execfromdd/>
- <exectodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <cdgrupid/>
- <lrgcd/>
- <mdlcd/>
- <flag/>
- <basecdflag/>
- </send>
- <init>
- <cmb_lrgcd/>
- <cmb_mdlcd/>
- </init>
- <hidden>
- <comcd/>
- </hidden>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
-
- /*** ***/
- function setTitle() {
-
- model.removenode("/root/main/list");
-
- var stYearMonth = model.getValue("/root/send/execfromdd") + "01";
- var dtYearMonth = stYearMonth.toDate();
- var stEndMonth = model.getValue("/root/send/exectodd") + "01";
- var dtEndMonth = stEndMonth.toDate();
-
- var stYearHeader = "구분^구분^";
- var stMonthHeader = "구분^구분^";
-
- //for (var i = 1; i <= 12; i++) {
- for (var i = 2; i <= 13; i++) {
-
- // 년도
- var stYear = dtYearMonth.getDateFormat("YYYY");
- // 월
- var stMonth = dtYearMonth.getDateFormat("MM");
-
- stYearHeader = stYearHeader + stYear + "년^";
- stMonthHeader = stMonthHeader + stMonth + "월^";
-
- if(dtYearMonth.getDateFormat("YYYYMM") > dtEndMonth.getDateFormat("YYYYMM")) {
- grd_list.colHidden(1 + i) = true;
- } else {
- grd_list.colHidden(1 + i) = false;
- }
- dtYearMonth.getAddDate(1, "M");
-
- }
- stYearHeader = stYearHeader + "합계|";
- stMonthHeader = stMonthHeader + "합계";
-
- grd_list.caption = stYearHeader + stMonthHeader;
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- var fromdd = getCurrentDate().substr(0,4) + "01";
- var todd = getCurrentDate().substr(0,6);
-
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/execfromdd", fromdd);
- model.setValue("/root/send/exectodd", todd);
- model.setValue("/root/send/basecdflag", "R");
- submit("TRAES01502", false);
- addComboItem("cmb_lrgcd","--전체--","","above");
- model.refresh();
-
- setTitle();
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAES03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TRAES01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_lrgcd"/>
- <submission id="TRAER01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_mdlcd"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">조영제 사용현황</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:14px; ">조영제 사용현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
- <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:45px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_list.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_list" nodeset="/root/main/list/item" caption="caption1^구분^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2006년^2007년^2007년^합계^전년도합계^증감(%)|caption1^구분^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^합계^전년도합계^증감(%)" colsep="^" colwidth="0, 310, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 82" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1195px; height:670px; ">
- <col ref="ord" visibility="hidden"/>
- <col ref="basecdnm"/>
- <col ref="month1" style="text-align:right; "/>
- <col ref="month2" style="text-align:right; "/>
- <col ref="month3" style="text-align:right; "/>
- <col ref="month4" style="text-align:right; "/>
- <col ref="month5" style="text-align:right; "/>
- <col ref="month6" style="text-align:right; "/>
- <col ref="month7" style="text-align:right; "/>
- <col ref="month8" style="text-align:right; "/>
- <col ref="month9" style="text-align:right; "/>
- <col ref="month10" style="text-align:right; "/>
- <col ref="month11" style="text-align:right; "/>
- <col ref="month12" style="text-align:right; "/>
- <col ref="sumcnt" style="text-align:right; "/>
- </datagrid>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
- <button id="button1" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setTitle();
-
- openLoadingBar("조영제 사용현황을 조회 중입니다....") ;
-
- if (submit("TRAES03901")) {
- var ord = "";
- for ( var i = 1; i <= grd_list.rows; i++ ) {
- ord = grd_list.valueMatrix(i, grd_list.colRef("ord"));
- if ( ord == "2" ) {
- grd_list.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
- grd_list.rowstyle( i , "data" , "font-weight" ) = "bold";
- }
- }
- }
-
- model.refresh();
-
- closeLoadingBar() ;//처리중 화면을 close한다.
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:10px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_todd" ref="/root/send/exectodd" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:202px; top:6px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
- var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
-
- if(execfromdd.getAddDate(11, "M") < exectodd)
- {
- messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
- exectodd = execfromdd;
- }
-
- model.setValue("/root/send/exectodd", exectodd.getDateFormat("YYYYMM"));
- exectodd = exectodd.getAddDate(-12, "M");
- exectodd = exectodd.getDateFormat("YYYYMM");
-
- setTitle();
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_no_b" style="left:187px; top:6px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/execfromdd" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:104px; top:6px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var execfromdd = (model.getValue("/root/send/execfromdd") + "01").toDate();
- var exectodd = (model.getValue("/root/send/exectodd") + "01").toDate();
-
- if(execfromdd < exectodd.getAddDate(-11, "M"))
- {
- messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
- execfromdd = exectodd;
- }
- model.setValue("/root/send/execfromdd", execfromdd.getDateFormat("YYYYMM"));
- execfromdd = execfromdd.getAddDate(-12, "M");
- execfromdd = execfromdd.getDateFormat("YYYYMM");
-
- //model.setValue("/root/send/comparefromdd", execfromdd);
-
- setTitle();
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:310px; top:7px; width:86px; height:17px; ">대분류 :</caption>
- <select1 id="cmb_lrgcd" ref="/root/send/lrgcd" appearance="minimal" style="left:390px; top:5px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_lrgcd/lrgcdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|