123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523 |
- <?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>
- <goodstoc>
- <goodstoclist/>
- </goodstoc>
- <nutrwin>
- <nutrwinlist/>
- </nutrwin>
- <nutrdelive>
- <nutrdelivelist/>
- </nutrdelive>
- <nutrsum>
- <nutrsumlist/>
- </nutrsum>
- </list>
- </main>
- <init>
- <stocsumqty/>
- </init>
- <send>
- <goodiolist>
- <instcd/>
- <goodflag/>
- <deptcd/>
- <deptnm/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- <iofrdd/>
- <iotodd/>
- <stocym/>
- <lrgcd/>
- <lrgnm/>
- </goodiolist>
- <goodstoc>
- <instcd/>
- <goodcd/>
- </goodstoc>
- </send>
- </root>
- </instance>
- <bind id="sumpatqty" ref="/root/main/list/nutrwin/nutrwinlist/sumpatqty" calculate="../patmealwinqty +../curemealwinqty"/>
- <bind id="bind1" ref="/root/main/list/nutrdelive/nutrdelivelist/sumpatqty" calculate="../patmealdeliveqty +../curemealdeliveqty"/>
- <bind id="sumempqty" ref="/root/main/list/nutrwin/nutrwinlist/sumempqty" calculate="../empmealwinqty +../empnigtmealwinqty"/>
- <bind id="bind2" ref="/root/main/list/nutrdelive/nutrdelivelist/sumempqty" calculate="../empmealdeliveqty +../empnigtmealdeliveqty"/>
- <bind id="sumpatamt" ref="/root/main/list/nutrwin/nutrwinlist/sumpatamt" calculate="../sumpatqty *../winunitcost"/>
- <bind id="bind3" ref="/root/main/list/nutrdelive/nutrdelivelist/sumpatamt" calculate="../sumpatqty *../goodunitcost"/>
- <bind id="sumempamt" ref="/root/main/list/nutrwin/nutrwinlist/sumempamt" calculate="../sumempqty *../winunitcost"/>
- <bind id="bind4" ref="/root/main/list/nutrdelive/nutrdelivelist/sumempamt" calculate="../sumempqty *../goodunitcost"/>
- <bind id="winamt" ref="/root/main/list/nutrwin/nutrwinlist/winamt" calculate="../sumpatamt +../sumempamt"/>
- <bind id="bind5" ref="/root/main/list/nutrdelive/nutrdelivelist/deliveamt" calculate="../sumpatamt +../sumempamt"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRST01301" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/goodstoc"/>
- <submission id="TRRSI05401" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/nutrwin"/>
- <submission id="TRRSO03301" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/nutrdelive"/>
- <submission id="TRRST05101" ref="/root/send/goodiolist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/nutrsum"/>
- </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[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_frdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_todd.attribute("ref") , curdate);
-
- // hidden
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
- model.setValue(ipt_goodflag.attribute("ref") , "SF");
- misfGridInit(grd_nutrwin);
- misfGridInit(grd_nutrdelive);
- misfGridInit(grd_stoclist);
- misfGridInit(grd_nutrsum);
-
- misfMsterDetailSet(grd_nutrwin,null, "TRRSI05401" ,"N");
- misfMsterDetailSet(grd_nutrdelive,null, "TRRSO03301" ,"N");
- misfMsterDetailSet(grd_stoclist,null, "TRRST01301" ,"N");
- misfMsterDetailSet(grd_nutrsum,null, "TRRST05101" ,"N");
- grd_stoclist.subtotalposition = "after";
- model.refresh();
- }
- function fRetrevie()
- {
- if(fCheckRetrieveData() == false)return;
- misfGridInit(grd_nutrwin);
- misfGridInit(grd_nutrdelive);
- misfGridInit(grd_stoclist);
- misfGridInit(grd_nutrsum);
- misfMsterDetailRetrieve();
- }
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(ipt_frdd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_frdd");
- return false;
- }
-
- if(model.getValue(ipt_todd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_todd");
- return false;
- }
- if(model.getValue(ipt_goodcd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_goodcd");
- return false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:5px; top:83px; width:188px; height:13px; ">입고내역</caption>
- <group id="group6" style="left:0px; top:13px; width:1195px; height:61px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button4" navindex="8" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrevie();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1110px; y1:9px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:16px; top:35px; width:86px; height:17px; ">물품코드 :</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:9px; width:97px; height:17px; ">기관코드 :</caption>
- <caption id="caption4" class="search_name" style="left:315px; top:9px; width:86px; height:17px; ">입출기간 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/goodiolist/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:133px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_frdd" ref="/root/send/goodiolist/iofrdd" class="input_s_essential" inputtype="date" style="left:404px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="ipt_todd" ref="/root/send/goodiolist/iotodd" class="input_s_essential" inputtype="date" style="left:520px; top:8px; width:95px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:503px; top:11px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_deptcd" ref="/root/send/goodiolist/deptcd" class="input_s_default" visibility="hidden" style="left:935px; top:35px; width:27px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd" ref="/root/send/goodiolist/goodcd" class="input_s_essential" _chartype="upper" style="left:100px; top:34px; width:133px; 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,goodnm,indexgb,indexnm",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
- ipt_goodcd,"SPRSD00190","instcd,goodflag","cmb_instcd,ipt_goodflag" ,"Y");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodcd.value = ipt_goodcd.currentText;
- ipt_goodcd.refresh();
- ipt_goodcd.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </input>
- <input id="input9" class="input_s_essential" style="left:255px; top:34px; width:107px; height:19px; "/>
- <input id="ipt_goodnm" ref="/root/send/goodiolist/goodnm" class="input_fix" appearance="input" style="left:255px; top:34px; width:245px; 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,goodspec,goodmodel,prodcmpynm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == 13)
- {
- ipt_goodnm.value = ipt_goodnm.currentText;
- ipt_goodnm.refresh();
- ipt_goodnm.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </input>
- <output id="opt_goodmodel" ref="/root/send/goodiolist/goodmodel" class="output_fix" appearance="output" style="left:582px; top:34px; width:96px; height:19px; "/>
- <output id="opt_prodcmpynm" ref="/root/send/goodiolist/prodcmpynm" class="output_fix" appearance="output" style="left:679px; top:34px; width:108px; height:19px; "/>
- <output id="opt_goodspec" ref="/root/send/goodiolist/goodspec" class="output_fix" appearance="output" style="left:502px; top:34px; width:78px; height:19px; "/>
- <button id="btn_searchgoodcd" class="icon_search" style="left:237px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodflag" ref="/root/send/goodiolist/goodflag" visibility="hidden" style="left:905px; top:35px; width:30px; height:19px; "/>
- </group>
- <line id="line15" class="line_1" style="x1:0; y1:98px; x2:1195; y2:99px; "/>
- <line id="line1" class="line_1" style="x1:0; y1:330px; x2:1195; y2:330px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:315px; width:188px; height:13px; ">출고내역</caption>
- <datagrid id="grd_stoclist" nodeset="/root/main/list/goodstoc/goodstoclist" caption="환자식^환자식^직원식 ^직원식 |일반식^치료식^직원식^직원야식" colwidth="67, 76, 61, 81" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:890px; top:621px; width:305px; height:113px; ">
- <col ref="stocqty" style="text-align:right; "/>
- <col ref="curemealstocqty" style="text-align:right; "/>
- <col ref="empmealstocqty" style="text-align:right; "/>
- <col ref="empnigtmealstocqty" style="text-align:right; "/>
- </datagrid>
- <line id="line5" class="line_1" style="x1:890; y1:616; x2:1195; y2:616; "/>
- <caption id="caption5" class="tit_2" style="left:895px; top:602px; width:188px; height:13px; ">ONLINE 재고</caption>
- <caption id="caption13" class="tit_2" style="left:5px; top:602px; width:188px; height:13px; ">입출고 합계</caption>
- <line id="line6" class="line_1" style="x1:0; y1:616px; x2:885; y2:616px; "/>
- <datagrid id="grd_nutrwin" nodeset="/root/main/list/nutrwin/nutrwinlist" caption="입고일자^번호^순번^입출유형^발주번호^단가^환자식입고수량^환자식입고수량^소계^직원식입고수량^직원식입고수량^소계^입고금액^입고금액^총입고금액^입고자^비고|입고일자^번호^순번^입출유형^발주번호^단가^일반식^치료식^소계^직원식^직원야식^소계^환자식^직원식^총입고금액^입고자^비고" colwidth="80, 38, 36, 66, 0, 87, 71, 74, 74, 55, 56, 54, 84, 84, 103, 97, 104, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:102px; width:1195px; height:202px; ">
- <col ref="windd"/>
- <col ref="winno"/>
- <col ref="winseqno"/>
- <col ref="iokindnm"/>
- <col ref="goodnm"/>
- <col ref="winunitcost" style="text-align:right; "/>
- <col ref="patmealwinqty" style="text-align:right; "/>
- <col ref="curemealwinqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
- <col ref="sumpatqty" format="#,###.0" maxlength="11.2" style="left:472px; top:43px; width:74px; height:23px; text-align:right; "/>
- <col ref="empmealwinqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
- <col ref="empnigtmealwinqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
- <col ref="sumempqty" format="#,###.0" maxlength="11.2" style="text-align:right; "/>
- <col ref="sumpatamt" format="#,###.0" style="text-align:right; "/>
- <col ref="sumempamt" format="#,###.0" style="text-align:right; "/>
- <col ref="winamt" format="#,###.0" style="text-align:right; "/>
- <col ref="winpsnnm" visibility="visible"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="curemealwinamt" visibility="hidden"/>
- <col ref="empmealwinamt" visibility="hidden"/>
- <col ref="empnigtmealwinamt" visibility="hidden"/>
- <col ref="winpackqty" visibility="hidden"/>
- <col ref="winpackunit" visibility="hidden"/>
- <col ref="winpackcntperunit" visibility="hidden"/>
- <col ref="winqty" visibility="hidden"/>
- <col ref="reqqty" visibility="hidden"/>
- <col ref="winamt" visibility="hidden"/>
- <col ref="delivedeptqty" visibility="hidden"/>
- <col ref="stocqty" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="winpsn" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="paycond" visibility="hidden"/>
- <col ref="temppay" visibility="hidden"/>
- <col ref="calcdocukind" visibility="hidden"/>
- <col ref="elctstmntyn" visibility="hidden"/>
- <col ref="iokind" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="purcdmnddd" visibility="hidden"/>
- <col ref="purcdmndno" visibility="hidden"/>
- <col ref="purcdmndseq" visibility="hidden"/>
- <col ref="deliveno" visibility="hidden"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="bnscd" visibility="hidden"/>
- <col ref="calcdocudd" visibility="hidden"/>
- <col ref="profno" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="valiterm" visibility="hidden"/>
- <col ref="stocynindx" visibility="hidden"/>
- <col ref="chkdd" visibility="hidden"/>
- <col ref="chkpsn" visibility="hidden"/>
- <col ref="chkyn" visibility="hidden"/>
- <col ref="slipdd" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="prewinqty" visibility="hidden"/>
- <col ref="minexch" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_nutrwin.col == grd_nutrwin.colRef("goodcd") && grd_nutrwin.rowStatus(grd_nutrwin.row) == "1" ) {//구성물품코드를 눌렀을 경우
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
- rszfOpenPopUpListByWndName(grd_nutrwin,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag");
-
- var cur_row = grd_nutrwin.row;
- var status = grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "nutrwinlist");
-
- fSettingGoodList("/root/copynode", "nutrwinlist" , "userqty");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_nutrwin.col == grd_nutrwin.colRef("goodcd") && grd_nutrwin.valueMatrix(grd_nutrwin.row, grd_nutrwin.colRef("goodcd")).length> 0) {
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodcd") + ",,,," ,"","goodcd,goodnm,minexch,goodunitcost",grd_nutrwin,"SPRSD00190","instcd,goodflag","cmb_instcd," + model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodflag"),"Y");
- model.refresh();
-
- if( grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("goodnm")).length> 0)
- {
- if(model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") > 0)
- {
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/patmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/curemealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empnigtmealwinqty" , model.getValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/minexch") );
- }
- else
- {
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/patmealwinqty" , "1");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/curemealwinqty" , "1");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empmealwinqty" , "1");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/empnigtmealwinqty" , "1");
- }
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackunit" ,model.getValue("/root/init/main/goodlist/purcunit"));
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunit" , model.getValue("/root/init/main/goodlist/purcunit"));
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackcntperunit" ,1);
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackqty" ,1);
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunitcost" , model.getValue("/root/init/main/goodlist/goodunitcost"));
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/iokind" ,model.getValue(cmb_instcd.attribute("ref")) );
- }
- model.recalculate();
- model.refresh();
-
- var cur_row = grd_nutrwin.row;
- var status = grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_nutrwin.valueMatrix(cur_row, grd_nutrwin.colRef("goodnm")).length == 0)
- {
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/goodcd" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/goodnm" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackqty" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackunit" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunit" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winqty" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winpackcntperunit" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winunitcost" , "");
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1) + "]/winamt" , "");
- grd_nutrwin.col = grd_nutrwin.colRef("goodcd");
- grd_nutrwin.editCell();
- }
- if(CSV.length > 0)
- {
- model.setValue(grd_nutrwin.nodeset + "[" + (grd_nutrwin.row - grd_nutrwin.fixedRows + 1)+ "]/goodcd","");
- setCSVToNode("/root/copynode", CSV, "nutrwinlist");
- fSettingGoodList("/root/copynode", "nutrwinlist" , "userqty");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)
- {
- if(grd_nutrwin.colAttribute(grd_nutrwin.col + 1, "type").indexOf ("input") > -1)
- {
- for(curcol = grd_nutrwin.col -1 ; curcol > -1 ; curcol--)
- {
- if(grd_nutrwin.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_nutrwin.col = curcol;
- grd_nutrwin.editCell();
- return;
- }
- }
- }
- }
- else
- {
- if(grd_nutrwin.colAttribute(grd_nutrwin.col, "type").indexOf ("input") == -1)
- {
- if(grd_nutrwin.col - 1 == grd_nutrwin.colRef("goodcd") && grd_nutrwin.valueMatrix(grd_nutrwin.row, grd_nutrwin.col - 1).length == 0)
- {
- grd_nutrwin.col = grd_nutrwin.colRef("goodcd");
- grd_nutrwin.editCell();
- return;
- }
- for(curcol = grd_nutrwin.col ; curcol <grd_nutrwin.cols ; curcol++)
- {
- if(grd_nutrwin.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_nutrwin.col = curcol;
- grd_nutrwin.editCell();
- return;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_nutrdelive" nodeset="/root/main/list/nutrdelive/nutrdelivelist" caption="출고일자^번호^순번^입출유형^단가^단가^단위^환산수량^환자식출고수량*^환자식출고수량*^소계^직원식출고수량*^직원식출고수량*^소계^출고금액^출고금액^총출고금액^출고자|출고일자^번호^순번^입출유형^단가^단가^단위^환산수량^일반식^치료식^소계^직원식^직원야식^소계^환자식^직원식^총출고금액^출고자" colwidth="74, 39, 37, 70, 87, 0, 0, 0, 69, 75, 74, 55, 57, 54, 84, 85, 102, 95, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:335px; width:1195px; height:257px; ">
- <col ref="delivedd"/>
- <col ref="deliveno"/>
- <col ref="deliveseqno" style="text-align:center; "/>
- <col ref="iokindnm"/>
- <col ref="goodunitcost" style="text-align:right; "/>
- <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="#,###.00" maxlength="14.2" style="text-align:right; "/>
- <col ref="curemealdeliveqty" format="#,###.00" maxlength="14.2" style="text-align:right; "/>
- <col ref="sumpatqty" format="#,###.0" maxlength="11.2" style="left:472px; top:43px; width:74px; height:23px; text-align:right; "/>
- <col ref="empmealdeliveqty" format="#,###.00" maxlength="14.2" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty" format="#,###.00" maxlength="14.2" style="text-align:right; "/>
- <col ref="sumempqty" format="#,###.0" style="text-align:right; "/>
- <col ref="sumpatamt" format="#,###.0" style="text-align:right; "/>
- <col ref="sumempamt" format="#,###.0" 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>
- <datagrid id="grd_nutrsum" nodeset="/root/main/list/nutrsum/nutrsumlist" class="stocdeptcd" caption="환자식^환자식^환자식^환자식^환자식^환자식^환자식^환자식^환자식^환자식^직원식^직원식^직원식^직원식^직원식^직원식^직원식^직원식^직원식^직원식|일반식^일반식^일반식^일반식^일반식^치료식^치료식^치료식^치료식^치료식^직원식 ^직원식 ^직원식 ^직원식 ^직원식 ^직원야식^직원야식^직원야식^직원야식^직원야식|이월^입고^출고^재고^입고금액^이월^입고^출고^재고^입고금액^이월^입고^출고^재고^입고금액^이월^입고^출고^재고^입고금액" colwidth="41, 40, 40, 37, 59, 41, 43, 41, 42, 61, 44, 38, 38, 37, 56, 38, 38, 40, 39, 68" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:621px; width:885px; height:113px; ">
- <col ref="patmealbrngfwrdqty" style="text-align:right; "/>
- <col ref="patmealwinqty" style="text-align:right; "/>
- <col ref="patmealdeliveqty" style="text-align:right; "/>
- <col ref="patmealstocqty" style="text-align:right; "/>
- <col ref="patmealwinamt" style="text-align:right; "/>
- <col ref="curemealbrngfwrdqty" style="text-align:right; "/>
- <col ref="curemealwinqty" style="text-align:right; "/>
- <col ref="curemealdeliveqty" style="text-align:right; "/>
- <col ref="curemealstocqty" style="text-align:right; "/>
- <col ref="curemealwinamt" style="text-align:right; "/>
- <col ref="empmealbrngfwrdqty" style="text-align:right; "/>
- <col ref="empmealwinqty" style="text-align:right; "/>
- <col ref="empmealdeliveqty" style="text-align:right; "/>
- <col ref="empmealstocqty" style="text-align:right; "/>
- <col ref="empmealwinamt" style="text-align:right; "/>
- <col ref="empnigtmealbrngfwrdqty" style="text-align:right; "/>
- <col ref="empnigtmealwinqty" style="text-align:right; "/>
- <col ref="empnigtmealdeliveqty" style="left:1114px; top:63px; width:52px; height:23px; text-align:right; "/>
- <col ref="empnigtmealstocqty" style="text-align:right; "/>
- <col ref="empnigtmealwinamt" style="text-align:right; "/>
- </datagrid>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">재고종합조회</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <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="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|