
-- 建表语句
CREATE TABLE T_LIMS_EQUIPT_ACQ_CONFIG_INST(
    ID NUMBER NOT NULL,
    ACQCONFIGID VARCHAR2(120)  NULL,
    INSTRUCTIONNAME VARCHAR2(120)  NULL,
    HIXFLAG VARCHAR2(30)  NULL,
    INSTRUCTIONTYPE VARCHAR2(120)  NULL,
    INSTRUCTION VARCHAR2(240)  NULL,
    SCRIPTID NUMBER NULL,
    REMARK VARCHAR2(240)  NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_ACQ_CONFIG_INST IS '协议采集指令';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.ACQCONFIGID IS '设备ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTIONNAME IS '指令名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.HIXFLAG IS '16进制发送';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTIONTYPE IS '指令用途';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTION IS '发送指令';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.SCRIPTID IS '数据解析脚本';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.REMARK IS '备注';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_EQUIPT_ACQ_CONFIG_INST ADD CONSTRAINT PK_LIMS_EQUIPT_ACQ_CONFIG_INST PRIMARY KEY (ID);

CREATE TABLE T_LIMS_EQUIPT_SERIAL_NET_REC(
    ID NUMBER NOT NULL,
    EQUIPTID NUMBER NULL,
    ACQCATEGORY VARCHAR2(120)  NULL,
    ACQDATA VARCHAR2(900)  NULL,
    ANALYSEDATA VARCHAR2(900)  NULL,
    DATAUSETYPE VARCHAR2(60)  NULL,
    LABAREA VARCHAR2(60)  NULL,
    EPTLABTYPE VARCHAR2(60)  NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL
 );
COMMENT ON TABLE T_LIMS_EQUIPT_SERIAL_NET_REC IS '设备采集数据';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.ID IS '主键';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.EQUIPTID IS '设备ID';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.ACQCATEGORY IS '采集类型';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.ACQDATA IS '采集数据';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.ANALYSEDATA IS '解析数据';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.DATAUSETYPE IS '采集的数据用途';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.LABAREA IS '实验室区域';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.EPTLABTYPE IS '实验室类别';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDBYORGNAME IS '制单人单位名称';

ALTER TABLE T_LIMS_EQUIPT_SERIAL_NET_REC ADD CONSTRAINT PK_LIMS_EQUIPT_SERIAL_NET_REC PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.SERVICE_NAME', '协议采集指令', '协议采集指令', 'zh-CN', '协议采集指令');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.ID', '协议采集指令的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.ACQCONFIGID', '协议采集指令的设备ID', '设备ID', 'zh-CN', '设备ID');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTIONNAME', '协议采集指令的指令名称', '指令名称', 'zh-CN', '指令名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.HIXFLAG', '协议采集指令的16进制发送', '16进制发送', 'zh-CN', '16进制发送');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTIONTYPE', '协议采集指令的指令用途', '指令用途', 'zh-CN', '指令用途');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTION', '协议采集指令的发送指令', '发送指令', 'zh-CN', '发送指令');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.SCRIPTID', '协议采集指令的数据解析脚本', '数据解析脚本', 'zh-CN', '数据解析脚本');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.REMARK', '协议采集指令的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYID', '协议采集指令的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYNAME', '协议采集指令的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDTIME', '协议采集指令的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYORGID', '协议采集指令的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYORGNAME', '协议采集指令的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.SERVICE_NAME', '设备采集数据', '设备采集数据', 'zh-CN', '设备采集数据');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.ID', '设备采集数据的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.EQUIPTID', '设备采集数据的设备ID', '设备ID', 'zh-CN', '设备ID');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.ACQCATEGORY', '设备采集数据的采集类型', '采集类型', 'zh-CN', '采集类型');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.ACQDATA', '设备采集数据的采集数据', '采集数据', 'zh-CN', '采集数据');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.ANALYSEDATA', '设备采集数据的解析数据', '解析数据', 'zh-CN', '解析数据');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.DATAUSETYPE', '设备采集数据的采集的数据用途', '采集的数据用途', 'zh-CN', '采集的数据用途');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.LABAREA', '设备采集数据的实验室区域', '实验室区域', 'zh-CN', '实验室区域');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.EPTLABTYPE', '设备采集数据的实验室类别', '实验室类别', 'zh-CN', '实验室类别');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDBYID', '设备采集数据的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDBYNAME', '设备采集数据的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDTIME', '设备采集数据的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDBYORGID', '设备采集数据的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_EQUIPT_SERIAL_NET_REC.CREATEDBYORGNAME', '设备采集数据的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');

INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_EQUIPT_ACQ_CONFIG_INST', '0', '0');
INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_EQUIPT_SERIAL_NET_REC', '0', '0');



-- 建表语句
CREATE TABLE T_LIMS_ACQ_CONFIG_INSTLIB(
    ID NUMBER NOT NULL,
    INSTRUCTIONNAME VARCHAR2(120)  NULL,
    HIXFLAG VARCHAR2(30)  NULL,
    INSTRUCTIONTYPE VARCHAR2(120)  NULL,
    INSTRUCTION VARCHAR2(240)  NULL,
    SCRIPTID NUMBER NULL,
    REMARK VARCHAR2(240)  NULL,
    CREATEDBYID VARCHAR2(36)  NULL,
    CREATEDBYNAME VARCHAR2(60)  NULL,
    CREATEDTIME DATE NULL,
    CREATEDBYORGID VARCHAR2(36)  NULL,
    CREATEDBYORGNAME VARCHAR2(270)  NULL,
    EQUIPTNAME VARCHAR2(120)  NULL,
    MODEL VARCHAR2(120)  NULL,
    MANUFACTURERID NUMBER NULL
 );
COMMENT ON TABLE T_LIMS_ACQ_CONFIG_INSTLIB IS '协议指令库';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.ID IS '主键';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.INSTRUCTIONNAME IS '指令名称';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.HIXFLAG IS '16进制发送';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.INSTRUCTIONTYPE IS '指令用途';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.INSTRUCTION IS '发送指令';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.SCRIPTID IS '数据解析脚本';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.REMARK IS '备注';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDBYID IS '制单人编码';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDBYNAME IS '制单人名称';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDTIME IS '制单时间';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDBYORGID IS '制单人单位编码';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDBYORGNAME IS '制单人单位名称';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.EQUIPTNAME IS '设备名称';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.MODEL IS '设备型号';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_INSTLIB.MANUFACTURERID IS '协议厂家ID';

ALTER TABLE T_LIMS_ACQ_CONFIG_INSTLIB ADD CONSTRAINT PK_LIMS_ACQ_CONFIG_INSTLIB PRIMARY KEY (ID);

CREATE TABLE T_LIMS_ACQ_CONFIG_MANUFACTURER(
    ID NUMBER NOT NULL,
    MANUFACTURER VARCHAR2(120)  NULL,
    MANUFACTURERADDRESS VARCHAR2(240)  NULL,
    MANUFACTURERTEL VARCHAR2(120)  NULL
 );
COMMENT ON TABLE T_LIMS_ACQ_CONFIG_MANUFACTURER IS '协议厂家';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_MANUFACTURER.ID IS '主键';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_MANUFACTURER.MANUFACTURER IS '设备厂家';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_MANUFACTURER.MANUFACTURERADDRESS IS '厂家地址';
COMMENT ON COLUMN T_LIMS_ACQ_CONFIG_MANUFACTURER.MANUFACTURERTEL IS '厂家联系方式';

ALTER TABLE T_LIMS_ACQ_CONFIG_MANUFACTURER ADD CONSTRAINT PK_LIMS_ACQ_CONFIG_MANUFACTURER PRIMARY KEY (ID);

CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.SERVICE_NAME', '协议指令库', '协议指令库', 'zh-CN', '协议指令库');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.ID', '协议指令库的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.INSTRUCTIONNAME', '协议指令库的指令名称', '指令名称', 'zh-CN', '指令名称');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.HIXFLAG', '协议指令库的16进制发送', '16进制发送', 'zh-CN', '16进制发送');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.INSTRUCTIONTYPE', '协议指令库的指令用途', '指令用途', 'zh-CN', '指令用途');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.INSTRUCTION', '协议指令库的发送指令', '发送指令', 'zh-CN', '发送指令');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.SCRIPTID', '协议指令库的数据解析脚本', '数据解析脚本', 'zh-CN', '数据解析脚本');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.REMARK', '协议指令库的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDBYID', '协议指令库的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDBYNAME', '协议指令库的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDTIME', '协议指令库的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDBYORGID', '协议指令库的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.CREATEDBYORGNAME', '协议指令库的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.EQUIPTNAME', '协议指令库的设备名称', '设备名称', 'zh-CN', '设备名称');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.MODEL', '协议指令库的设备型号', '设备型号', 'zh-CN', '设备型号');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.MANUFACTURERID', '协议指令库的协议厂家ID', '协议厂家ID', 'zh-CN', '协议厂家ID');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_MANUFACTURER.SERVICE_NAME', '协议厂家', '协议厂家', 'zh-CN', '协议厂家');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_MANUFACTURER.ID', '协议厂家的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_MANUFACTURER.MANUFACTURER', '协议厂家的设备厂家', '设备厂家', 'zh-CN', '设备厂家');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_MANUFACTURER.MANUFACTURERADDRESS', '协议厂家的厂家地址', '厂家地址', 'zh-CN', '厂家地址');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_MANUFACTURER.MANUFACTURERTEL', '协议厂家的厂家联系方式', '厂家联系方式', 'zh-CN', '厂家联系方式');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.MODAL.ADD', '新增', '新增', 'zh-CN', '新增');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.TAB.BASE_INFO', '基本信息', '基本信息', 'zh-CN', '基本信息');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.BUTTON.BUTTON', '按钮', '按钮', 'zh-CN', '按钮');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.TIP.TIP', '提示框', '提示框', 'zh-CN', '提示框');
CALL INSERTI18N('BASEMODULE.COMMON.EPTSTORAGE.ACQCONFIGS.MODAL.MODAL', '对话框', '对话框', 'zh-CN', '对话框');


INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_ACQ_CONFIG_INSTLIB', '0', '0');
INSERT INTO T_CORE_TABLE (ID, AUDITABLE, ATTACHMENT)
VALUES ('T_LIMS_ACQ_CONFIG_MANUFACTURER', '0', '0');



CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.SERVICE_NAME', '协议采集指令', '协议采集指令', 'zh-CN', '协议采集指令');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.ID', '协议采集指令的主键', '主键', 'zh-CN', '主键');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.ACQCONFIGID', '协议采集指令的设备ID', '设备ID', 'zh-CN', '设备ID');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTIONNAME', '协议采集指令的指令名称', '指令名称', 'zh-CN', '指令名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.HIXFLAG', '协议采集指令的16进制发送', '16进制发送', 'zh-CN', '16进制发送');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTIONTYPE', '协议采集指令的指令类型', '指令类型', 'zh-CN', '指令类型');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.INSTRUCTION', '协议采集指令的发送指令', '发送指令', 'zh-CN', '发送指令');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.SCRIPT', '协议采集指令的数据解析脚本', '数据解析脚本', 'zh-CN', '数据解析脚本');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.REMARK', '协议采集指令的备注', '备注', 'zh-CN', '备注');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYID', '协议采集指令的制单人编码', '制单人编码', 'zh-CN', '制单人编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYNAME', '协议采集指令的制单人名称', '制单人名称', 'zh-CN', '制单人名称');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDTIME', '协议采集指令的制单时间', '制单时间', 'zh-CN', '制单时间');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYORGID', '协议采集指令的制单人单位编码', '制单人单位编码', 'zh-CN', '制单人单位编码');
CALL INSERTI18N('T_LIMS_EQUIPT_ACQ_CONFIG_INST.CREATEDBYORGNAME', '协议采集指令的制单人单位名称', '制单人单位名称', 'zh-CN', '制单人单位名称');

ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  MODULEIPPORT VARCHAR2(120);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.MODULEIPPORT IS '模块地址';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.MODULEIPPORT', '设备采集配置的模块地址', '模块地址', 'ZH-CN', '模块地址');

