MFG制造

## 数据表：T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)

### T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)：描述

名称 | T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)
代码 | T_PRD_PREPAREMTRLSTOCK
注释 |
模型 | MFG制造
主键 | PK_PRD_PREPAREMTRLSTOCK

### T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
单据内码 | FID | int |  | FALSE |
分录内码 | FENTRYID | int |  | TRUE |
序号 | FSEQ | int |  | FALSE |
仓库编码 | FSTOCKID | int |  | FALSE |
供应组织 | FSTOCKORGID | int |  | FALSE |
选择 | FSELECTED | char(1) | 1 | TRUE | 当前仓库是否纳入分析

### T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_PRD_PREPAREMTRLSTOCK')
and name = 'IDX_PMS_ID'
and indid > 0
and indid < 255)
drop index T_PRD_PREPAREMTRLSTOCK.IDX_PMS_ID
go
if exists (select 1
from sysindexes
where id = object_id('T_PRD_PREPAREMTRLSTOCK')
and name = 'IDX_PMS_STOCKID'
and indid > 0
and indid < 255)
drop index T_PRD_PREPAREMTRLSTOCK.IDX_PMS_STOCKID
go
if exists (select 1
from sysobjects
where id = object_id('T_PRD_PREPAREMTRLSTOCK')
and type = 'U')
drop table T_PRD_PREPAREMTRLSTOCK
go
/*==============================================================*/
/* Table: T_PRD_PREPAREMTRLSTOCK */
/*==============================================================*/
create table T_PRD_PREPAREMTRLSTOCK (
FID int null,
FENTRYID int not null default 0,
FSEQ int null,
FSTOCKID int null,
FSTOCKORGID int null,
FSELECTED char(1) not null default '0',
constraint PK_PRD_PREPAREMTRLSTOCK primary key (FENTRYID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'当前仓库是否纳入分析',
'user', @CurrentUser, 'table', 'T_PRD_PREPAREMTRLSTOCK', 'column', 'FSELECTED'
go
/*==============================================================*/
/* Index: IDX_PMS_STOCKID */
/*==============================================================*/
create index IDX_PMS_STOCKID on T_PRD_PREPAREMTRLSTOCK (
FSTOCKID ASC
)
go
/*==============================================================*/
/* Index: IDX_PMS_ID */
/*==============================================================*/
create index IDX_PMS_ID on T_PRD_PREPAREMTRLSTOCK (
FID ASC
)
go

### T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)：键值定义

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

### T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_PMS_STOCKID | IDX_PMS_STOCKID | FALSE | FALSE | FALSE | FALSE | FALSE | T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)
IDX_PMS_ID | IDX_PMS_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_PRD_PREPAREMTRLSTOCK(生产备料仓库方案)

上一页

主页

下一页