序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | ProcedureName | nvarchar | 50 | 0 | 否 | 公文流程名称 | ||||
3 | TypeID | int | 4 | 0 | 是 | 流程类型,对应公文等ProType,1:自由流程,2:公文流程,3:限定流程 | ||||
4 | ClassID | int | 4 | 0 | 是 | 分类ID | ||||
5 | ModelID | varchar | 50 | 0 | 是 | 对应模型ID | ||||
6 | CommType | int | 4 | 0 | 是 | 类型 | ||||
7 | AllowAttach | int | 4 | 0 | 是 | 是否归档 1:是,0否 | ||||
8 | AllowFlow | int | 4 | 0 | 是 | |||||
9 | Remind | nvarchar | 200 | 0 | 是 | 备注信息 | ||||
10 | Status | int | 4 | 0 | 是 | |||||
11 | Sponsor | nvarchar | 300 | 0 | 是 | 现用于用户角色,为空则所有人均可使用 | ||||
12 | NodeID | int | 4 | 0 | 是 | 绑定节点ID | ||||
13 | SponsorGroup | nvarchar | 300 | 0 | 是 | Disuse,已用于项目名称 | ||||
14 | Manager | text | 16 | 0 | 是 | 流程管理员IDS | ||||
15 | FormType | int | 4 | 0 | 是 | 表单类型1:模型表单,2:Word表单,3:Excel表单 | ||||
16 | FormInfo | ntext | 16 | 0 | 是 | 根据类型的不同存表单ID,内容,或路径信息 | ||||
17 | CanEditField | varchar | 3000 | 0 | 是 | 可编辑字段IDS,*代表全部,空代表全禁 | ||||
18 | DocAuth | varchar | 500 | 0 | 是 | 流程权限 | ||||
19 | FlowTlp | nvarchar | 300 | 0 | 是 | 流程自定义模板名 | ||||
20 | PrintTlp | nvarchar | 300 | 0 | 是 | 打印自定义模板名 | ||||
21 | FirstStep | ntext | 16 | 0 | 是 |
OA流程表
GO
CREATE TABLE [dbo].[ZL_MisProcedure](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ProcedureName] [nvarchar](50) NOT NULL,
[TypeID] [int] NULL,
[ClassID] [int] NULL,
[ModelID] [varchar](50) NULL,
[CommType] [int] NULL,
[AllowAttach] [int] NULL,
[AllowFlow] [int] NULL,
[Remind] [nvarchar](200) NULL,
[Status] [int] NULL,
[Sponsor] [nvarchar](300) NULL,
[NodeID] [int] NULL,
[SponsorGroup] [nvarchar](300) NULL,
[Manager] [text] NULL,
[FormType] [int] NULL,
[FormInfo] [ntext] NULL,
[CanEditField] [varchar](3000) NULL,
[DocAuth] [varchar](500) NULL,
[FlowTlp] [nvarchar](300) NULL,
[PrintTlp] [nvarchar](300) NULL,
[FirstStep] [ntext] NULL,
CONSTRAINT [PK_ZL_MisProcedure] PRIMARY KEY NONCLUSTERED
([ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
SET IDENTITY_INSERT [ZL_MisProcedure] ON
INSERT [ZL_MisProcedure] ([ID],[ProcedureName],[TypeID],[ClassID],[CommType],[AllowAttach],[AllowFlow],[Status],[NodeID],[SponsorGroup],[FormType],[FormInfo],[CanEditField],[FlowTlp],[PrintTlp],[FirstStep]) VALUES ( 1,N'收文流程',2,1,0,1,1,0,0,N'收文',0,N'35',N'*',N'rece',N'receprint',N'{"ID":0,"ProID":0,"OrginStepID":0,"stepNum":1,"stepName":null,"ReferUser":"","ReferGroup":"","CCUser":"","CCGroup":"","HelpUser":"","HQoption":0,"Qzzjoption":0,"HToption":0,"EmailAlert":"","EmailGroup":"","SmsAlert":"","SmsGroup":"","BackOption":0,"PublicAttachOption":1,"PrivateAttachOption":1,"Status":1,"CreateTime":"2016-12-28T10:42:17.601505+08:00","Remind":null,"SendMan":",,","CanEditField":"*","DocAuth":null,"NextOP":null,"ReferUser_Alias":"主办人","CCUser_Alias":"协办人","HelpUser_Alias":"辅办人","CCUser_Allow":1,"HelpUser_Allow":0,"StepAuth":{"RUser_ManageAttach":false,"RUser_ChangeUser":false,"CCUser_Write":true,"CCUser_HQ":false,"HUser_Write":true},"ParentID":0,"TbName":"ZL_MisProLevel","UP_Tables":"ZL_MisProLevel,ZL_OA_FreePro","PK":"ID"}')
INSERT [ZL_MisProcedure] ([ID],[ProcedureName],[TypeID],[ClassID],[CommType],[AllowAttach],[AllowFlow],[Status],[NodeID],[SponsorGroup],[FormType],[FormInfo],[CanEditField],[FlowTlp],[PrintTlp],[FirstStep]) VALUES ( 2,N'发文流程',2,1,0,1,1,0,0,N'发文',0,N'36',N'*',N'send',N'sendprint',N'{"ID":0,"ProID":0,"OrginStepID":0,"stepNum":1,"stepName":null,"ReferUser":"","ReferGroup":"","CCUser":"","CCGroup":"","HelpUser":"","HQoption":0,"Qzzjoption":0,"HToption":0,"EmailAlert":"","EmailGroup":"","SmsAlert":"","SmsGroup":"","BackOption":0,"PublicAttachOption":1,"PrivateAttachOption":1,"Status":1,"CreateTime":"2016-12-28T10:42:32.3153464+08:00","Remind":null,"SendMan":",,","CanEditField":"*","DocAuth":null,"NextOP":null,"ReferUser_Alias":"主办人","CCUser_Alias":"协办人","HelpUser_Alias":"辅办人","CCUser_Allow":1,"HelpUser_Allow":0,"StepAuth":{"RUser_ManageAttach":false,"RUser_ChangeUser":false,"CCUser_Write":true,"CCUser_HQ":false,"HUser_Write":true},"ParentID":0,"TbName":"ZL_MisProLevel","UP_Tables":"ZL_MisProLevel,ZL_OA_FreePro","PK":"ID"}')
INSERT [ZL_MisProcedure] ([ID],[ProcedureName],[TypeID],[ClassID],[CommType],[AllowAttach],[AllowFlow],[Status],[NodeID],[SponsorGroup],[FormType],[FormInfo],[CanEditField],[FlowTlp],[PrintTlp],[FirstStep]) VALUES ( 3,N'请假申请',1,1,0,1,1,0,0,N'请假',0,N'37',N'*',N'defTlp',N'defTlp',N'{"ID":0,"ProID":0,"OrginStepID":0,"stepNum":1,"stepName":null,"ReferUser":"","ReferGroup":"","CCUser":"","CCGroup":"","HelpUser":"","HQoption":0,"Qzzjoption":0,"HToption":0,"EmailAlert":"","EmailGroup":"","SmsAlert":"","SmsGroup":"","BackOption":0,"PublicAttachOption":1,"PrivateAttachOption":1,"Status":1,"CreateTime":"2016-12-28T10:42:36.7996031+08:00","Remind":null,"SendMan":",,","CanEditField":"*","DocAuth":null,"NextOP":null,"ReferUser_Alias":"主办人","CCUser_Alias":"协办人","HelpUser_Alias":"辅办人","CCUser_Allow":1,"HelpUser_Allow":0,"StepAuth":{"RUser_ManageAttach":false,"RUser_ChangeUser":false,"CCUser_Write":true,"CCUser_HQ":false,"HUser_Write":true},"ParentID":0,"TbName":"ZL_MisProLevel","UP_Tables":"ZL_MisProLevel,ZL_OA_FreePro","PK":"ID"}')
INSERT [ZL_MisProcedure] ([ID],[ProcedureName],[TypeID],[ClassID],[CommType],[AllowAttach],[AllowFlow],[Status],[NodeID],[SponsorGroup],[FormType],[FormInfo],[CanEditField],[FlowTlp],[PrintTlp],[FirstStep]) VALUES ( 4,N'会议流程',2,1,0,0,1,0,0,N'会议',0,N'38',N'*',N'defTlp',N'defTlp',N'{"ID":0,"ProID":0,"OrginStepID":0,"stepNum":1,"stepName":null,"ReferUser":"","ReferGroup":"","CCUser":"","CCGroup":"","HelpUser":"","HQoption":0,"Qzzjoption":0,"HToption":0,"EmailAlert":"","EmailGroup":"","SmsAlert":"","SmsGroup":"","BackOption":0,"PublicAttachOption":1,"PrivateAttachOption":1,"Status":1,"CreateTime":"2016-12-28T10:42:40.4458087+08:00","Remind":null,"SendMan":",,","CanEditField":"*","DocAuth":null,"NextOP":null,"ReferUser_Alias":"主办人","CCUser_Alias":"协办人","HelpUser_Alias":"辅办人","CCUser_Allow":1,"HelpUser_Allow":0,"StepAuth":{"RUser_ManageAttach":false,"RUser_ChangeUser":false,"CCUser_Write":true,"CCUser_HQ":false,"HUser_Write":true},"ParentID":0,"TbName":"ZL_MisProLevel","UP_Tables":"ZL_MisProLevel,ZL_OA_FreePro","PK":"ID"}')
SET IDENTITY_INSERT [ZL_MisProcedure] OFF
detele from ZL_MisProcedure
drop table ZL_MisProcedure
TRUNCATE table ZL_MisProcedure