123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <gooddelive>
- <gooddelivelist/>
- </gooddelive>
- </list>
- </main>
- <init>
- <reqdeliveqty/>
- </init>
- <send>
- <save>
- <gooddelivelist/>
- </save>
- <gooddelive>
- <instcd/>
- <goodflag/>
- <delivedeptcd/>
- <delivedeptnm/>
- <windeptnm/>
- <windeptcd/>
- <goodnm/>
- <goodcd/>
- <delivefrdd/>
- <delivetodd/>
- <iokindcd/>
- <lrgnm/>
- <lrgcd/>
- </gooddelive>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSO00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelive" resultref="/root/main/list/gooddelive"/>
- </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"));
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","","","%");
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- rszfGridComboLrgcdList("PH", cmb_lrgcd, "lrgcd","Y");
-
- rszfComboStockArthDeptcdList(cmb_delivedeptcd,getUserInfo("dutplceinstcd"),"PH" );
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- misfGridInit(grd_gooddelive);
- misfMsterDetailSet(grd_gooddelive,null, "TRRSO00401" ,"N");
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_delivefrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
-
- model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
- //hidden
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.setValue(cmb_goodflag.attribute("ref") ,"PH");
- model.refresh();
- }
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
- {
- model.setFocus("cmb_goodflag");
- return false;
- }
- if(model.getValue(ipt_delivefrdd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_delivefrdd");
- return false;
- }
- if(model.getValue(ipt_delivetodd.attribute("ref")).length== 0 )
- {
- model.setFocus("ipt_delivetodd");
- return false;
- }
-
- if(model.getValue(cmb_delivedeptcd.attribute("ref")).length== 0 )
- {
- model.setFocus("cmb_delivedeptcd");
- return false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195; 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:38; width:1195px; height:744px; ">
- <group id="group6" style="left:0px; top:13px; width:1195px; height:87px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:85px; "/>
- <button id="btn_seach" 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[
- if(fCheckRetrieveData() == false)return;
- misfGridInit(grd_gooddelive)
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1109px; y1:10px; x2:1109px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:410px; top:9px; width:86px; height:17px; ">약품분류 :</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:9; width:94px; height:17px; ">기관코드 :</caption>
- <caption id="caption4" class="search_name" style="left:765px; top:9px; width:86px; height:17px; ">출고부서 :</caption>
- <caption id="caption7" class="search_name" style="left:410px; top:35px; width:93px; height:17px; ">출고일자 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/gooddelive/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_delivefrdd" ref="/root/send/gooddelive/delivefrdd" class="input_s_essential" inputtype="date" style="left:496px; top:34px; width:110px; height:19px; "/>
- <input id="ipt_delivetodd" ref="/root/send/gooddelive/delivetodd" class="input_s_essential" inputtype="date" style="left:638px; top:34px; width:110px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:617px; top:36px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_windeptcd" ref="/root/send/gooddelive/windeptnm" class="input_search" style="left:214px; top:60px; width:156px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "windeptcd,windeptnm" );
- model.refresh();
- model.setFocus("ipt_reqflag");
- ]]>
- </script>
- </input>
- <input id="ipt_windeptnm" ref="/root/send/gooddelive/windeptcd" class="input_search" style="left:100px; top:60px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "windeptcd,windeptnm" );
- model.refresh();
- model.setFocus("ipt_reqflag");
- ]]>
- </script>
- </input>
- <button id="button2" class="icon_search" style="left:194px; top:62px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "windeptcd,windeptnm";
- misfOpenPopUpList("02", ipt_windeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:15px; top:61px; width:93px; height:17px; ">입고부서 :</caption>
- <caption id="caption12" class="search_name" style="left:410px; top:61px; width:86px; height:17px; ">약품코드 :</caption>
- <button id="button3" class="icon_search" style="left:590px; top:62px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/send/gooddelive/goodnm" class="input_search" style="left:610px; top:60px; width:180px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + ",," + model.getValue(ipt_goodnm.attribute("ref")) + ",," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- }else{
- ipt_goodnm.value = "";
- ipt_goodcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd" ref="/root/send/gooddelive/goodcd" class="input_search" imemode="disabled" style="left:496px; top:60px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) + ",,," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
- }else{
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:15; top:35; width:93px; height:17px; ">출고유형 :</caption>
- <select1 id="cmb_iokindcd" ref="/root/send/gooddelive/iokindcd" class="combo_s_essential" appearance="minimal" style="left:100; top:34; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_goodflag" ref="/root/send/gooddelive/goodflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1040px; top:8px; width:26px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_delivedeptcd" ref="/root/send/gooddelive/delivedeptcd" class="combo_s_essential" appearance="minimal" style="left:850px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_lrgcd" ref="/root/send/gooddelive/lrgcd" class="combo_s_essential" appearance="minimal" style="left:496px; top:8px; width:154px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption5" class="tit_2" style="left:5px; top:108px; width:157px; height:13px; ">출고내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:123px; x2:1195px; y2:123px; "/>
- <datagrid id="grd_gooddelive" nodeset="/root/main/list/gooddelive/gooddelivelist" caption="출고일자^입고부서^출고유형^출고번호^출고순번^약품코드^약품명^함량^물품모델^출고^출고^출고자^출고자" colsep="^" colwidth="73, 129, 89, 61, 59, 113, 322, 104, 0, 67, 54, 96, 80, 100, 100, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:128px; width:1195px; height:602px; ">
- <col ref="delivedd" format="yyyy-mm-dd"/>
- <col ref="windeptnm"/>
- <col ref="iokindnm"/>
- <col ref="deliveno" style="text-align:center; "/>
- <col ref="deliveseqno" style="text-align:center; "/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="delivedeptqty" style="text-align:right; "/>
- <col ref="deliveunit" style="text-align:center; "/>
- <col ref="delivepsnnm" style="text-align:center; "/>
- <col ref="delivepsn" visibility="hidden" style="text-align:center; "/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="reqno" visibility="hidden" style="text-align:center; "/>
- <col ref="reqseqno" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- <caption id="caption8" visibility="hidden" style="left:920px; top:103px; width:58px; height:20px; vertical-align:middle; ">출고합계 :</caption>
- <output id="ipt_reqdeliveqty" ref="/root/init/reqdeliveqty" class="input_s_essential" visibility="hidden" style="left:978px; top:102px; width:100px; height:19px; "/>
- <button id="btn_excel" class="btn6_letter2" style="left:1135px; top:100px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_gooddelive);
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="button35" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0; y1:25; x2:1195px; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|