123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- <?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/>
- <goodflag/>
- <stocdeptcd/>
- <stocfrym/>
- <stoctoym/>
- <goodcd/>
- <goodnm/>
- </send>
- <temp/>
- <main>
- <list>
- <nutrstoccustbiyul/>
- <goodlist/>
- </list>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSG02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TRRSG02602" 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_nutrcustbiyul);
- misfGridInit(grd_goodlist);
-
- grd_nutrcustbiyul.rowHeight(0) = "20";
- grd_nutrcustbiyul.rowHeight(1) = "20";
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- misfMsterDetailSet(grd_nutrcustbiyul,null, "TRRSG02601" ,"N");
- //misfMsterDetailSet(grd_goodlist,null, "TRRSG02602" ,"N");
-
- var curdate = getCurrentDate();
-
- model.setValue(ipt_stocfrym.attribute("ref") ,curdate);
- model.setValue(ipt_stoctoym.attribute("ref") ,curdate);
- // [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_custpr.selected = "true";
- model.toggle("case_grdcustpr");
-
- 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_stocym");
- }
- return false;
- }
-
- /*
- if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("공급처를 " ,"C001");
- model.setFocus("ipt_suplplcecd");
- }
- return false;
- }
- */
-
- if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고부서를 " ,"C001");
- model.setFocus("ipt_windeptcd");
- }
- return false;
- }
- if(model.getValue(ipt_winfrdd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고시작일자를 " ,"C001");
- model.setFocus("ipt_winfrdd");
- }
- return false;
- }
-
- if(model.getValue(ipt_wintodd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고종료일자를 " ,"C001");
- model.setFocus("ipt_wintodd");
- }
- 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:717px; ">
- <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="button1" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //if(fCheckRetrieveData(false) == false)return;
- if(sw_flag.selectedIndex == 0)
- {
- //misfMsterDetailRetrieve();
- submit("TRRSG02601");
- } else if (sw_flag.selectedIndex == 1)
- {
- submit("TRRSG02602");
- }
- model.refresh();
- //fAfterRetrieve();
- ]]>
- </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_stocfrym" ref="/root/send/stocfrym" class="input_s_essential" inputtype="date" style="left:312px; top:8px; width:100; height:19px; text-align:center; "/>
- <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:923px; top:7px; width:42px; height:19px; "/>
- <input id="ipt_stocdeptcd" ref="/root/send/stocdeptcd" visibility="hidden" style="left:980px; top:7px; width:45px; height:19px; "/>
- <input id="ipt_stoctoym" ref="/root/send/stoctoym" class="input_s_essential" inputtype="date" style="left:431px; top:8px; width:104px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption22" style="left:414px; top:8px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:560px; top:9px; width:115px; height:17px; ">식자재코드 :</caption>
- <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_search" visibility="hidden" _chartype="upper" style="left:665px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value.length == 0)
- ipt_goodnm.value = "";
- else
- /*
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag,goodcd","cmb_instcd,ipt_goodflag,ipt_goodcd");
- */
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag,goodcd","cmb_instcd,ipt_goodflag,"+ model.getValue(ipt_goodcd.attribute("ref")) );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="button2" class="icon_search" visibility="hidden" style="left:748px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_fix" visibility="hidden" appearance="input" style="left:766px; top:8px; width:133px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value.length == 0)
- ipt_goodcd.value = "";
- else
- /*
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
- "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- */
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
- "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd",
- ipt_goodcd,"SPRSD00210","instcd,goodflag,goodnm","cmb_instcd,ipt_goodflag,"+ model.getValue(ipt_goodnm.attribute("ref")) );
-
- model.refresh();
- ]]>
- </script>
- </input>
- </group>
- <switch id="sw_flag" class="sw_box" style="left:0px; top:75px; width:1193px; height:640px; border-style:solid; ">
- <case id="case_grdcustpr" selected="true">
- <line id="line15" class="line_1" style="x1:0px; y1:24px; x2:1191px; y2:24px; "/>
- <button id="button14" class="btn2_letter2" style="left:1145px; top:4px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_nutrcustbiyul,"거래처별지출현황");
- ]]>
- </script>
- </button>
- <datagrid id="grd_nutrcustbiyul" nodeset="/root/main/list/nutrstoccustbiyul" caption="거래처^거래처^환자식금액^환자식금액^직원식금액^직원식금액^합계^^비율(%)^^^^|거래처^거래처^일반식^치료식^직원식^직원야식^합계^^비율(%)^^^^" colsep="^" colwidth="100, 150, 160, 160, 150, 150, 200, 0, 100,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:29px; width:1190px; height:598px; ">
- <col ref="maincustlastsuplplce"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="custpatwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="custcurwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="custempwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="custempnigtwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="custtotwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="custbiyul" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
- <col ref="custbiyul2" format="###,###,###.##" style="text-align:right; "/>
- <col ref="winamtvat" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
- <col ref="totwinamtwithvat" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
- <col ref="totwinamt" visibility="hidden" format="###,###,###.##" style="text-align:right; "/>
- </datagrid>
- </case>
- <case id="case_grdgoodpr" style="left:0px; top:0px; width:1193px; height:643px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
- <button id="button10" class="btn2_letter2" style="left:1145px; top:4px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_goodlist,"식품별지출현황");
- ]]>
- </script>
- </button>
- <datagrid id="grd_goodlist" nodeset="/root/main/list/goodlist" caption="입고일자^식품명^^단위^단가^환자식수량^환자식수량^직원식수량^직원식수량^환자식금액^환자식금액^직원식금액^직원식금액^총합계액^^^^^^|입고일자^식품명^^단위^단가^G^T^S^N^G^T^S^N^총합계액^^^^^^" colsep="^" colwidth="100, 150, 0, 50, 50, 80, 80, 80, 80, 90, 90, 90, 90, 135,0,0,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:29px; width:1190px; height:590px; ">
- <col ref="windd" format="yyyy-mm-dd"/>
- <col ref="goodnm"/>
- <col ref="goodcd" visiable="hidden"/>
- <col ref="winunit"/>
- <col ref="winunitcost" format="#,###.#" style="text-align:right; "/>
- <col ref="patmealwinqty" format="#,###.#" style="text-align:right; "/>
- <col ref="curemealwinqty" format="#,###.#" style="text-align:right; "/>
- <col ref="empmealwinqty" format="#,###.#" style="text-align:right; "/>
- <col ref="empnigtmealwinqty" format="#,###.#" style="text-align:right; "/>
- <col ref="patmealwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="curemealwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="empmealwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="empnigtmealwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="totwinamt" format="###,###,###.##" style="text-align:right; "/>
- <col ref="instcd" visiable="hidden" style="text-align:right; "/>
- <col ref="slipdd" visiable="hidden" style="text-align:right; "/>
- <col ref="slipno" visiable="hidden" style="text-align:right; "/>
- <col ref="reqdeptcd" visiable="hidden" style="text-align:right; "/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_custpr" class="btn_sw" group="tab" style="left:0px; top:54px; width:95px; height:22px; ">
- <caption>거 래 처 별</caption>
- <toggle case="case_grdcustpr" ev:event="onclick"/>
- </button>
- <button id="btn_goodpr" class="btn_sw" group="tab" style="left:95px; top:54px; width:100px; height:22px; ">
- <caption>식 품 별</caption>
- <toggle case="case_grdgoodpr" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- caption1.visible = true;
- ipt_goodcd.visible = true;
- button2.visible = true;
- ipt_goodnm.visible = true;
- model.refresh();
-
- ]]>
- </script>
- </button>
- </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>
|