123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- <?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>
- <list>
- <nutrdelive>
- <nutrdelivelist/>
- <nutrmaxdeliveno/>
- </nutrdelive>
- </list>
- <item/>
- </main>
- <send>
- <save>
- <nutrdelivelist/>
- </save>
- <nutrdelive>
- <instcd/>
- <goodflag/>
- <deliveno/>
- <delivedeptcd/>
- <iokindcd/>
- <windeptcd/>
- <windeptnm/>
- <delivepsn/>
- <delivefrdd/>
- <delivetodd/>
- <goodcd/>
- <goodnm/>
- </nutrdelive>
- </send>
- <init>
- <deliveqty/>
- <deliveamt/>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- </root>
- </instance>
- <bind id="delivedeptqty" ref="/root/main/list/nutrdelive/nutrdelivelist/delivedeptqty" calculate="../patmealdeliveqty +../curemealdeliveqty + ../empmealdeliveqty +../empnigtmealdeliveqty"/>
- <bind id="deliveamt" ref="/root/main/list/nutrdelive/nutrdelivelist/deliveamt" calculate="../delivedeptqty * ../goodunitcost"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSO03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nutrdelive" resultref="/root/main/list/nutrdelive"/>
- </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/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
-
- misfGridInit(grd_nutrdelive);
- grd_nutrdelive.rowHeight(0) = "20";
- grd_nutrdelive.rowHeight(1) = "20";
- model.resetInstanceNode("/root/send");
-
- rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
-
- misfGridInit(grd_nutrdelive);
-
- misfMsterDetailSet(grd_nutrdelive,null, "TRRSO03301" ,"Y");
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_delivefrdd.attribute("ref") , cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_delivetodd.attribute("ref") , curdate);
-
- model.setValue(ipt_sumdeliveqty.attribute("ref"),0);
- model.setValue(opt_sumdeliveamt.attribute("ref"),0);
-
- // hidden col
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
- model.setValue(cmb_goodflag.attribute("ref"),'SF');
- //getUserInfo("dutplceinstcd")
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","","%","");
- if(cmb_iokindcd.length> 0) cmb_iokindcd.selectedindex= 0;
-
- grd_nutrdelive.selectionmode = "free";
- 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(cmb_goodflag.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- }
- return false;
- }
- if(model.getValue(ipt_delivefrdd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("출고조회시작일자를 " ,"C001");
- model.setFocus("ipt_delivefrdd");
- }
- return false;
- }
- if(model.getValue(ipt_delivetodd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("출고조회종료일자를 " ,"C001");
- model.setFocus("ipt_delivetodd");
- }
- return false;
- }
- // 전체가 '' 임으로 아래에 걸린다.
- // 조회프로그램에서는
- // if(model.getValue(cmb_iokindcd.attribute("ref")).length== 0 )
- // {
- // if(pmsg == true)
- // {
- // messageBox("출고유형을 " ,"C001");
- // model.setFocus("cmb_iokindcd");
- // }
- // return false;
- // }
- return true;
- }
-
- function fAfterRetrieve()
- {
- var delivedeptqty = 0;
- var deliveamt = 0;
-
- for(var currow = grd_nutrdelive.fixedRows ; currow < grd_nutrdelive.rows ; currow++)
- {
- delivedeptqty = delivedeptqty + parseFloat( grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("delivedeptqty")));
-
- if(grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("deliveamt")).length>0)
- deliveamt = deliveamt + 0 + parseFloat(grd_nutrdelive.valueMatrix(currow , grd_nutrdelive.colRef("deliveamt")));
- }
-
- model.setValue(ipt_sumdeliveqty.attribute("ref"),delivedeptqty);
- model.setValue(opt_sumdeliveamt.attribute("ref"),deliveamt);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:243px; height:14px; ">출고내역 조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:1195px; height:32px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:75px; "/>
- <select1 id="cmb_goodflag" ref="/root/send/nutrdelive/goodflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:555px; top:16px; width:24px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/nutrdelive/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:18; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="tit_2" style="left:5px; top:60px; width:118px; height:13px; ">출고내역</caption>
- <caption id="caption10" style="left:907px; top:52px; width:80px; height:23px; vertical-align:middle; ">출고건수 :</caption>
- <output id="ipt_sumdeliveqty" ref="/root/init/deliveqty" class="output_default" style="left:964px; top:54px; width:55px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="opt_sumdeliveamt" ref="/root/init/deliveamt" class="output_default" format="#,###" style="left:1104px; top:54px; width:90px; height:19px; font-weight:bold; text-align:right; "/>
- <select1 id="cmb_iokindcd" ref="/root/send/nutrdelive/iokindcd" class="combo_s_essential" appearance="minimal" style="left:350px; top:18px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1120px; top:15px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- misfGridInit(grd_nutrdelive);
- misfMsterDetailRetrieve();
- fAfterRetrieve();
- ]]>
- </script>
- </button>
- <datagrid id="grd_nutrdelive" nodeset="/root/main/list/nutrdelive/nutrdelivelist" caption="출고일자^출고유형^출고번호^순번^물품코드*^품명^원산지^단가^단위^환산수량^환자식출고수량*^환자식출고수량*^직원식출고수량*^직원식출고수량*^출고금액^출고자|출고일자^출고유형^출고번호^순번^물품코드*^품명^원산지^단가^단위^환산수량^일반식^치료식^직원식^직원야식^출고금액^출고자" colsep="^" colwidth="73, 90, 63, 46, 100, 240, 113, 0, 0, 0, 67, 65, 63, 66, 102, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:82px; width:1195px; height:643px; ">
- <col ref="delivedd"/>
- <col ref="iokindnm"/>
- <col ref="deliveno" style="text-align:center; "/>
- <col ref="deliveseqno" style="text-align:center; "/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="orgloc"/>
- <col ref="goodunitcost" visibility="hidden" style="text-align:right; "/>
- <col ref="deliveunit" visibility="hidden" style="text-align:center; "/>
- <col ref="exchqty" visibility="hidden"/>
- <col ref="patmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="curemealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="empmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty" format="#,###.#" maxlength="14.1" style="text-align:right; "/>
- <col ref="deliveamt" format="#,###" style="text-align:right; "/>
- <col ref="delivepsnnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="iokindcd" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="delivepsn" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="delivedeptqty" visibility="hidden"/>
- <col ref="predelivedeptqty" visibility="hidden"/>
- </datagrid>
- <input id="ipt_delivefrdd" ref="/root/send/nutrdelive/delivefrdd" class="input_s_essential" inputtype="date" style="left:760px; top:18px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_delivetodd" ref="/root/send/nutrdelive/delivetodd" class="input_s_essential" inputtype="date" style="left:879px; top:18px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption11" class="search_n_b" style="left:864px; top:18px; width:15px; height:17px; font-weight:bolder; ">~</caption>
- <line id="line2" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:42px; "/>
- <caption id="caption5" class="search_name" style="left:265px; top:19px; width:86px; height:17px; ">출고유형 :</caption>
- <caption id="caption8" class="search_name" style="left:15px; top:19; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption7" class="search_name" style="left:675px; top:19px; width:86px; height:17px; ">출고일자 :</caption>
- <caption id="caption1" style="left:1047px; top:52px; width:80px; height:23px; vertical-align:middle; ">출고합계 :</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|