SCO供应链协同

## 数据表：T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)

### T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)：描述

名称 | T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)
代码 | T_SPM_PROMOTIONPRAISE_ORG
注释 | 促销结案报告组织范围表
模型 | SCO供应链协同
主键 | PK_SPM_PROMOTIONPRAISE_ORG

### T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
单据FID | FID | int |  | TRUE |
分录内码 | FEntryID | int |  | TRUE |
序号 | FSEQ | int |  | TRUE |
参与促销组织 | FPROMOTIONORGID | int |  | TRUE |
预计销售收入 | FEXPECTACHIVEMENT | decimal(23,10) | 23 | TRUE |
促销开始日期 | FPROMOTIONSTARTDATE | datetime |  | FALSE |
促销结束日期 | FPROMOTIONENDDATE | datetime |  | FALSE |
预计销售额 | FEXPECTSALEAMOUNT | decimal(23,10) | 23 | TRUE |
实际销售额 | FACTUALSALEAMOUNT | decimal(23,10) | 23 | TRUE |
备注 | FREMARK | nvarchar(255) | 255 | TRUE |

### T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)：脚本代码

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_SPM_PROMOTIONPRAISE_ORG') and o.name = 'FK_T_SPM_PR_REFERENCE_T_SPM_PR')
alter table T_SPM_PROMOTIONPRAISE_ORG
drop constraint FK_T_SPM_PR_REFERENCE_T_SPM_PR
go
if exists (select 1
from sysindexes
where id = object_id('T_SPM_PROMOTIONPRAISE_ORG')
and name = 'IDX_SPM_PROMOTIONPARISEE_ID'
and indid > 0
and indid < 255)
drop index T_SPM_PROMOTIONPRAISE_ORG.IDX_SPM_PROMOTIONPARISEE_ID
go
if exists (select 1
from sysindexes
where id = object_id('T_SPM_PROMOTIONPRAISE_ORG')
and name = 'IDX_SPM_PROMOTIONPARISEE_ORG'
and indid > 0
and indid < 255)
drop index T_SPM_PROMOTIONPRAISE_ORG.IDX_SPM_PROMOTIONPARISEE_ORG
go
if exists (select 1
from sysobjects
where id = object_id('T_SPM_PROMOTIONPRAISE_ORG')
and type = 'U')
drop table T_SPM_PROMOTIONPRAISE_ORG
go
/*==============================================================*/
/* Table: T_SPM_PROMOTIONPRAISE_ORG */
/*==============================================================*/
create table T_SPM_PROMOTIONPRAISE_ORG (
FID int not null default 0,
FEntryID int not null default 0,
FSEQ int not null default 0,
FPROMOTIONORGID int not null default 0,
FEXPECTACHIVEMENT decimal(23,10) not null default 0.00,
FPROMOTIONSTARTDATE datetime null,
FPROMOTIONENDDATE datetime null,
FEXPECTSALEAMOUNT decimal(23,10) not null default 0,
FACTUALSALEAMOUNT decimal(23,10) not null default 0,
FREMARK nvarchar(255) not null default '',
constraint PK_SPM_PROMOTIONPRAISE_ORG primary key (FEntryID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'促销结案报告组织范围表',
'user', @CurrentUser, 'table', 'T_SPM_PROMOTIONPRAISE_ORG'
go
/*==============================================================*/
/* Index: IDX_SPM_PROMOTIONPARISEE_ORG */
/*==============================================================*/
create index IDX_SPM_PROMOTIONPARISEE_ORG on T_SPM_PROMOTIONPRAISE_ORG (
FPROMOTIONORGID ASC,
FID ASC
)
go
/*==============================================================*/
/* Index: IDX_SPM_PROMOTIONPARISEE_ID */
/*==============================================================*/
create index IDX_SPM_PROMOTIONPARISEE_ID on T_SPM_PROMOTIONPRAISE_ORG (
FID ASC
)
go
alter table T_SPM_PROMOTIONPRAISE_ORG
add constraint FK_T_SPM_PR_REFERENCE_T_SPM_PR foreign key (FID)
references T_SPM_PROMOTIONAPPRAISE (FID)
go

### T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)：键值定义

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

### T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SPM_PROMOTIONPARISEE_ORG | IDX_SPM_PROMOTIONPARISEE_ORG | FALSE | FALSE | FALSE | FALSE | FALSE | T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)
IDX_SPM_PROMOTIONPARISEE_ID | IDX_SPM_PROMOTIONPARISEE_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SPM_PROMOTIONPRAISE_ORG(促销结案报告组织范围表)

上一页

主页

下一页