数据表:t_wf_template(流程模板)

t_wf_template(流程模板):描述

名称

t_wf_template(流程模板)

代码

t_wf_template

注释

 

模型

BOS

主键

pk_wf_Template


t_wf_template(流程模板):列规格定义

名称

代码

数据类型

长度

强制

注释

模板ID

ftmpid

int

 

TRUE

 

状态

fforbidstatus

char(1)

1

TRUE

0、创建
1、启用
2、禁用

编码

fnumber

varchar(50)

50

TRUE

 

不区分组织

FWithoutOrg

char(1)

1

TRUE

不进行组织隔离,全部组织使用相同的模板;适用于非受控基础资料、无主业务组织单据

组织

FORGID

int

 

TRUE

 

创建人

fcreatorid

int

 

TRUE

 

修改人

fmodifierid

int

 

FALSE

 

创建时间

fcreatedate

datetime

 

TRUE

 

修改时间

fmodifydate

datetime

 

FALSE

 

关联单据

fformid

varchar(36)

36

TRUE

 

单据类型

fbilltype

varchar(36)

36

FALSE

 

模板分类

ftemplatetype

int

 

FALSE

 

发起策略

fpolicy

char(1)

1

TRUE

0、启用默认流程
1、调出关联流程列表选择
2、报错,流程无法启动
3、进行传统审批

是否适用于派生单继承

fcaninherit

char(1)

1

FALSE

子类是否适应此模板。

级次

flevel

int

 

FALSE

 

起草状态配置

FDRAFFCONFIG

xml

 

FALSE

 

流程定义类型

FPROCESSTYPE

int

 

FALSE

 

允许委托

FISALLOWENTRUST

char(1)

1

FALSE

 

提交流程时弹出岗位选择界面

FSHOWPOSTSELECT

char(1)

1

TRUE

 

发起人可提交发起意见

FAllowSubmitOpinion

char(1)

1

TRUE

 


t_wf_template(流程模板):脚本代码

if exists (select 1
from sysindexes
where id = object_id('t_wf_template')
and name = 'idx_wf_Template_FFormID'
and indid > 0
and indid < 255)
drop index t_wf_template.idx_wf_Template_FFormID
go

if exists (select 1
from sysindexes
where id = object_id('t_wf_template')
and name = 'idx_wf_Template_FORGID'
and indid > 0
and indid < 255)
drop index t_wf_template.idx_wf_Template_FORGID
go

if exists (select 1
from sysobjects
where id = object_id('t_wf_template')
and type = 'U')
drop table t_wf_template
go

/*==============================================================*/
/* Table: t_wf_template */
/*==============================================================*/
create table t_wf_template (
ftmpid int not null default 0,
fforbidstatus char(1) not null default '0',
fnumber varchar(50) not null default '',
FWithoutOrg char(1) not null default '0',
FORGID int not null default 0,
fcreatorid int not null default 0,
fmodifierid int null default 0,
fcreatedate datetime not null default getdate(),
fmodifydate datetime null default getdate(),
fformid varchar(36) not null default '',
fbilltype varchar(36) null,
ftemplatetype int null,
fpolicy char(1) not null default '0',
fcaninherit char(1) null,
flevel int null,
FDRAFFCONFIG xml null,
FPROCESSTYPE int null default 300,
FISALLOWENTRUST char(1) null,
FSHOWPOSTSELECT char(1) not null default '1',
FAllowSubmitOpinion char(1) not null default '0',
constraint PK_WF_TEMPLATE primary key (ftmpid)
)
go

/*==============================================================*/
/* Index: idx_wf_Template_FORGID */
/*==============================================================*/
create index idx_wf_Template_FORGID on t_wf_template (
FORGID ASC,
fforbidstatus ASC
)
go

/*==============================================================*/
/* Index: idx_wf_Template_FFormID */
/*==============================================================*/
create index idx_wf_Template_FFormID on t_wf_template (
fformid ASC,
FORGID ASC,
fbilltype ASC,
fforbidstatus ASC,
fcaninherit ASC
)
go


t_wf_template(流程模板):键值定义

名称

代码

主要的

pk_wf_Template

pk_wf_Template

TRUE


t_wf_template(流程模板):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

idx_wf_Template_FORGID

idx_wf_Template_FORGID

FALSE

FALSE

FALSE

FALSE

FALSE

t_wf_template(流程模板)

idx_wf_Template_FFormID

idx_wf_Template_FFormID

FALSE

FALSE

FALSE

FALSE

FALSE

t_wf_template(流程模板)