MFG制造

## 数据表：T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)

### T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)：描述

名称 | T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)
代码 | T_QT_LOTSNRELATIONENTRY
注释 |
模型 | MFG制造
主键 | Key_1

### T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
单据内码 | FID | int |  | TRUE |
主键 | FEntryID | int |  | TRUE |
序号 | FSeq | int |  | TRUE |
序列号 | FSERIALID | int |  | FALSE |
批号 | FLOT | int |  | FALSE |
批号文本 | FLOT_Text | nvarchar(255) | 255 | FALSE |
批号数量 | FLOTQTY | decimal(23,10) | 23 | FALSE |
单位 | FUNITID | int |  | FALSE |
参照BOM版本 | FBOMID | int |  | FALSE |
基本单位 | FBASEUNITID | int |  | FALSE |
基本单位批号数量 | FBASELOTQTY | decimal(23,10) | 23 | FALSE |

### T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_QT_LOTSNRELATIONENTRY')
and name = 'IDX_QT_LSNR_E_LOT'
and indid > 0
and indid < 255)
drop index T_QT_LOTSNRELATIONENTRY.IDX_QT_LSNR_E_LOT
go
if exists (select 1
from sysindexes
where id = object_id('T_QT_LOTSNRELATIONENTRY')
and name = 'IDX_QT_LSNR_E_SN'
and indid > 0
and indid < 255)
drop index T_QT_LOTSNRELATIONENTRY.IDX_QT_LSNR_E_SN
go
if exists (select 1
from sysindexes
where id = object_id('T_QT_LOTSNRELATIONENTRY')
and name = 'IDX_QT_LSNR_ENTRY'
and indid > 0
and indid < 255)
drop index T_QT_LOTSNRELATIONENTRY.IDX_QT_LSNR_ENTRY
go
if exists (select 1
from sysobjects
where id = object_id('T_QT_LOTSNRELATIONENTRY')
and type = 'U')
drop table T_QT_LOTSNRELATIONENTRY
go
/*==============================================================*/
/* Table: T_QT_LOTSNRELATIONENTRY */
/*==============================================================*/
create table T_QT_LOTSNRELATIONENTRY (
FID int not null default 0,
FEntryID int not null default 0,
FSeq int not null default 0,
FSERIALID int null,
FLOT int null,
FLOT_Text nvarchar(255) null,
FLOTQTY decimal(23,10) null default 0,
FUNITID int null,
FBOMID int null,
FBASEUNITID int null,
FBASELOTQTY decimal(23,10) null default 0,
constraint PK_T_QT_LOTSNRELATIONENTRY primary key (FEntryID)
)
go
/*==============================================================*/
/* Index: IDX_QT_LSNR_ENTRY */
/*==============================================================*/
create index IDX_QT_LSNR_ENTRY on T_QT_LOTSNRELATIONENTRY (
FID ASC
)
go
/*==============================================================*/
/* Index: IDX_QT_LSNR_E_SN */
/*==============================================================*/
create index IDX_QT_LSNR_E_SN on T_QT_LOTSNRELATIONENTRY (
FSERIALID ASC
)
go
/*==============================================================*/
/* Index: IDX_QT_LSNR_E_LOT */
/*==============================================================*/
create index IDX_QT_LSNR_E_LOT on T_QT_LOTSNRELATIONENTRY (
FLOT ASC
)
go

### T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)：键值定义

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

### T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_QT_LSNR_ENTRY | IDX_QT_LSNR_ENTRY | FALSE | FALSE | FALSE | FALSE | FALSE | T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)
IDX_QT_LSNR_E_SN | IDX_QT_LSNR_E_SN | FALSE | FALSE | FALSE | FALSE | FALSE | T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)
IDX_QT_LSNR_E_LOT | IDX_QT_LSNR_E_LOT | FALSE | FALSE | FALSE | FALSE | FALSE | T_QT_LOTSNRELATIONENTRY(批号序列号关系维护表体)

上一页

主页

下一页