集团财务

## 数据表：T_CR_ForeignCurrencyTran(项目外币折算方案)

### T_CR_ForeignCurrencyTran(项目外币折算方案)：描述

名称 | T_CR_ForeignCurrencyTran(项目外币折算方案)
代码 | T_CR_ForeignCurrencyTran
注释 | 项目外币折算方案
模型 | 集团财务
主键 | PK_CR_FCT

### T_CR_ForeignCurrencyTran(项目外币折算方案)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
内码 | FID | int |  | TRUE |
编码 | FNumber | nvarchar(30) | 30 | TRUE |
创建人 | FCreatorId | int |  | TRUE |
创建日期 | FCreateDate | datetime |  | FALSE |
修改人 | FModifierId | int |  | TRUE |
修改日期 | FModifyDate | datetime |  | FALSE |
审核人 | FAUDITORID | int |  | TRUE |
审核日期 | FAUDITDATE | datetime |  | FALSE |
禁用人 | FFORBIDDERID | int |  | TRUE |
禁用日期 | FFORBIDDATE | datetime |  | FALSE |
数据状态 | FDocumentStatus | char(1) | 1 | TRUE | Z暂存，A创建，B审核中，C已审核，D重新审核
禁用状态 | FForbidStatus | char(1) | 1 | TRUE | A = 正常; B = 禁用

### T_CR_ForeignCurrencyTran(项目外币折算方案)：脚本代码

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_ForeignCurrTranEntry') and o.name = 'FK_T_CR_FOR_REFERENCE_T_CR_FOR')
alter table T_CR_ForeignCurrTranEntry
drop constraint FK_T_CR_FOR_REFERENCE_T_CR_FOR
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_ForeignCurrencyTran_L') and o.name = 'FK_T_CR_FOR_REFERENCE_T_CR_FOR')
alter table T_CR_ForeignCurrencyTran_L
drop constraint FK_T_CR_FOR_REFERENCE_T_CR_FOR
go
if exists (select 1
from sysindexes
where id = object_id('T_CR_ForeignCurrencyTran')
and name = 'IDX_CR_FCT_CREATEDATE'
and indid > 0
and indid < 255)
drop index T_CR_ForeignCurrencyTran.IDX_CR_FCT_CREATEDATE
go
if exists (select 1
from sysindexes
where id = object_id('T_CR_ForeignCurrencyTran')
and name = 'IDX_CR_FCT_Num'
and indid > 0
and indid < 255)
drop index T_CR_ForeignCurrencyTran.IDX_CR_FCT_Num
go
if exists (select 1
from sysobjects
where id = object_id('T_CR_ForeignCurrencyTran')
and type = 'U')
drop table T_CR_ForeignCurrencyTran
go
/*==============================================================*/
/* Table: T_CR_ForeignCurrencyTran */
/*==============================================================*/
create table T_CR_ForeignCurrencyTran (
FID int not null default 0,
FNumber nvarchar(30) not null default ' ',
FCreatorId int not null default 0,
FCreateDate datetime null,
FModifierId int not null default 0,
FModifyDate datetime null,
FAUDITORID int not null default 0,
FAUDITDATE datetime null,
FFORBIDDERID int not null default 0,
FFORBIDDATE datetime null,
FDocumentStatus char(1) not null default 'A',
FForbidStatus char(1) not null default 'A',
constraint PK_CR_FCT primary key (FID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'项目外币折算方案',
'user', @CurrentUser, 'table', 'T_CR_ForeignCurrencyTran'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'Z暂存，A创建，B审核中，C已审核，D重新审核',
'user', @CurrentUser, 'table', 'T_CR_ForeignCurrencyTran', 'column', 'FDocumentStatus'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'A = 正常; B = 禁用',
'user', @CurrentUser, 'table', 'T_CR_ForeignCurrencyTran', 'column', 'FForbidStatus'
go
/*==============================================================*/
/* Index: IDX_CR_FCT_Num */
/*==============================================================*/
create index IDX_CR_FCT_Num on T_CR_ForeignCurrencyTran (
FNumber ASC
)
go
/*==============================================================*/
/* Index: IDX_CR_FCT_CREATEDATE */
/*==============================================================*/
create index IDX_CR_FCT_CREATEDATE on T_CR_ForeignCurrencyTran (
FCreateDate ASC
)
go

### T_CR_ForeignCurrencyTran(项目外币折算方案)：键值定义

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

### T_CR_ForeignCurrencyTran(项目外币折算方案)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_CR_FCT_Num | IDX_CR_FCT_Num | FALSE | FALSE | FALSE | FALSE | FALSE | T_CR_ForeignCurrencyTran(项目外币折算方案)
IDX_CR_FCT_CREATEDATE | IDX_CR_FCT_CREATEDATE | FALSE | FALSE | FALSE | FALSE | FALSE | T_CR_ForeignCurrencyTran(项目外币折算方案)

上一页

主页

下一页