码迷,mamicode.com
首页 > 其他好文 > 详细

按单生产2

时间:2018-05-29 16:14:01      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:item   Plan   like   attr   技术分享   ast   routing   creat   cto   

5000163458/30_1
000000101001025920CZ
000000102001001608CZ
001201191645 

技术分享图片

 技术分享图片

 

SELECT * FROM IN_MO where so_id=5000163458 and so_line_id=30;

SELECT DEMANDLINEID,SUPPLYORDERID,DEMANDORDERID,QTYALLOCATED,ITEM FROM ABPPMGR.SUPPLYDMDPEGPLAN  WHERE  ITEM=000000102001001608CZ;--前台显示

SELECT DEMANDORDERID,DEMANDLINEID,DEMANDTYPE,ITEM,QTYINMOVE,SOURCEDATE,SUPPLYORDERID,SUPPLYTYPE,QTYALLOCATED
 FROM ABPPMGR.supplydmdpegging WHERE (DEMANDORDERID=5000163458 AND DEMANDLINEID=30_1) OR DEMANDORDERID=5000163458/30_1-MFG001  ;  --000000101002001849CZ   001201126508    000000102002000845CZ    
 
SELECT PRODUCTIONORDID,BOMID,ITEM,QTYORDERED,REQUIREDDATE,ROUTINGID,UDF_MO_FACTORY FROM ABPPMGR.PRODUCTIONORDERS WHERE PRODUCTIONORDID=5000163458/30_1-MFG001;

SELECT ENTERPRISE, ENGINE_ID, SALESORDERID, SOLINENUM, ATTRIBUTECLASS, ATTRIBUTE, RELATIONSHIP, VALUE , SYS_CREATED_BY FROM ABPPMGR.SALESORDERLINE_P WHERE ATTRIBUTECLASS LIKE %5000163458_30_1%;
SELECT * FROM ABPPMGR.PRODUCTIONORDERS_P WHERE PRODUCTIONORDERID IN (001201191645);
SELECT BOMID,ITEM,PRIORITY,ROUTINGID FROM ABPPMGR.MST_ITEMBOMROUTING WHERE ITEM in(000000101001025920CZ,000000102001001608CZ) or ITEM in(000000101001025920,000000102001001608);
SELECT * FROM ABPPMGR.FORECASTDETAIL_P ;
SELECT * FROM ABPPMGR.INVENTORYPROPERTY WHERE ITEM in(000000101001025920CZ,000000102001001608CZ) or ITEM in(000000101001025920,000000102001001608);--
SELECT * FROM ABPPMGR.SFCHEADERPROPERTY WHERE  PRODUCTIONORDERID IN (001201191645);--

 

技术分享图片技术分享图片

技术分享图片

技术分享图片技术分享图片

技术分享图片

技术分享图片

 

技术分享图片

SELECT * FROM IN_MO where so_id=5000163998 and so_line_id=30;

SELECT DEMANDLINEID,SUPPLYORDERID,DEMANDORDERID,QTYALLOCATED,ITEM FROM ABPPMGR.SUPPLYDMDPEGPLAN  WHERE  ITEM=000000102010000218CA;--前台显示

SELECT DEMANDORDERID,DEMANDLINEID,DEMANDTYPE,ITEM,QTYINMOVE,SOURCEDATE,SUPPLYORDERID,SUPPLYTYPE,QTYALLOCATED
 FROM ABPPMGR.supplydmdpegging WHERE (DEMANDORDERID=5000163998 AND DEMANDLINEID=30_1) OR DEMANDORDERID=5000163998/30_1-MFG001  ;  --000000101002001849CZ   001201126508    000000102002000845CZ    
 
SELECT PRODUCTIONORDID,BOMID,ITEM,QTYORDERED,REQUIREDDATE,ROUTINGID,UDF_MO_FACTORY FROM ABPPMGR.PRODUCTIONORDERS WHERE PRODUCTIONORDID=5000163998/30_1-MFG001;

SELECT ENTERPRISE, ENGINE_ID, SALESORDERID, SOLINENUM, ATTRIBUTECLASS, ATTRIBUTE, RELATIONSHIP, VALUE , SYS_CREATED_BY FROM ABPPMGR.SALESORDERLINE_P WHERE ATTRIBUTECLASS LIKE %5000163998_30_1%;
SELECT * FROM ABPPMGR.PRODUCTIONORDERS_P WHERE PRODUCTIONORDERID IN (001201192133);
SELECT BOMID,ITEM,PRIORITY,ROUTINGID FROM ABPPMGR.MST_ITEMBOMROUTING WHERE ITEM in(000000101010001980,000000102010000218) or ITEM in(000000101010001980,000000102010000218);
SELECT * FROM ABPPMGR.FORECASTDETAIL_P ;
SELECT * FROM ABPPMGR.INVENTORYPROPERTY WHERE ITEM in(000000101010001980CA,000000102010000218CA) or ITEM in(000000101010001980,000000102010000218);
SELECT * FROM ABPPMGR.SFCHEADERPROPERTY WHERE  PRODUCTIONORDERID IN (001201192133);--

技术分享图片

技术分享图片技术分享图片

技术分享图片技术分享图片

技术分享图片技术分享图片

技术分享图片

 

按单生产2

标签:item   Plan   like   attr   技术分享   ast   routing   creat   cto   

原文地址:https://www.cnblogs.com/Snowfun/p/9105379.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!