MFG制造

## 数据表：T_QM_SAMPLESCHEME(抽样方案)

### T_QM_SAMPLESCHEME(抽样方案)：描述

名称 | T_QM_SAMPLESCHEME(抽样方案)
代码 | T_QM_SAMPLESCHEME
注释 |
模型 | MFG制造
主键 | PK_QM_SAMPLESCHEME

### T_QM_SAMPLESCHEME(抽样方案)：列规格定义

名称 | 代码 | 数据类型 | 长度 | 强制 | 注释
主键 | FID | int |  | TRUE |
组织控制字段 | FMASTERID | int |  | TRUE |
编码 | FNUMBER | nvarchar(80) | 80 | FALSE |
抽样类型 | FSAMPLETYPE | char(1) | 1 | FALSE |
检验水平 | FINSPECTLEVEL | char(1) | 1 | FALSE |
严格度 | FSTRICTLEVEL | char(1) | 1 | FALSE |
AQL | FAQL | char(1) | 1 | FALSE | 枚举
抽样次数 | FSAMPLETIMES | int |  | FALSE | 本版隐藏
生效日期 | FEFFECTDATE | datetime |  | FALSE |
失效日期 | FEXPIREDATE | datetime |  | FALSE |
系统预设 | FISSYSTEMSET | char(1) | 1 | FALSE |
创建组织 | FCREATEORGID | int |  | FALSE |
使用组织 | FUSEORGID | int |  | FALSE |
创建人 | FCREATORID | int |  | FALSE |
创建日期 | FCREATEDATE | datetime |  | FALSE |
修改人 | FMODIFIERID | int |  | FALSE |
修改日期 | FMODIFYDATE | datetime |  | FALSE |
审核人 | FAPPROVERID | int |  | FALSE |
审核日期 | FAPPROVEDATE | datetime |  | FALSE |
禁用人 | FFORBIDDERID | int |  | FALSE |
禁用日期 | FFORBIDDATE | datetime |  | FALSE |
数据状态 | FDOCUMENTSTATUS | char(1) | 1 | FALSE |
禁用状态 | FFORBIDSTATUS | char(1) | 1 | FALSE |

### T_QM_SAMPLESCHEME(抽样方案)：脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_QM_SAMPLESCHEME')
and name = 'IDX_QM_SAMPLESCHEME_DATE'
and indid > 0
and indid < 255)
drop index T_QM_SAMPLESCHEME.IDX_QM_SAMPLESCHEME_DATE
go
if exists (select 1
from sysindexes
where id = object_id('T_QM_SAMPLESCHEME')
and name = 'IDX_QM_SAMPLESCHEME_NUM'
and indid > 0
and indid < 255)
drop index T_QM_SAMPLESCHEME.IDX_QM_SAMPLESCHEME_NUM
go
if exists (select 1
from sysobjects
where id = object_id('T_QM_SAMPLESCHEME')
and type = 'U')
drop table T_QM_SAMPLESCHEME
go
/*==============================================================*/
/* Table: T_QM_SAMPLESCHEME */
/*==============================================================*/
create table T_QM_SAMPLESCHEME (
FID int not null default 0,
FMASTERID int not null default 0,
FNUMBER nvarchar(80) null,
FSAMPLETYPE char(1) null default '0',
FINSPECTLEVEL char(1) null default '0',
FSTRICTLEVEL char(1) null default '0',
FAQL char(1) null default '0',
FSAMPLETIMES int null,
FEFFECTDATE datetime null,
FEXPIREDATE datetime null,
FISSYSTEMSET char(1) null default '0',
FCREATEORGID int null,
FUSEORGID int null,
FCREATORID int null,
FCREATEDATE datetime null,
FMODIFIERID int null,
FMODIFYDATE datetime null,
FAPPROVERID int null,
FAPPROVEDATE datetime null,
FFORBIDDERID int null,
FFORBIDDATE datetime null,
FDOCUMENTSTATUS char(1) null,
FFORBIDSTATUS char(1) null,
constraint PK_QM_SAMPLESCHEME primary key (FID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'枚举',
'user', @CurrentUser, 'table', 'T_QM_SAMPLESCHEME', 'column', 'FAQL'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'本版隐藏',
'user', @CurrentUser, 'table', 'T_QM_SAMPLESCHEME', 'column', 'FSAMPLETIMES'
go
/*==============================================================*/
/* Index: IDX_QM_SAMPLESCHEME_NUM */
/*==============================================================*/
create index IDX_QM_SAMPLESCHEME_NUM on T_QM_SAMPLESCHEME (
FNUMBER ASC
)
go
/*==============================================================*/
/* Index: IDX_QM_SAMPLESCHEME_DATE */
/*==============================================================*/
create index IDX_QM_SAMPLESCHEME_DATE on T_QM_SAMPLESCHEME (
FCREATEDATE ASC
)
go

### T_QM_SAMPLESCHEME(抽样方案)：键值定义

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

### T_QM_SAMPLESCHEME(抽样方案)：索引定义

名称 | 代码 | 唯一的 | 群集器 | 主要的 | 外键 | 候选键 | 表格
IDX_QM_SAMPLESCHEME_NUM | IDX_QM_SAMPLESCHEME_NUM | FALSE | FALSE | FALSE | FALSE | FALSE | T_QM_SAMPLESCHEME(抽样方案)
IDX_QM_SAMPLESCHEME_DATE | IDX_QM_SAMPLESCHEME_DATE | FALSE | FALSE | FALSE | FALSE | FALSE | T_QM_SAMPLESCHEME(抽样方案)

上一页

主页

下一页