集团财务

## 数据表：T_CR_WizardScheme(模板样式方案)

### T_CR_WizardScheme(模板样式方案)：描述

名称 | T_CR_WizardScheme(模板样式方案)
代码 | T_CR_WizardScheme
注释 | 模板样式方案
模型 | 集团财务
主键 | PK_CR_WIZARDSCHEME

### T_CR_WizardScheme(模板样式方案)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
内码 | FID | int |  | TRUE |
编码 | FNumber | varchar(30) | 30 | TRUE |
报表类型 | FRptType | int |  | TRUE |
样式类型 | FStypeType | int |  | TRUE |
报表项目填充方向 | FFillDirection | int |  | FALSE |
报表项目填充自动缩进 | FIsAutoIndent | char(1) | 1 | FALSE | 0否，1是
是报表项目 | FIsRptItem | char(1) | 1 | FALSE | 0否，1是
是数据类型 | FIsItemDataType | char(1) | 1 | FALSE | 0否，1是
是项目公式 | FIsItemFormula | char(1) | 1 | FALSE | 0否，1是
是取数公式 | FIsAccessFormula | char(1) | 1 | FALSE | 0否，1是
个别数 | FIsSingle | char(1) | 1 | FALSE | 0否，1是
汇总数 | FIsSummary | char(1) | 1 | FALSE | 0否，1是
调整数 | FIsAdjust | char(1) | 1 | FALSE | 0否，1是
抵消数 | FIsElimination | char(1) | 1 | FALSE | 0否，1是
合并数 | FIsConsolidate | char(1) | 1 | FALSE | 0否，1是
填充分组依据 | FFillBy | char(1) | 1 | FALSE | 0否，1是
取数公式 | FAccessFormula | int |  | FALSE |
取数账簿 | FAcctBookId | int |  | FALSE |
币别 | FCurrencyId | int |  | FALSE |
核算组织 | FAcctOrgId | int |  | FALSE |
调整周期 | FCycle | int |  | FALSE |
金额单位 | FCurrencyUnitId | int |  | FALSE |
调整选项 | FAdjustOption | int |  | FALSE |
维度值允许手工录入 | FCanInputDim | char(1) | 1 | FALSE | 0否，1是
包含合计项 | FIncludeSum | char(1) | 1 | FALSE | 0否，1是
默认插入行列数 | FDefRowCol | int |  | FALSE |
创建人 | FCREATORID | int |  | TRUE |
创建日期 | FCREATEDATE | datetime |  | FALSE |
修改人 | FMODIFIERID | int |  | FALSE |
修改日期 | FMODIFYDATE | datetime |  | FALSE |
审核人 | FAUDITORID | int |  | FALSE |
审核日期 | FAUDITDATE | datetime |  | FALSE |
禁用人 | FFORBIDDERID | int |  | TRUE |
禁用日期 | FFORBIDDATE | datetime |  | FALSE |
数据状态 | FDOCUMENTSTATUS | char(1) | 1 | TRUE | Z暂存，A创建，B审核中，C已审核，D重新审核
禁用状态 | FFORBIDSTATUS | varchar(1) | 1 | TRUE | A否，B是
是否系统预设 | FISSYSPRESET | char(1) | 1 | FALSE | 0否，1是
抵消类型 | FElimTypeID | int |  | TRUE |
交易种类 | FTransactionTypeId | int |  | TRUE |
取数公式来源项目取数公式 | FIsAccFlaIsItemFla | char(1) | 1 | FALSE | “0”否，“1”是
交易平衡 | FISTRANSBALANCE | char(1) | 1 | TRUE |
取数公式参数 | FACCESSFORMULAPARAMS | nvarchar(510) | 510 | TRUE |

### T_CR_WizardScheme(模板样式方案)：脚本代码

