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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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/>
- <goodcd/>
- <goodcd1/>
- <goodnm/>
- <goodnm1/>
- <esang/>
- <pagesize>200</pagesize>
- <offset/>
- <dutunitcd/>
- <dutunitnm/>
- <gubun/>
- </search>
- <search2>
- <instcd/>
- <dd/>
- <goodcd/>
- <dutunitcd/>
- </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/>
- <dutunitcd/>
- </popdetail>
- <popdelive>
- <instcd/>
- <delivedd/>
- <delivedeptcd/>
- <delivedeptnm/>
- <opener/>
- </popdelive>
- <popdata>
- <instcd/>
- <dd/>
- <goodcd/>
- <goodnm/>
- </popdata>
- <magamresult/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfGridInit(grd_stock);
- misfMsterDetailSet(grd_stock, null, "TRRSO22601" ,"N");
-
- model.removeNodeset(grd_win.nodeset);
- model.removeNodeset(grd_delive.nodeset);
- model.removeNodeset(grd_deptstock.nodeset);
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- misfComboComCdListMulti("030R0035","cmb_gubun");
-
- //addComboItem( "cmb_gubun", "전체", "", "above");
- model.setValue(cmb_gubun.attribute("ref"), "08");
-
- //팝업창인지 아닌지 instcd로 구분
- if(model.getValue("/root/popdata/instcd") != ""){
- model.setValue("/root/send/search/instcd", model.getValue("/root/popdata/instcd"));
- model.setValue("/root/send/search/dd" , model.getValue("/root/popdata/dd"));
- model.setValue("/root/send/search/goodcd" , model.getValue("/root/popdata/goodcd"));
- model.setValue("/root/send/search/goodcd1" , model.getValue("/root/popdata/goodcd"));
- model.setValue("/root/send/search/goodnm" , model.getValue("/root/popdata/goodnm"));
- model.setValue("/root/send/search/goodnm1" , model.getValue("/root/popdata/goodnm"));
- btn_search.dispatch("DOMActivate");
- }else{ //팝업창이 아닐시
- model.setValue("/root/send/search/dutunitcd",getUserInfo("dutunitcd"));
- model.setValue("/root/send/search/dutunitnm",getUserInfo("dutunitnm"));
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
- model.setValue("/root/send/search/dd" , getCurrentDate()); //기준일자 설정 //.substr(0,6));
- }
- model.refresh();
- ]]>
- </script>
- <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"/>
- <submission id="TRRSO22601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main"/>
- <submission id="TRRSO22602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/magamresult"/>
- </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:15px; ">재고조회(부서)</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; "/>
- <button id="btn_save" class="btn4_letter5" navindex="12" style="left:1101px; top:3px; width:92px; height:22px; ">
- <caption>입출고현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //popup 에 전달할 parameter를 setting한다.
- model.setValue("/root/popdelive/instcd", cmb_instcd.value);
- model.setValue("/root/popdelive/delivedd", ipt_dd.value);
- model.setValue("/root/popdelive/delivedeptcd", ipt_dutdeptcd.value);
- model.setValue("/root/popdelive/delivedeptnm", ipt_dutdeptnm.value);
- model.setValue("/root/popdelive/opener", "jaegosearch");
-
- //popup 프로그램 호출
- window.load("SMRSO22700.xrw", "modal","", "", "/root/popdelive","/root/popdata");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" navindex="12" style="left:1045px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPRSO22601", "XMLSTR" );
- ]]>
- </script>
- </button>
- <button id="btn_help" class="btn4_letter3" navindex="12" style="left:977px; top:3px; width:68px; height:22px; ">
- <caption>도움말</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("SMRSO22601.xrw", "modeless","", "", "","");
- ]]>
- </script>
- </button>
- <button id="btn_specialmngt" class="btn4_letter6" navindex="12" style="left:873px; top:3px; width:104px; height:22px; ">
- <caption>특별관리품목</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("SMRSO23400.xrw", "modeless","", "", "","");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter5" navindex="12" style="left:781px; top:3px; width:92px; height:22px; ">
- <caption>무산정물품</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("SMRSO23500.xrw", "modeless","", "", "","");
- ]]>
- </script>
- </button>
- </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:66px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1124px; top:23px; 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("TRRSO22601");
- submit("TRRSO22602");
-
- var magamyn = model.getValue("/root/magamresult/magamyn");
- if(magamyn == "N"){
- cap_magam.visible = true;
- }else{
- cap_magam.visible = false;
- }
-
- 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"));
- var specialgoodcd = grd_stock.valueMatrix(i, grd_stock.colRef("specialgoodcd"));
- var freegoodcd = grd_stock.valueMatrix(i, grd_stock.colRef("freegoodcd"));
- if(parseInt(totqty) != parseInt(deliveqty)){
- grd_stock.cellStyle("color",i,grd_stock.colRef("totqty")) = "#ff0000";
- }
-
- if(specialgoodcd != ""){
- grd_stock.cellStyle("color",i,grd_stock.colRef("dutunitnm"), i, grd_stock.colRef("allstock")) = "#ff0000";
- }
- if(freegoodcd != ""){
- //grd_stock.cellStyle("background-color",i,grd_stock.colRef("dutunitnm"), i, grd_stock.colRef("allstock")) = "#00D8FF";
- }
- }
- ]]>
- </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:61px; "/>
- <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:37px; 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:37px; 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:37px; 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:37px; 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; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //조회조건 변경시 Grid 초기화
- fSearchCondChanged();
- ]]>
- </script>
- </input>
- <button id="button1" class="icon_search" navindex="5" style="left:602px; top:37px; 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:37px; 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:37px; width:237px; height:19px; "/>
- <caption id="caption8" style="left:465px; top:38px; width:25px; height:20px; font-size:12pt; font-weight:bold; ">∼</caption>
- <button id="btn_dutdept" class="icon_search" visibility="visible" style="left:605px; 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="visible" style="left:625px; 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="visible" maxlength="10" style="left:516px; 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" style="left:457px; top:10px; width:65px; height:17px; ">부서</caption>
- <caption id="caption7" class="search_name" style="left:890px; top:37px; width:80px; height:17px; ">물품유형</caption>
- <select1 id="cmb_gubun" ref="/root/send/search/gubun" appearance="minimal" style="left:970px; top:37px; width:100px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:98px; x2:1193px; y2:98px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:78px; width:180px; height:13px; ">총재고 현황</caption>
- <caption id="caption3" class="tit_2" style="left:0px; top:491px; width:180px; height:13px; ">당월 입고 현황</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:505px; x2:400px; y2:505px; "/>
- <caption id="caption4" class="tit_2" style="left:405px; top:491px; width:180px; height:13px; ">당월 출고 현황</caption>
- <line id="line3" class="line_1" style="x1:405px; y1:505px; x2:805px; y2:505px; "/>
- <caption id="caption5" class="tit_2" style="left:810px; top:491px; width:161px; height:13px; ">당월 처방 현황</caption>
- <line id="line4" class="line_1" style="x1:810px; y1:505px; x2:1192px; y2:505px; "/>
- <datagrid id="grd_stock" nodeset="/root/main/stocklist" caption="부서^물품유형^물 품^물 품^물 품^물 품^전월
재고^선납^선납^선납^전월재고^당월입고^당월입고^당월입고^당월
출고량^당월
실입고량^현재고
수량^당월
처방량^업체
보관량^caption1|부서^물품유형^코드^명칭^규격^단위^전월
재고^입고^출고^재고^금액^수량^단가^금액^당월
출고량^당월
실입고량^현재고
수량^당월
처방량^업체
보관량^caption1" colsep="^" colwidth="120, 75, 79, 140, 116, 60, 48, 48, 48, 48, 0, 48, 55, 65, 50, 0, 50, 45, 45, 100, 100, 100" explorerbar="sort" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:103px; width:1193px; height:382px; text-align:center; ">
- <col ref="dutunitnm"/>
- <col ref="winkind"/>
- <col ref="goodcd"/>
- <col ref="goodnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="purcunit" style="text-align:center; "/>
- <col ref="jun_jaego_qty" 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" format="(-)#,##0" style="text-align:right; "/>
- <col ref="jun_jaego_amt" format="(-)#,##0" 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="allstock" format="(-)#,##0" style="text-align:right; "/>
- <col ref="dutunitcd" visibility="hidden"/>
- <col ref="specialgoodcd" visibility="hidden"/>
- <col ref="freegoodcd" 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")));
- model.setValue("/root/send/search2/dutunitcd", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("dutunitcd")));
-
-
- submit("TRRSO21302");
-
- //model.refresh();
-
- grd_stock.dispatch("onmouseup");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_stock.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_win" nodeset="/root/detail/winlist" caption="입고일자^입고수량^입고금액^caption1" colsep="^" colwidth="132, 115, 132, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:510px; width:400px; height:223px; ">
- <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; "/>
- <col ref="dutunitcd" visibility="hidden"/>
- <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")));
- model.setValue("/root/popdetail/dutunitcd", grd_win.valueMatrix(grd_win.row, grd_win.colRef("dutunitcd")));
-
- //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="출고일자^출고유형^출고창고^출고수량^caption1" colsep="^" colwidth="147, 131, 1, 101, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:405px; top:510px; width:400px; height:223px; ">
- <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deliveflagnm" style="text-align:center; "/>
- <col ref="wareflagnm" visibility="hidden"/>
- <col ref="deliveqty" format="(-)#,##0" style="text-align:right; "/>
- <col ref="dutunitcd" visibility="hidden"/>
- <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")));
- model.setValue("/root/popdetail/dutunitcd", grd_delive.valueMatrix(grd_delive.row, grd_delive.colRef("dutunitcd")));
- //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:510px; width:382px; height:223px; 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:491px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- </select>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1129px; top:78px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_stock.saveExcel(fileName, "sheetname:savetype", true, true, "", "");
- }
- ]]>
- </script>
- </button>
- <caption id="cap_magam" visibility="hidden" style="left:115px; top:77px; width:605px; height:20px; font-weight:bold; color:#ff0000; ">※ 아직 전월마감이 안 되어있습니다. 정확한 재고현황을 위해 전월마감 후 조회하십시오.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|