集团财务

## 数据表：T_CR_DynamicEntry(动态罗列表明细)

### T_CR_DynamicEntry(动态罗列表明细)：描述

名称 | T_CR_DynamicEntry(动态罗列表明细)
代码 | T_CR_DynamicEntry
注释 | 动态罗列表明细
模型 | 集团财务
主键 | Key_1

### T_CR_DynamicEntry(动态罗列表明细)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
内码 | FEntryID | int |  | TRUE |
父表内码 | FID | int |  | TRUE |
抵消类型内码 | FElimTypeID | int |  | TRUE |
交易各类内码 | FTransTypeID | int |  | TRUE |

### T_CR_DynamicEntry(动态罗列表明细)：脚本代码

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_DynamicDimeData') and o.name = 'FK_T_CR_DYN_REFERENCE_T_CR_DYN')
alter table T_CR_DynamicDimeData
drop constraint FK_T_CR_DYN_REFERENCE_T_CR_DYN
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_DynamicEntry') and o.name = 'FK_T_CR_DYN_REFERENCE_T_CR_DYN')
alter table T_CR_DynamicEntry
drop constraint FK_T_CR_DYN_REFERENCE_T_CR_DYN
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_DynamicItemData') and o.name = 'FK_T_CR_DYN_REFERENCE_T_CR_DYN')
alter table T_CR_DynamicItemData
drop constraint FK_T_CR_DYN_REFERENCE_T_CR_DYN
go
if exists (select 1
from sysindexes
where id = object_id('T_CR_DynamicEntry')
and name = 'IDX_CR_DynamicEntry_ID'
and indid > 0
and indid < 255)
drop index T_CR_DynamicEntry.IDX_CR_DynamicEntry_ID
go
if exists (select 1
from sysobjects
where id = object_id('T_CR_DynamicEntry')
and type = 'U')
drop table T_CR_DynamicEntry
go
/*==============================================================*/
/* Table: T_CR_DynamicEntry */
/*==============================================================*/
create table T_CR_DynamicEntry (
FEntryID int not null default 0,
FID int not null default 0,
FElimTypeID int not null default 0,
FTransTypeID int not null default 0,
constraint PK_T_CR_DYNAMICENTRY primary key (FEntryID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'动态罗列表明细',
'user', @CurrentUser, 'table', 'T_CR_DynamicEntry'
go
/*==============================================================*/
/* Index: IDX_CR_DynamicEntry_ID */
/*==============================================================*/
create index IDX_CR_DynamicEntry_ID on T_CR_DynamicEntry (
FID ASC
)
go
alter table T_CR_DynamicEntry
add constraint FK_T_CR_DYN_REFERENCE_T_CR_DYN foreign key (FID)
references T_CR_DynamicRpt (FID)
go

### T_CR_DynamicEntry(动态罗列表明细)：键值定义

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

### T_CR_DynamicEntry(动态罗列表明细)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_CR_DynamicEntry_ID | IDX_CR_DynamicEntry_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_CR_DynamicEntry(动态罗列表明细)

上一页

主页

下一页