zoukankan      html  css  js  c++  java
  • Oracle EBS-SQL (WIP-12):总装车间任务查询.sql

    select
             WT.WIP_ENTITY_NAME                                                                任务名称,
             MSI.SEGMENT1                                                                              装配件,
             MSI.DESCRIPTION                                                                            描述,
             DECODE(WE.STATUS_TYPE,'3','已发放','4','完成','1','未发放')                   状态,
             WE.CLASS_CODE                                                                        车间类别,
             TO_CHAR(WE.SCHEDULED_START_DATE,'YYYY-MM-DD')          计划开始日期,
             TO_CHAR(WE.SCHEDULED_COMPLETION_DATE,'YYYY-MM-DD') 计划完成日期,
             TO_CHAR(WE.DATE_RELEASED,'YYYY-MM-DD')                              发放日期,
             TO_CHAR(WE.DATE_COMPLETED,'YYYY-MM-DD')                            完成日期,
             TO_CHAR(WE.DATE_CLOSED,'YYYY-MM-DD')                                  关闭日期,
             WE.START_QUANTITY                                                                   开始数量,
             we.QUANTITY_COMPLETED                                                            完成数量
    from
             WIP.WIP_DISCRETE_JOBS        WE,
             WIP.WIP_ENTITIES                   WT,
             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 MSI.SEGMENT1 LIKE '33%'
    --AND WT.WIP_ENTITY_NAME like '&wip'
      AND trunc(WE.SCHEDULED_COMPLETION_DATE) between to_date('20**/01/01','yyyy-mm-dd') and to_date('20**/01/31','yyyy-mm-dd')

  • 相关阅读:
    调用同一个类的另一个方法,导致该方法的事物失效问题。。做记录
    JS点名功能
    JS复制功能
    js局部刷新
    基于 Token 的身份验证方法
    JS获取URL“#”后的值
    JS批量打包下载图片(笔记)
    九阴真经
    弹框播放腾讯视频(Iframe)
    js sessionStorage会话存取/删除
  • 原文地址:https://www.cnblogs.com/st-sun/p/3780203.html
Copyright © 2011-2022 走看看