1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042 |
- <?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>
- <goodwindelive>
- <goodwindelivelist/>
- </goodwindelive>
- <goodreq>
- <goodreqlist/>
- </goodreq>
- </list>
- <item/>
- </main>
- <send>
- <save>
- <goodwinlist/>
- <goodnonwinlist/>
- </save>
- <goodreq>
- <instcd/>
- <goodflag/>
- <reqfrdd/>
- <reqtodd/>
- </goodreq>
- <goodwin>
- <instcd/>
- <goodflag>PH</goodflag>
- <windd/>
- <winno/>
- <winpsn/>
- <winpsnnm/>
- <windeptcd/>
- <windeptnm/>
- <installplcecd/>
- <installplcenm/>
- <paycond/>
- <suplplcecd/>
- <suplplcenm/>
- <temppay/>
- <calcdocukind/>
- <elctstmntyn/>
- <calcdocudd/>
- <purcdmndfrdd/>
- <purcdmndtodd/>
- <addtax/>
- <proddrugsetflag/>
- <retrmaxwinnoyn/>
- </goodwin>
- <gooddmndreq>
- <instcd/>
- <goodflag/>
- <purcdmnddd/>
- <purcdmndno/>
- <purcdmndseq/>
- </gooddmndreq>
- <savenonwin>
- <goodnonwinlist/>
- </savenonwin>
- <goodwindelive>
- <instcd/>
- <goodflag/>
- <windd/>
- <winno/>
- <winseqno/>
- </goodwindelive>
- <gooddelive>
- <gooddelivelist/>
- </gooddelive>
- </send>
- <init>
- <temppay>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </temppay>
- <elctstmntyn>
- <label>예</label>
- <value>Y</value>
- <label>아니오</label>
- <value>N</value>
- </elctstmntyn>
- <winqty/>
- <winamt/>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- </root>
- </instance>
- <bind id="winqty" ref="/root/main/list/goodwin/goodwinlist/winqty" calculate="../winpackqty *../winpackcntperunit"/>
- <bind id="winamt" ref="/root/main/list/goodwin/goodwinlist/winamt" calculate="(../winpackqty *../winpackcntperunit) * ../winunitcost"/>
- <bind id="delivedeptqty" ref="/root/main/list/gooddmndreq/gooddmndreqlist/delivedeptqty" calculate="../deliveqty"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fCheckAuth();
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSI00101" ref="/root/send/goodwin" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/goodwin"/>
- <submission id="TRRSD02001" ref="/root/send/goodreq" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/goodreq"/>
- <submission id="TRRSI01802" ref="/root/send/goodwindelive" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/goodwindelive"/>
- <submission id="TXRSI00101" ref="/root/send/save" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp">"</submission>
- <submission id="TXRSO00101" ref="/root/send/gooddelive" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/temp">"</submission>
- </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");
- //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- misfGridInit(grd_goodwin);
- misfGridInit(grd_goodreq);
- misfGridInit(grd_delive);
-
- misfMsterDetailSet(grd_goodwin,null, "TRRSI00101" ,"Y");
- misfMsterDetailSet(grd_delive,grd_goodwin, "TRRSI01802" ,"N");
-
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- model.setValue(ipt_windd.attribute("ref") ,curdate);
- model.setValue(ipt_reqfrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
- model.setValue(ipt_reqtodd.attribute("ref") ,curdate);
- 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(ipt_windeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- model.setValue(ipt_winpsn.attribute("ref") , getUserInfo("userid"));
- model.setValue(ipt_winpsnnm.attribute("ref") , getUserInfo("usernm"));
- grd_goodwin.explorerbar = "sortshow";
- grd_goodreq.explorerbar = "sortshow";
-
- grd_goodreq.frozenCols = grd_goodreq.colRef("goodnm");
- grd_goodwin.frozenCols = grd_goodwin.colRef("winunit");
-
- if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
- 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(cmb_goodflag.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- }
- 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)
- {
- if(model.getValue(ipt_reqfrdd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("발주시작일자 " ,"C001");
- model.setFocus("ipt_reqfrdd");
- }
- return false;
- }
- if(model.getValue(ipt_reqtodd.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("발주종료일자 " ,"C001");
- model.setFocus("ipt_reqtodd");
- }
- 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_goodreq;
- else grd_setting = grd_goodwin;
- model.setValue(grd_setting.nodeset+"["+prow+"]/instcd",model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_setting.nodeset+"["+prow+"]/goodflag",model.getValue(cmb_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",model.getValue("/root/send/goodwin/paycond"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/temppay",model.getValue("/root/send/goodwin/temppay"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocukind",model.getValue("/root/send/goodwin/calcdocukind"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocudd",model.getValue("/root/send/goodwin/calcdocudd"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/suplplcecd",model.getValue("/root/send/goodwin/suplplcecd"));
- model.setValue(grd_setting.nodeset+"["+prow+"]/winseqno",fGetMaxWinSeqNo());
- model.setValue(grd_setting.nodeset+"["+prow+"]/iokind","Y");
- model.setValue(grd_setting.nodeset+"["+prow+"]/delivedeptqty",0);
- model.setValue(grd_setting.nodeset+"["+prow+"]/deliveno",0);
- model.setValue(grd_setting.nodeset+"["+prow+"]/stocqty",0);
- }
-
- 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 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"));
- 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 fSettingPreSaveData()
- {
- for(var liRow = grd_goodreq.fixedRows ; liRow < grd_goodreq.rows ; liRow++)
- {
- //출고생성되지 않은 데이타라면 출고시 입력을 위해 insert logic으로 구현한다
- if((grd_goodreq.valueMatrix(liRow ,"delivedd").length == 0 ||
- grd_goodreq.valueMatrix(liRow ,"deliveno").length == 0 ||
- grd_goodreq.valueMatrix(liRow ,"deliveseqno").length == 0) &&
- grd_goodreq.rowStatus(liRow) == "1")grd_goodreq.rowStatus(liRow) = "2";
- }
- }
-
- function fSettingSaveOutData(pAll)
- {
- var chkins = false;
- for(var liRow = grd_delive.fixedRows ; liRow < grd_delive.rows ; liRow++)
- {
- if((grd_delive.valueMatrix(liRow ,grd_delive.colRef("delivedd")).length == 0 ||
- grd_delive.valueMatrix(liRow ,grd_delive.colRef("deliveno")).length == 0 ||
- grd_delive.valueMatrix(liRow ,grd_delive.colRef("deliveseqno")).length == 0))
- {
- chkins = true;
- break;
- }
- }
-
- if(chkins == true)
- {
- if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
- {
- messageBox("입고부서를 " ,"C002");
- model.setFocus("ipt_windeptcd");
- return false;
- }
- if(model.getValue(ipt_winpsn.attribute("ref")).length== 0 )
- {
- messageBox("입고자를 " ,"C002");
- model.setFocus("ipt_winpsn");
- return false;
- }
- }
- var rowstatus = "";
- for(var liRow = grd_delive.fixedRows ; liRow < grd_delive.rows ; liRow++)
- {
- if(pAll)model.setValue(grd_delive.nodeset + "[" + (liRow - grd_delive.fixedRows + 1) + "]/delivedeptqty" , model.getValue(grd_delive.nodeset + "[" + (liRow - grd_delive.fixedRows + 1) + "]/stocqty"));
- //출고생성되지 않은 데이타라면 출고시 입력을 위해 insert logic으로 구현한다
- if((grd_delive.valueMatrix(liRow ,grd_delive.colRef("delivedd")).length == 0 ||
- grd_delive.valueMatrix(liRow ,grd_delive.colRef("deliveno")).length == 0 ||
- grd_delive.valueMatrix(liRow ,grd_delive.colRef("deliveseqno")).length == 0))
- {
- model.setValue(grd_delive.nodeset + "[" + (liRow - grd_delive.fixedRows + 1) + "]/deliveunit" , grd_delive.valueMatrix(liRow ,grd_delive.colRef("winpackunit")));
- model.setValue(grd_delive.nodeset + "[" + (liRow - grd_delive.fixedRows + 1) + "]/delivedeptcd" , model.getValue(ipt_windeptcd.attribute("ref")));
- model.setValue(grd_delive.nodeset + "[" + (liRow - grd_delive.fixedRows + 1) + "]/delivepsn" , model.getValue(ipt_winpsn.attribute("ref")));
- if(grd_delive.rowStatus(liRow) == "2" || grd_delive.rowStatus(liRow) == "0")grd_delive.rowStatus(liRow) = "1";
- }
- }
-
- model.setValue("/root/send/gooddelive/gooddelivelist", grd_delive.getUpdateData());
- submit("TXRSO00101");
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error")submit("TRRSI01802");
- else
- {
- for(var liRow = grd_delive.fixedRows ; liRow < grd_delive.rows ; liRow++)
- {
- //출고생성되지 않은 데이타라면 출고시 입력을 위해 insert logic으로 구현한다
- if((grd_delive.valueMatrix(liRow ,grd_delive.colRef("delivedd")).length == 0 ||
- grd_delive.valueMatrix(liRow ,grd_delive.colRef("deliveno")).length == 0 ||
- grd_delive.valueMatrix(liRow , grd_delive.colRef("deliveseqno")).length == 0) &&
- grd_delive.rowStatus(liRow) == "1")grd_delive.rowStatus(liRow) = "2";
- }
- }
- }
- 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;
- }
- */
- if(sch_select.selectedIndex == 1)
- {
- for(var currow = grd_goodwin.fixedRows ; currow < grd_goodwin.rows ; currow++)
- {
- if((grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winpackqty")).length == 0 || grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winpackqty")) == 0) ||
- (grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winpackcntperunit")).length == 0 || grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winpackcntperunit")) == 0))
- {
- messageBox(currow + " 번째 입고량을 " ,"C001");
- grd_goodwin.endEditCell();
- grd_goodwin.row = currow;
- grd_goodwin.col= grd_goodwin.colRef("winpackqty");
- grd_goodwin.editCell();
- return false;
- }
- if(grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winunitcost")).length == 0 || grd_goodwin.valueMatrix(currow , grd_goodwin.colRef("winunitcost")) == 0)
- {
- messageBox(currow + " 번째 단가를 " ,"C001");
- grd_goodwin.endEditCell();
- grd_goodwin.row = currow;
- grd_goodwin.col= grd_goodwin.colRef("winunitcost");
- grd_goodwin.editCell();
- return false;
- }
-
- 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;
- }
- }
- }
- }
- }
- else
- {
- 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("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 -1)+ " 번째 금액을 " ,"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 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(ipt_winno.attribute("ref"),model.getValue("/root/main/list/goodwin/goodmaxwinno/winno"));
- 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:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_winno" ref="/root/send/goodwin/winno" class="input_default" editable="false" maxlength="4" style="left:424px; top:18px; width:34px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/goodwin/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:18px; width:100px; 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[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_goodflag" ref="/root/send/goodwin/goodflag" class="combo_s_essential" appearance="minimal" style="left:100px; top:44px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>약품</label>
- <value>P</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_windd" ref="/root/send/goodwin/windd" class="input_s_essential" inputtype="date" style="left:330px; top:18px; width:93px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_winpsnnm" ref="/root/send/goodwin/winpsnnm" class="input_fix" appearance="input" style="left:705px; top:44px; width:155px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_winpsnnm.value.length == 0)
- ipt_winpsn.value = "";
- else
- var recv_list = "winpsn,winpsnnm";
- misfValidationCheck("01-2","", recv_list);
-
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_winpsn" class="icon_search" style="left:685px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- rszfOpenPopUpListByWndName(ipt_winpsn,"","delivepsn,delivepsnnm","SPZSU10100","","");
- var userinfo = model.getValue(gvParamPath +"/SPZSU10100_/SPZSU10100_value");
-
- if(userinfo != "" && userinfo != null) {
- userinfo = userinfo.split("|");
- model.setValue(ipt_winpsn.attribute("ref"),userinfo[0]);
- model.setValue(ipt_winpsnnm.attribute("ref"),userinfo[1]);
- }
- model.refresh();
- */
-
- var recv_list = "winpsn,winpsnnm";
- misfOpenPopUpList("12", ipt_winpsn,"", recv_list) ;
- model.refresh();
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <input id="ipt_winpsn" ref="/root/send/goodwin/winpsn" class="input_fix" maxlength="10" appearance="input" style="left:590px; top:44px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_winpsn.value.length == 0)
- ipt_winpsnnm.value = "";
- else
- var recv_list = "winpsn,winpsnnm";
- misfValidationCheck("01-1","", recv_list);
-
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_search" navindex="7" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(false) == false)return;
-
- if(sch_select.selectedIndex == 0)
- {
- model.setValue("/root/send/goodreq/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue("/root/send/goodreq/goodflag" , model.getValue(cmb_goodflag.attribute("ref")));
- misfGridInit(grd_goodreq);
- submit("TRRSD02001");
- }
- else
- {
- model.setValue("/root/send/goodwin/retrmaxwinnoyn","Y");
- misfGridInit(grd_goodwin);
- misfGridInit(grd_delive);
- misfMsterDetailRetrieve();
- fAfterRetrieve();
- }
- ]]>
- </script>
- </button>
- <switch id="sch_select" style="left:0px; top:96px; width:1195px; height:638px; ">
- <case id="cse_nonwin" style="left:0px; top:0px; width:1195px; height:700px; ">
- <caption id="caption23" style="left:176px; top:6px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:73px; top:4px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:190px; top:4px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="청구일자^청구부서^청구구분^작업구분^청구순번^물품코드^물품명^규격^모델^제조회사^청구수량^청구단위^진행상태^조정수량^불출수량^조정자^미입고사유^비고^청구방법^불출구분^구매구분" colwidth="68, 89, 57, 59, 59, 84, 240, 89, 88, 73, 67, 55, 75, 60, 55, 55, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:30px; width:1193px; height:597px; ">
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="reqdeptnm"/>
- <col ref="reqflag"/>
- <col ref="workflag"/>
- <col ref="reqseqno" style="text-align:center; "/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodcmpynm"/>
- <col ref="reqqty" format="#,###" style="text-align:right; "/>
- <col ref="requnit"/>
- <col ref="deliveprcsflag"/>
- <col ref="adjtqty" format="#,###" style="text-align:right; "/>
- <col ref="deliveqty" format="#,###" style="text-align:right; "/>
- <col ref="adjtrsn" style="text-align:right; "/>
- <col ref="unwinresn"/>
- <col ref="cmt"/>
- <col ref="reqmthdflag"/>
- <col ref="deliveflag"/>
- <col ref="purcflag"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodreq.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" style="left:15px; top:4px; width:60px; height:20px; ">청구일자 :</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
- </case>
- <case id="cse_win" selected="true" style="left:0px; top:0px; width:1193px; height:700; ">
- <datagrid id="grd_goodwin" nodeset="/root/main/list/goodwin/goodwinlist" caption="순번^발주번호^물품코드*^품명^규격^모델^제조회사^포장수량^포장수량^포장수량^입고량^입고량^단가^입고금액^출고수량^잔량^기관코드^물품구분^입고일자^입고자^입고부서^장소^계산구분^가납여부^전자계산방법^전자계산유무^입출력^부서^요구일자^요구번호^요구순번^출고번호^출고순번^보나에스코드^calcdocudd^profno^계정코드^청구일자^청구번호^청구순번^valiterm^재고유무^체크일자^체크자^체크유무^슬립일자^슬립번호^공급처코드^비고^이전입고량" colwidth="52, 0, 115, 185, 100, 100, 100, 50, 80, 60, 50, 60, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:30px; width:1193px; height:267px; ">
- <col ref="winseqno" style="text-align:center; "/>
- <col ref="winno" visibility="hidden"/>
- <col ref="goodcd" type="inputbutton" _key="true"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodcmpynm"/>
- <col ref="winpackqty" type="input" format="#,###" maxlength="9" style="text-align:right; "/>
- <col ref="winpackunit"/>
- <col ref="winpackcntperunit" type="input" format="#,###" maxlength="9" style="text-align:right; "/>
- <col ref="winqty" format="#,###" maxlength="9" style="text-align:right; "/>
- <col ref="winunit"/>
- <col ref="winunitcost" type="input" format="#,###" maxlength="14" style="text-align:right; "/>
- <col ref="winamt" format="#,###" maxlength="14" style="text-align:right; "/>
- <col ref="delivedeptqty" format="#,###" maxlength="14" style="text-align:right; "/>
- <col ref="stocqty" format="#,###" maxlength="14" style="text-align:right; "/>
- <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"/>
- <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");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- //misfGridInit(grd_delive);
- misfMsterDetailRetrieve();
- ]]>
- </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(cur_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) + "]/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/purcunit"));
- 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) + "]/winpackqty" ,1);
- model.setValue(grd_goodwin.nodeset + "[" + (grd_goodwin.row - grd_goodwin.fixedRows + 1) + "]/winunitcost" , model.getValue("/root/init/main/goodlist/goodunitcost"));
- }
- 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");
- }
- }
- ]]>
- </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>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodwin.gridToInstance();
- ]]>
- </script>
-
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:4px; top:10px; width:118px; height:13px; ">입고내역</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
- <button id="btn_choidel" class="btn2_letter3" style="left:1140px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_goodwin, "D");
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:897px; top:4px; width:58px; height:20px; vertical-align:middle; ">입고합계 :</caption>
- <output id="ipt_sumwinqty" ref="/root/init/winqty" class="output_default" style="left:825px; top:4px; width:70px; height:19px; font-weight:bold; "/>
- <caption id="caption25" style="left:767px; top:4px; width:58px; height:20px; vertical-align:middle; ">입고건수 :</caption>
- <output id="opt_sumwinamt" ref="/root/init/winamt" class="output_default" format="#,###" style="left:955px; top:4px; width:125px; height:19px; font-weight:bold; "/>
- <button id="btn_insert" class="btn2_letter3" style="left:1085px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckRetrieveData(true) == false)return;
- misfGridIUD(grd_goodwin, "A");
- grd_goodwin.row = grd_goodwin.rows -grd_goodwin.fixedRows ;
- fDefaultSetting(grd_goodwin.row );
- grd_goodwin.endEditCell();
- grd_goodwin.col = grd_goodwin.colRef("goodcd");
- grd_goodwin.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_delive" class="btn2_letter5" style="left:1118px; top:299px; width:75px; height:19px; ">
- <caption>출고량조정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSettingSaveOutData(false);
- ]]>
- </script>
- </button>
- <datagrid id="grd_delive" nodeset="/root/main/list/goodwindelive/goodwindelivelist" caption="원료코드^원료약명^규격^구성^구성^출고량^잔량" colwidth="133, 470, 274, 64, 100, 64, 64, 64, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:325px; width:1193px; height:302px; ">
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="consqty" format="#,###" style="text-align:right; "/>
- <col ref="compsgoodunit"/>
- <col ref="delivedeptqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="stocqty" format="#,###" style="text-align:right; "/>
- <col ref="windd" visibility="hidden"/>
- <col ref="winno" visibility="hidden"/>
- <col ref="windeptcd" visibility="hidden"/>
- <col ref="winseqno" visibility="hidden"/>
- <col ref="winpackunit" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="adjtqty" visibility="hidden"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="deliveno" visibility="hidden"/>
- <col ref="delivedd" visibility="hidden"/>
- <col ref="deliveseqno" visibility="hidden"/>
- <col ref="delivepsn" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="predelivedeptqty" visibility="hidden"/>
- </datagrid>
- <button id="btn_alldelive" class="btn2_letter4" style="left:1052px; top:299px; width:64px; height:19px; ">
- <caption>전체출고</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSettingSaveOutData(true);
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:0px; y1:320px; x2:1193px; y2:320px; "/>
- </case>
- </switch>
- <button id="button2" class="btn_sw" group="tab" selected="true" style="left:124px; top:75px; 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:75px; width:125px; height:22px; ">
- <caption>청구조회</caption>
- <toggle case="cse_nonwin" ev:event="DOMActivate"/>
- </button>
- <input id="ipt_windeptnm" ref="/root/send/goodwin/windeptnm" class="input_fix" appearance="input" style="left:705px; top:18px; width:155px; 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_fix" maxlength="10" appearance="input" style="left:590px; top:18px; width:90px; 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();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_windeptcd" class="icon_search" style="left:685px; top:20px; 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>
- <line id="line6" class="line_4" style="x1:1110px; y1:18px; x2:1110px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption8" class="search_name" style="left:15px; top:45px; width:86px; height:17px; ">물품구분 :</caption>
- <caption id="caption11" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">기관코드 :</caption>
- <caption id="caption12" class="search_name" style="left:245px; top:19px; width:86px; height:17px; ">입고일자 :</caption>
- <caption id="caption13" class="search_name" style="left:492px; top:45px; width:102px; height:17px; ">입고담당자 :</caption>
- <caption id="caption14" class="search_name" style="left:505px; top:19px; width:86px; height:17px; ">입고부서 :</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
- misfSave("TXRSI00101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|