123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086 |
- <?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: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>
- <list>
- <goodwin>
- <goodwinlist/>
- <goodmaxwinno/>
- </goodwin>
- <goodnonwin>
- <goodnonwinlist/>
- <goodmaxwinno/>
- </goodnonwin>
- <fixplceord>
- <fixplceordlist/>
- </fixplceord>
- <fixplcewin>
- <fixplcewinlist/>
- </fixplcewin>
- <fixplcewinno>
- <fixplcewinnolist/>
- </fixplcewinno>
- </list>
- <item/>
- </main>
- <send>
- <save>
- </save>
- <goodwin>
- <instcd/>
- <goodflag/>
- <windd/>
- <winno/>
- <windeptcd/>
- <windeptnm/>
- <winpsn/>
- <winpsnnm/>
- <installplcecd/>
- <installplcenm/>
- <paycond/>
- <suplplcecd/>
- <suplplcenm/>
- <temppay/>
- <calcdocukind/>
- <calcdocudd/>
- <plceordfrdd/>
- <plceordtodd/>
- <retrmaxwinnoyn/>
- <suppcustcd/>
- <suppcustnm/>
- <pgm_gubun/>
- <prcsstat/>
- <fromdd/>
- <todd/>
- </goodwin>
- <gooddmndreq>
- <instcd/>
- <goodflag/>
- <purcdmnddd/>
- <purcdmndno/>
- <purcdmndseq/>
- </gooddmndreq>
- <fixplceord>
- <fixplceordlist/>
- </fixplceord>
- <fixplcewin>
- <fixplcewinlist/>
- </fixplcewin>
- </send>
- <init>
- <winqty/>
- <winamt/>
- <winqtytotal/>
- <winqtycnt/>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- </root>
- </instance>
- <bind id="bind2" ref="/root/main/list/fixplceord/fixplcewinlist/plcewinamt" calculate="../plcewinqty *../wncurncyamt"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- ////화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TXRSO00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelive" resultref="/root/hidden/temp">"</submission>
- <submission id="TRRSR05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/fixplceord"/>
- <submission id="TXRSI02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixplceord" resultref="/root/hidden/temp">"</submission>
- <submission id="TRRSI02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/fixplcewin"/>
- <submission id="TXRSI02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixplcewin" resultref="/root/hidden/temp">"</submission>
- <submission id="TRRSI02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/fixplcewinno"/>
- </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[
- function fInitialize() {
- model.resetInstanceNode("/root/send");
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- misfComboComCdListMulti("R0109,R0316,R0316","cmb_calcdocukind,grd_fixplcewin.fundorigin,grd_fixplceord.fundorigin");
- // 조회가 아닌데 전체는 의미가 없다...HBH . 2007.08.13
- //rszfComboAppendBlankChild("cmb_calcdocukind");
-
- misfGridInit(grd_fixplcewin);
- misfGridInit(grd_fixplceord);
-
- // misfMsterDetailSet(grd_fixplceord,null, "TRRSI00101" ,"Y");
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_windd.attribute("ref") ,curdate);
- model.setValue(ipt_plceordfrdd.attribute("ref") , cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_plceordtodd.attribute("ref") ,curdate);
-
- model.setValue(ipt_fromdd.attribute("ref") , curdate.substr(0,6)+"01" );
- model.setValue(ipt_todd.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay() );
- model.setValue(ipt_plceordfrdd.attribute("ref") , curdate.substr(0,6)+"01" );
- model.setValue(ipt_plceordtodd.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay() );
-
- rdo_paycond.select(0);
- //hidden
- model.setValue(ipt_goodflag.attribute("ref"),'GE'); // 물품구분
- model.setValue(ipt_pgm_gubun.attribute("ref"),'W'); // 조회구분 ( P:발주, W :입고)
- model.setValue(ipt_prcsstat.attribute("ref"),'3'); // 진행상태 ( 발주조회 프로그램과 같이 사용하기 위해)
-
- model.setValue(ipt_sumwinqty.attribute("ref"),0);
- model.setValue(opt_sumwinamt.attribute("ref"),0);
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_windeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(opt_windeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- model.setValue(ipt_winpsn.attribute("ref") , getUserInfo("userid"));
- model.setValue(opt_winpsnnm.attribute("ref") , getUserInfo("usernm"));
-
- if(cmb_instcd.value=='032'){
- rszfComboBgcdBugtList("grd_fixplceord.groupbugt", '103', '3');
- rszfComboBgcdBugtList("grd_fixplcewin.groupbugt", '103', '3');
- }else{
- rszfComboBgcdBugtList("grd_fixplceord.groupbugt", cmb_instcd.value, '3');
- rszfComboBgcdBugtList("grd_fixplcewin.groupbugt", cmb_instcd.value, '3');
- }
-
- grd_fixplcewin.explorerbar = "sortshow";
- grd_fixplceord.explorerbar = "sortshow";
-
- // grd_fixplceord.frozenCols = grd_fixplceord.colRef("winunit");
- model.refresh();
- }
-
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- }
- return false;
- }
- if(model.getValue(ipt_winpsn.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고담당자를 " ,"C001");
- model.setFocus("ipt_winpsn");
- }
- return false;
- }
- if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고부서를 " ,"C001");
- model.setFocus("ipt_windeptcd");
- }
- return false;
- }
- if(sch_select.selectedIndex == 0)
- {
- /* 미입고내역 조회는 거래처가 없어도 될듯 2007.10.14 HBH
- if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("거래처를 " ,"C001");
- model.setFocus("ipt_suplplcecd");
- }
- return false;
- }
- */
- if(model.getValue(ipt_plceordfrdd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("발주시작일자 " ,"C001");
- model.setFocus("ipt_plceordfrdd");
- }
- return false;
- }
- if(model.getValue(ipt_plceordtodd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("발주종료일자 " ,"C001");
- model.setFocus("ipt_plceordtodd");
- }
- return false;
- }
- return true;
- }
- else
- {
- if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고일자를 " ,"C001");
- model.setFocus("ipt_windd");
- }
- return false;
- }
- }
- return true;
- }
- function fDefaultSetting(prow)
- {
- var grd_setting;
- if(sch_select.selectedIndex == 0)grd_setting = grd_fixplceord;
- else grd_setting = grd_fixplcewin;
- model.setValue(grd_setting.nodeset+"["+prow+"]/instcd",model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_setting.nodeset+"["+prow+"]/goodflag",model.getValue(ipt_goodflag.attribute("ref")));
- model.setValue(grd_setting.nodeset+"["+prow+"]/windd",model.getValue(ipt_windd.attribute("ref")));
- model.setValue(grd_setting.nodeset+"["+prow+"]/winpsn",model.getValue(ipt_winpsn.attribute("ref")));
- model.setValue(grd_setting.nodeset+"["+prow+"]/windeptcd",model.getValue(ipt_windeptcd.attribute("ref")));
- model.setValue(grd_setting.nodeset+"["+prow+"]/installplcecd",model.getValue("/root/send/goodwin/installplcecd"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/paycond",rdo_paycond.value);
- model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocukind",model.getValue(cmb_calcdocukind.attribute("ref")));;
- model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocudd",model.getValue(ipt_calcdocudd.attribute("ref")));
- model.setValue(grd_setting.nodeset+"["+prow+"]/suplplcecd",model.getValue(ipt_suplplcecd.attribute("ref")));
- model.setValue(grd_setting.nodeset+"["+prow+"]/winseqno",fGetMaxWinSeqNo());
- model.setValue(grd_setting.nodeset+"["+prow+"]/delivedeptqty",0);
- model.setValue(grd_setting.nodeset+"["+prow+"]/deliveno",0);
- model.setValue(grd_setting.nodeset+"["+prow+"]/stocqty",0);
- model.setValue(grd_setting.nodeset+"["+prow+"]/iokind",model.getValue(ipt_iokind.attribute("ref")));
-
- }
- function fGetMaxWinSeqNo()
- {
- var maxwinseqno = "";
- for(var currow = grd_fixplceord.fixedRows ; currow < grd_fixplceord.rows; currow++)
- {
- if(maxwinseqno < grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("winseqno")))
- maxwinseqno = grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("winseqno"));
- }
-
- if(maxwinseqno.length == 0)maxwinseqno = "001";
- else maxwinseqno = parseInt(maxwinseqno) + 1;
-
- maxwinseqno = "" + maxwinseqno;
- return maxwinseqno.getLeftPad(3,"0");
- }
- function fSettingSaveInData()
- {
- for(var liRow = grd_fixplceord.fixedRows; liRow < grd_fixplceord.rows ; liRow++)
- {
- //fDefaultSetting(liRow);
- //model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/windeptcd" , model.getValue(ipt_windeptcd.attribute("ref")));
- //model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/delivedeptcd" , model.getValue(ipt_windeptcd.attribute("ref")));
-
- model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/calcdocukind" , model.getValue(rdo_paycond.attribute("ref")));
- model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/calcdocukind" , model.getValue(cmb_calcdocukind.attribute("ref")));
- model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/calcdocudd" , model.getValue(ipt_calcdocudd.attribute("ref")));
- }
- }
- function fCheckSaveData()
- {
-
- if(sch_select.selectedIndex == 0)
- {
- var updtdata = getGridUpdateData(grd_fixplceord);
- if (updtdata == "" )
- {
- messageBox("입고처리할 내역이" ,"I004");
- return false;
- }
- }
- else
- {
- var updtdata = getGridUpdateData(grd_fixplcewin);
- if (updtdata == "" )
- {
- messageBox("입고처리 변경 내역이" ,"I004");
- return false;
- }
-
- }
-
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
-
- if(sch_select.selectedIndex == 0)
- {
-
- if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
- {
- messageBox("입고일자를 " ,"C001");
- model.setFocus("ipt_windd");
- return false;
- }
-
- if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
- {
- messageBox("입고부서를 " ,"C001");
- model.setFocus("ipt_windeptcd");
- return false;
- }
-
- if(model.getValue(ipt_winpsn.attribute("ref")).length== 0 )
- {
- messageBox("입고담당자를 " ,"C001");
- model.setFocus("ipt_winpsn");
- return false;
- }
-
- if(model.getValue(rdo_paycond.attribute("ref")).length== 0 )
- {
- messageBox("지불 필을 " ,"C001");
- model.setFocus("rdo_paycond");
- return false;
- }
-
- if(model.getValue(cmb_calcdocukind.attribute("ref")).length== 0 )
- {
- messageBox("세금계산서유형을 " ,"C001");
- model.setFocus("cmb_calcdocukind");
- return false;
- }
-
- if(model.getValue(ipt_calcdocudd.attribute("ref")).length== 0 )
- {
- messageBox("세금계산서일자를 " ,"C001");
- model.setFocus("ipt_calcdocudd");
- return false;
- }
- for(var currow = grd_fixplceord.fixedRows ; currow < grd_fixplceord.rows ; currow++)
- {
- if((grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("select")) == "Y") &&
- (grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("plcewinqty")).length == 0 ||grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("plcewinqty")) == 0))
- {
- messageBox(currow + " 번째 입고량을 " ,"C001");
- //grd_fixplceord.endEditCell();
- grd_fixplceord.row = currow;
- grd_fixplceord.col= grd_fixplceord.colRef("plcewinqty");
- grd_fixplceord.editCell();
- return false;
- }
- }
- }
- /*
- else
- {
- if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
- {
- messageBox("거래처를 " ,"C001");
- model.setFocus("ipt_suplplcecd");
- return false;
- }
- }
- */
- return true;
- }
- //현민
- function fWinqtyTotal()
- {
- var amt = 0.0;
- var cnt = 0;
- for(var r = grd_fixplceord.fixedRows; r < grd_fixplceord.rows; r++)
- {
- if( grd_fixplceord.valueMatrix(r, grd_fixplceord.colRef("select")) == 'Y' )
- {
- //alert(r);
- //alert(grd_fixplceord.valueMatrix(r, grd_fixplceord.colRef("plcewinamt")));
- amt = ( parseFloat(amt) + parseFloat( grd_fixplceord.valueMatrix(r, grd_fixplceord.colRef("plcewinamt"))) );
- cnt ++;
- }
- }
- model.setValue( opt_winqtytotal.attribute("ref"), amt);
- model.setValue( opt_winqtycnt.attribute("ref"), cnt);
- opt_winqtytotal.refresh();
- opt_winqtycnt.refresh();
- }
-
- function fAfterRetrieve()
- {
-
- if(sch_select.selectedIndex == 0)
- {
- }
- else
- {
- var winqty = 0;
- var winamt = 0;
- for(var currow = grd_fixplceord.fixedRows ; currow < grd_fixplcewin.rows ; currow++)
- {
- //winqty = winqty + parseFloat( grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("winqty")));
- winqty = winqty + 1;
- winamt = winamt + 0 + parseFloat(grd_fixplcewin.valueMatrix(currow , grd_fixplcewin.colRef("plcewinamt")));
- }
-
- model.setValue(ipt_sumwinqty.attribute("ref"),grd_fixplcewin.rows - grd_fixplcewin.fixedRows);
- model.setValue(opt_sumwinamt.attribute("ref"),winamt);
-
- }
- 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="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:737px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:85px; "/>
- <input id="ipt_winno" ref="/root/send/goodwin/winno" class="input_default" disabled="true" editable="false" style="left:1005px; top:45px; width:47px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // inputEnterKey("btn_search", "DOMActivate");
- if(event.keyCode == 13)
- {
- model.setValue(ipt_winno.attribute("ref"),ipt_winno.currentText);
- model.refresh();
- if(fCheckRetrieveData(false) == false)return;
- if(sch_select.selectedIndex == 0)
- {
- misfGridInit(grd_fixplceord);
- submit("TRRSI00102");
- }
- else
- {
- misfMsterDetailRetrieve();
- }
- fAfterRetrieve();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_windeptcd" ref="/root/send/goodwin/windeptcd" class="input_s_essential" disabled="false" maxlength="10" appearance="input" style="left:498px; top:18px; width:87px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "windeptcd,windeptnm" );
- model.refresh();
- if(sch_select.selectedIndex == 1)btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <output id="opt_windeptnm" ref="/root/send/goodwin/windeptnm" class="output_fix" appearance="output" style="left:590px; top:18px; width:145px; height:19px; "/>
- <button id="bnt_suplplcecd" class="icon_search" style="left:195px; top:47px; 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>
- <input id="ipt_suplplcecd" ref="/root/send/goodwin/suplplcecd" class="input_essential" maxlength="10" style="left:100px; top:45px; width:90px; 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>
- <input id="ipt_suplplcenm" ref="/root/send/goodwin/suplplcenm" class="input_fix" appearance="input" style="left:215px; top:45px; width:170px; 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();
- ]]>
- </script>
- </input>
- <select1 id="cmb_calcdocukind" ref="/root/send/goodwin/calcdocukind" class="combo_search" appearance="minimal" style="left:498px; top:70px; width:153px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/calcdocukind">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_calcdocudd" ref="/root/send/goodwin/calcdocudd" class="input_search" inputtype="date" style="left:878px; top:70px; width:102px; height:19px; "/>
- <select1 id="cmb_instcd" ref="/root/send/goodwin/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:18px; width:139px; 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[
- if(cmb_instcd.value=='032'){
- rszfComboBgcdBugtList("grd_fixplceord.groupbugt", '103', '3');
- rszfComboBgcdBugtList("grd_fixplcewin.groupbugt", '103', '3');
- }else{
- rszfComboBgcdBugtList("grd_fixplceord.groupbugt", cmb_instcd.value, '3');
- rszfComboBgcdBugtList("grd_fixplcewin.groupbugt", cmb_instcd.value, '3');
- }
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_windd" ref="/root/send/goodwin/windd" class="input_s_essential" inputtype="date" style="left:878px; top:45px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <output id="opt_winpsnnm" ref="/root/send/goodwin/winpsnnm" class="output_fix" appearance="output" style="left:498px; top:45px; width:102px; height:19px; "/>
- <input id="ipt_winpsn" ref="/root/send/goodwin/winpsn" class="input_fix" visibility="hidden" maxlength="10" appearance="input" style="left:1073px; top:45px; width:31px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:39px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(true) == false)return;
- model.setValue("/root/send/goodwin/retrmaxwinnoyn","Y");
- //model.setValue("/root/send/goodwin/winno","");
- if(sch_select.selectedIndex == 0)
- {
- misfGridInit(grd_fixplceord);
- //submit("TRRSI00102");
- submit("TRRSR05201");
- }
- else
- {
- // 조회전 최대값 가져온다.
- model.removenode("/root/main/list/fixplcewinno/fixplcewinnolist");
- model.makeNode("/root/main/list/fixplcewinno/fixplcewinnolist");
- //submit("TRRSI02502");
- //model.setValue(ipt_winno.attribute("ref"),model.getValue("/root/main/list/fixplcewinno/fixplcewinnolist/winno"));
- misfGridInit(grd_fixplcewin);
- submit("TRRSI02501");
- }
- fAfterRetrieve();
- ]]>
- </script>
- </button>
- <switch id="sch_select" style="left:0px; top:127px; width:1195px; height:598px; ">
- <case id="cse_nonwin" selected="true" style="left:0px; top:0px; width:1193px; height:637; ">
- <caption id="caption23" style="left:217px; top:5px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <button id="btnselect" class="btn2_letter9" style="left:1074px; top:3px; width:119px; height:19px; ">
- <caption>전체/전체선택 취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var liRow = grd_fixplceord.fixedRows; liRow < grd_fixplceord.rows ; liRow++)
- {
- if(grd_fixplceord.valueMatrix(liRow,grd_fixplceord.colRef("select")) == "Y")
- {
- model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/select" , "N");
- model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/plcewinqty" , 0);
- grd_fixplceord.rowStatus(liRow) = "0";
- }
- else
- {
- model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/select" , "Y");
- model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/plcewinqty" , ( grd_fixplceord.valueMatrix(liRow,grd_fixplceord.colRef("plceordqty"))
- - grd_fixplceord.valueMatrix(liRow,grd_fixplceord.colRef("pre_plcewinqty")) ));
- grd_fixplceord.rowStatus(liRow) = "2";
- }
- }
- model.recalculate();
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:1193; y2:24px; "/>
- <input id="ipt_plceordtodd" ref="/root/send/goodwin/plceordtodd" class="input_s_essential" inputtype="date" style="left:232px; top:3px; width:133px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_plceordfrdd" ref="/root/send/goodwin/plceordfrdd" class="input_s_essential" inputtype="date" style="left:82px; top:3px; width:133px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <datagrid id="grd_fixplceord" nodeset="/root/main/list/fixplceord/fixplceordlist" caption="선택^발주일자^대분류^중분류^소분류^품명^규격^모델^연구과제^거래처명^발주량^발주금액^기입고량^입고수량^입고단가^입고금액^설치장소^집기비품^계정^계정^프로젝트^예산편성액^예산추산액^예산집행액^예산잔액^자금출처^청구부서^caption1" colsep="^" colwidth="31, 70, 78, 72, 73, 134, 63, 58, 59, 57, 44, 60, 59, 61, 62, 74, 125, 54, 100, 100, 164, 100, 100, 100, 100, 137, 148, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:561px; ">
- <col checkvalue="Y,N" ref="select" type="checkbox"/>
- <col ref="plceorddd" format="yyyy-mm-dd"/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="stdysubjnm"/>
- <col ref="suplplcenm"/>
- <col ref="plceordqty" format="#,###" style="text-align:right; "/>
- <col ref="plceordamt" format="#,###" style="text-align:right; "/>
- <col ref="pre_plcewinqty" format="#,###" style="text-align:right; "/>
- <col ref="plcewinqty" type="input" style="text-align:right; "/>
- <col ref="wncurncyamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="plcewinamt" format="#,###" style="text-align:right; "/>
- <col ref="installplcenm" visibility="hidden"/>
- <col checkvalue="1,2" ref="fixtrflag" type="checkbox"/>
- <col disabled="true" ref="groupbugt" type="combo" style="text-align:left; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="bugtflagnm" style="text-align:left; "/>
- <col ref="projectnm" style="text-align:left; "/>
- <col ref="totamt" format="#,###" style="text-align:right; "/>
- <col ref="bugtexpcamt" format="#,###" style="text-align:right; "/>
- <col ref="bugtexecamt" format="#,###" style="text-align:right; "/>
- <col ref="remainder" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="fundorigin" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <value/>
- <label/>
- </itemset>
- </choices>
- </col>
- <col ref="reqdeptnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="plceordseqno" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <col ref="prodplce" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="iopsnflag" visibility="hidden"/>
- <col ref="forgncurncyamt" visibility="hidden"/>
- <col ref="curncyunit" visibility="hidden"/>
- <col ref="chgrate" visibility="hidden"/>
- <col ref="forgnordamt" visibility="hidden"/>
- <col ref="lcno" visibility="hidden"/>
- <col ref="lcestbdd" visibility="hidden"/>
- <col ref="lcestbbank" visibility="hidden"/>
- <col ref="trancond" visibility="hidden"/>
- <col ref="paycond" visibility="hidden"/>
- <col ref="delivedd" visibility="hidden"/>
- <col ref="grntterm" visibility="hidden"/>
- <col ref="testmthd" visibility="hidden"/>
- <col ref="cnsttndd" visibility="hidden"/>
- <col ref="prcsstat" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="slipdd" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="reqqty" visibility="hidden"/>
- <col ref="adjtqty" visibility="hidden"/>
- <col ref="calcdocukind" visibility="hidden"/>
- <col ref="calcdocudd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="cntrdeptnm" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="mngtdeptnm" visibility="hidden"/>
- <col ref="prodplcenm" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="projectid" visibility="hidden"/>
- <col ref="bugtflag" visibility="hidden"/>
- <col ref="acqtflag" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_fixplceord.col == grd_fixplceord.colRef("installplcenm") )
- {
- var recv_list = "installplcecd,installplcenm";
- misfOpenPopUpList("19", grd_fixplceord,"", recv_list) ;
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if (grd_fixplceord.col == grd_fixplceord.colRef("select") )
- {
- if(grd_fixplceord.valueMatrix(grd_fixplceord.row,grd_fixplceord.colRef("select")) == "Y")
- {
- model.setValue(grd_fixplceord.nodeset + "[" + (grd_fixplceord.row - grd_fixplceord.fixedRows + 1) + "]/plcewinqty" , ( grd_fixplceord.valueMatrix(grd_fixplceord.row,grd_fixplceord.colRef("plceordqty"))
- - grd_fixplceord.valueMatrix(grd_fixplceord.row,grd_fixplceord.colRef("pre_plcewinqty")) ));
- //이현민추가
- model.setValue(
- grd_fixplceord.nodeset + "[" + (grd_fixplceord.row - grd_fixplceord.fixedRows + 1) + "]/plcewinamt" ,
- (
- grd_fixplceord.valueMatrix ( grd_fixplceord.row,grd_fixplceord.colRef("plcewinqty")) *
- grd_fixplceord.valueMatrix ( grd_fixplceord.row,grd_fixplceord.colRef("wncurncyamt"))
- ));
-
-
- grd_fixplceord.rowStatus(grd_fixplceord.row) = "2";
- //비품입고 시킬때 (성의교정) acqtflag(도입구분)을 2 매입으로 강제로 세팅한다.
-
- model.setValue(grd_fixplceord.nodeset + "[" + (grd_fixplceord.row - grd_fixplceord.fixedRows + 1) + "]/acqtflag" ,"2");
- }
- else
- {
- model.setValue(grd_fixplceord.nodeset + "[" + (grd_fixplceord.row - grd_fixplceord.fixedRows + 1) + "]/plcewinqty" , 0);
- grd_fixplceord.rowStatus(grd_fixplceord.row) = "0";
- }
- //현민
- grd_fixplceord.refresh();
- fWinqtyTotal();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
-
- grd_fixplceord.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_fixplceord.rows - grd_fixplceord.fixedRows > 0 && grd_fixplceord.fixedRows <= grd_fixplceord.row && ( ipt_suplplcecd.value.length <= 0 || ipt_suplplcenm.value.length <=0 ) ) {
- ipt_suplplcecd.value = grd_fixplceord.valueMatrix(grd_fixplceord.row, grd_fixplceord.colRef("suplplcecd"));
-
- ipt_suplplcecd.refresh();
- ipt_suplplcecd.dispatch("xforms-value-changed");
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" style="left:19px; top:1px; width:70px; height:23px; font-weight:bold; vertical-align:middle; ">발주일자 :</caption>
- <caption id="caption10" style="left:714px; top:2px; width:67px; height:23px; vertical-align:middle; ">입고건수 :</caption>
- <output id="opt_winqtycnt" ref="/root/init/winqtycnt" class="output_default" format="#,###" style="left:773px; top:3px; width:56px; height:19px; font-weight:bold; text-align:right; "/>
- <caption id="cap_winqtytotal" style="left:843px; top:2px; width:67px; height:23px; vertical-align:middle; ">입고금액 :</caption>
- <output id="opt_winqtytotal" ref="/root/init/winqtytotal" class="output_default" format="#,###.##" style="left:902px; top:4px; width:108px; height:19px; font-weight:bold; text-align:right; "/>
- </case>
- <case id="cse_win" style="left:0px; top:0px; width:1193px; height:637px; ">
- <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:118px; height:13px; ">입고내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:1192px; y2:24px; "/>
- <button id="btn_choidel" class="btn2_letter3" style="left:1140px; top:3px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_fixplcewin, "D");
- ]]>
- </script>
- </button>
- <output id="ipt_sumwinqty" ref="/root/init/winqty" class="output_default" style="left:836px; top:3px; width:70px; height:19px; font-weight:bold; "/>
- <output id="opt_sumwinamt" ref="/root/init/winamt" class="output_default" format="#,###" style="left:989px; top:3px; width:125px; height:19px; font-weight:bold; "/>
- <datagrid id="grd_fixplcewin" nodeset="/root/main/list/fixplcewin/fixplcewinlist" caption="대분류^중분류^소분류^품명^규격^모델^연구과제^거래처^설치장소^입고수량^단가^금액^지불 필^집기비품^계정^계정^프로젝트^예산편성액^예산추산액^예산집행액^예산잔액^자금출처^청구부서^caption1" colsep="^" colwidth="95, 93, 94, 156, 85, 83, 58, 89, 87, 88, 83, 90, 47, 57, 116, 100, 153, 100, 100, 100, 100, 146, 149, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:561px; ">
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="stdysubjnm"/>
- <col ref="suplplcenm"/>
- <col ref="installplcenm"/>
- <col ref="plcewinqty" type="input" style="text-align:right; "/>
- <col ref="wncurncyamt" type="input" format="#,###" style="text-align:right; "/>
- <col ref="plcewinamt" format="#,###" style="text-align:right; "/>
- <col checkvalue="2,1" ref="paycond" type="checkbox"/>
- <col checkvalue="1,2" ref="fixtrflag" type="checkbox"/>
- <col disabled="true" ref="groupbugt" type="combo" style="text-align:left; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="bugtflagnm" style="text-align:left; "/>
- <col ref="projectnm" style="text-align:left; "/>
- <col ref="totamt" format="#,###" style="text-align:right; "/>
- <col ref="bugtexpcamt" format="#,###" style="text-align:right; "/>
- <col ref="bugtexecamt" format="#,###" style="text-align:right; "/>
- <col ref="remainder" format="#,###" style="text-align:right; "/>
- <col disabled="true" ref="fundorigin" type="combo" style="text-align:center; ">
- <choices>
- <itemset>
- <value/>
- <label/>
- </itemset>
- </choices>
- </col>
- <col ref="reqdeptnm"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="windd" visibility="hidden"/>
- <col ref="winno" visibility="hidden"/>
- <col ref="winseqno" visibility="hidden"/>
- <col ref="calcdocukind" visibility="hidden"/>
- <col ref="calcdocudd" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="goodflagengnm" visibility="hidden"/>
- <col ref="prodcmpy" visibility="hidden"/>
- <col ref="prodplce" visibility="hidden"/>
- <col ref="prodplcenm" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="prodcmpynm" visibility="hidden"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="suppcustnm" visibility="hidden"/>
- <col ref="iopsnflag" visibility="hidden"/>
- <col ref="curncyunit" visibility="hidden"/>
- <col ref="forgncurncyamt" visibility="hidden"/>
- <col ref="chgrate" visibility="hidden"/>
- <col ref="forgnwinamt" visibility="hidden"/>
- <col ref="stdysubjno" visibility="hidden"/>
- <col ref="bugtyy" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="cntrdeptcd" visibility="hidden"/>
- <col ref="mngtdeptcd" visibility="hidden"/>
- <col ref="incmpemtno" visibility="hidden"/>
- <col ref="mtlmngtno" visibility="hidden"/>
- <col ref="eqmtearnvaluyn" visibility="hidden"/>
- <col ref="prcsstat" visibility="hidden"/>
- <col ref="plceorddd" visibility="hidden"/>
- <col ref="plceordseqno" visibility="hidden"/>
- <col ref="slipdd" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="pre_plcewinqty" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="projectid" visibility="hidden"/>
- <col ref="bugtflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixplcewin.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" style="left:777px; top:1px; width:60px; height:23px; vertical-align:middle; ">입고건수 :</caption>
- <caption id="caption5" style="left:931px; top:1px; width:60px; height:23px; vertical-align:middle; ">입고합계 :</caption>
- <group id="grp_serialno" visibility="hidden" showeffect="slidepositive 500" style="left:740px; top:95px; width:280px; height:350px; ">
- <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:280px; height:340px; border-color:#339966; border-width:2px; "/>
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:268px; height:27px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_confirm" class="btn4_letter2" style="left:175px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_serialno.attribute("visibility") = "hidden" ;
- ]]>
- </script>
- </button>
- <datagrid id="grd_serialno" nodeset="/root/main/list/serialnolist" caption="자산코드^Serial No." colsep="^" colwidth="83, 126" ellipsis="true" extendlastcol="scroll" rowheader="update" rowsep="|" tooltip="true" style="left:5px; top:35px; width:260px; height:295px; ">
- <col ref="fixasetcd" type="output"/>
- <col ref="mngtno" type="input"/>
- </datagrid>
- <button id="button5" class="btn4_letter2" style="left:95px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckSaveData() == false)return;
-
- if(sch_select.selectedIndex == 0)
- {
- fSettingSaveInData();
- model.setValue("/root/send/fixplceord/fixplceordlist", grd_fixplceord.getUpdateData());
- submit("TXRSI02501");
- }
- else
- {
- model.removenode("/root/send/fixplcewin/fixplcewinlist");
- model.makeNode("/root/send/fixplcewin/fixplcewinlist");
- model.setValue("/root/send/fixplcewin/fixplcewinlist" ,grd_fixplcewin.getUpdateData());
- submit("TXRSI02502");
- }
- if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_trans" class="btn2_letter2" visibility="hidden" style="left:710px; top:3px; width:42px; height:19px; ">
- <caption>S/N</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="button2" class="btn_sw" group="tab" style="left:125px; top:106px; width:144px; height:22px; ">
- <caption>입고관리</caption>
- <toggle case="cse_win" ev:event="DOMActivate"/>
- </button>
- <button id="button6" class="btn_sw" group="tab" selected="true" style="left:0px; top:106px; width:125px; height:22px; ">
- <caption>미입고조회/입고</caption>
- <toggle case="cse_nonwin" ev:event="DOMActivate"/>
- </button>
- <input id="ipt_goodflag" ref="/root/send/goodwin/goodflag" visibility="hidden" style="left:1064px; top:45px; width:40px; height:19px; "/>
- <button id="button4" class="icon_search" visibility="hidden" style="left:591px; top:103px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="ipt_suppcustnm" ref="/root/send/goodwin/suppcustnm" class="input_fix" visibility="hidden" appearance="input" style="left:610px; top:100px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustnm.value.length == 0)
- ipt_suppcustcd.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustnm.attribute("ref")),"","suppcustcd,suppcustnm" ,
- ipt_suppcustnm,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_suppcustcd" ref="/root/send/goodwin/suppcustcd" class="input_default" visibility="hidden" appearance="output" style="left:498px; top:100px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","suplplcecd,suplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
- if(ipt_suppcustcd.value.length == 0)
- ipt_suppcustnm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,
- ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_pgm_gubun" ref="/root/send/goodwin/pgm_gubun" visibility="hidden" style="left:669px; top:45px; width:40px; height:19px; "/>
- <input id="ipt_prcsstat" ref="/root/send/goodwin/prcsstat" class="input_fix" visibility="hidden" maxlength="10" appearance="input" style="left:698px; top:45px; width:31px; height:19px; "/>
- <line id="line18" class="line_4" style="x1:1109px; y1:18px; x2:1109px; y2:88px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption11" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption12" class="search_name" style="left:775px; top:45px; width:100px; height:17px; ">입고일자 :</caption>
- <caption id="caption13" class="search_name" style="left:15px; top:46px; width:83px; height:17px; ">거 래 처 :</caption>
- <caption id="caption15" class="search_name" style="left:395px; top:71px; width:99px; height:17px; ">계산서유형 :</caption>
- <caption id="caption18" class="search_name" style="left:775px; top:71px; width:99px; height:17px; ">계산서일자 :</caption>
- <caption id="caption19" class="search_name" visibility="hidden" style="left:400px; top:101px; width:99px; height:17px; ">보조거래처 :</caption>
- <caption id="caption20" class="search_name" style="left:395px; top:19px; width:96px; height:17px; ">입고부서 :</caption>
- <caption id="caption21" class="search_name" style="left:395px; top:45px; width:99px; height:17px; ">입고담당자 :</caption>
- <caption id="cap_paycond" class="search_name" style="left:15px; top:71px; width:83px; height:17px; ">지불 필 :</caption>
- <select1 id="rdo_paycond" ref="/root/send/goodwin/paycond" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:100px; top:69px; width:185px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정상</label>
- <value>1</value>
- </item>
- <item>
- <label>지불 필</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_todd" ref="/root/send/goodwin/todd" class="input_s_essential" inputtype="date" style="left:995px; top:18px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/send/goodwin/fromdd" class="input_s_essential" inputtype="date" style="left:878px; top:18px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption4" style="left:980px; top:18px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <caption id="caption7" class="search_name" style="left:747px; top:19px; width:137px; height:17px; ">구매일자(조회) :</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button1" class="btn3_letter6" visibility="hidden" style="left:57px; top:3px; width:104px; height:22px; ">
- <caption>입고전표관리</caption>
- </button>
- <button id="button3" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckSaveData() == false)return;
-
- if(sch_select.selectedIndex == 0)
- {
- fSettingSaveInData();
- model.setValue("/root/send/fixplceord/fixplceordlist", grd_fixplceord.getUpdateData());
- submit("TXRSI02501");
- }
- else
- {
- model.removenode("/root/send/fixplcewin/fixplcewinlist");
- model.makeNode("/root/send/fixplcewin/fixplcewinlist");
- model.setValue("/root/send/fixplcewin/fixplcewinlist" ,grd_fixplcewin.getUpdateData());
- submit("TXRSI02502");
- }
- if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|