123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700 |
- <?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>
- <goodreq>
- <goodreqlist/>
- <gooddlvrlist/>
- </goodreq>
- <gooddelive>
- <gooddelivelist/>
- </gooddelive>
- </list>
- <item/>
- </main>
- <send>
- <save>
- <goodreq>
- <goodreqlist/>
- </goodreq>
- <gooddelive>
- <gooddelivelist/>
- <gooddlvrlist/>
- </gooddelive>
- </save>
- <goodreq>
- <instcd/>
- <reqfrdd/>
- <reqtodd/>
- <delivedd/>
- <reqdeptcd/>
- <reqdeptnm/>
- <goodcd/>
- <goodnm/>
- <deliveprcsflag/>
- <reqflag/>
- <workflag/>
- <reqmthdflag/>
- <deliveprcsflag_group>13</deliveprcsflag_group>
- <maincustlastsuplplce/>
- <maincustlastsuplplcenm/>
- <suppcustcd/>
- <suppcustcdnm/>
- <goodflag/>
- <delivefrdd/>
- <delivetodd/>
- <emplno/>
- <emplnm/>
- <lrgcd/>
- <mdlcd/>
- <stocyn/>
- </goodreq>
- <gooddelive>
- <instcd/>
- <reqflag/>
- <reqdd/>
- <reqno/>
- <reqseqno/>
- </gooddelive>
- <outclose>
- <closeoutlist/>
- </outclose>
- <goodreqprnt>
- <goodreqprntlist/>
- <goodreqprntcomn>
- <purcdmndfrdd/>
- <purcdmndtodd/>
- </goodreqprntcomn>
- </goodreqprnt>
- </send>
- <init>
- <delivedd/>
- <temppay>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </temppay>
- <elctstmntyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </elctstmntyn>
- <winqty/>
- <winamt/>
- <systemflag/>
- <mlist>
- <R0092>
- <cdid/>
- <cdnm/>
- </R0092>
- <R0111>
- <cdid/>
- <cdnm/>
- </R0111>
- </mlist>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInit();
- ]]>
- </script>
- <submission id="TRRSG07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
- <submission id="TXRSG07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/gooddelive" resultref="/root/hidden/temp"/>
- <submission id="TXRSG07402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/gooddelive" resultref="/root/hidden/temp"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </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" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/purcstatsweb/js/SMRSG07400.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,458;1,646;1,860;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:35px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1190px; height:110px; "/>
- <select1 id="cmb_reqmthd" ref="/root/send/goodreq/reqmthdflag" class="combo_s_essential" appearance="minimal" style="left:95px; top:43px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mlist/R0092">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption21" class="search_name" style="left:5px; top:43px; width:91px; height:17px; ">청구방법 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:95px; top:19px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfUserReqFlagList(cmb_reqflag,model.getValue(cmb_instcd.attribute("ref")),getUserInfo("userid"));
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1120px; top:55px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("데이타 ");
- grd_goodreq.rebuildStyle();
- model.removeNodeset("/root/main/list/goodreq/goodreqlist");
- submit("TRRSG07401");
- //진행상태가 강제종료시 선택 컬럼 컨트롤 불능.
- fGridSelectDisabled();
- //조회시 기본적으로 선입 선출법으로 setting
- fRemainDataCalc();
- closeLoadingBar();
- ]]>
- </script>
- </button>
- <button id="btn_reqdeptcd" class="icon_search" style="left:671px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"",recv_list);
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_reqdeptnm" ref="/root/send/goodreq/reqdeptnm" class="output_search" style="left:690px; top:20px; width:170px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptcd" ref="/root/send/goodreq/reqdeptcd" class="input_search" appearance="input" style="left:588px; top:20px; width:77px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodcd" ref="/root/send/goodreq/goodcd" class="input_search" appearance="input" style="left:320px; top:92px; width:145px; 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(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
- model.refresh();
- }else{
- ipt_goodcd.value = "";
- ipt_goodnm.value = "";
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_goodcd" class="icon_search" style="left:471px; top:92px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodnm" ref="/root/send/goodreq/goodnm" class="output_search" style="left:490px; top:92px; width:370px; 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(ipt_goodnm.attribute("ref")) + ",," ,
- "","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
- }else{
- ipt_goodnm.value = "";
- ipt_goodcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <select1 id="cmb_reqflag" ref="/root/send/goodreq/reqflag" class="combo_s_essential" appearance="minimal" style="left:320px; top:19px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqflag">
- <label ref="reqflagnm"/>
- <value ref="reqflag"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(cmb_reqflag.attribute("ref")) == "") {
- model.setValue(cmb_goodflag.attribute("ref"), "");
- cmb_goodflag.refresh();
- } else {
- fReqFagChange(cmb_reqflag.value);
- }
- //
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
- addComboItem( "cmb_lrgcd", "전체", "", "above");
- cmb_lrgcd.selectedindex= 0;
- cmb_lrgcd.refresh();
-
- cmb_lrgcd.dispatch("xforms-value-changed");
- cmb_mdlcd.value='';
- cmb_mdlcd.refresh();
- ]]>
- </script>
- </select1>
- <line id="line14" class="line_4" style="x1:1110px; y1:29px; x2:1110px; y2:96px; "/>
- <caption id="caption14" class="search_name" style="left:5px; top:19px; width:91px; height:17px; ">기관코드 :</caption>
- <caption id="caption16" class="search_name" style="left:230px; top:92px; width:91px; height:17px; ">물품코드 :</caption>
- <caption id="caption20" class="search_name" style="left:485px; top:20px; width:101px; height:17px; ">청 구 부 서 :</caption>
- <caption id="caption22" class="search_name" style="left:230px; top:19px; width:91px; height:17px; ">청구구분 :</caption>
- <input id="ipt_maincustlastsuplplce" ref="/root/send/goodreq/maincustlastsuplplce" class="input_search" style="left:588px; top:44px; width:77px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_maincustlastsuplplce.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref"))
- ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
- }else{
- ipt_maincustlastsuplplcenm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption31" class="search_name" style="left:485px; top:44px; width:101px; height:17px; ">주 거 래 처 :</caption>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:671px; top:44px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodreq/maincustlastsuplplcenm" class="output_search" style="left:690px; top:44px; width:170px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_maincustlastsuplplcenm.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref"))
- ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
- }else{
- ipt_maincustlastsuplplce.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_suppcustcd" class="icon_search" style="left:671px; top:68px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustcdnm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:485px; top:68px; width:103px; height:17px; ">보조거래처 :</caption>
- <input id="ipt_suppcustnm" ref="/root/send/goodreq/suppcustcdnm" class="output_search" style="left:690px; top:68px; width:170px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustnm.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref"))
- ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
- }else{
- ipt_suppcustcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_suppcustcd" ref="/root/send/goodreq/suppcustcd" class="input_search" style="left:588px; top:68px; width:77px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustcd.value != ""){
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref"))
- ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
- }else{
- ipt_suppcustnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:883px; top:89px; width:90px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_goodflag" ref="/root/send/goodreq/goodflag" class="combo_s_essential" disabled="true" visibility="hidden" appearance="minimal" style="left:973px; top:89px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_orderyn" class="btn2_letter4" visibility="visible" style="left:930px; top:123px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectSetting(grd_goodreq,'0', 'N');
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" visibility="visible" style="left:860px; top:123px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectSetting(grd_goodreq,'1', 'Y');
- ]]>
- </script>
- </button>
- <select1 id="cmb_lrgcd" ref="/root/send/goodreq/lrgcd" appearance="minimal" style="left:320px; top:43px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
- cmb_mdlcd.dispatch("xforms-value-changed");
- addComboItem( "cmb_mdlcd", "전체", "", "above");
- cmb_mdlcd.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_mdlcd" ref="/root/send/goodreq/mdlcd" appearance="minimal" style="left:320px; top:67px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:230px; top:43px; width:91px; height:17px; ">대 분 류 :</caption>
- <caption id="caption12" class="search_name" style="left:230px; top:67px; width:91px; height:17px; ">중 분 류 :</caption>
- <select1 id="cmb_deliveprcsflag_group" ref="/root/send/goodreq/deliveprcsflag_group" class="combo_search" appearance="minimal" style="left:95px; top:67px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>미출고</label>
- <value>13</value>
- </item>
- <item>
- <label>출고</label>
- <value>67</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_workflag" ref="/root/send/goodreq/workflag" class="combo_s_essential" appearance="minimal" style="left:95px; top:92px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>일반청구</label>
- <value>1</value>
- </item>
- <item>
- <label>상비품청구</label>
- <value>3</value>
- </item>
- <item>
- <label>상비품망실청구</label>
- <value>5</value>
- </item>
- <item>
- <label>상비품반납</label>
- <value>4</value>
- </item>
- <item>
- <label>일반청구반납</label>
- <value>2</value>
- </item>
- <item>
- <label>처방청구</label>
- <value>6</value>
- </item>
- </choices>
- </select1>
- <caption id="caption18" class="search_name" style="left:5px; top:67px; width:86px; height:17px; ">진행상태 :</caption>
- <caption id="caption2" class="search_name" style="left:5px; top:92px; width:86px; height:17px; ">작업구분 :</caption>
- <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" visibility="visible" caption="선택^청구일자^청구부서^청구번호^청구구분^작업구분^물품코드^물품코드^물품명^규격^모델^제조회사^재고량^잔량^청구^청구^선불출량^불출량^출고량^재고 출고량^delivedeptqty^진행상태^EDI 코드^기관코드^물품구분^청구구분^작업구분^청구부서^청구번호^청구순번^입고부서^출고자^출고일자^출고번호^출고순번^출고단위^출고부서^입출유형^잔여량계산 구분^잔여 잔고량^기관명^보조거래처명^청구자명^포장단위^비고^정산 여부^재고등록 여부" colsep="^" colwidth="30, 0, 72, 117, 85, 56, 67, 28, 178, 66, 55, 60, 49, 48, 44, 32, 61, 55, 49, 4, 0, 70, 73, 66, 68, 62, 60, 79, 71, 69, 84, 78, 77, 71, 100, 100, 100, 69, 100, 86, 100, 100, 100, 100, 100, 66, 90" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:149px; width:1185px; height:577px; ">
- <col checkvalue="Y,N" ref="select" type="checkbox"/>
- <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="reqdeptnm" type="output"/>
- <col ref="requnino" style="text-align:center; "/>
- <col ref="reqflagnm"/>
- <col ref="workflagnm"/>
- <col ref="goodcd"/>
- <col ref="allsizespecid"/>
- <col ref="goodnm"/>
- <col ref="goodspec" type="output"/>
- <col ref="goodmodel" type="output"/>
- <col ref="prodcmpynm" type="output"/>
- <col ref="stocqty" format="#,###" style="text-align:right; "/>
- <col ref="remstocqty" format="#,###" style="text-align:right; "/>
- <col ref="reqqty" format="#,###" style="text-align:right; "/>
- <col ref="requnit" style="text-align:center; "/>
- <col ref="beforqty" format="#,###" style="text-align:right; "/>
- <col ref="inptqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
- <col ref="stocdeliveqty" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="delivecsrdept" visibility="hidden"/>
- <col disabled="true" ref="deliveprcsflag" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="edicd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="delivepsn" visibility="hidden" style="left:1805px; top:23px; width:78px; height:23px; "/>
- <col ref="delivedd" visibility="hidden"/>
- <col ref="deliveno" visibility="hidden"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="iokindcd" visibility="hidden"/>
- <col ref="remcheck" visibility="hidden"/>
- <col ref="remstocqty" visibility="hidden"/>
- <col ref="instnm" visibility="hidden" style="text-align:left; padding-left:10; "/>
- <col ref="subsuplplcenm" visibility="hidden" style="text-align:left; padding-left:10; "/>
- <col ref="reqpsnnm" visibility="hidden" style="text-align:center; "/>
- <col ref="deliveunit2" visibility="hidden" style="text-align:left; "/>
- <col ref="cmt" visibility="hidden" style="text-align:left; "/>
- <col checkvalue="Y,N" disabled="true" ref="genwin" type="checkbox" visibility="visible" style="text-align:center; "/>
- <col checkvalue="Y,N" disabled="true" ref="stocrgstyn" type="checkbox" visibility="visible" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodreq.gridToInstance();
- fRemainDataCalc();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_goodreq.col == grd_goodreq.colRef("inptqty")){
- var beforqty = parseInt(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/beforqty"));
- var inptqty = parseInt(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/inptqty"));
- model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/delivedeptqty", (beforqty + inptqty));
- model.refresh();
- }
- fGridSelectGoodReq();
- model.recalculate();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_delivecncl" class="btn2_letter4" visibility="visible" style="left:1000px; top:123px; width:64px; height:19px; ">
- <caption>출고취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var deliveprcsflag, delivedd, genwin, stocrgstyn, rowIdx;
- var reqrows = "", stocrows = "", genwinrows = "", closerows = "";
-
- if (grd_goodreq.selectedRows > 0) {
- var selectedRows = Array(grd_goodreq.selectedRows);
- for(i=0;i< grd_goodreq.selectedRows;i++) {
- selectedRows[i] = grd_goodreq.selectedRow(i);
- }
- }
-
- for ( var i= 0; i <= selectedRows.length; i++){
- rowIdx = selectedRows[i];
- deliveprcsflag = grd_goodreq.valueMatrix(rowIdx, grd_goodreq.colRef("deliveprcsflag"));
- delivedd = grd_goodreq.valueMatrix(rowIdx, grd_goodreq.colRef("delivedd"));
- genwin = grd_goodreq.valueMatrix(rowIdx, grd_goodreq.colRef("genwin"));
- stocrgstyn = grd_goodreq.valueMatrix(rowIdx, grd_goodreq.colRef("stocrgstyn"));
-
- if (deliveprcsflag == "1"){
- reqrows = reqrows + rowIdx + ", ";
- }
- else if (stocrgstyn == "N"){
- stocrows = stocrows + rowIdx + ", ";
- }
- else if (genwin == "Y"){
- genwinrows = genwinrows + rowIdx + ", ";
- }
- else if(gPurcCloseYymm >= delivedd.substr(0,6)) {
- closerows = closerows + rowIdx + ", ";
- }
- else{
- grd_goodreq.rowStatus(rowIdx) = "4";
- }
-
- }
- if (reqrows != ""){
- messageBox("(" + reqrows.substr(0, reqrows.length-2) + "번째) 진행 상태가 청구인 건은 취소 할수", "I004");
- }
-
- if (stocrows != ""){
- messageBox("(" + stocrows.substr(0, stocrows.length-2) + "번째) 재고 등록이 되어 있지", "I011");
- }
-
- if (genwinrows != ""){
- messageBox("(" + genwinrows.substr(0, genwinrows.length-2) + "번째) 수탁 정산 처리가 완료된 건은 취소 할수", "I004");
- }
- if (closerows != ""){
- messageBox("(" + closerows.substr(0, closerows.length-2) + "번째) 마감이 완료되어 출고처리가 불가능합니다.", "I");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_delivecnclremv" class="btn2_letter7" visibility="visible" style="left:1070px; top:123px; width:97px; height:19px; ">
- <caption>출고취소 해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowIdx;
-
- if (grd_goodreq.selectedRows > 0) {
- var selectedRows = Array(grd_goodreq.selectedRows);
- for(i=0;i< grd_goodreq.selectedRows;i++) {
- selectedRows[i] = grd_goodreq.selectedRow(i);
- }
- }
-
- for ( var i= 0; i <= selectedRows.length; i++){
- rowIdx = selectedRows[i];
- grd_goodreq.rowStatus(rowIdx) = "0";
- }
- ]]>
- </script>
- </button>
- </group>
- <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; ">
- <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false) return;
- fSettingSaveOutData(); // 출고저장
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="button13" class="btn6_letter5" style="left:5px; top:5px; width:92px; height:22px; ">
- <caption>불출서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- freqlistprint();
- ]]>
- </script>
- </button>
- </group>
- <button id="button2" class="btn2_letter5" visibility="visible" style="left:787px; top:158px; width:75px; height:19px; ">
- <caption>잔량재계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRemainDataCalc();
- ]]>
- </script>
- </button>
- <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:305px; top:158px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:185px; top:158px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <select1 id="cmb_stocyn" ref="/root/send/goodreq/stocyn" appearance="minimal" style="left:625px; top:158px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>재고있음</label>
- <value>Y</value>
- </item>
- <item>
- <label>재고없음</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption23" style="left:288px; top:158px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <caption id="caption24" class="search_name" style="left:95px; top:159px; width:86px; height:17px; ">청구일자 :</caption>
- <caption id="caption4" class="tit_2" style="left:5px; top:163px; width:110px; height:13px; ">청구내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:178px; x2:1186px; y2:178px; "/>
- <input id="ipt_delivedd" ref="/root/init/delivedd" class="input_s_essential" inputtype="date" style="left:515px; top:158px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var delivedd = model.getValue(ipt_delivedd.attribute("ref"));
- if(gPurcCloseYymm >= delivedd.substr(0,6)) {
- messageBox("마감이 완료되어 출고처리가 불가능합니다.", "I");
- btn_save.disabled = true;
- return;
- }
-
- btn_save.disabled = false;
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_delivedd" class="search_name" style="left:420px; top:159px; width:91px; height:17px; ">출고일자 :</caption>
- </xhtml:body>
- </xhtml:html>
|