数据表:t_KDS_Rpt(电子表格主表)

t_KDS_Rpt(电子表格主表):描述

名称

t_KDS_Rpt(电子表格主表)

代码

t_KDS_Rpt

注释

电子表格主表

模型

BOS

主键

PK_KDS_RPT


t_KDS_Rpt(电子表格主表):列规格定义

名称

代码

数据类型

长度

强制

注释

报表ID

FRptID

varchar(36)

36

TRUE

主键

代码

FNumber

nvarchar(30)

30

TRUE

报表编码

名称

FName

nvarchar(80)

80

TRUE

报表名称

报表类型

FRptType

int

 

TRUE

枚举类型
报表系统个别报表 1
报表系统穿透报表 2
报表系统报表模版 3
报表系统自定义报表 4
合并报表个别模板 10
合并报表合并模板 11
汇总报表模板 12
工作底稿模板 13
汇总报表 14
合并报表 15
工作底稿 16
合并报表个别报表 17

报表周期

FCYCLEID

int

 

TRUE

报表周期 :未知 = -1, 会计期间 = 1, 日报 = 2, 月报 = 4, 季报= 5,半年报= 6,
年报 = 7

描述

FDescription

nvarchar(255)

255

TRUE

 

是否模版

FIsSample

char(1)

1

TRUE

是否模版

报表模版ID

FSampleID

varchar(36)

36

TRUE

报表模版ID:该报表是从哪个模版新建的

FYear

int

 

TRUE

报表默认参数:年

FPeriod

int

 

TRUE

期间

日期

FDay

datetime

 

FALSE

报表默认参数:日期

样式类型

FRptStyleType

int

 

TRUE

样式类型:
1、固定样式
2、动态样式

默认取数账簿

FBookID

int

 

TRUE

 

币别

FCurrencyID

int

 

TRUE

币别

金额单位

FCurrUnitID

int

 

TRUE

金额单位

修改人

FModifierId

int

 

TRUE

修改人:最后修改人的ID

修改日期

FModifyDate

datetime

 

FALSE

 

审核人

FAUDITORID

bigint

 

TRUE

 

审核日期

FAUDITDATE

datetime

 

FALSE

 

禁用人

FFORBIDDERID

bigint

 

TRUE

 

禁用日期

FFORBIDDATE

datetime

 

FALSE

 

创建人内码

FCreatorId

int

 

TRUE

 

创建日期

FCreateDate

datetime

 

FALSE

 

数据状态

FDocumentStatus

char(1)

1

TRUE

A在制
B审核中
C已审核
D重新审核

禁用状态

FForbidStatus

char(1)

1

TRUE

A = 正常; B = 禁用

核算体系

FAcctSystemID

int

 

TRUE

 

核算组织

FOrgId

int

 

TRUE

必须是核算组织

利润中心

FProfitCenterID

int

 

TRUE

 

使用组织

FUseOrgId

int

 

TRUE

 

创建组织

FCreateOrgId

int

 

FALSE

FCreateOrgId

表内检查状态

FVerifyStatus

char(1)

1

FALSE

0未检查1检查

报表披露信息

FShowInfo

ntext

 

FALSE

 

关键字

FKEYWORD

nvarchar(255)

255

FALSE

 

报表检查结果

FVerifyResult

char(1)

1

FALSE

0未检查
1检查不通过
2检查通过

报表检查时间

FVerifyDate

datetime

 

FALSE

 

报表模板类别

FSAMPLETYPEID

int

 

FALSE

 

默认取数科目表

FACCTTABLEID

int

 

FALSE

 

创建方式

FCREATESTYLE

int

 

TRUE

 

是否自动生成

FISAUTOCREATE

char(1)

1

TRUE

0否1是

数据来源

FSourceId

varchar(36)

36

FALSE

 

附件数

FATTACHMENTCOUNT

int

 

FALSE

 

会计政策

FPolicyId

int

 

TRUE

 

报表样式

FRptStyle

