119 lines
14 KiB
Plaintext
119 lines
14 KiB
Plaintext
|
-- ----------------------------- 2022-08-26 add by zhangs--------------begin
|
||
|
|
||
|
-- 建表语句
|
||
|
CREATE TABlE DBO.T_LIMS_TEST_OUTLINE(
|
||
|
ID BIGINT NOT NULL,
|
||
|
OUTLINECODE VARCHAR(36) NULL ,
|
||
|
OUTLINENAME VARCHAR(120) NULL ,
|
||
|
OUTLINEDESC VARCHAR(360) NULL ,
|
||
|
REMARKS VARCHAR(360) NULL ,
|
||
|
LABORATORYID VARCHAR(36) NULL ,
|
||
|
LABORATORY VARCHAR(36) NULL ,
|
||
|
CREATEDBYID VARCHAR(36) NULL ,
|
||
|
CREATEDBYNAME VARCHAR(60) NULL ,
|
||
|
CREATEDTIME DATETIME NULL ,
|
||
|
CREATEDBYORGID VARCHAR(36) NULL ,
|
||
|
CREATEDBYORGNAME VARCHAR(270) NULL ,
|
||
|
CONSTRAINT PK_LIMS_TEST_OUTLINE PRIMARY KEY(ID));
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测大纲' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'ID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'大纲编号' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'OUTLINECODE';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'大纲名称' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'OUTLINENAME';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'大纲描述' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'OUTLINEDESC';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'REMARKS';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实验室ID' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'LABORATORYID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'实验室' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'LABORATORY';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单人编码' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'CREATEDBYID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单人名称' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'CREATEDBYNAME';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单时间' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'CREATEDTIME';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单人单位编码' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'CREATEDBYORGID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单人单位名称' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE', @level2type=N'COLUMN',@level2name=N'CREATEDBYORGNAME';
|
||
|
|
||
|
CREATE TABlE DBO.T_LIMS_TEST_OUTLINE_DETAIL(
|
||
|
ID BIGINT NOT NULL,
|
||
|
OUTLINEID BIGINT NULL ,
|
||
|
TESTMETHODID BIGINT NULL ,
|
||
|
SORTER BIGINT NULL ,
|
||
|
TESTID BIGINT NULL ,
|
||
|
TESTCODE VARCHAR(36) NULL ,
|
||
|
TESTNAME VARCHAR(36) NULL ,
|
||
|
METHODID BIGINT NULL ,
|
||
|
METHODCODE VARCHAR(120) NULL ,
|
||
|
METHODNAME VARCHAR(120) NULL ,
|
||
|
JUDGEBASIS VARCHAR(120) NULL ,
|
||
|
STANDARDHOUR VARCHAR(36) NULL ,
|
||
|
STANDARDPRICE VARCHAR(36) NULL ,
|
||
|
REMARKS VARCHAR(360) NULL ,
|
||
|
CREATEDBYID VARCHAR(36) NULL ,
|
||
|
CREATEDBYNAME VARCHAR(60) NULL ,
|
||
|
CREATEDTIME DATETIME NULL ,
|
||
|
CREATEDBYORGID VARCHAR(36) NULL ,
|
||
|
CREATEDBYORGNAME VARCHAR(270) NULL ,
|
||
|
CONSTRAINT PK_LIMS_TEST_OUTLINE_DETAIL PRIMARY KEY(ID));
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测大纲明细' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'ID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'大纲ID' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'OUTLINEID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测项目方法ID' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'TESTMETHODID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测序号' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'SORTER';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测项目ID' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'TESTID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测项目编号' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'TESTCODE';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测项目名称' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'TESTNAME';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测方法ID' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'METHODID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测方法编码' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'METHODCODE';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'检测方法名称' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'METHODNAME';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'判定依据' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'JUDGEBASIS';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'标准工时' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'STANDARDHOUR';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'单价' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'STANDARDPRICE';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'REMARKS';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单人编码' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'CREATEDBYID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单人名称' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'CREATEDBYNAME';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单时间' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'CREATEDTIME';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单人单位编码' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'CREATEDBYORGID';
|
||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'制单人单位名称' , @level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_LIMS_TEST_OUTLINE_DETAIL', @level2type=N'COLUMN',@level2name=N'CREATEDBYORGNAME';
|
||
|
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.SERVICE_NAME', N'检测大纲', N'检测大纲', N'zh-CN',N'检测大纲';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.ID', N'检测大纲的主键', N'主键', N'zh-CN',N'主键';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.OUTLINECODE', N'检测大纲的大纲编号', N'大纲编号', N'zh-CN',N'大纲编号';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.OUTLINENAME', N'检测大纲的大纲名称', N'大纲名称', N'zh-CN',N'大纲名称';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.OUTLINEDESC', N'检测大纲的大纲描述', N'大纲描述', N'zh-CN',N'大纲描述';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.REMARKS', N'检测大纲的备注', N'备注', N'zh-CN',N'备注';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.LABORATORYID', N'检测大纲的实验室ID', N'实验室ID', N'zh-CN',N'实验室ID';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.LABORATORY', N'检测大纲的实验室', N'实验室', N'zh-CN',N'实验室';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.CREATEDBYID', N'检测大纲的制单人编码', N'制单人编码', N'zh-CN',N'制单人编码';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.CREATEDBYNAME', N'检测大纲的制单人名称', N'制单人名称', N'zh-CN',N'制单人名称';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.CREATEDTIME', N'检测大纲的制单时间', N'制单时间', N'zh-CN',N'制单时间';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.CREATEDBYORGID', N'检测大纲的制单人单位编码', N'制单人单位编码', N'zh-CN',N'制单人单位编码';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE.CREATEDBYORGNAME', N'检测大纲的制单人单位名称', N'制单人单位名称', N'zh-CN',N'制单人单位名称';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.SERVICE_NAME', N'检测大纲明细', N'检测大纲明细', N'zh-CN',N'检测大纲明细';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.ID', N'检测大纲明细的主键', N'主键', N'zh-CN',N'主键';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.OUTLINEID', N'检测大纲明细的大纲ID', N'大纲ID', N'zh-CN',N'大纲ID';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.TESTMETHODID', N'检测大纲明细的检测项目方法ID', N'检测项目方法ID', N'zh-CN',N'检测项目方法ID';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.SORTER', N'检测大纲明细的检测序号', N'检测序号', N'zh-CN',N'检测序号';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.TESTID', N'检测大纲明细的检测项目ID', N'检测项目ID', N'zh-CN',N'检测项目ID';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.TESTCODE', N'检测大纲明细的检测项目编号', N'检测项目编号', N'zh-CN',N'检测项目编号';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.TESTNAME', N'检测大纲明细的检测项目名称', N'检测项目名称', N'zh-CN',N'检测项目名称';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.METHODID', N'检测大纲明细的检测方法ID', N'检测方法ID', N'zh-CN',N'检测方法ID';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.METHODCODE', N'检测大纲明细的检测方法编码', N'检测方法编码', N'zh-CN',N'检测方法编码';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.METHODNAME', N'检测大纲明细的检测方法名称', N'检测方法名称', N'zh-CN',N'检测方法名称';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.JUDGEBASIS', N'检测大纲明细的判定依据', N'判定依据', N'zh-CN',N'判定依据';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.STANDARDHOUR', N'检测大纲明细的标准工时', N'标准工时', N'zh-CN',N'标准工时';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.STANDARDPRICE', N'检测大纲明细的单价', N'单价', N'zh-CN',N'单价';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.REMARKS', N'检测大纲明细的备注', N'备注', N'zh-CN',N'备注';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.CREATEDBYID', N'检测大纲明细的制单人编码', N'制单人编码', N'zh-CN',N'制单人编码';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.CREATEDBYNAME', N'检测大纲明细的制单人名称', N'制单人名称', N'zh-CN',N'制单人名称';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.CREATEDTIME', N'检测大纲明细的制单时间', N'制单时间', N'zh-CN',N'制单时间';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.CREATEDBYORGID', N'检测大纲明细的制单人单位编码', N'制单人单位编码', N'zh-CN',N'制单人单位编码';
|
||
|
EXEC DBO.INSERTI18N N'T_LIMS_TEST_OUTLINE_DETAIL.CREATEDBYORGNAME', N'检测大纲明细的制单人单位名称', N'制单人单位名称', N'zh-CN',N'制单人单位名称';
|
||
|
EXEC DBO.INSERTI18N N'BASEMODULE.COREDATA.TESTOUTLINES.MODAL.ADD', N'新增', N'新增', N'zh-CN',N'新增';
|
||
|
EXEC DBO.INSERTI18N N'BASEMODULE.COREDATA.TESTOUTLINES.TAB.BASE_INFO', N'基本信息', N'基本信息', N'zh-CN',N'基本信息';
|
||
|
EXEC DBO.INSERTI18N N'BASEMODULE.COREDATA.TESTOUTLINES.BUTTON.BUTTON', N'按钮', N'按钮', N'zh-CN',N'按钮';
|
||
|
EXEC DBO.INSERTI18N N'BASEMODULE.COREDATA.TESTOUTLINES.TIP.TIP', N'提示框', N'提示框', N'zh-CN',N'提示框';
|
||
|
EXEC DBO.INSERTI18N N'BASEMODULE.COREDATA.TESTOUTLINES.MODAL.MODAL', N'对话框', N'对话框', N'zh-CN',N'对话框';
|
||
|
|
||
|
INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
|
||
|
VALUES ('T_LIMS_TEST_OUTLINE', '0', '0');
|
||
|
INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
|
||
|
VALUES ('T_LIMS_TEST_OUTLINE_DETAIL', '0', '0');
|
||
|
|
||
|
|
||
|
-- ----------------------------- 2022-08-26 add by zhangs------------end
|