簽核流程設置(3)

来源:未知 责任编辑:责任编辑 发表时间:2014-01-06 18:19 点击:

                     where UserName=(select UserName from dbo.member where  Isvalid=1 and Realname=[一級簽核]))
  from dbo.[zlq_PCO1107] where  [一級簽核] is not null

INSERT INTO [QBRClient].[dbo].[PCO_WorkFlowChecker]([StepID]  , [CheckManID])
 select [流程號]+1,(select CheckmanID from dbo.PCO_CheckMan
                     where UserName=(select UserName from dbo.member where  Isvalid=1 and Realname=[二級簽核]))
  from dbo.[zlq_PCO1107] where  [二級簽核] is not null


INSERT INTO [QBRClient].[dbo].[PCO_WorkFlowChecker]([StepID]  , [CheckManID])
 select [流程號]+2,(select CheckmanID from dbo.PCO_CheckMan
                     where UserName=(select UserName from dbo.member where  Isvalid=1 and Realname=[三級簽核]))
  from dbo.[zlq_PCO1107] where  [三級簽核] is not null

INSERT INTO [QBRClient].[dbo].[PCO_WorkFlowChecker]([StepID]  , [CheckManID])
 select [流程號]+3,(select CheckmanID from dbo.PCO_CheckMan
                     where UserName=(select UserName from dbo.member where  Isvalid=1 and Realname=[四級簽核]))
  from dbo.[zlq_PCO1107] where  [四級簽核] is not null

INSERT INTO [QBRClient].[dbo].[PCO_WorkFlowChecker]([StepID]  , [CheckManID])
 select [流程號]+4,(select CheckmanID from dbo.PCO_CheckMan
                     where UserName=(select UserName from dbo.member where  Isvalid=1 and Realname=[五級簽核]))
  from dbo.[zlq_PCO1107] where  [五級簽核] is not null

INSERT INTO [QBRClient].[dbo].[PCO_WorkFlowChecker]([StepID]  , [CheckManID])
 select [流程號]+5,(select CheckmanID from dbo.PCO_CheckMan
                     where UserName=(select UserName from dbo.member where  Isvalid=1 and Realname=[六級簽核]))
  from dbo.[zlq_PCO1107] where  [六級簽核] is not null

INSERT INTO [QBRClient].[dbo].[PCO_WorkFlowChecker]([StepID]  , [CheckManID])
 select [流程號]+6,(select CheckmanID from dbo.PCO_CheckMan
                     where UserName=(select UserName from dbo.member where  Isvalid=1 and Realname=[七級簽核]))
  from dbo.[zlq_PCO1107] where  [七級簽核] is not null

INSERT INTO [QBRClient].[dbo].[PCO_WorkFlowChecker]([StepID]  , [CheckManID])

发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码:点击我更换图片
最新评论 更多>>

推荐热点

  • 浅析.NET下XML数据访问新机制
  • asp.net 面试+笔试题目第1/2页
  • C# 邮件地址是否合法的验证
  • C#高级编程:数据库连接[1]
  • asp.net 设置GridView的选中行的实现代码
  • 经典C++程序1
  • IIS 自动回收导致后台定时器失效的问题解决
  • ASP.NET GridView列表代码示例
  • 微软ASP.NET站点部署指南(3):使用Web.Config文件的Transforma
网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
Copyright © 2008-2015 计算机技术学习交流网. 版权所有

豫ICP备11007008号-1