集团财务

## 数据表：T_CR_EliminationType(抵消类型)

### T_CR_EliminationType(抵消类型)：描述

名称 | T_CR_EliminationType(抵消类型)
代码 | T_CR_EliminationType
注释 | 抵消类型
模型 | 集团财务
主键 | Key_1

### T_CR_EliminationType(抵消类型)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
内码 | FID | int |  | TRUE |
编码 | FNumber | nvarchar(30) | 30 | TRUE |
是否抵消差异处理 | FIsDisposeDiff | char(1) | 1 | FALSE | 0否，1是
是否交易的不同期间，抵消分录模板不同 | FIsDiffTempByPeriod | char(1) | 1 | FALSE | 0否，1是
系统预置 | FIsSystemSet | char(1) | 1 | FALSE | 0否，1是
创建人 | FCREATORID | int |  | TRUE |
创建日期 | FCREATEDATE | datetime |  | FALSE |
修改人 | FMODIFIERID | int |  | FALSE |
修改日期 | FMODIFYDATE | datetime |  | FALSE |
数据状态 | FDOCUMENTSTATUS | char(1) | 1 | TRUE | Z暂存，A创建，B审核中，C已审核，D重新审核
禁用状态 | FFORBIDSTATUS | char(1) | 1 | TRUE | A否，B是
审核人 | FAUDITORID | int |  | FALSE |
审核日期 | FAUDITDATE | datetime |  | FALSE |

### T_CR_EliminationType(抵消类型)：脚本代码

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_ElimTypeEntry') and o.name = 'FK_T_CR_ELI_REFERENCE_T_CR_ELI')
alter table T_CR_ElimTypeEntry
drop constraint FK_T_CR_ELI_REFERENCE_T_CR_ELI
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_EliminationType_L') and o.name = 'FK_T_CR_ELI_REFERENCE_T_CR_ELI')
alter table T_CR_EliminationType_L
drop constraint FK_T_CR_ELI_REFERENCE_T_CR_ELI
go
if exists (select 1
from sysindexes
where id = object_id('T_CR_EliminationType')
and name = 'IDX_CR_EliType_CREATEDATE'
and indid > 0
and indid < 255)
drop index T_CR_EliminationType.IDX_CR_EliType_CREATEDATE
go
if exists (select 1
from sysindexes
where id = object_id('T_CR_EliminationType')
and name = 'IDX_CR_EliType_Num'
and indid > 0
and indid < 255)
drop index T_CR_EliminationType.IDX_CR_EliType_Num
go
if exists (select 1
from sysobjects
where id = object_id('T_CR_EliminationType')
and type = 'U')
drop table T_CR_EliminationType
go
/*==============================================================*/
/* Table: T_CR_EliminationType */
/*==============================================================*/
create table T_CR_EliminationType (
FID int not null default 0,
FNumber nvarchar(30) not null default ' ',
FIsDisposeDiff char(1) null,
FIsDiffTempByPeriod char(1) null,
FIsSystemSet char(1) null,
FCREATORID int not null default 0,
FCREATEDATE datetime null,
FMODIFIERID int null default 0,
FMODIFYDATE datetime null,
FDOCUMENTSTATUS char(1) not null default 'A',
FFORBIDSTATUS char(1) not null default 'A',
FAUDITORID int null default 0,
FAUDITDATE datetime null,
constraint PK_T_CR_ELIMINATIONTYPE primary key (FID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'抵消类型',
'user', @CurrentUser, 'table', 'T_CR_EliminationType'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_EliminationType', 'column', 'FIsDisposeDiff'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_EliminationType', 'column', 'FIsDiffTempByPeriod'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'0否，1是',
'user', @CurrentUser, 'table', 'T_CR_EliminationType', 'column', 'FIsSystemSet'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'Z暂存，A创建，B审核中，C已审核，D重新审核',
'user', @CurrentUser, 'table', 'T_CR_EliminationType', 'column', 'FDOCUMENTSTATUS'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'A否，B是',
'user', @CurrentUser, 'table', 'T_CR_EliminationType', 'column', 'FFORBIDSTATUS'
go
/*==============================================================*/
/* Index: IDX_CR_EliType_Num */
/*==============================================================*/
create index IDX_CR_EliType_Num on T_CR_EliminationType (
FNumber ASC
)
go
/*==============================================================*/
/* Index: IDX_CR_EliType_CREATEDATE */
/*==============================================================*/
create index IDX_CR_EliType_CREATEDATE on T_CR_EliminationType (
FCREATEDATE ASC
)
go

### T_CR_EliminationType(抵消类型)：键值定义

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

### T_CR_EliminationType(抵消类型)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_CR_EliType_Num | IDX_CR_EliType_Num | FALSE | FALSE | FALSE | FALSE | FALSE | T_CR_EliminationType(抵消类型)
IDX_CR_EliType_CREATEDATE | IDX_CR_EliType_CREATEDATE | FALSE | FALSE | FALSE | FALSE | FALSE | T_CR_EliminationType(抵消类型)

上一页

主页

下一页