CALL INSERTI18N('BASELINE.MODULE.COMMON.RESOURCE.EQUIPT.ARCHIVESS.TAB.ACQ_CONFIG', '设备管理-设备采集配置', '设备采集配置', 'zh-CN', '设备采集配置');
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  FILEANALYSEWAY VARCHAR2(60);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.FILEANALYSEWAY IS '文件采集方式';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.FILEANALYSEWAY', '仪器采集配置的文件采集方式', '文件采集方式', 'zh-CN', '文件采集方式');
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  FILEACQCONFIGDESC VARCHAR2(300) ;
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.FILEACQCONFIGDESC IS '配置描述';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.FILEACQCONFIGDESC', '仪器采集配置的配置描述', '配置描述', 'zh-CN', '配置描述');
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  FILEACQCONFIGID NUMBER ;
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.FILEACQCONFIGID IS '配置ID';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.FILEACQCONFIGID', '仪器采集配置的配置ID', '配置ID', 'zh-CN', '配置ID');



CALL INSERTI18N('BASEMODULE.TRM.EQUIPT.SERIALNET.RECS.TAB.BASE_INFO', '设备串网口采集记录-消息记录', '消息记录', 'zh-CN', '消息记录');



CALL INSERTI18N('BASELINE.MODULE.COMMON.RESOURCE.EQUIPT.ARCHIVESS.TAB.ACQ_CONFIG_BASE_OPTION', '设备采集配置-基本配置', '基本配置', 'zh-CN', '基本配置');
CALL INSERTI18N('BASELINE.MODULE.COMMON.RESOURCE.EQUIPT.ARCHIVESS.TAB.ACQ_CONFIG_TCP_OPTION', '设备采集配置-网口采集配置', '网口采集配置', 'zh-CN', '网口采集配置');
CALL INSERTI18N('BASELINE.MODULE.COMMON.RESOURCE.EQUIPT.ARCHIVESS.TAB.ACQ_CONFIG_SERIAL_OPTION', '设备采集配置-串口采集配置', '网口采集配置', 'zh-CN', '串口采集配置');
CALL INSERTI18N('BASELINE.MODULE.COMMON.RESOURCE.EQUIPT.ARCHIVESS.TAB.ACQ_CONFIG_FILE_OPTION', '设备采集配置-文件采集配置', '网口采集配置', 'zh-CN', '文件采集配置');
CALL INSERTI18N('BASELINE.MODULE.COMMON.RESOURCE.EQUIPT.ARCHIVESS.TAB.ACQ_CONFIG_SEND_MESSAGE', '设备采集配置-发送消息', '发送消息', 'zh-CN', '发送消息');
CALL INSERTI18N('BASELINE.MODULE.COMMON.RESOURCE.EQUIPT.ARCHIVESS.BUTTON.ACQ_CONFIG_SEND_MESSAGE', '设备采集配置-发送消息', '发送消息', 'zh-CN', '发送消息');
alter table T_CORE_EQUIPT_ACQ_CONFIG add  MONITORFLAG VARCHAR2(30) ;
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.MONITORFLAG IS '开启监控';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.MONITORFLAG', '设备采集配置的开启监控', '开启监控', 'zh-CN', '开启监控');
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  NETACQTYPE VARCHAR2(60);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.NETACQTYPE IS '网口采集类型';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.NETACQTYPE', '仪器采集配置的网口采集类型', '网口采集类型', 'zh-CN', '网口采集类型');
alter table T_CORE_EQUIPT_ACQ_CONFIG add  IFTEMPHUMI varchar2(12);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.IFTEMPHUMI IS '温湿度记录仪';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.IFTEMPHUMI', '温湿度记录仪', '温湿度记录仪', 'zh-CN', '温湿度记录仪');

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
('ENVLABAREA','温湿度实验室','biz',NULL,25,NULL,NULL,NULL,NULL);

INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
(2021112916261,'测距实验室','ENVLABAREA',NULL,1,0,'0',NULL,NULL,NULL,'测距实验室','admin','系统管理员',NULL);
INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES(2021112916262,'电气实验室','ENVLABAREA',NULL,2,0,'0',NULL,NULL,NULL,'电气实验室','admin','系统管理员',NULL);
INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES(2021112916263,'防尘实验室','ENVLABAREA',NULL,3,0,'0',NULL,NULL,NULL,'防尘实验室','admin','系统管理员',NULL);
INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES(2021112916264,'防水实验室','ENVLABAREA',NULL,4,0,'0',NULL,NULL,NULL,'防水实验室','admin','系统管理员',NULL);

INSERT INTO T_CORE_CODE_CATEGORY (ID,CODECATEGORYNAME,CODECLASSID,REMARK,ORDERNO,VERSION,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
('EPTLABTYPE','设备实验室类别','biz',NULL,25,NULL,NULL,NULL,NULL);

INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES
(2021112917311,'环境试验箱 EVN','EPTLABTYPE',NULL,1,0,'0',NULL,NULL,NULL,'环境试验箱 EVN','admin','系统管理员',NULL);
INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES(2021112917312,'机械试验设备 MEC','EPTLABTYPE',NULL,2,0,'0',NULL,NULL,NULL,'机械试验设备 MEC','admin','系统管理员',NULL);
INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES(2021112917313,'材料分析试验设备 MAT','EPTLABTYPE',NULL,3,0,'0',NULL,NULL,NULL,'材料分析试验设备 MAT','admin','系统管理员',NULL);
INSERT INTO t_core_code (ID,CODENAME,CODECATEGORYID,REMARK,ORDERNO,VERSION,LASTSUSPENDEDFLAG,LASTSUSPENDEDBYID,LASTSUSPENDEDBYNAME,LASTSUSPENDEDTIME,CODE,CREATEDBYID,CREATEDBYNAME,CREATEDTIME) VALUES(2021112917314,'电磁/电气试验设备 EVN','EPTLABTYPE',NULL,4,0,'0',NULL,NULL,NULL,'电磁/电气试验设备 EVN','admin','系统管理员',NULL);

INSERT INTO T_CORE_CODE_CATEGORY(ID,CODECATEGORYNAME,CODECLASSID ,ORDERNO) VALUES('equiptInstructionType','采集指令类型' ,'biz','1');
INSERT INTO T_CORE_CODE (ID, CODENAME, CODE, CODECATEGORYID, REMARK, ORDERNO, VERSION,CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG) VALUES (20210500001, '设备状态', 'status', 'equiptInstructionType', NULL, 1, '0','admin', '系统管理员', 0);

insert
	into
	T_CORE_CODE (ID, CODENAME, CODE, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
values (2021110811081, '温度数据', 'tempatureData', 'equiptInstructionType', null, 2, '0', 'admin', '系统管理员', 0);

insert
	into
	T_CORE_CODE (ID, CODENAME, CODE, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
values (2021110811082, '湿度数据', 'humidityData', 'equiptInstructionType', null, 3, '0', 'admin', '系统管理员', 0);

insert
	into
	T_CORE_CODE (ID, CODENAME, CODE, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
values (2021111011082, '电压数据', 'voltageData', 'equiptInstructionType', null, 4, '0', 'admin', '系统管理员', 0);
insert
	into
	T_CORE_CODE (ID, CODENAME, CODE, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
values (2021111011083, '电流数据', 'elecCurrentData', 'equiptInstructionType', null, 5, '0', 'admin', '系统管理员', 0);
insert
	into
	T_CORE_CODE (ID, CODENAME, CODE, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
values (2021111011084, '电阻数据', 'resistanceData', 'equiptInstructionType', null, 6, '0', 'admin', '系统管理员', 0);

alter table T_CORE_EQUIPT_ACQ_CONFIG add  LABAREA varchar2(60) ;
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.LABAREA IS '实验室区域';
alter table T_CORE_EQUIPT_ACQ_CONFIG add  EPTLABTYPE varchar2(60) ;
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.EPTLABTYPE IS '实验室类别';

ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  PREDELCONTENTBYKEY VARCHAR2(120);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.PREDELCONTENTBYKEY IS '按关键字提取文档后面的部分';
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.PREDELCONTENTBYKEY', '按关键字提取文档后面的部分', '按关键字提取文档后面的部分', 'zh-CN', '按关键字提取文档后面的部分');


ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  HOSTIP  VARCHAR2(60);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.HOSTIP IS '上位机IP';
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  HOSTPORT NUMBER ;
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.HOSTPORT IS '上位机端口';
ALTER TABLE T_CORE_EQUIPT_ACQ_CONFIG ADD  HOSTPATH VARCHAR2(120);
COMMENT ON COLUMN T_CORE_EQUIPT_ACQ_CONFIG.HOSTPATH IS '上位机路径';

CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.HOSTIP', '上位机IP', '上位机IP', 'zh-CN', '上位机IP');
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.HOSTPORT', '上位机端口', '上位机端口', 'zh-CN', '上位机端口');
CALL INSERTI18N('T_CORE_EQUIPT_ACQ_CONFIG.HOSTPATH', '上位机路径', '上位机路径', 'zh-CN', '上位机路径');
update t_core_code set code='net' where CODECATEGORYID='equipt-acq-category' and code='tcp';
DELETE FROM t_core_code WHERE CODECATEGORYID ='fileAcqAnalyseWay' AND code='config';

INSERT INTO T_CORE_ADMIN_CHOOSE_CONFIG (ID,NAME,TITLE,CATEGORY,URL,WIDTH) VALUES (2022092910521,'解析脚本','解析脚本','beanshell-choose','/secure/core/module/equipt/acq-scripts/page/choose-list','60%');



CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.ATTACH', '协议附件', '协议附件', 'zh-CN', '协议附件');
CALL INSERTI18N('T_LIMS_ACQ_CONFIG_INSTLIB.ADD.FROMINSTLIB', '从指令库添加', '从指令库添加', 'zh-CN', '从指令库添加');
INSERT INTO T_CORE_ADMIN_CHOOSE_CONFIG (ID,NAME,TITLE,CATEGORY,URL,WIDTH) VALUES (2022093008561,'协议指令库','协议指令库','instlibChoose','/secure/basemodule/common/eptstorage/acq-config-instlibs/page/choose-list','80%');
INSERT INTO t_core_admin_select_config (ID,NAME,CATEGORY,URL,VALUEFIELD,TEXTFIELD,CACHEABLE) VALUES
(202105120001,'设备采集协议指令','equipt-acq-instruction','/secure/core/module/equipt/acq-configs/instructions/queries/selectable','id','instructionName','1');

CALL INSERTI18N('BASELINE.MODULE.COMMON.EQUIPTACQ.ACQCONFIGS.BUTTON.TEST_CONNECT', '设备采集配置-测试连接', '测试连接', 'zh-CN', '测试连接');
CALL INSERTI18N('BASELINE.MODULE.COMMON.EQUIPTACQ.ACQCONFIGS.TIP.ONLY_TCP_OR_SERIAL_SUPPORT', '设备采集配置-请选择串口或网口采集的设备进行测试', '请选择串口或网口采集的设备进行测试', 'zh-CN', '请选择串口或网口采集的设备进行测试');

insert
	into
	T_CORE_CODE (ID, CODENAME, CODE, CODECATEGORYID, REMARK, ORDERNO, VERSION, CREATEDBYID, CREATEDBYNAME, LASTSUSPENDEDFLAG)
values (2022111017084, 'excel采集', 'excel', 'fileAcqAnalyseWay', null, 6, '0', 'admin', '系统管理员', 0);
