MFG制造

## 数据表：T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)

### T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)：描述

名称 | T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)
代码 | T_QM_DEFECTPROCESSENTRY_LK
注释 |
模型 | MFG制造
主键 | PK_QM_DEFECTPROCESSENTRY_LK

### T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录内码 | FENTRYID | int |  | FALSE |
反写主键 | FLINKID | int |  | TRUE |
流程图标识 | FFLOWID | varchar(36) | 36 | FALSE |
流程图线路标识 | FFLOWLINEID | int |  | FALSE |
转换规则标识 | FRULEID | varchar(36) | 36 | FALSE |
源表ID | FSTABLEID | int |  | FALSE |
源表名称 | FSTABLENAME | varchar(30) | 30 | FALSE |
源单内码 | FSBILLID | varchar(36) | 36 | FALSE |
源单分录内码 | FSID | varchar(36) | 36 | FALSE |
检验不良数量 | FBASEINSPECTDEFECTQTY | decimal(23,10) | 23 | TRUE |
检验不良数量旧值 | FBASEINSPECTDEFECTQTYOLD | decimal(23,10) | 23 | TRUE |
不良数量 | FBASEDEFECTQTY | decimal(23,10) | 23 | TRUE |
不良数量旧值 | FBASEDEFECTQTYOLD | decimal(23,10) | 23 | TRUE |

### T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_QM_DEFECTPROCESSENTRY_LK')
and name = 'IDX_QM_DPE_LK_ENTRYD'
and indid > 0
and indid < 255)
drop index T_QM_DEFECTPROCESSENTRY_LK.IDX_QM_DPE_LK_ENTRYD
go
if exists (select 1
from sysindexes
where id = object_id('T_QM_DEFECTPROCESSENTRY_LK')
and name = 'IDX_QM_DPE_LK_SBILLID'
and indid > 0
and indid < 255)
drop index T_QM_DEFECTPROCESSENTRY_LK.IDX_QM_DPE_LK_SBILLID
go
if exists (select 1
from sysindexes
where id = object_id('T_QM_DEFECTPROCESSENTRY_LK')
and name = 'IDX_QM_DPE_LK_SID'
and indid > 0
and indid < 255)
drop index T_QM_DEFECTPROCESSENTRY_LK.IDX_QM_DPE_LK_SID
go
if exists (select 1
from sysobjects
where id = object_id('T_QM_DEFECTPROCESSENTRY_LK')
and type = 'U')
drop table T_QM_DEFECTPROCESSENTRY_LK
go
/*==============================================================*/
/* Table: T_QM_DEFECTPROCESSENTRY_LK */
/*==============================================================*/
create table T_QM_DEFECTPROCESSENTRY_LK (
FENTRYID int null,
FLINKID int not null,
FFLOWID varchar(36) null,
FFLOWLINEID int null,
FRULEID varchar(36) null,
FSTABLEID int null,
FSTABLENAME varchar(30) null,
FSBILLID varchar(36) null,
FSID varchar(36) null,
FBASEINSPECTDEFECTQTY decimal(23,10) not null default 0,
FBASEINSPECTDEFECTQTYOLD decimal(23,10) not null default 0,
FBASEDEFECTQTY decimal(23,10) not null default 0,
FBASEDEFECTQTYOLD decimal(23,10) not null default 0,
constraint PK_QM_DEFECTPROCESSENTRY_LK primary key (FLINKID)
)
go
/*==============================================================*/
/* Index: IDX_QM_DPE_LK_SID */
/*==============================================================*/
create index IDX_QM_DPE_LK_SID on T_QM_DEFECTPROCESSENTRY_LK (
FSID ASC
)
go
/*==============================================================*/
/* Index: IDX_QM_DPE_LK_SBILLID */
/*==============================================================*/
create index IDX_QM_DPE_LK_SBILLID on T_QM_DEFECTPROCESSENTRY_LK (
FSBILLID ASC
)
go
/*==============================================================*/
/* Index: IDX_QM_DPE_LK_ENTRYD */
/*==============================================================*/
create index IDX_QM_DPE_LK_ENTRYD on T_QM_DEFECTPROCESSENTRY_LK (
FENTRYID ASC
)
go

### T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)：键值定义

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

### T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_QM_DPE_LK_SID | IDX_QM_DPE_LK_SID | FALSE | FALSE | FALSE | FALSE | FALSE | T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)
IDX_QM_DPE_LK_SBILLID | IDX_QM_DPE_LK_SBILLID | FALSE | FALSE | FALSE | FALSE | FALSE | T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)
IDX_QM_DPE_LK_ENTRYD | IDX_QM_DPE_LK_ENTRYD | FALSE | FALSE | FALSE | FALSE | FALSE | T_QM_DEFECTPROCESSENTRY_LK(不良品处理单反写规则表)

上一页

主页

下一页