123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?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="">
- <init/>
- <send>
- <instcd/>
- <stocym/>
- <goodflag/>
- <stocdeptcd/>
- <avgwinamtlist/>
- </send>
- <temp/>
- <main>
- <list>
- <monthcostlist/>
- <costlist/>
- </list>
- </main>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSG06601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TRRSG06602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var RetrYn = "Y";
- function fInitialize() {
-
- misfGridInit(grd_monthcostlist);
- misfGridInit(grd_costlist);
-
- grd_monthcostlist.rowHeight(0) = "20";
- grd_monthcostlist.rowHeight(1) = "20";
- grd_costlist.rowHeight(0) = "20";
- grd_costlist.rowHeight(1) = "20";
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- //misfMsterDetailSet(grd_monthcostlist,null, "TRRSG06601" ,"N");
-
- var curdate = getCurrentDate();
-
- model.setValue(ipt_stocym.attribute("ref") ,curdate.substr(0,6));
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.setValue(ipt_goodflag.attribute("ref"),"PH");
-
- // hidden column
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
- model.setValue(ipt_goodflag.attribute("ref"),'SF');
- //model.setValue(ipt_stocdeptcd.attribute("ref") ,"3251000000"); // getUserInfo("dutplcecd"));
- model.setValue(ipt_stocdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- btn_monthpr.selected = "true";
- model.toggle("case_grdmonthpr");
-
- model.refresh();
- }
-
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
- if(model.getValue(ipt_stocym.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("조회시작년월 " ,"C002");
- model.setFocus("ipt_stocfrym");
- }
- return false;
- }
-
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">식수단가 집계</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="group6" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption4" class="search_name" style="left:226px; top:9px; width:86px; height:17px; ">조회년월 :</caption>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (sw_flag.selectedIndex == 0)
- {
- submit("TRRSG06601");
-
- } else {
- submit("TRRSG06602");
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8; width:100; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_stocym" ref="/root/send/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:312px; top:8px; width:100; height:19px; text-align:center; "/>
- <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:632px; top:9px; width:51px; height:19px; "/>
- <input id="ipt_stocdeptcd" ref="/root/send/stocdeptcd" visibility="hidden" style="left:688px; top:8px; width:44px; height:19px; "/>
- </group>
- <button id="btn_costpr" class="btn_sw" group="tab" style="left:130px; top:54px; width:130px; height:22px; ">
- <caption>기간별 식수단가 집계</caption>
- <toggle case="case_grdcostpr" ev:event="onclick"/>
- </button>
- <button id="btn_monthpr" class="btn_sw" group="tab" style="left:0px; top:54px; width:130px; height:22px; ">
- <caption>월별 식수단가 집계</caption>
- <toggle case="case_grdmonthpr" ev:event="onclick"/>
- </button>
- <switch id="sw_flag" style="left:0px; top:75px; width:1195px; height:655px; ">
- <case id="case_grdmonthpr" selected="true">
- <line id="line15" class="line_1" style="x1:0px; y1:27px; x2:1190px; y2:27px; "/>
- <button id="button14" class="btn2_letter2" style="left:1148px; top:6px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_monthcostlist,"월별 식수단가 집계_"+model.getValue("/root/send/stocym"));
- ]]>
- </script>
- </button>
- <datagrid id="grd_monthcostlist" nodeset="/root/main/list/monthcostlist" caption="코드분류^코드분류^전년동월^전년동월^전년동월^전월^전월^전월^당월^당월^당월^증감율^증감율^|코드^품명^환자식^직원식^계^환자식^직원식^계^환자식^직원식^계^전년동월대비^전월대비^" colsep="^" colwidth="70, 115, 90, 90,100, 90, 90,100, 90, 90, 100, 78, 65,0,0,0,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:32px; width:1190px; height:610px; ">
- <col ref="lrgcd"/>
- <col ref="lrgnm" style="text-align:right; "/>
- <col ref="befyearpat" format="###,###,###" style="text-align:right; "/>
- <col ref="befyearemp" format="###,###,###" style="text-align:right; "/>
- <col ref="befyeartot" format="###,###,###" style="text-align:right; "/>
- <col ref="befmonpat" format="###,###,###" style="text-align:right; "/>
- <col ref="befmonemp" format="###,###,###" style="text-align:right; "/>
- <col ref="befmontot" format="###,###,###" style="text-align:right; "/>
- <col ref="realmonpat" format="###,###,###" style="text-align:right; "/>
- <col ref="realmonemp" format="###,###,###" style="text-align:right; "/>
- <col ref="realmontot" format="###,###,###" style="text-align:right; "/>
- <col ref="befyearodds" style="text-align:right; "/>
- <col ref="befmonodds" style="text-align:right; "/>
- <col ref="instcd" visiable="hidden" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case_grdcostpr">
- <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:1190px; y2:27px; "/>
- <button id="button1" class="btn2_letter2" style="left:1146px; top:6px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_costlist,"기간별 식수단가 집계_"+ model.getValue("/root/send/stocym"));
- ]]>
- </script>
- </button>
- <datagrid id="grd_costlist" nodeset="/root/main/list/costlist" caption="코드분류^코드분류^전월^전월^전월^당월^당월^당월^기간별합계^기간별합계^기간별합계^|코드^품명^환자식^직원식^계^환자식^직원식^계^환자식^직원식^계^" colsep="^" colwidth="80, 145, 100, 100,100, 100, 100,100, 110, 110, 120, 0, 0,0,0,0,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:32px; width:1190px; height:610px; ">
- <col ref="lrgcd"/>
- <col ref="lrgnm" style="text-align:right; "/>
- <col ref="befmonpat" format="###,###,###" style="text-align:right; "/>
- <col ref="befmonemp" format="###,###,###" style="text-align:right; "/>
- <col ref="befmontot" format="###,###,###" style="text-align:right; "/>
- <col ref="realmonpat" format="###,###,###" style="text-align:right; "/>
- <col ref="realmonemp" format="###,###,###" style="text-align:right; "/>
- <col ref="realmontot" format="###,###,###" style="text-align:right; "/>
- <col ref="totcostpat" format="###,###,###" style="text-align:right; "/>
- <col ref="totcostemp" format="###,###,###" style="text-align:right; "/>
- <col ref="totcosttot" format="###,###,###" style="text-align:right; "/>
- <col ref="instcd" visiable="hidden" style="text-align:right; "/>
- </datagrid>
- </case>
- </switch>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|