123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>재고종합조회(약품)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <goodwin>
- <goodwinlist/>
- </goodwin>
- <gooddelive>
- <gooddelivelist/>
- </gooddelive>
- <goodsum>
- <goodsumlist/>
- </goodsum>
- <goodstoc>
- <goodstoclist/>
- </goodstoc>
- </list>
- <goodinfo/>
- </main>
- <init>
- <stocsumqty/>
- </init>
- <send>
- <goodiolist>
- <instcd/>
- <goodflag/>
- <deptcd/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <prodcmpynm/>
- <iofrdd/>
- <iotodd/>
- <stocym/>
- <lrgcd/>
- <lrgnm/>
- <flag/>
- </goodiolist>
- <goodstoc>
- <instcd/>
- <goodcd/>
- </goodstoc>
- </send>
- <hidden>
- <list>
- <goodsum>
- <goodsumlist>
- <brngfwrdqty/>
- <orgdeliveqty/>
- <winqty/>
- <winamt/>
- <deliveqty/>
- <stocqty/>
- </goodsumlist>
- </goodsum>
- </list>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRST01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodiolist" resultref="/root/main/list"/>
- <submission id="TRRSD00192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodiolist" resultref="/root/init/main"/>
- </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() {
-
- //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- //hidden col
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.setValue(opt_goodflag.attribute("ref") , "PH");
-
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- rszfComboStockArthDeptcdList(cmb_deptcd,getUserInfo("dutplceinstcd"),opt_goodflag.value )
-
- if(getNodesetCount("/root/init/cmb_deptcd/deptcdlist") == 1){
- model.setValue("/root/send/goodiolist/deptcd",model.getValue("/root/init/cmb_deptcd/deptcdlist/deptcd[1]"));
- }
-
-
- var curdate = getCurrentDate().substring(0,6);
-
-
- model.setValue(ipt_frdd.attribute("ref") ,curdate);
- model.setValue(ipt_todd.attribute("ref") ,curdate);
- misfGridInit(grd_win);
- misfGridInit(grd_gooddelive);
- misfGridInit(grd_stoclist);
- misfGridInit(grd_goodsum);
-
- grd_stoclist.subtotalposition = "after";
- model.refresh();
- }
- function fRetrevie()
- {
- if(fCheckRetrieveData() == false)return;
- /*
- misfGridInit(grd_win);
-
- misfGridInit(grd_stoclist);
- misfGridInit(grd_goodsum);
- */
- if(submit("TRRST01302")){
- /*
- grd_gooddelive.subtotal("clear", grd_gooddelive.colRef("iokindnm"), grd_gooddelive.colRef("delivedeptqty"));
- grd_gooddelive.subtotal("sum", grd_gooddelive.colRef("iokindnm"), grd_gooddelive.colRef("delivedeptqty"), "#,###.##","font-weight:normal;", grd_gooddelive.colRef("delivedd"), "합계");
- grd_gooddelive.addRow(false);
- grd_gooddelive.valueMatrix(grd_gooddelive.row,grd_gooddelive.colRef("delivedd"))="재고보정";
-
- var deliveqty = Number(model.getValue("/root/main/list/goodsum/goodsumlist/deliveqty"));
- var orgdeliveqty = Number(model.getValue("/root/main/list/goodsum/goodsumlist/orgdeliveqty"));
- grd_gooddelive.valueMatrix(grd_gooddelive.row,grd_gooddelive.colRef("delivedeptqty"))=deliveqty - orgdeliveqty;
- grd_gooddelive.rowStyle(grd_gooddelive.row, "data", "font-weight") = "normal";
- */
- var brngfwrdqty = 0;
- var winqty = 0;
- var winamt = 0;
- var deliveqty= 0;
- var stocqty = 0;
- for(var k =grd_goodsum.fixedRows; k <grd_goodsum.rows;k++){
- brngfwrdqty = parseFloat(grd_goodsum.valueMatrix(1,grd_goodsum.colRef("brngfwrdqty")));
- winqty = winqty+parseFloat(grd_goodsum.valueMatrix(k,grd_goodsum.colRef("winqty")));
- winamt = winamt+parseFloat(grd_goodsum.valueMatrix(k,grd_goodsum.colRef("winamt")));
- deliveqty = deliveqty+parseFloat(grd_goodsum.valueMatrix(k,grd_goodsum.colRef("deliveqty")));
- stocqty = stocqty+parseFloat(grd_goodsum.valueMatrix(k,grd_goodsum.colRef("stocqty")));
- }
- model.setValue("/root/hidden/list/goodsum/goodsumlist/brngfwrdqty" ,brngfwrdqty);
- model.setValue("/root/hidden/list/goodsum/goodsumlist/winqty" ,winqty);
- model.setValue("/root/hidden/list/goodsum/goodsumlist/winamt" ,winamt);
- model.setValue("/root/hidden/list/goodsum/goodsumlist/deliveqty" ,deliveqty);
- model.setValue("/root/hidden/list/goodsum/goodsumlist/stocqty" ,stocqty);
-
- grd_stoclist.subtotal("clear", 0, 0);
- grd_stoclist.subtotal("sum", 0, 2, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", grd_stoclist.colRef("stocdeptnm"), "합계");
- }
- model.refresh();
- }
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_deptcd.attribute("ref")).length== 0 )
- {
- model.setFocus("cmb_deptcd");
- 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="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="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:702px; ">
- <datagrid id="grd_stoclist" nodeset="/root/main/list/goodstoc/goodstoclist" visibility="hidden" caption="caption1^부서^수 량" colsep="^" colwidth="53, 279, 225" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:599px; top:511px; width:596px; height:144px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="stocdeptnm"/>
- <col ref="stocqty" style="text-align:right; "/>
- </datagrid>
- <line id="line7" class="line_2" style="x1:0px; y1:581px; x2:594px; y2:581px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:557px; x2:594px; y2:557px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:533px; x2:594px; y2:533px; "/>
- <line id="line8" class="line_3" style="x1:0px; y1:655px; x2:594px; y2:655px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:81px; width:188px; height:13px; ">입고내역</caption>
- <group id="group6" style="left:0px; top:10px; 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="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; 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:1109px; y1:9px; x2:1109px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption10" class="search_name" style="left:15px; top:9px; width:97px; height:17px; ">기관코드 :</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:36px; width:86px; height:17px; ">작업년월 :</caption>
- <caption id="caption7" class="search_name" style="left:382px; top:9px; width:93px; height:17px; ">부 서 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/goodiolist/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:100px; top:8px; width:233px; height:19px; text-align:center; ">
- <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" format="yyyy-mm" style="left:100px; top:35px; width:105px; 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" format="yyyy-mm" style="left:228px; top:35px; width:105px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:212px; top:38px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <button id="btn_searchgoodcd" class="icon_search" style="left:582px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (submit("TRRSD00192") == true) {
- var nodecnts = getNodesetCount("/root/init/main/goodlist");
-
-
- if (nodecnts >= 2) {
- group2.visible = true;
- } else if (nodecnts == "1") {
-
- var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
- var goodspec = model.getValue("/root/init/main/goodlist/goodspec");
- var goodmodel = model.getValue("/root/init/main/goodlist/goodmodel");
- var prodcmpynm = model.getValue("/root/init/main/goodlist/prodcmpynm");
-
- model.makeValue("/root/send/goodiolist/goodcd" , goodcd)
- model.makeValue("/root/send/goodiolist/goodnm" , goodnm)
- model.makeValue("/root/send/goodiolist/goodspec" , goodspec)
- model.makeValue("/root/send/goodiolist/goodmodel" , goodmodel)
- model.makeValue("/root/send/goodiolist/prodcmpynm" , prodcmpynm)
- model.refresh();
- } else {
- messageBox("검색된 코드가 없습니다.", "I");
- }
-
- }
- // rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm","SPRSD00210","instcd,goodflag","cmb_instcd,opt_goodflag");
- // model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_goodspec" ref="/root/send/goodiolist/goodspec" class="output_fix" appearance="output" style="left:821px; top:35px; width:78px; height:19px; "/>
- <input id="input9" class="input_s_essential" style="left:600px; top:35px; width:107px; height:19px; "/>
- <input id="ipt_goodcd" ref="/root/send/goodiolist/goodcd" class="input_s_essential" _chartype="upper" style="left:467px; top:35px; width:111px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- if(ipt_goodcd.value.length == 0)
- {
- ipt_goodnm.value = "";
- opt_goodspec.value = "";
- opt_goodmodel.value = "";
- opt_prodcmpynm.value = "";
- }
- else {
- model.setValue("/root/send/goodiolist/goodnm" , "")
- model.setValue("/root/send/goodiolist/flag", "C");
- btn_searchgoodcd.dispatch("DOMActivate");
- // rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
- // "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(opt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
- // ipt_goodcd,"SPRSD00210","instcd,goodflag,goodcd","cmb_instcd,opt_goodflag,ipt_goodcd" ,"Y");
- }
- model.refresh();
- // btn_search.dispatch("DOMActivate");
- ]]>
- </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>
- <caption id="caption1" class="search_name" style="left:382px; top:36px; width:95px; height:17px; ">약품코드 :</caption>
- <output id="opt_goodmodel" ref="/root/send/goodiolist/goodmodel" class="output_fix" appearance="output" style="left:901px; top:35px; width:96px; height:19px; "/>
- <input id="ipt_goodnm" ref="/root/send/goodiolist/goodnm" class="input_fix" appearance="input" style="left:601px; top:35px; width:215px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value.length == 0)
- {
- ipt_goodcd.value = "";
- opt_goodspec.value = "";
- opt_goodmodel.value = "";
- opt_prodcmpynm.value = "";
- }
- else {
- model.setValue("/root/send/goodiolist/goodcd" , "")
- model.setValue("/root/send/goodiolist/flag", "N");
- btn_searchgoodcd.dispatch("DOMActivate");
- // submit("TRRSD00192");
- }
- // rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
- // "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(opt_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
- // ipt_goodcd,"SPRSD00210","instcd,goodflag,goodnm","cmb_instcd,opt_goodflag,ipt_goodnm","Y");
- 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_prodcmpynm" ref="/root/send/goodiolist/prodcmpynm" class="output_fix" appearance="output" style="left:998px; top:35px; width:82px; height:19px; "/>
- <select1 id="cmb_deptcd" ref="/root/send/goodiolist/deptcd" class="combo_s_essential" appearance="minimal" style="left:467px; top:10px; width:153px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_goodflag" ref="/root/send/goodiolist/goodflag" visibility="hidden" style="left:990px; top:10px; width:100px; height:20px; "/>
- </group>
- <line id="line15" class="line_1" style="x1:0px; y1:95px; x2:730; y2:95px; "/>
- <datagrid id="grd_win" nodeset="/root/main/list/goodwin/goodwinlist" caption="입고일자^번호^순번^입고유형^수량^단가^금액^주거래처^보조거래처" colsep="^" colwidth="81, 58, 55, 81, 62, 80, 73, 120, 116, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:100px; width:730; height:387px; ">
- <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="winno" style="text-align:center; "/>
- <col ref="winseqno" style="text-align:center; "/>
- <col ref="iokindnm" style="text-align:center; "/>
- <col ref="winqty" format="#,###.##" style="text-align:right; "/>
- <col ref="winunitcost" format="#,###.##" style="text-align:right; "/>
- <col ref="winamt" format="#,###" style="text-align:right; "/>
- <col ref="suplplcenm" style="text-align:center; "/>
- <col ref="subsuplplcenm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_gooddelive" nodeset="/root/main/list/gooddelive/gooddelivelist" caption="출고일자^번호^순번^출고유형^수량^입고부서" colsep="^" colwidth="84, 52, 51, 97, 71, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" style="left:735px; top:100px; width:460px; height:555px; ">
- <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deliveno" visibility="hidden" style="text-align:center; "/>
- <col ref="deliveseqno" visibility="hidden" style="text-align:center; "/>
- <col ref="iokindnm" style="text-align:center; "/>
- <col ref="delivedeptqty" format="#,###.##" style="text-align:right; "/>
- <col ref="windeptnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var grdinx = grd_gooddelive.row;
- model.makeValue("/root/temp/drugcd",model.getValue("/root/send/goodiolist/goodcd"));
- //model.setValue("/root/temp/fromddflag",model.getValue("/root/send/fromddflag"));
- model.makeValue("/root/temp/toddflag",model.getValue("/root/main/list/gooddelive/gooddelivelist[" + grdinx+ "]/delivedd"));
- model.makeValue("/root/temp/indeptcd",model.getValue("/root/main/list/gooddelive/gooddelivelist[" + grdinx+ "]/windeptnm"));
- //model.setValue("/root/temp/fromtm",model.getValue("/root/send/fromtm"));
- //model.setValue("/root/temp/totm",model.getValue("/root/send/endtime"));
- model.makeValue("/root/temp/issdeptcd",model.getValue("/root/send/goodiolist/deptcd"));
- //,"left:100; top:100; width:400; height:400; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;",false
-
- var wndobj = getOpenWindow("SMRST03301");
- if(wndobj == null){
- open("SMRST03301","0","100","160","SMRST03301","/root/temp","/root/temp");
- } else {
- wndobj.model.removeNodeset(datagrid1.nodeset);
-
- wndobj.model.makeValue("/root/temp/drugcd", model.getValue("/root/temp/drugcd"));
- // wndobj.model.setValue("/root/send/fromddflag", model.getValue("/root/send/fromddflag"));
- wndobj.model.makeValue("/root/send/toddflag", model.getValue("/root/send/toddflag"));
- wndobj.model.makeValue("/root/send/indeptcd", model.getValue("/root/send/indeptcd"));
- // wndobj.model.setValue("/root/temp/fromtm", model.getValue("/root/temp/fromtm"));
- wndobj.model.makeValue("/root/temp/issdeptcd", model.getValue("/root/temp/issdeptcd"));
-
- wndobj.javascript.btn_srch.dispatch("DOMActivate");
- wndobj.model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:735px; y1:95px; x2:1195; y2:95px; "/>
- <caption id="caption3" class="tit_2" style="left:740; top:81px; width:188px; height:13px; ">출고내역</caption>
- <line id="line5" class="line_1" visibility="hidden" style="x1:599px; y1:506px; x2:1195; y2:506px; "/>
- <caption id="caption5" class="tit_2" visibility="hidden" style="left:604px; top:492px; width:188px; height:13px; ">부서별 ONLINE 재고</caption>
- <output id="ss" ref="/root/hidden/list/goodsum/goodsumlist/brngfwrdqty" class="output_fix" format="#,###.##" appearance="output" style="left:87px; top:538px; width:140px; height:19px; text-align:right; "/>
- <caption id="caption13" class="tit_2" style="left:5px; top:492px; width:188px; height:13px; ">입출고 합계</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:506px; x2:594px; y2:506px; "/>
- <output id="output1" ref="/root/hidden/list/goodsum/goodsumlist/winqty" class="output_fix" format="#,###.##" appearance="output" style="left:87px; top:562px; width:140px; height:19px; text-align:right; "/>
- <output id="output2" ref="/root/hidden/list/goodsum/goodsumlist/winamt" class="output_fix" format="#,###.##" appearance="output" style="left:230px; top:562px; width:165px; height:19px; text-align:right; "/>
- <output id="output3" ref="/root/hidden/list/goodsum/goodsumlist/deliveqty" class="output_fix" format="#,###.##" appearance="output" style="left:87px; top:586px; width:140px; height:19px; text-align:right; "/>
- <output id="output4" ref="/root/hidden/list/goodsum/goodsumlist/stocqty" class="output_fix" format="(-)#,###.##" appearance="output" style="left:87px; top:610px; width:140px; height:19px; text-align:right; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:536px; width:85px; height:23px; vertical-align:middle; ">이월수량</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:560px; width:85px; height:23px; vertical-align:middle; ">입고합계</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:584px; width:85px; height:23px; vertical-align:middle; ">출고합계</caption>
- <caption id="caption18" class="cell_1" style="left:0px; top:608px; width:85px; height:23px; vertical-align:middle; ">재고수량</caption>
- <group id="group2" visibility="hidden" style="left:460px; top:65px; width:420px; height:310px; ">
- <datagrid id="grd_goodlist" nodeset="/root/init/main/goodlist" visibility="visible" caption="약품코드^약품명^기관코드^물품구분^작업년월^부서코드^대분류코드^재고조정처리여부" colsep="^" colwidth="102, 270, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:2px; top:25px; width:415px; height:275px; ">
- <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
- <col ref="goodnm" type="output" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- var cnts = getNodesetCount("/root/main/goodinfo/goodlist/goodcd");
- var row = grd_goodlist.row;
-
- var goodcd = model.getValue("/root/init/main/goodlist[" + row + "]/goodcd");
- var goodnm = model.getValue("/root/init/main/goodlist[" + row + "]/goodnm");
- var goodspec = model.getValue("/root/init/main/goodlist[" + row + "]/goodspec");
- var goodmodel = model.getValue("/root/init/main/goodlist[" + row + "]/goodmodel");
- var prodcmpynm = model.getValue("/root/init/main/goodlist[" + row + "]/prodcmpynm");
-
- model.makeValue("/root/send/goodiolist/goodcd" , goodcd)
- model.makeValue("/root/send/goodiolist/goodnm" , goodnm)
- model.makeValue("/root/send/goodiolist/goodspec" , goodspec)
- model.makeValue("/root/send/goodiolist/goodmodel" , goodmodel)
- model.makeValue("/root/send/goodiolist/prodcmpynm" , prodcmpynm)
- group2.visible = false;
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter3" style="left:340px; top:4px; width:53px; height:19px; ">
- <caption>숨기기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.visible = false
- ]]>
- </script>
- </button>
- </group>
- <output id="output5" ref="/root/hidden/list/goodsum/goodsumlist/orgdeliveqty" visibility="hidden" style="left:360px; top:540px; width:100px; height:19px; "/>
- <datagrid id="grd_goodsum" nodeset="/root/main/list/goodsum/goodsumlist" class="datagrid2" visibility="hidden" caption="작업년월^마감
여부^이월수량^입고수량^입고금액^출고합계^재고수량" colsep="^" colwidth="70, 37, 80, 80, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:380px; width:585px; height:110px; ">
- <col ref="workmm" format="yyyy-mm" style="text-align:center; "/>
- <col ref="colseyn" style="text-align:center; "/>
- <col ref="brngfwrdqty" format="#,###.##" style="text-align:right; "/>
- <col ref="winqty" format="#,###.##" style="text-align:right; "/>
- <col ref="winamt" format="#,###.##" style="text-align:right; "/>
- <col ref="deliveqty" format="#,###.##" style="text-align:right; "/>
- <col ref="stocqty" format="#,###.##" style="text-align:right; "/>
- </datagrid>
- <button id="btn_detail" class="btn2_letter7" style="left:230px; top:536px; width:97px; height:19px; ">
- <caption>상세내역보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(btn_detail.label=="상세내역보기"){
- grd_goodsum.visible = true;
- btn_detail.value ="상세내역숨기기"
-
- }else if(btn_detail.label=="상세내역숨기기"){
- grd_goodsum.visible = false;
- btn_detail.value="상세내역보기"
- }
- btn_detail.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excel_all" class="btn2_letter4" style="left:660px; top:74px; 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_win.saveExcel(fileName, "재고 종합 입고현황", true, true, "");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:1126px; top:75px; 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_gooddelive.saveExcel(fileName, "재고 종합 출고현황", true, true, "");
- }
- ]]>
- </script>
- </button>
- </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; "/>
- <button id="btn_print" class="btn6_letter2" disabled="false" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/prtinfo/list");
- model.makeNode("/root/prtinfo/list/send/goodiolist");
- model.makeNode("/root/prtinfo/list/goodwin/goodwinlist");
- model.makeNode("/root/prtinfo/list/gooddelive/gooddelivelist");
- model.makeNode("/root/prtinfo/list/goodsum/goodsumlist");
- copyNodesetType("/root/prtinfo/list/send/goodiolist", "/root/send/goodiolist","replace");
- copyNodesetType("/root/prtinfo/list/goodwin/goodwinlist","/root/main/list/goodwin/goodwinlist","replace");
- copyNodesetType("/root/prtinfo/list/gooddelive/gooddelivelist","/root/main/list/gooddelive/gooddelivelist","replace");
- copyNodesetType("/root/prtinfo/list/goodsum/goodsumlist","/root/main/list/goodsum/goodsumlist","replace");
- exeReportPreview("RPRST03300","XMLSTR","/root/prtinfo");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|