MFG制造

## 数据表：T_SUB_PPMSTOCK(生产备料单仓库分录)

### T_SUB_PPMSTOCK(生产备料单仓库分录)：描述

名称 | T_SUB_PPMSTOCK(生产备料单仓库分录)
代码 | T_SUB_PPMSTOCK
注释 |
模型 | MFG制造
主键 | PK_SUB_PPMSTOCK

### T_SUB_PPMSTOCK(生产备料单仓库分录)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录内码 | FENTRYID | int |  | TRUE |
主表内码 | FID | int |  | FALSE |
选择 | FSELECTED | char(1) | 1 | FALSE |
仓库组织编码 | FSTOCKORGID | int |  | FALSE |
仓库编码 | FSTOCKID | int |  | FALSE |

### T_SUB_PPMSTOCK(生产备料单仓库分录)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_SUB_PPMSTOCK')
and name = 'IDX_SUB_PPMSTOCK_ID'
and indid > 0
and indid < 255)
drop index T_SUB_PPMSTOCK.IDX_SUB_PPMSTOCK_ID
go
if exists (select 1
from sysindexes
where id = object_id('T_SUB_PPMSTOCK')
and name = 'IDX_SUB_PPMSTOCK_STOCKID'
and indid > 0
and indid < 255)
drop index T_SUB_PPMSTOCK.IDX_SUB_PPMSTOCK_STOCKID
go
if exists (select 1
from sysobjects
where id = object_id('T_SUB_PPMSTOCK')
and type = 'U')
drop table T_SUB_PPMSTOCK
go
/*==============================================================*/
/* Table: T_SUB_PPMSTOCK */
/*==============================================================*/
create table T_SUB_PPMSTOCK (
FENTRYID int not null,
FID int null,
FSELECTED char(1) null default '0',
FSTOCKORGID int null,
FSTOCKID int null,
constraint PK_SUB_PPMSTOCK primary key (FENTRYID)
)
go
/*==============================================================*/
/* Index: IDX_SUB_PPMSTOCK_STOCKID */
/*==============================================================*/
create index IDX_SUB_PPMSTOCK_STOCKID on T_SUB_PPMSTOCK (
FSTOCKID ASC
)
go
/*==============================================================*/
/* Index: IDX_SUB_PPMSTOCK_ID */
/*==============================================================*/
create index IDX_SUB_PPMSTOCK_ID on T_SUB_PPMSTOCK (
FID ASC
)
go

### T_SUB_PPMSTOCK(生产备料单仓库分录)：键值定义

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

### T_SUB_PPMSTOCK(生产备料单仓库分录)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SUB_PPMSTOCK_STOCKID | IDX_SUB_PPMSTOCK_STOCKID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SUB_PPMSTOCK(生产备料单仓库分录)
IDX_SUB_PPMSTOCK_ID | IDX_SUB_PPMSTOCK_ID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SUB_PPMSTOCK(生产备料单仓库分录)

上一页

主页

下一页