MFG制造

## 数据表：T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)

### T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)：描述

名称 | T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)
代码 | T_SUB_PICKMTRLDATA_LK
注释 |
模型 | MFG制造
主键 | PK_SUB_PICKMTRLDATA_LK

### T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
分录ID | FENTRYID | int |  | FALSE |
反写主键 | FLINKID | int |  | TRUE |
表名 | FSTABLEID | int |  | FALSE |
源单单据内码 | FSBILLID | varchar(36) | 36 | FALSE |
源单分录内码 | FSID | varchar(36) | 36 | FALSE |
反写追踪表 | FLNKTRACKERID | nvarchar(100) | 100 | FALSE |
反写状态 | FLNKSSTATE | nvarchar(100) | 100 | FALSE |
反写数量 | FLNKAMOUNT | decimal(23,10) | 23 | TRUE |
流程图标识 | FFLOWID | varchar(36) | 36 | TRUE |
流程图路线标识 | FFLOWLINEID | int |  | TRUE |
转换规则标识 | FRULEID | varchar(36) | 36 | TRUE |
源单表名 | FSTABLENAME | varchar(30) | 30 | TRUE |
控制字段 | FBASEACTUALQTY | decimal(23,10) | 23 | TRUE |
控制字段旧值 | FBASEACTUALQTYOLD | decimal(23,10) | 23 | TRUE |

### T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_SUB_PICKMTRLDATA_LK')
and name = 'IDX_SUB_PMD_LK_STABLEID'
and indid > 0
and indid < 255)
drop index T_SUB_PICKMTRLDATA_LK.IDX_SUB_PMD_LK_STABLEID
go
if exists (select 1
from sysindexes
where id = object_id('T_SUB_PICKMTRLDATA_LK')
and name = 'IDX_SUB_PMD_LK_SID'
and indid > 0
and indid < 255)
drop index T_SUB_PICKMTRLDATA_LK.IDX_SUB_PMD_LK_SID
go
if exists (select 1
from sysindexes
where id = object_id('T_SUB_PICKMTRLDATA_LK')
and name = 'IDX_SUB_PMD_LK_SBILLID'
and indid > 0
and indid < 255)
drop index T_SUB_PICKMTRLDATA_LK.IDX_SUB_PMD_LK_SBILLID
go
if exists (select 1
from sysindexes
where id = object_id('T_SUB_PICKMTRLDATA_LK')
and name = 'IDX_SUB_PMD_LK_ENTRYID'
and indid > 0
and indid < 255)
drop index T_SUB_PICKMTRLDATA_LK.IDX_SUB_PMD_LK_ENTRYID
go
if exists (select 1
from sysobjects
where id = object_id('T_SUB_PICKMTRLDATA_LK')
and type = 'U')
drop table T_SUB_PICKMTRLDATA_LK
go
/*==============================================================*/
/* Table: T_SUB_PICKMTRLDATA_LK */
/*==============================================================*/
create table T_SUB_PICKMTRLDATA_LK (
FENTRYID int null,
FLINKID int not null default 0,
FSTABLEID int null,
FSBILLID varchar(36) null default ' ',
FSID varchar(36) null default ' ',
FLNKTRACKERID nvarchar(100) null,
FLNKSSTATE nvarchar(100) null,
FLNKAMOUNT decimal(23,10) not null default 0,
FFLOWID varchar(36) not null default ' ',
FFLOWLINEID int not null default 0,
FRULEID varchar(36) not null default ' ',
FSTABLENAME varchar(30) not null default ' ',
FBASEACTUALQTY decimal(23,10) not null default 0,
FBASEACTUALQTYOLD decimal(23,10) not null default 0,
constraint PK_SUB_PICKMTRLDATA_LK primary key (FLINKID)
)
go
/*==============================================================*/
/* Index: IDX_SUB_PMD_LK_ENTRYID */
/*==============================================================*/
create index IDX_SUB_PMD_LK_ENTRYID on T_SUB_PICKMTRLDATA_LK (
FENTRYID ASC
)
go
/*==============================================================*/
/* Index: IDX_SUB_PMD_LK_SBILLID */
/*==============================================================*/
create index IDX_SUB_PMD_LK_SBILLID on T_SUB_PICKMTRLDATA_LK (
FSBILLID ASC
)
go
/*==============================================================*/
/* Index: IDX_SUB_PMD_LK_SID */
/*==============================================================*/
create index IDX_SUB_PMD_LK_SID on T_SUB_PICKMTRLDATA_LK (
FSID ASC
)
go
/*==============================================================*/
/* Index: IDX_SUB_PMD_LK_STABLEID */
/*==============================================================*/
create index IDX_SUB_PMD_LK_STABLEID on T_SUB_PICKMTRLDATA_LK (
FSTABLEID ASC
)
go

### T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)：键值定义

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

### T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_SUB_PMD_LK_ENTRYID | IDX_SUB_PMD_LK_ENTRYID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)
IDX_SUB_PMD_LK_SBILLID | IDX_SUB_PMD_LK_SBILLID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)
IDX_SUB_PMD_LK_SID | IDX_SUB_PMD_LK_SID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)
IDX_SUB_PMD_LK_STABLEID | IDX_SUB_PMD_LK_STABLEID | FALSE | FALSE | FALSE | FALSE | FALSE | T_SUB_PICKMTRLDATA_LK(委外领料单反写规则表)

上一页

主页

下一页