image

 

FALSE

 

版本

FVersion

varchar(3)

3

TRUE

 

是否填充维度值

FISFILLDIMENSION

char(1)

1

FALSE

 

锁定密码

FLOCKPWD

varchar(255)

255

FALSE

 

加密因子

FMEMO

varchar(36)

36

FALSE

 

备份报表关联的源表ID

FRELATERPTID

varchar(36)

36

TRUE

 

标示是否是备份报表

FISADJUSTBACKUP

char(1)

1

TRUE

 

最近重算时间

FRECALTIME

datetime

 

FALSE

 


t_KDS_Rpt(电子表格主表):脚本代码

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

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

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

/*==============================================================*/
/* Table: t_KDS_Rpt */
/*==============================================================*/
create table t_KDS_Rpt (
FRptID varchar(36) not null default ' ',
FNumber nvarchar(30) not null default ' ',
FName nvarchar(80) not null default ' ',
FRptType int not null default 0,
FCYCLEID int not null default 1,
FDescription nvarchar(255) not null default '',
FIsSample char(1) not null default '0',
FSampleID varchar(36) not null default ' ',
FYear int not null default 1900,
FPeriod int not null default 0,
FDay datetime null,
FRptStyleType int not null default 1,
FBookID int not null default 0,
FCurrencyID int not null default 0,
FCurrUnitID int not null default 0,
FModifierId int not null default 0,
FModifyDate datetime null,
FAUDITORID bigint not null default 0,
FAUDITDATE datetime null,
FFORBIDDERID bigint not null default 0,
FFORBIDDATE datetime null,
FCreatorId int not null default 0,
FCreateDate datetime null,
FDocumentStatus char(1) not null default '',
FForbidStatus char(1) not null default '',
FAcctSystemID int not null default 0,
FOrgId int not null default 0,
FProfitCenterID int not null default 0,
FUseOrgId int not null default 0,
FCreateOrgId int null default 0,
FVerifyStatus char(1) null,
FShowInfo ntext null,
FKEYWORD nvarchar(255) null,
FVerifyResult char(1) null,
FVerifyDate datetime null,
FSAMPLETYPEID int null default 0,
FACCTTABLEID int null default 0,
FCREATESTYLE int not null default 0,
FISAUTOCREATE char(1) not null default '0',
FSourceId varchar(36) null default ' ',
FATTACHMENTCOUNT int null,
FPolicyId int not null default 0,
FRptStyle image null,
FVersion varchar(3) not null default '1',
FISFILLDIMENSION char(1) null default '0',
FLOCKPWD varchar(255) null default ' ',
FMEMO varchar(36) null default ' ',
FRELATERPTID varchar(36) not null default ' ',
FISADJUSTBACKUP char(1) not null default '0',
FRECALTIME datetime null,
constraint PK_KDS_RPT primary key (FRptID)
)
go

/*==============================================================*/
/* Index: IDX_KDS_RPT_FNUMBER */
/*==============================================================*/
create index IDX_KDS_RPT_FNUMBER on t_KDS_Rpt (
FNumber ASC
)
go

/*==============================================================*/
/* Index: IDX_KDS_Rpt_FCREATEDATE */
/*==============================================================*/
create index IDX_KDS_Rpt_FCREATEDATE on t_KDS_Rpt (
FCreateDate ASC
)
go


t_KDS_Rpt(电子表格主表):键值定义

名称

代码

主要的

PK_KDS_RPT

PK_KDS_RPT

TRUE


t_KDS_Rpt(电子表格主表):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

idx_Kds_Rpt_FNumber

IDX_KDS_RPT_FNUMBER

FALSE

FALSE

FALSE

FALSE

FALSE

t_KDS_Rpt(电子表格主表)

IDX_KDS_Rpt_FCREATEDATE

IDX_KDS_Rpt_FCREATEDATE

FALSE

FALSE

FALSE

FALSE

FALSE

t_KDS_Rpt(电子表格主表)