Chinaunix首页 | 论坛 | 博客
  • 博客访问: 689511
  • 博文数量: 194
  • 博客积分: 3831
  • 博客等级: 中校
  • 技术积分: 1843
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-28 13:24
文章分类

全部博文(194)

文章存档

2012年(41)

2011年(42)

2010年(45)

2009年(66)

分类: Java

2012-03-15 01:38:41

public final static String SELECT_EPS_PROJ_TREE1 = " select C.*,D.*,F.* from "+
  " (SELECT * FROM"+
  "     (SELECT PROJ_ID AS PROJID,PROJ_SHORT_NAME,PROJECT_FLAG   "+
  "       FROM DBO.PROJECT WHERE DELETE_SESSION_ID IS NULL AND BATCH_SUM_FLAG='Y'  "+
  "       and orig_proj_id is null)A,  "+
  "     (SELECT WBS_ID,PROJ_ID,WBS_SHORT_NAME,WBS_NAME,PARENT_WBS_ID ,PROJ_NODE_FLAG  "+
  "       FROM DBO.PROJWBS WHERE  DELETE_SESSION_ID IS NULL AND PROJ_NODE_FLAG='Y' )B "+
  "    WHERE A.PROJID=B.PROJ_ID  "+
  " ) C "+
  " left join "+
  " (select t2.proj_catg_short_name,t1.proj_catg_type_id,t1.proj_id ,t1.proj_catg_id from "+
  "     PROJPCAT t1 left join PCATVAL t2 on t1.proj_catg_id = t2.proj_catg_id "+
  " ) D on C.proj_id = D.proj_id "+
  "  left   join   "+
  "  (select * from  "+
  "   (select udf_type_id as udf_typeId,proj_id,udf_text from dbo.udfvalue ) as udf, "+
  "    (select udf_type_id,udf_type_label from dbo.udftype    where table_name='project'   "+
  "       and udf_type_label in ('进度整体评价','费用整体评价','质量整体评价','安全整体评价'))as udfid  "+
  "    where  udf.udf_typeId=udfid.udf_type_id  "+
  ")F on F.proj_id=C.projid ";
阅读(831) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~