if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_CR_WizardAddDataCol') and o.name = 'FK_T_CR_WIZ_REFERENCE_T_CR_WIZ')
alter table T_CR_WizardAddDataCol
drop constraint FK_T_CR_WIZ_REFERENCE_T_CR_WIZ
go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_CR_WizardDimension') and o.name = 'FK_T_CR_WIZ_REFERENCE_T_CR_WIZ')
alter table T_CR_WizardDimension
drop constraint FK_T_CR_WIZ_REFERENCE_T_CR_WIZ
go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_CR_WizardFormula') and o.name = 'FK_T_CR_WIZ_REFERENCE_T_CR_WIZ')
alter table T_CR_WizardFormula
drop constraint FK_T_CR_WIZ_REFERENCE_T_CR_WIZ
go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_CR_WizardItem') and o.name = 'FK_T_CR_WIZ_REFERENCE_T_CR_WIZ')
alter table T_CR_WizardItem
drop constraint FK_T_CR_WIZ_REFERENCE_T_CR_WIZ
go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_CR_WizardItemDataType') and o.name = 'FK_T_CR_WIZ_REFERENCE_T_CR_WIZ')
alter table T_CR_WizardItemDataType
drop constraint FK_T_CR_WIZ_REFERENCE_T_CR_WIZ
go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('T_CR_WizardScheme_L') and o.name = 'FK_T_CR_WIZ_REFERENCE_T_CR_WIZ')
alter table T_CR_WizardScheme_L
drop constraint FK_T_CR_WIZ_REFERENCE_T_CR_WIZ
go
if exists (select 1
from sysindexes
where id = object_id('T_CR_WizardScheme')
and name = 'IDX_CR_WizScheme_CREATEDATE'
and indid > 0
and indid < 255)
drop index T_CR_WizardScheme.IDX_CR_WizScheme_CREATEDATE
go
if exists (select 1
from sysindexes
where id = object_id('T_CR_WizardScheme')
and name = 'IDX_CR_WizardScheme_FNumber'
and indid > 0
and indid < 255)
drop index T_CR_WizardScheme.IDX_CR_WizardScheme_FNumber
go
if exists (select 1
from sysobjects
where id = object_id('T_CR_WizardScheme')
and type = 'U')
drop table T_CR_WizardScheme
go
/*==============================================================*/
/* Table: T_CR_WizardScheme */
/*==============================================================*/
create table T_CR_WizardScheme (
FID int not null default 0,
FNumber varchar(30) not null default '',
FRptType int not null default 0,
FStypeType int not null default 0,
FFillDirection int null default 0,
FIsAutoIndent char(1) null default '0',
FIsRptItem char(1) null default '0',
FIsItemDataType char(1) null default '0',
FIsItemFormula char(1) null default '0',
FIsAccessFormula char(1) null default '0',
FIsSingle char(1) null default '0',
FIsSummary char(1) null default '0',
FIsAdjust char(1) null default '0',
FIsElimination char(1) null default '0',
FIsConsolidate char(1) null default '0',
FFillBy char(1) null default '0',
FAccessFormula int null default 0,
FAcctBookId int null default 0,
FCurrencyId int null default 0,
FAcctOrgId int null default 0,
FCycle int null default 0,
FCurrencyUnitId int null default 0,
FAdjustOption int null default 0,
FCanInputDim char(1) null default '0',
FIncludeSum char(1) null default '0',
FDefRowCol int null default 0,
FCREATORID int not null default 0,
FCREATEDATE datetime null,
FMODIFIERID int null default 0,
FMODIFYDATE datetime null,
FAUDITORID int null default 0,
FAUDITDATE datetime null,
FFORBIDDERID int not null default 0,
FFORBIDDATE datetime null,
FDOCUMENTSTATUS char(1) not null default '',
FFORBIDSTATUS varchar(1) not null default '',
FISSYSPRESET char(1) null default '0',
FElimTypeID int not null default 0,
FTransactionTypeId int not null default 0,
FIsAccFlaIsItemFla char(1) null default '0',
FISTRANSBALANCE char(1) not null default '0',
FACCESSFORMULAPARAMS nvarchar(510) not null default ' ',
constraint PK_CR_WIZARDSCHEME primary key (FID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'模板样式方案',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsAutoIndent'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsRptItem'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsItemDataType'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsItemFormula'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsAccessFormula'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsSingle'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsSummary'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsAdjust'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsElimination'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsConsolidate'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FFillBy'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FCanInputDim'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIncludeSum'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'Z暂存，A创建，B审核中，C已审核，D重新审核',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FDOCUMENTSTATUS'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'A否，B是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FFORBIDSTATUS'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FISSYSPRESET'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'“0”否，“1”是',
'user', @CurrentUser, 'table', 'T_CR_WizardScheme', 'column', 'FIsAccFlaIsItemFla'
go
/*==============================================================*/
/* Index: IDX_CR_WizardScheme_FNumber */
/*==============================================================*/
create index IDX_CR_WizardScheme_FNumber on T_CR_WizardScheme (
FNumber ASC
)
go
/*==============================================================*/
/* Index: IDX_CR_WizScheme_CREATEDATE */
/*==============================================================*/
create index IDX_CR_WizScheme_CREATEDATE on T_CR_WizardScheme (
FCREATEDATE ASC
)
go

### T_CR_WizardScheme(模板样式方案)：键值定义

名称 | 代码 | 主要的
PK_CR_WIZARDSCHEME | PK_CR_WIZARDSCHEME | TRUE

### T_CR_WizardScheme(模板样式方案)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_CR_WizardScheme_FNumber | IDX_CR_WizardScheme_FNumber | FALSE | FALSE | FALSE | FALSE | FALSE | T_CR_WizardScheme(模板样式方案)
IDX_CR_WizScheme_CREATEDATE | IDX_CR_WizScheme_CREATEDATE | FALSE | FALSE | FALSE | FALSE | FALSE | T_CR_WizardScheme(模板样式方案)

上一页

主页

下一页