zoukankan      html  css  js  c++  java
  • Oracle EBS-SQL (MRP-1):检查期间内计划完成的任务.sql

    /*期间内车间任务下达记录数不包含配件任务*/

    select
         WE.DESCRIPTION                                                任务说明,
         DECODE(WE.SOURCE_CODE,'MRP','工作台','','手工') 下达方式,
         WT.WIP_ENTITY_NAME                                        任务名称, 
         MSI.SEGMENT1                                                      装配件,
         MSI.DESCRIPTION                                                    描述,
         FLV.MEANING                                                      车间状态, 
         WE.CLASS_CODE                                                 车间类别,
         WE.CREATION_DATE                                            创建日期,
         WE.SCHEDULED_START_DATE                        计划开始日期,
         WE.SCHEDULED_COMPLETION_DATE              计划完成日期,
         WE.DATE_RELEASED                                           发放日期,
         WE.DATE_COMPLETED                                         完成日期,
         WE.DATE_CLOSED                                               关闭日期,
         WE.START_QUANTITY                                          开始数量,
         WE.QUANTITY_COMPLETED                                  完成数量
    from
         WIP.WIP_DISCRETE_JOBS       WE,
         WIP.WIP_ENTITIES                 WT,
         APPS.FND_LOOKUP_VALUES   FLV,
         INV.MTL_SYSTEM_ITEMS_B     MSI
    where
           MSI.ORGANIZATION_ID=x

    AND MSI.ORGANIZATION_ID=WE.ORGANIZATION_ID
    AND MSI.ORGANIZATION_ID=WT.ORGANIZATION_ID
    AND MSI.INVENTORY_ITEM_ID=we.PRIMARY_ITEM_ID
    AND WE.WIP_ENTITY_ID=WT.WIP_ENTITY_ID
    AND FLV.LOOKUP_TYPE ='WIP_JOB_STATUS'
    AND WE.STATUS_TYPE = FLV.LOOKUP_CODE(+)
    AND FLV.LANGUAGE='ZHS'
    AND WE.CLASS_CODE NOT like 'W%'
    AND WE.STATUS_TYPE IN (3,1,12,6,14,5,4)
    AND WE.SCHEDULED_COMPLETION_DATE between to_date('20**-01-01','yyyy-mm-dd') AND to_date('20**-01-31','yyyy-mm-dd')

  • 相关阅读:
    h264 流、帧结构
    H264 帧结构分析、帧判断
    sigaction
    sigaction 用法实例
    sigaction函数的使用
    linux c 之signal 和sigaction区别
    linux 信号signal和sigaction理解
    Hamcrest使用
    Junit4中的新断言assertThat的使用方法
    Hamcrest Tutorial
  • 原文地址:https://www.cnblogs.com/st-sun/p/3778471.html
Copyright © 2011-2022 走看看