成本管理

## 数据表：T_CB_EXPENSECOLLECTION（生产费用归集）

### T_CB_EXPENSECOLLECTION（生产费用归集）：描述

名称 | T_CB_EXPENSECOLLECTION（生产费用归集）
代码 | T_CB_EXPENSECOLLECTION
注释 | T_CB_EXPENSECOLLECTION（生产费用归集）
模型 | 成本管理
主键 | PK_CB_EXPENSECOLLECTION

### T_CB_EXPENSECOLLECTION（生产费用归集）：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
内码 | FID | int |  | TRUE |
单据编号 | FBILLNO | nvarchar(30) | 30 | TRUE |
核算体系 | FACCTGSYSTEMID | int |  | TRUE |
核算组织 | FACCTGORGID | int |  | TRUE |
会计政策 | FACCTPOLICYID | int |  | TRUE |
币别 | FCURRENCYID | int |  | TRUE |
会计年度 | FYEAR | int |  | TRUE |
会计期间 | FPERIOD | int |  | TRUE |
费用分配跨组织 | FISCROSSORG | char(1) | 1 | TRUE | 复选框
是否引入数据 | FISIMPORTED | char(1) | 1 | TRUE | 复选框

### T_CB_EXPENSECOLLECTION（生产费用归集）：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_CB_EXPENSECOLLECTION')
and name = 'IDX_CB_EXPENSECOLLECTION_BNO'
and indid > 0
and indid < 255)
drop index T_CB_EXPENSECOLLECTION.IDX_CB_EXPENSECOLLECTION_BNO
go
if exists (select 1
from sysindexes
where id = object_id('T_CB_EXPENSECOLLECTION')
and name = 'IDX_CB_EXPENSECOLLECTION_SOP'
and indid > 0
and indid < 255)
drop index T_CB_EXPENSECOLLECTION.IDX_CB_EXPENSECOLLECTION_SOP
go
if exists (select 1
from sysobjects
where id = object_id('T_CB_EXPENSECOLLECTION')
and type = 'U')
drop table T_CB_EXPENSECOLLECTION
go
/*==============================================================*/
/* Table: T_CB_EXPENSECOLLECTION */
/*==============================================================*/
create table T_CB_EXPENSECOLLECTION (
FID int not null default 0,
FBILLNO nvarchar(30) not null default '',
FACCTGSYSTEMID int not null default 0,
FACCTGORGID int not null default 0,
FACCTPOLICYID int not null default 0,
FCURRENCYID int not null default 0,
FYEAR int not null default 0,
FPERIOD int not null default 0,
FISCROSSORG char(1) not null default '0',
FISIMPORTED char(1) not null default '0',
constraint PK_CB_EXPENSECOLLECTION primary key (FID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'T_CB_EXPENSECOLLECTION（生产费用归集）',
'user', @CurrentUser, 'table', 'T_CB_EXPENSECOLLECTION'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'复选框',
'user', @CurrentUser, 'table', 'T_CB_EXPENSECOLLECTION', 'column', 'FISCROSSORG'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'复选框',
'user', @CurrentUser, 'table', 'T_CB_EXPENSECOLLECTION', 'column', 'FISIMPORTED'
go
/*==============================================================*/
/* Index: IDX_CB_EXPENSECOLLECTION_SOP */
/*==============================================================*/
create index IDX_CB_EXPENSECOLLECTION_SOP on T_CB_EXPENSECOLLECTION (
FACCTGSYSTEMID ASC,
FACCTGORGID ASC,
FACCTPOLICYID ASC,
FYEAR ASC,
FPERIOD ASC
)
go
/*==============================================================*/
/* Index: IDX_CB_EXPENSECOLLECTION_BNO */
/*==============================================================*/
create index IDX_CB_EXPENSECOLLECTION_BNO on T_CB_EXPENSECOLLECTION (
FBILLNO ASC
)
go

### T_CB_EXPENSECOLLECTION（生产费用归集）：键值定义

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

### T_CB_EXPENSECOLLECTION（生产费用归集）：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_CB_EXPENSECOLLECTION_SOP | IDX_CB_EXPENSECOLLECTION_SOP | FALSE | FALSE | FALSE | FALSE | FALSE | T_CB_EXPENSECOLLECTION（生产费用归集）
IDX_CB_EXPENSECOLLECTION_BNO | IDX_CB_EXPENSECOLLECTION_BNO | FALSE | FALSE | FALSE | FALSE | FALSE | T_CB_EXPENSECOLLECTION（生产费用归集）

上一页

主页

下一页