123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.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>
- <stocklist/>
- <goodlist/>
- </main>
- <detail>
- <winlist/>
- <delivelist/>
- <deptstocklist/>
- </detail>
- <send>
- <search>
- <instcd/>
- <dd/>
- <wareflag/>
- <goodcd/>
- <goodcd1/>
- <goodnm/>
- <goodnm1/>
- <suplplcenm/>
- <suplplcecd/>
- <acntcd/>
- <acntnm/>
- <esang/>
- <strange/>
- <pagesize>200</pagesize>
- <offset/>
- <dutunitcd/>
- <dutunitnm/>
- </search>
- <search2>
- <instcd/>
- <dd/>
- <wareflag/>
- <goodcd/>
- </search2>
- <save/>
- <etcsearch>
- <all/>
- </etcsearch>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- </temp>
- <popgood>
- <instcd/>
- <wareflag/>
- <goodcd/>
- <goodnm/>
- <returntype/>
- <selectyn/>
- </popgood>
- <popgood1>
- <instcd/>
- <wareflag/>
- <goodcd/>
- <goodnm/>
- <returntype/>
- <selectyn/>
- </popgood1>
- <popdetail>
- <instcd/>
- <wareflag/>
- <goodcd/>
- <dd/>
- </popdetail>
- <popreq>
- <instcd/>
- <dd/>
- <goodcd/>
- <goodnm/>
- </popreq>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfGridInit(grd_stock);
- misfMsterDetailSet(grd_stock, null, "TRRSO21301" ,"N");
-
- model.removeNodeset(grd_win.nodeset);
- model.removeNodeset(grd_delive.nodeset);
- model.removeNodeset(grd_deptstock.nodeset);
-
- //misfComboComCdListMulti("Z0007","cmb_instcd"); //기관코드
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- misfComboComCdList("030M0001",cmb_wareflag, "N"); //창고 (Y: 전체 item 추가시)
- cmb_wareflag.select(0);
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
- model.setValue("/root/send/search/dd" , getCurrentDate()) //기준일자 설정 //.substr(0,6));
- // model.setValue("/root/send/search/wareflag", "") //창고 "":전체
- //test -> 향후 삭제할 것
- //model.setValue("/root/send/search/reqdd", "20110816");
- model.refresh();
-
-
- ]]>
- </script>
- <submission id="TRRSO21301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main"/>
- <submission id="TRRSO21302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search2" resultref="/root/detail"/>
- <submission id="TRRSO21304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main"/>
- </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="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- //조회조건 변경시 Grid 초기화
- function fSearchCondChanged() {
- model.removeNodeset(grd_stock.nodeset);
- model.removeNodeset(grd_win.nodeset);
- model.removeNodeset(grd_delive.nodeset);
- model.removeNodeset(grd_deptstock.nodeset);
- 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="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1193px; y2:25px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:9px; width:1195px; height:91px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1127px; top:46px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //현재고일자에 입력된 값이 올바르지 않으면, 년월을 선택하라고 alert함
- if(ipt_dd.value.length < 8) {
- messageBox("현재고일자가 올바로 선택되지 않았습니다. \n\n먼저 현재고일자을 선택하십시요.", "E999", "");
- model.setFocus("ipt_dd");
- return;
- }
-
- /*
- //창고에 선택된 값이 없으면, 창고를 선택하라고 alert함
- if(cmb_wareflag.value == "") {
- messageBox("창고가 선택되지 않았습니다. \n\n먼저 창고를 선택하십시요.", "E999", "");
- model.setFocus("cmb_wareflag");
- return;
- }
- */
-
- // model.setValue("/root/send/search/offset","0");
-
- // misfMsterDetailRetrieve();
- misfGridInit(grd_stock);
- submit("TRRSO21301");
-
- for(i = 2 ; i < grd_stock.rows ; i++){
- var deliveqty = grd_stock.valueMatrix(i, grd_stock.colRef("deliveqty"));
- var totqty = grd_stock.valueMatrix(i, grd_stock.colRef("totqty"));
- if(parseInt(totqty) != parseInt(deliveqty)){
- grd_stock.cellStyle("color",i,grd_stock.colRef("totqty")) = "#ff0000";
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:92px; top:10px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:13px; top:10px; width:77px; height:17px; ">기관코드</caption>
- <line id="line30" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:85px; "/>
- <caption id="caption2" class="search_name" style="left:456px; top:10px; width:55px; height:17px; ">창고</caption>
- <select1 id="cmb_wareflag" ref="/root/send/search/wareflag" class="combo_default" navindex="3" appearance="minimal" style="left:510px; top:10px; width:99px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/wareflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //조회조건 변경시 Grid 초기화
- fSearchCondChanged();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:246px; top:10px; width:89px; height:17px; ">현재고일자</caption>
- <caption id="caption13" class="search_name" style="left:13px; top:36px; width:80px; height:17px; vertical-align:middle; ">물품코드</caption>
- <input id="ipt_goodcd" ref="/root/send/search/goodcd" class="input_default" navindex="4" maxlength="12" style="left:92px; top:36px; width:88px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //조회조건 변경시 Grid 초기화
- //fSearchCondChanged();
- if(ipt_goodcd.value == ""){
- model.setValue("/root/send/search/goodnm", "");
- opt_goodnm.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_goodcd" class="icon_search" navindex="5" style="left:184px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //popup 에 전달할 parameter를 setting한다.
- model.setValue("/root/popgood/instcd", cmb_instcd.value);
- model.setValue("/root/popgood/wareflag", cmb_wareflag.value);
- model.setValue("/root/popgood/returntype", "2"); //goodnm도 함께 return 받고자 할때, returntype을 "2" 로 설정.
- //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
- model.setValue("/root/popgood/selectyn", "");
-
- //popup 프로그램 호출
- window.load("SPRSO20300.xrw", "modal","", "", "/root/popgood","/root/popdata");
- //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 조회해서 그리드에 보여준다.
- if(model.getValue("/root/popgood/selectyn") == "Y") { //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
- //조회조건 변경시 Grid 초기화
- //fSearchCondChanged();
- model.setValue("/root/send/search/goodcd",model.getValue("/root/popgood/goodcd"));
- model.setValue("/root/send/search/goodnm",model.getValue("/root/popgood/goodnm"));
- ipt_goodcd.refresh();
- opt_goodnm.refresh();
-
- }
-
- ]]>
- </script>
- </button>
- <output id="opt_goodnm" ref="/root/send/search/goodnm" class="output_fix" appearance="output" style="left:203px; top:36px; width:237px; height:19px; "/>
- <input id="ipt_dd" ref="/root/send/search/dd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:341px; top:10px; width:99px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //조회조건 변경시 Grid 초기화
- fSearchCondChanged();
- ]]>
- </script>
- </input>
- <input id="ipt_suplplcenm" ref="/root/send/search/suplplcenm" class="input_fix" disabled="true" appearance="input" style="left:203px; top:62px; width:237px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcenm.value.length == 0)
- ipt_suplplcecd.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
- ipt_suplplcenm,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_suplplcecd" ref="/root/send/search/suplplcecd" class="input_essential" style="left:92px; top:62px; width:88px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcecd.value.length == 0)
- ipt_suplplcenm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
- ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption18" class="search_name" style="left:13px; top:61px; width:89px; height:17px; ">거 래 처</caption>
- <button id="btn_suplplcecd" class="icon_search" style="left:184px; top:63px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <output id="opt_acntnm" ref="/root/send/search/acntnm" class="output_fix" appearance="output" style="left:621px; top:62px; width:237px; height:19px; "/>
- <input id="ipt_acntcd" ref="/root/send/search/acntcd" class="input_essential" navindex="36" style="left:528px; top:62px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_acntcd.value == ""){
- model.setValue("/root/send/search/acntnm","");
- opt_acntnm.refresh();
- }else{
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt,flag","1,,," + model.getValue(ipt_acntcd.attribute("ref")) + "," + ipt_dd.value,"","acntcd,acntnm" ,ipt_acntcd,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_amtacnt");
- }
- ]]>
- </script>
- </input>
- <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:602px; top:63px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100","flag",ipt_dd.value);
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:445px; top:61px; width:80px; height:17px; ">계정과목</caption>
- <select id="chk_strange" ref="/root/send/search/strange" overflow="visible" appearance="full" style="left:1119px; top:20px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>이상자료</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="button1" class="icon_search" navindex="5" style="left:602px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //popup 에 전달할 parameter를 setting한다.
- model.setValue("/root/popgood1/instcd", cmb_instcd.value);
- model.setValue("/root/popgood1/wareflag", cmb_wareflag.value);
- model.setValue("/root/popgood1/returntype", "2"); //goodnm도 함께 return 받고자 할때, returntype을 "2" 로 설정.
- //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
- model.setValue("/root/popgood1/selectyn", "");
-
- //popup 프로그램 호출
- window.load("SPRSO20300.xrw", "modal","", "", "/root/popgood1","/root/popdata");
- //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 조회해서 그리드에 보여준다.
- if(model.getValue("/root/popgood/selectyn") == "Y") { //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
- //조회조건 변경시 Grid 초기화
- //fSearchCondChanged();
- model.setValue("/root/send/search/goodcd1",model.getValue("/root/popgood/goodcd"));
- model.setValue("/root/send/search/goodnm1",model.getValue("/root/popgood/goodnm"));
- ipt_goodcd1.refresh();
- opt_goodnm1.refresh();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_goodcd1" ref="/root/send/search/goodcd1" class="input_default" navindex="4" maxlength="12" style="left:510px; top:36px; width:88px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //조회조건 변경시 Grid 초기화
- //fSearchCondChanged();
- if(ipt_goodcd1.value == ""){
- model.setValue("/root/send/search/goodnm1", "");
- opt_goodnm1.refresh();
- }
- ]]>
- </script>
- </input>
- <output id="opt_goodnm1" ref="/root/send/search/goodnm1" class="output_fix" appearance="output" style="left:621px; top:36px; width:237px; height:19px; "/>
- <caption id="caption8" style="left:465px; top:37px; width:25px; height:20px; font-size:12pt; font-weight:bold; ">∼</caption>
- <button id="btn_dutdept" class="icon_search" visibility="hidden" style="left:790px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", model.getValue("/root/send/search/instcd") + "," + ipt_dd.value+"31", "instcd,basedd");
- if(ipt_dutdeptnm.value != ""){
- // submit("TRRSO21304")
- // model.setValue("/root/send/search/goodcd",model.getValue("/root/main/goodlist/mingoodcd"));
- // model.setValue("/root/send/search/goodnm",model.getValue("/root/main/goodlist/mingoodnm"));
- // model.setValue("/root/send/search/goodcd1",model.getValue("/root/main/goodlist/maxgoodcd"));
- // model.setValue("/root/send/search/goodnm1",model.getValue("/root/main/goodlist/maxgoodnm"));
- // ipt_goodcd.refresh();
- // opt_goodnm.refresh();
- // ipt_goodcd1.refresh();
- // opt_goodnm1.refresh();
- // btn_search.dispatch("DOMActivate");
- }
- ipt_dutdeptcd.refresh();
- ipt_dutdeptnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_dutdeptnm" ref="/root/send/search/dutunitnm" class="input_search" disabled="true" navindex="3" visibility="hidden" style="left:810px; top:10px; width:134px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", model.getValue("/root/send/instcd"), "instcd" );
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", model.getValue("/root/send/search/instcd"), "instcd" );
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/search/dutunitcd" class="input_s_essential" navindex="2" visibility="hidden" maxlength="10" style="left:701px; top:10px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", model.getValue("/root/send/search/instcd"), "instcd" );
- if(ipt_dutdeptnm.value != ""){
- // submit("TRRSO21304")
- // model.setValue("/root/send/search/goodcd",model.getValue("/root/main/goodlist/mingoodcd"));
- // model.setValue("/root/send/search/goodnm",model.getValue("/root/main/goodlist/mingoodnm"));
- // model.setValue("/root/send/search/goodcd1",model.getValue("/root/main/goodlist/maxgoodcd"));
- // model.setValue("/root/send/search/goodnm1",model.getValue("/root/main/goodlist/maxgoodnm"));
- // ipt_goodcd.refresh();
- // opt_goodnm.refresh();
- // ipt_goodcd1.refresh();
- // opt_goodnm1.refresh();
- // btn_search.dispatch("DOMActivate");
- }
- ipt_dutdeptcd.refresh();
- ipt_dutdeptnm.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", model.getValue("/root/send/search/instcd"), "instcd" );
-
- if(ipt_dutdeptnm.value != ""){
- // submit("TRRSO21304")
- // model.setValue("/root/send/search/goodcd",model.getValue("/root/main/goodlist/mingoodcd"));
- // model.setValue("/root/send/search/goodnm",model.getValue("/root/main/goodlist/mingoodnm"));
- // model.setValue("/root/send/search/goodcd1",model.getValue("/root/main/goodlist/maxgoodcd"));
- // model.setValue("/root/send/search/goodnm1",model.getValue("/root/main/goodlist/maxgoodnm"));
- // ipt_goodcd.refresh();
- // opt_goodnm.refresh();
- // ipt_goodcd1.refresh();
- // opt_goodnm1.refresh();
- // btn_search.dispatch("DOMActivate");
- }
- ipt_dutdeptcd.refresh();
- ipt_dutdeptnm.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption10" class="search_name" visibility="hidden" style="left:637px; top:10px; width:65px; height:17px; ">부서 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:123px; x2:1193px; y2:123px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:103px; width:180px; height:13px; ">총재고 현황</caption>
- <caption id="caption3" class="tit_2" style="left:0px; top:426px; width:180px; height:13px; ">당월 입고 현황</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:440px; x2:400px; y2:440px; "/>
- <caption id="caption4" class="tit_2" style="left:405px; top:426px; width:180px; height:13px; ">당월 출고 현황</caption>
- <line id="line3" class="line_1" style="x1:405px; y1:440px; x2:805px; y2:440px; "/>
- <caption id="caption5" class="tit_2" style="left:810px; top:426px; width:161px; height:13px; ">당월 처방 현황</caption>
- <line id="line4" class="line_1" style="x1:810px; y1:440px; x2:1192px; y2:440px; "/>
- <datagrid id="grd_stock" nodeset="/root/main/stocklist" caption="창고^거래처^계정과목^집계방법^물 품^물 품^물 품^물 품^전월재고^전월재고^선납^선납^선납^당월입고^당월입고^당월입고^당월
출고량^당월
실입고량^현재고
수량^당월
처방량^계약단가^EDI코드^BOX당
수량^창고코드|창고^거래처^계정과목^집계방법^코드^명칭^규격^단위^수량^금액^입고^출고^재고^수량^단가^금액^당월
출고량^당월
실입고량^현재고
수량^당월
처방량^계약단가^EDI코드^BOX당
수량^창고코드" colsep="^" colwidth="85, 80, 75, 65, 70, 150, 80, 40, 55, 0, 40, 40, 40, 46, 65, 68, 45, 0, 45, 45, 65, 75, 55, 62" explorerbar="sort" extendlastcol="scroll" frozencols="8" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:128px; width:1193px; height:289px; text-align:center; ">
- <col ref="wareflagnm"/>
- <col ref="custnm"/>
- <col ref="acntnm"/>
- <col ref="reqmthd"/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="purcunit" style="text-align:center; "/>
- <col ref="jun_jaego_qty" style="text-align:right; "/>
- <col ref="jun_jaego_amt" format="(-)#,##0" style="text-align:right; "/>
- <col ref="preqty" visibility="visible" style="text-align:right; "/>
- <col ref="predeliveqty" visibility="visible" style="text-align:right; "/>
- <col ref="jaego" visibility="visible" style="text-align:right; "/>
- <col ref="winqty" style="text-align:right; "/>
- <col ref="winunitcost" format="(-)#,##0" style="text-align:right; "/>
- <col ref="winamt" format="(-)#,##0" style="text-align:right; "/>
- <col ref="deliveqty" format="(-)#,##0" style="text-align:right; "/>
- <col ref="sun_ibgo" format="(-)#,##0" style="text-align:right; "/>
- <col ref="hun_jaego" format="(-)#,##0" style="text-align:right; "/>
- <col ref="totqty" format="(-)#,0" style="text-align:right; "/>
- <col ref="goodunitcost" format="(-)#,##0" style="text-align:right; "/>
- <col ref="edicd" style="text-align:center; "/>
- <col ref="exchqty" style="text-align:center; "/>
- <col ref="wareflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="dd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if( grd_stock.rows < 3 ) {
- model.removeNodeset(grd_win.nodeset);
- model.removeNodeset(grd_delive.nodeset);
- model.removeNodeset(grd_deptstock.nodeset);
- model.refresh();
-
- return;
- }
-
- model.setValue("/root/send/search2/instcd", cmb_instcd.value);
- model.setValue("/root/send/search2/dd", ipt_dd.value);
- model.setValue("/root/send/search2/wareflag", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("wareflag")));
- model.setValue("/root/send/search2/goodcd", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("goodcd")));
-
- submit("TRRSO21302");
-
- //model.refresh();
-
- grd_stock.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_stock.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/popreq/instcd",grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("instcd")));
- model.setValue("/root/popreq/dd",grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("dd")));
- model.setValue("/root/popreq/goodcd",grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("goodcd")));
- model.setValue("/root/popreq/goodnm",grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("goodnm")));
-
- //재고조회(부서) 호출
- window.load("SMRSO22600.xrw", "modal","", "", "/root/popreq","/root/popdata");
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_win" nodeset="/root/detail/winlist" caption="입고일자^입고수량^입고금액" colsep="^" colwidth="132, 115, 132" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:445px; width:400px; height:288px; ">
- <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="winqty" format="(-)#,##0" style="text-align:right; "/>
- <col ref="winamt" format="(-)#,##0" style="text-align:right; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_win.row < 1) return;
-
- model.setValue("/root/popdetail/instcd", cmb_instcd.value)
- model.setValue("/root/popdetail/wareflag", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("wareflag")));
- model.setValue("/root/popdetail/goodcd", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("goodcd")));
- model.setValue("/root/popdetail/dd", grd_win.valueMatrix(grd_win.row, grd_win.colRef("windd")));
-
- //popup 프로그램 호출 - 입고내역
- window.load("SPRSO20500.xrw", "modal","", "left:300; top:300;", "/root/popdetail","/root/popdata"); // 순서대로 ref, resultRef
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_delive" nodeset="/root/detail/delivelist" caption="출고일자^출고유형^출고창고^출고수량" colsep="^" colwidth="100, 70, 145, 80" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:405px; top:445px; width:400px; height:288px; ">
- <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deliveflagnm"/>
- <col ref="wareflagnm"/>
- <col ref="deliveqty" format="(-)#,##0" style="text-align:right; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_delive.row < 1) return;
-
- model.setValue("/root/popdetail/instcd", cmb_instcd.value)
- model.setValue("/root/popdetail/wareflag", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("wareflag")));
- model.setValue("/root/popdetail/goodcd", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("goodcd")));
- model.setValue("/root/popdetail/dd", grd_delive.valueMatrix(grd_delive.row, grd_delive.colRef("delivedd")));
- //popup 프로그램 호출 - 출고내역
- window.load("SPRSO20400.xrw", "modal","", "left:300; top:300;", "/root/popdetail","/root/popdata"); // 순서대로 ref, resultRef
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_deptstock" nodeset="/root/detail/deptstocklist" caption="일자^구분^처방부서^수량" colsep="^" colwidth="85, 65, 135, 75, 0, 0, 0, 0, 0, 0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:810px; top:445px; width:382px; height:288px; text-align:center; ">
- <col ref="rgstdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="ioflag" type="combo" format="(-)#,##0" style="text-align:center; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>DSC</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="prcpdeptcdnm"/>
- <col ref="totqty" format="(-)#,0" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="wareflag" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="dd" visibility="hidden"/>
- <col ref="prcpdeptcd" visibility="hidden"/>
- <col ref="allsearchchk" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_deptstock.row < 1) return;
- //popup 프로그램 호출 - 처방현황
-
- if(model.getValue("/root/send/etcsearch/all") == "A"){
- model.setValue("/root/detail/deptstocklist[" + grd_deptstock.row + "]/allsearchchk","A");
- }else{
- model.setValue("/root/detail/deptstocklist[" + grd_deptstock.row + "]/allsearchchk","");
- }
- window.load("SPRSO20800.xrw", "modal","", "left:300; top:300;", "/root/detail/deptstocklist[" + grd_deptstock.row + "]","/root/send"); // 순서대로 ref, resultRef
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptstock.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <select id="chk_allsearch" ref="/root/send/etcsearch/all" overflow="visible" appearance="full" style="left:920px; top:426px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|