123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <goodwin>
- <goodwinlist/>
- <goodmaxwinno/>
- </goodwin>
- </list>
- <DeptWinnoLists>
- <winnolist/>
- </DeptWinnoLists>
- </main>
- <init>
- <winqty/>
- <winamt/>
- <paycond>
- <label>정상</label>
- <value>1</value>
- <label>지불필</label>
- <value>2</value>
- </paycond>
- </init>
- <send>
- <goodwin>
- <instcd/>
- <goodflag/>
- <winpsn/>
- <winpsnnm/>
- <windeptcd/>
- <windeptnm/>
- <suplplcecd/>
- <suplplcenm/>
- <windd/>
- <winno/>
- <iokind/>
- <retrmaxwinnoyn/>
- <calcdocudd/>
- <calcdocukind/>
- <paycond/>
- <samewinno/>
- <suppcustcd/>
- <suppcustnm/>
- </goodwin>
- <save>
- <goodwinlist/>
- <interfacecustcdlist>
- <purc_main_suplplcecd/>
- <purc_main_suplplcecd2/>
- <purc_main_suplplcecd3/>
- <drg_main_suplplcecd/>
- </interfacecustcdlist>
- </save>
- </send>
- </root>
- </instance>
- <bind id="winpackqty" ref="/root/main/list/goodwin/goodwinlist/winpackqty" calculate="../winqty div ../winpackcntperunit"/>
- <bind id="winamt" ref="/root/main/list/goodwin/goodwinlist/winamt" calculate="(../winpackqty *../winpackcntperunit) * ../winunitcost"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/goodwin"/>
- <submission id="TXRSI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp">"</submission>
- <submission id="TRRSI00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/DeptReqnoLists"/>
- </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() {
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
- //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- //misfComboComCdListMulti("Z0007,R0025","cmb_instcd,cmb_goodflag");
- misfComboComCdListMulti("R0109","cmb_calcdocukind");
-
- rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "I","N","E","","");
- //if(cmb_iokindcd.length> 0) cmb_iokindcd.selectedindex= 0;
- misfGridInit(grd_goodwin);
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_windeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_windeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- model.setValue(ipt_winpsn.attribute("ref") , getUserInfo("userid"));
- model.setValue(opt_winpsnnm.attribute("ref") , getUserInfo("usernm"));
- model.setValue(ipt_windd.attribute("ref") , cvtdate.getDateFormat("YYYYMMDD"));
- model.setValue(ipt_calcdocudd.attribute("ref") , cvtdate.getDateFormat("YYYYMMDD"));
- model.setValue(cmb_calcdocukind.attribute("ref") , "1");
- cmb_goodflag.select(0);
- model.setValue(cmb_iokindcd.attribute("ref") , "1C");
- misfMsterDetailSet(grd_goodwin,null, "TRRSI00401" ,"Y");
-
- // 물품구분별 권한
- fSetGoodFlagAuth();
- rdo_paycond.select(0);
- //입고번호를 조회한다
- fDeptWinNoQuery();
- fSum();
- model.refresh();
- }
- function fAfterRetrieve()
- {
- var winqty = 0;
- var winamt = 0;
- for(var currow = grd_goodwin.fixedRows ; currow < grd_goodwin.rows ; currow++)
- {
- winqty = winqty + parseFloat( grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winqty")));
- winamt = winamt + 0 + parseFloat(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winamt")));
- }
-
- model.setValue(ipt_sumwinqty.attribute("ref"),grd_goodwin.rows - grd_goodwin.fixedRows);
- model.setValue(opt_sumwinamt.attribute("ref"),winamt);
-
- //model.setValue(cmb_winno.attribute("ref"),model.getValue("/root/main/list/goodwin/goodmaxwinno/winno"));
- model.refresh();
- }
- function fSettingGoodList(pnode, nodename, userqtynm){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = grd_goodwin.rows - grd_goodwin.fixedRows;
-
- if(model.getValue(grd_goodwin.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
- if(addRow > grd_goodwin.rows - grd_goodwin.fixedRows)
- {
- misfGridIUD(grd_goodwin,"A");
- addRow = grd_goodwin.rows - grd_goodwin.fixedRows;
- fDefaultSetting(addRow );
- }
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodmodel"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/prodcmpynm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/prodcmpynm"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winpackqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/" + userqtynm));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winpackunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/" + userqtynm));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/suplplcecd", model.getValue(pnode +"/" + nodename + "[" + j + "]/maincustlastsuplplce"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/suplplcenm", model.getValue(pnode +"/" + nodename + "[" + j + "]/maincustlastsuplplcenm"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/suppcustcd", model.getValue(pnode +"/" + nodename + "[" + j + "]/suppcustcd"));
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/suppcustnm", model.getValue(pnode +"/" + nodename + "[" + j + "]/suppcustnm"));
- grd_goodwin.cellAttribute("disabled", addRow , grd_goodwin.colRef("goodcd" )) = "false";
- grd_goodwin.cellAttribute("disabled", addRow , grd_goodwin.colRef("delivedeptnm")) = "true";
- if(model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty") != "0" && model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty").length>0)
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winpackcntperunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/exchqty"));
- else
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winpackcntperunit" ,"1");
- model.setValue(grd_goodwin.nodeset + "[" + addRow + "]/winunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
-
- addRow = addRow + 1;
- }
- model.recalculate();
- model.refresh();
- }
- function fDefaultSetting(prow)
- {
- var grd_setting=grd_goodwin;
- model.setValue(grd_setting.nodeset+"["+prow+"]/instcd",model.getValue("/root/send/goodwin/instcd"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/goodflag",model.getValue("/root/send/goodwin/goodflag"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/winno",model.getValue("/root/send/goodwin/winno"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/windd",model.getValue("/root/send/goodwin/windd"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/winpsn",model.getValue("/root/send/goodwin/winpsn"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/windeptcd",model.getValue("/root/send/goodwin/windeptcd"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/iokind",model.getValue(cmb_iokindcd.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+"]/calcdocudd",ipt_calcdocudd.value);
- model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocukind",cmb_calcdocukind.value);
- model.setValue(grd_setting.nodeset+"["+prow+"]/paycond",rdo_paycond.value);
-
- }
- function fGetMaxWinSeqNo()
- {
- var maxwinseqno = "";
- for(var currow = grd_goodwin.fixedRows ; currow < grd_goodwin.rows; currow++)
- {
- if(maxwinseqno < grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winseqno")))
- maxwinseqno = grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winseqno"));
- }
-
- if(maxwinseqno.length == 0)maxwinseqno = "001";
- else maxwinseqno = parseInt(maxwinseqno) + 1;
-
- maxwinseqno = "" + maxwinseqno;
- return maxwinseqno.getLeftPad(3,"0");
- }
- function fCheckSaveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- return false;
- }
- if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
- {
- messageBox("입고일자를 " ,"C001");
- model.setFocus("ipt_windd");
- return false;
- }
- if(model.getValue(ipt_winpsn.attribute("ref")).length== 0 )
- {
- messageBox("입고담당자를 " ,"C001");
- model.setFocus("ipt_winpsn");
- return false;
- }
- if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
- {
- messageBox("입고부서를 " ,"C001");
- model.setFocus("ipt_windeptcd");
- return false;
- }
- var winqty = 0;
- var delivedeptqty = 0;
- var stocqty = 0;
-
- for(var currow = grd_goodwin.fixedRows ; currow < grd_goodwin.rows ; currow++)
- {
- if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("goodcd")).length == 0)
- {
- messageBox(currow + " 번째 물품코드를 " ,"C001");
- grd_goodwin.row = currow;
- grd_goodwin.col= grd_goodwin.colRef("goodcd");
- grd_goodwin.editCell();
- return false;
- }
- // else
- // {
- // for(srcrow = currow + 1 ; srcrow < grd_goodwin.rows ; srcrow++)
- // {
- // if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("goodcd")) == grd_goodwin.valueMatrix(srcrow , grd_goodwin.colRef("goodcd")))
- // {
- // messageBox("동일 물품코드가 [" + (currow - grd_goodwin.fixedRows + 1)+ "," + (srcrow - grd_goodwin.fixedRows + 1)+ "->" + grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("goodcd")) + "] 존재하여 저장 " ,"E001");
- // return false;
- // }
- // }
- //
- // }
- if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winqty")).length == 0)
- {
- messageBox((currow)+ " 번째 요구량을 " ,"C001");
- grd_goodwin.row = currow;
- grd_goodwin.col= grd_goodwin.colRef("winqty");
- grd_goodwin.editCell();
- return false;
- }
- if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winunitcost")) == 0)
- {
- messageBox((currow)+ " 번째 단가를 " ,"C001");
- grd_goodwin.row = currow;
- grd_goodwin.col= grd_goodwin.colRef("winunitcost");
- grd_goodwin.editCell();
- return false;
- }
- if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winamt")) == 0)
- {
- messageBox((currow)+ " 번째 금액을 " ,"C001");
- grd_goodwin.row = currow;
- grd_goodwin.col= grd_goodwin.colRef("winamt");
- grd_goodwin.editCell();
- return false;
- }
-
- if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("delivedeptnm")) == "")
- {
- messageBox((currow)+ " 번째 불출부서를 " ,"C001");
- grd_goodwin.row = currow;
- grd_goodwin.col= grd_goodwin.colRef("winamt");
- grd_goodwin.editCell();
- return false;
- }
-
- winqty = grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winqty"));
- delivedeptqty = grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("delivedeptqty"));
- stocqty = winqty - delivedeptqty;
- model.setValue(grd_goodwin.nodeset + "[" + (currow - grd_goodwin.fixedRows + 1) + "]/stocqty" , stocqty);
- if(stocqty > 0)model.setValue(grd_goodwin.nodeset + "[" + (currow - grd_goodwin.fixedRows + 1) + "]/stocynindx" , "Y");
- else model.setValue(grd_goodwin.nodeset + "[" + (currow - grd_goodwin.fixedRows + 1) + "]/stocynindx" , "N");
-
- }
- return true;
- }
-
- 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(cmb_goodflag.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- }
- return false;
- }
-
- if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고일자를 " ,"C001");
- model.setFocus("ipt_windd");
- }
- 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(model.getValue(cmb_iokindcd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("입고유형을 " ,"C001");
- model.setFocus("cmb_iokindcd");
- }
- return false;
- }
- /*
- if(pmsg == true)
- {
- if(model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length== 0 )
- {
- messageBox("공급처를 " ,"C001");
- model.setFocus("ipt_maincustlastsuplplce");
- return false;
- }
- }
- */
- return true;
- }
- /* 수작업입고처리시 확인 절차*/
- function fCheckBeforeInsert()
- {
- if(model.getValue(cmb_iokindcd.attribute("ref")) == "1C" )
- {
- if(model.getValue(ipt_calcdocudd.attribute("ref")).length== 0 )
- {
- messageBox("계산서일자를 " ,"C002");
- model.setFocus("ipt_calcdocudd");
- return false;
- }
-
- if(model.getValue(cmb_calcdocukind.attribute("ref")).length== 0 )
- {
- messageBox("계산서종류를" ,"C001");
- model.setFocus("cmb_calcdocukind");
- return false;
- }
-
- if(model.getValue(rdo_paycond.attribute("ref")).length== 0 )
- {
- messageBox("지불필여부를 " ,"C001");
- model.setFocus("rdo_paycond");
- return false;
- }
- }
- return true;
- }
-
- // 물품구분별 권한체크.
- function fSetGoodFlagAuth()
- {
-
- btn_save.disabled=true;
- btn_insert.disabled=true;
- btn_choidel.disabled=true;
-
- rszfGetPurcGoodFlagAuthInfo(cmb_instcd.value , cmb_goodflag.value, getUserInfo("userid"), "%");
-
- if(rszfGetGoodFlagAuthInfoByCond("goodflagauth") =="Y")
- {
- btn_save.disabled=false;
- btn_insert.disabled=false;
- btn_choidel.disabled=false;
- }
- }
-
- // 입고부서의 입고일자별 입고번호를 조회한다
- function fDeptWinNoQuery() {
- if (model.getValue(cmb_goodflag.attribute("ref")) != "" && // 물품구분
- model.getValue(ipt_windeptcd.attribute("ref")) != "" && // 입고부서
- model.getValue(ipt_windd.attribute("ref")) != "" && // 입고일자
- model.getValue(cmb_iokindcd.attribute("ref")) != "") // 입고유형
- {
- model.resetInstanceNode("/root/main/DeptWinnoLists/winnolist");
- submit("TRRSI00402");
-
- cmb_winno.refresh();
- cmb_winno.select(0);
- }
- }
- function fSum()
- {
-
- var sumwinqty=0, sumwinamt=0;
- for (var i = grd_goodwin.fixedRows; i<grd_goodwin.rows; i++){
- sumwinqty += parseFloat(grd_goodwin.valueMatrix(i, grd_goodwin.colRef("winqty")));
- sumwinamt += parseFloat(grd_goodwin.valueMatrix(i, grd_goodwin.colRef("winamt")));
- }
- model.setValue(ipt_sumwinqty.attribute("ref"), sumwinqty);
- model.setValue(opt_sumwinamt.attribute("ref"), sumwinamt);
- 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:38; width:1195; height:744; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:126px; x2:1195px; y2:126px; "/>
- <datagrid id="grd_goodwin" nodeset="/root/main/list/goodwin/goodwinlist" caption="NO^순번^입고번호^물품코드*^품명^규격^모델^제조회사^주거래처^보조거래처^포장수량^포장수량^포장수량^입고량^입고량^단가^입고금액^불출부서^불출부서" colsep="^" colwidth="12, 9, 129, 90, 236, 131, 98, 81, 112, 111, 32, 30, 30, 37, 54, 73, 84, 99, 19, 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" dataheight="25" ellipsis="true" extendlastcol="scroll" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:130px; width:1195px; height:594px; ">
- <col ref="rowno" visibility="hidden" style="text-align:right; "/>
- <col ref="winseqno" visibility="hidden" style="text-align:center; "/>
- <col ref="winputno" style="text-align:center; "/>
- <col disabled="true" ref="goodcd" type="inputbutton" _chartype="upper"/>
- <col ref="goodnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodspec" style="text-align:left; padding-left:10; "/>
- <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
- <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
- <col ref="suplplcenm" style="text-align:left; padding-left:10; "/>
- <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
- <col ref="winpackqty" format="#,###" maxlength="9" style="text-align:right; "/>
- <col ref="winpackunit" style="text-align:center; "/>
- <col ref="winpackcntperunit" format="#,###" maxlength="9" style="text-align:right; "/>
- <col ref="winqty" type="input" format="(-)#,###" maxlength="9" style="text-align:right; "/>
- <col ref="winunit" style="text-align:center; "/>
- <col ref="winunitcost" type="input" format="(-)#,###" maxlength="14" style="text-align:right; "/>
- <col ref="winamt" format="#,###" maxlength="14" style="left:1002px; top:23px; width:84px; height:23px; text-align:right; "/>
- <col disabled="true" ref="delivedeptnm" type="input" style="text-align:left; padding-left:10; "/>
- <col ref="delivedeptbtn" type="inputbutton"/>
- <col ref="winno" visibility="hidden"/>
- <col ref="delivedeptqty" visibility="hidden"/>
- <col ref="stocqty" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="windd" visibility="hidden"/>
- <col ref="winpsn" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="installplcecd" visibility="hidden"/>
- <col ref="paycond" visibility="hidden"/>
- <col ref="temppay" visibility="hidden"/>
- <col ref="calcdocukind" visibility="hidden"/>
- <col ref="elctstmntyn" visibility="hidden"/>
- <col ref="iokind" visibility="hidden"/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="purcdmnddd" visibility="hidden"/>
- <col ref="purcdmndno" visibility="hidden"/>
- <col ref="purcdmndseq" visibility="hidden"/>
- <col ref="deliveno" visibility="hidden"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="bnscd" visibility="hidden"/>
- <col ref="calcdocudd" visibility="hidden"/>
- <col ref="profno" visibility="hidden"/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="valiterm" visibility="hidden"/>
- <col ref="stocynindx" visibility="hidden"/>
- <col ref="chkdd" visibility="hidden"/>
- <col ref="chkpsn" visibility="hidden"/>
- <col ref="chkyn" visibility="hidden"/>
- <col ref="slipdd" visibility="hidden"/>
- <col ref="slipno" visibility="hidden"/>
- <col ref="suppcustcd" visibility="hidden"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="prewinqty" visibility="hidden"/>
- <col ref="minexch" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="samewinno" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if (grd_goodwin.col == grd_goodwin.colRef("goodcd") && grd_goodwin.rowStatus(grd_goodwin.row) == "1" ) {//구성물품코드를 눌렀을 경우
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfOpenPopUpListByWndName(grd_goodwin,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag");
-
- var cur_row = grd_goodwin.row;
- var status = grd_goodwin.valueMatrix(cur_row, grd_goodwin.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "goodwinlist");
-
- fSettingGoodList("/root/copynode", "goodwinlist" , "userqty");
- }
-
- else if (grd_goodwin.col == grd_goodwin.colRef("delivedeptbtn") ) {// 그리드 부서명 버튼 클릭
- //grd_goodwin.cellAttribute("disabled", grd_goodwin.row , grd_goodwin.colRef("delivedeptnm")) = "false";
- var recv_list = "delivedeptcd,delivedeptnm";
- // misfOpenPopUpList("02", grd_psgedeptlist,"", recv_list,cmb_instcd_search.value,"instcd") ;
- misfOpenPopUpList("02", grd_goodwin,"", recv_list) ;
- var cur_row = grd_goodwin.row;
- var status = grd_goodwin.valueMatrix(cur_row, grd_goodwin.colRef("m"));
- if(status !="insert" && status !="delete") grd_goodwin.addStatus(cur_row,"update");
- }
- fSum();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(grd_goodwin.col == grd_goodwin.colRef("goodcd") && grd_goodwin.valueMatrix(grd_goodwin.row, grd_goodwin.colRef("goodcd")).length> 0) {
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/goodcd") + ",,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm,exchqty,goodunitcost",grd_goodwin,"SPRSD00190","instcd,goodflag","cmb_instcd," + model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/goodflag"),"Y");
- model.refresh();
-
- if( grd_goodwin.valueMatrix(grd_goodwin.row, grd_goodwin.colRef("goodnm")).length> 0)
- {
- if(model.getValue("/root/init/main/goodlist/exchqty") > 0) model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/winpackcntperunit",model.getValue("/root/init/main/goodlist/exchqty") );
- else model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/winpackcntperunit","1");
-
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winqty" ,model.getValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/winpackqty"));
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackunit" ,model.getValue("/root/init/main/goodlist/purcunit"));
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunit" , model.getValue("/root/init/main/goodlist/deliveunit"));
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackqty" ,1);
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunitcost" , model.getValue("/root/init/main/goodlist/goodunitcost"));
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/suplplcecd" , model.getValue("/root/init/main/goodlist/maincustlastsuplplce"));
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/suplplcenm" , model.getValue("/root/init/main/goodlist/maincustlastsuplplcenm"));
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/suppcustcd" , model.getValue("/root/init/main/goodlist/suppcustcd"));
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/suppcustnm" , model.getValue("/root/init/main/goodlist/suppcustnm"));
- }
-
- model.recalculate();
- model.refresh();
-
- var cur_row = grd_goodwin.row;
- var status = grd_goodwin.valueMatrix(cur_row, grd_goodwin.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_goodwin.valueMatrix(cur_row, grd_goodwin.colRef("goodnm")).length == 0)
- {
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/goodcd" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/goodnm" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/goodspec" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/goodmodel" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/prodcmpynm" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackqty" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackunit" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunit" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winqty" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winpackcntperunit" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunitcost" , "");
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winamt" , "");
- grd_goodwin.col = grd_goodwin.colRef("goodcd");
- grd_goodwin.editCell();
- }
- if(CSV.length > 0)
- {
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1)+ "]/goodcd","");
- setCSVToNode("/root/copynode", CSV, "goodwinlist");
- fSettingGoodList("/root/copynode", "goodwinlist" , "userqty");
- }
- }
-
- if(grd_goodwin.col == grd_goodwin.colRef("delivedeptnm")) {
- if(grd_goodwin.valueMatrix(grd_goodwin.row, grd_goodwin.col) == '')
- {
- grd_goodwin.valueMatrix(grd_goodwin.row, grd_goodwin.colRef("delivedeptcd")) = '';
- }else{
- misfValidationCheck("02", "", "delivedeptcd,delivedeptnm" );
- }
- }
- fSum();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)
- {
- if(grd_goodwin.colAttribute(grd_goodwin.col + 1, "type").indexOf ("input") > -1)
- {
- for(curcol = grd_goodwin.col -1 ; curcol > -1 ; curcol--)
- {
- if(grd_goodwin.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_goodwin.col = curcol;
- grd_goodwin.editCell();
- return;
- }
- }
- }
- }
- else
- {
- if(grd_goodwin.colAttribute(grd_goodwin.col, "type").indexOf ("input") == -1)
- {
- if(grd_goodwin.col - 1 == grd_goodwin.colRef("goodcd") && grd_goodwin.valueMatrix(grd_goodwin.row, grd_goodwin.col - 1).length == 0)
- {
- grd_goodwin.col = grd_goodwin.colRef("goodcd");
- grd_goodwin.editCell();
- return;
- }
- for(curcol = grd_goodwin.col ; curcol <grd_goodwin.cols ; curcol++)
- {
- if(grd_goodwin.colAttribute(curcol, "type").indexOf ("input") > -1)
- {
- grd_goodwin.col = curcol;
- grd_goodwin.editCell();
- return;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:5px; top:110px; width:118px; height:23px; ">입고내역</caption>
- <select1 id="cmb_winno" ref="/root/send/goodwin/winno" class="combo_default" appearance="minimal" style="left:193px; top:45px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/DeptWinnoLists/winnolist">
- <label ref="winno"/>
- <value ref="winno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select id="chk_winnonew" ref="/root/send/goodwin/samewinno" overflow="visible" appearance="full" style="left:256px; top:46px; width:139px; height:18px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>동일입고번호로저장</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <output id="ipt_sumwinqty" ref="/root/init/winqty" class="output_default" format="(-)#,###" style="left:739px; top:105px; width:64px; height:19px; text-align:right; "/>
- <output id="opt_sumwinamt" ref="/root/init/winamt" class="output_default" format="(-)#,###" style="left:888px; top:105px; width:117px; height:19px; text-align:right; "/>
- <input id="ipt_windd" ref="/root/send/goodwin/windd" class="input_s_essential" inputtype="date" style="left:100px; top:45px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //입고번호를 조회한다
- fDeptWinNoQuery();
- if (cmb_winno.value != "")
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_iokindcd" ref="/root/send/goodwin/iokind" class="combo_s_essential" appearance="minimal" style="left:508px; top:45px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ioflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //입고번호를 조회한다
- fDeptWinNoQuery();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <output id="opt_winpsnnm" ref="/root/send/goodwin/winpsnnm" class="output_fix" appearance="output" style="left:865px; top:45px; width:245px; height:19px; "/>
- <input id="ipt_winpsn" ref="/root/send/goodwin/winpsn" class="input_essential" visibility="hidden" maxlength="10" appearance="input" style="left:708px; top:20px; width:41px; height:19px; "/>
- <input id="ipt_windeptnm" ref="/root/send/goodwin/windeptnm" class="input_fix" appearance="input" style="left:217px; top:72px; width:178px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_windeptnm.value.length == 0)
- ipt_windeptcd.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
- "deptnm," + ipt_windeptnm.value, "", "windeptcd,windeptnm",
- ipt_windeptnm, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_windeptcd" ref="/root/send/goodwin/windeptcd" class="input_s_essential" maxlength="10" appearance="input" style="left:100px; top:72px; width:92px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_windeptcd.value.length == 0)
- ipt_windeptnm.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
- "deptcd," + ipt_windeptcd.value, "", "windeptcd,windeptnm",
- ipt_windeptcd, "SPRPZ00200", "","");
- model.refresh();
- fDeptWinNoQuery();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_windeptcd" class="icon_search" style="left:197px; top:75px; 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();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/goodwin/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:19px; width:295px; 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[
- fDeptWinNoQuery();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_goodflag" ref="/root/send/goodwin/goodflag" class="combo_s_essential" appearance="minimal" style="left:508px; top:19px; width:240px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 물품구분별 권한
- fSetGoodFlagAuth();
- //입고번호를 조회한다
- fDeptWinNoQuery();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodwin/suplplcenm" class="input_fix" appearance="input" style="left:614px; top:72px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_maincustlastsuplplcenm.value.length == 0)
- ipt_maincustlastsuplplce.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
- ipt_maincustlastsuplplcenm,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_maincustlastsuplplce" ref="/root/send/goodwin/suplplcecd" class="input_default" style="left:509px; top:72px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_maincustlastsuplplce.value.length == 0)
- ipt_maincustlastsuplplcenm.value = "";
- else
- 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");
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:594px; top:74px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_choidel" class="btn2_letter3" style="left:1142px; top:105px; width:53px; height:29px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodwin, "D");
- fSum();
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:1087px; top:105px; width:53px; height:29px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(true) == false)return;
- if(fCheckBeforeInsert() == false)return;
- misfGridIUD(grd_goodwin, "A");
- grd_goodwin.row = grd_goodwin.rows -grd_goodwin.fixedRows ;
- fDefaultSetting(grd_goodwin.row );
- grd_goodwin.col = grd_goodwin.colRef("goodcd");
- grd_goodwin.editCell();
- grd_goodwin.cellAttribute("disabled", grd_goodwin.row , grd_goodwin.colRef("goodcd" )) = "false";
- grd_goodwin.cellAttribute("disabled", grd_goodwin.row , grd_goodwin.colRef("delivedeptnm")) = "true";
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:40px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
- //model.setValue("/root/send/goodwin/retrmaxwinnoyn","Y");
- //model.setValue(cmb_winno.attribute("ref"),"");
- misfMsterDetailRetrieve();
- fAfterRetrieve();
-
- fSum();
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:1120px; y1:21px; x2:1120px; y2:90px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption8" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption11" class="search_name" style="left:10px; top:74px; width:86px; height:17px; ">입고부서 :</caption>
- <caption id="caption13" class="search_name" style="left:409px; top:19px; width:91px; height:17px; ">물품구분 :</caption>
- <caption id="caption14" class="search_name" style="left:409px; top:74px; width:92px; height:17px; ">주 거래처 :</caption>
- <caption id="caption17" class="search_name" style="left:10px; top:46px; width:86px; height:17px; ">입고일자 :</caption>
- <caption id="caption18" class="search_name" style="left:755px; top:46px; width:104px; height:17px; ">입고담당자 :</caption>
- <caption id="caption19" class="search_name" style="left:409px; top:46px; width:101px; height:17px; ">입고유형 :</caption>
- <caption id="caption1" style="left:675px; top:101px; width:64px; height:33px; font-weight:bold; vertical-align:middle; ">입고건수 :</caption>
- <caption id="caption2" style="left:824px; top:101px; width:74px; height:33px; font-weight:bold; vertical-align:middle; ">입고합계 :</caption>
- <caption id="caption4" class="search_name" style="left:755px; top:19px; width:104px; height:17px; ">지불필여부 :</caption>
- <select1 id="rdo_paycond" ref="/root/send/goodwin/paycond" visibility="visible" overflow="visible" appearance="full" cellspacing="30" cols="2" style="left:865px; top:19px; width:245px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/paycond">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="button2" class="btn2_letter4" style="left:1021px; top:105px; width:64px; height:19px; ">
- <caption>마이너스</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iSelectedCnt = grd_goodwin.selectedCells.length;
- for (var i=0; i<iSelectedCnt; i++) {
- var iRowIdx = grd_goodwin.selectedCells.item(i).row;
- grd_goodwin.valueMatrix(iRowIdx, grd_goodwin.colRef("winqty" ))= grd_goodwin.valueMatrix(iRowIdx, grd_goodwin.colRef("winqty" )) * -1;
- }
- model.recalculate();
- fSum();
- ]]>
- </script>
- </button>
- <caption id="caption22" style="left:295px; top:106px; width:129px; height:17px; font-weight:bold; ">계산서일자/유형:</caption>
- <select1 id="cmb_calcdocukind" ref="/root/send/goodwin/calcdocukind" class="combo_default" appearance="minimal" style="left:535px; top:105px; width:111px; 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_default" inputtype="date" style="left:406px; top:105px; width:120px; height:19px; text-align:center; "/>
- <input id="ipt_suppcustcd" ref="/root/send/goodwin/suppcustcd" class="input_default" style="left:865px; top:72px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustcd.value.length == 0)
- ipt_suppcustcd.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>
- <caption id="caption5" class="search_name" style="left:755px; top:74px; width:104px; height:17px; ">보조 거래처 :</caption>
- <button id="button4" class="icon_search" style="left:950px; top:74px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/send/goodwin/suppcustnm" class="input_fix" appearance="input" style="left:975px; top:72px; width:135px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suppcustcd.value.length == 0)
- ipt_suppcustcd.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();
- ]]>
- </script>
- </input>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button1" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; 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="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- </button>
- <line id="line2" 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 (grd_goodwin.rows - grd_goodwin.fixedRows == 0){
- messageBox("저장할 데이타가 " ,"E014");
- return;
- }
-
- if(fCheckSaveData() == false)return;
-
- /* 기타입고는 인터페이스 전달하지 않는다 */
- //model.setValue("/root/send/save/interfacecustcdlist/purc_main_suplplcecd",rszfGetMainCust(purc_main_suplplcecd));
- //model.setValue("/root/send/save/interfacecustcdlist/drg_main_suplplcecd",rszfGetMainCust(drg_main_suplplcecd));
-
-
- model.setValue("/root/send/save/interfacecustcdlist/purc_main_suplplcecd",'xx');
- model.setValue("/root/send/save/interfacecustcdlist/purc_main_suplplcecd2",'xx');
- model.setValue("/root/send/save/interfacecustcdlist/purc_main_suplplcecd3",'xx');
- model.setValue("/root/send/save/interfacecustcdlist/drg_main_suplplcecd",'xx');
- //동일입고번호로저장시 체크확인
- if (model.getValue("/root/send/goodwin/samewinno") == "Y") {
- for (var liRow = grd_goodwin.fixedRows; liRow < grd_goodwin.rows; liRow++) {
- if (grd_goodwin.rowStatus(liRow) == "3") {
- // model.setValue(grd_goodwin.nodeset+"["+(liRow - grd_goodwin.fixedRows + 1)+"]/samewinno",model.getValue("/root/send/goodwin/samewinno"));
- grd_goodwin.valueMatrix(liRow, grd_goodwin.colRef("samewinno")) = "Y";
- }
- }
- }
- misfSave("TXRSI00101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error") {
- btn_search.dispatch("DOMActivate");
- if (model.getValue("/root/send/goodwin/samewinno") != "Y") {
- //입고번호를 조회한다
- fDeptWinNoQuery();
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|