/*
Navicat SQL Server Data Transfer

Source Server         : 127.0.0.1
Source Server Version : 130000
Source Host           : 127.0.0.1:1433
Source Database       : SIPAIIS_WMS_HQAQ
Source Schema         : dbo

Target Server Type    : SQL Server
Target Server Version : 130000
File Encoding         : 65001

Date: 2026-01-30 00:36:54
*/


-- ----------------------------
-- Table structure for accc
-- ----------------------------
DROP TABLE [dbo].[accc]
GO
CREATE TABLE [dbo].[accc] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[ip] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of accc
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_EVT_LOG
-- ----------------------------
DROP TABLE [dbo].[ACT_EVT_LOG]
GO
CREATE TABLE [dbo].[ACT_EVT_LOG] (
[LOG_NR_] numeric(19) NOT NULL IDENTITY(1,1) ,
[TYPE_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TIME_STAMP_] datetime NOT NULL ,
[USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[DATA_] varbinary(MAX) NULL ,
[LOCK_OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LOCK_TIME_] datetime NULL ,
[IS_PROCESSED_] tinyint NULL DEFAULT ((0)) 
)


GO

-- ----------------------------
-- Records of ACT_EVT_LOG
-- ----------------------------
SET IDENTITY_INSERT [dbo].[ACT_EVT_LOG] ON
GO
SET IDENTITY_INSERT [dbo].[ACT_EVT_LOG] OFF
GO

-- ----------------------------
-- Table structure for ACT_GE_BYTEARRAY
-- ----------------------------
DROP TABLE [dbo].[ACT_GE_BYTEARRAY]
GO
CREATE TABLE [dbo].[ACT_GE_BYTEARRAY] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[DEPLOYMENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[BYTES_] varbinary(MAX) NULL ,
[GENERATED_] tinyint NULL 
)


GO

-- ----------------------------
-- Records of ACT_GE_BYTEARRAY
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_GE_PROPERTY
-- ----------------------------
DROP TABLE [dbo].[ACT_GE_PROPERTY]
GO
CREATE TABLE [dbo].[ACT_GE_PROPERTY] (
[NAME_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[VALUE_] nvarchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[REV_] int NULL 
)


GO

-- ----------------------------
-- Records of ACT_GE_PROPERTY
-- ----------------------------
INSERT INTO [dbo].[ACT_GE_PROPERTY] ([NAME_], [VALUE_], [REV_]) VALUES (N'next.dbid', N'1', N'1')
GO
GO
INSERT INTO [dbo].[ACT_GE_PROPERTY] ([NAME_], [VALUE_], [REV_]) VALUES (N'schema.history', N'create(5.22.0.0)', N'1')
GO
GO
INSERT INTO [dbo].[ACT_GE_PROPERTY] ([NAME_], [VALUE_], [REV_]) VALUES (N'schema.version', N'5.22.0.0', N'1')
GO
GO

-- ----------------------------
-- Table structure for ACT_HI_ACTINST
-- ----------------------------
DROP TABLE [dbo].[ACT_HI_ACTINST]
GO
CREATE TABLE [dbo].[ACT_HI_ACTINST] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[CALL_PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[ACT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[ACT_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ASSIGNEE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[START_TIME_] datetime NOT NULL ,
[END_TIME_] datetime NULL ,
[DURATION_] numeric(19) NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' 
)


GO

-- ----------------------------
-- Records of ACT_HI_ACTINST
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_HI_ATTACHMENT
-- ----------------------------
DROP TABLE [dbo].[ACT_HI_ATTACHMENT]
GO
CREATE TABLE [dbo].[ACT_HI_ATTACHMENT] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[DESCRIPTION_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[URL_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[CONTENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TIME_] datetime NULL 
)


GO

-- ----------------------------
-- Records of ACT_HI_ATTACHMENT
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_HI_COMMENT
-- ----------------------------
DROP TABLE [dbo].[ACT_HI_COMMENT]
GO
CREATE TABLE [dbo].[ACT_HI_COMMENT] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TIME_] datetime NOT NULL ,
[USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[ACTION_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[MESSAGE_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[FULL_MSG_] varbinary(MAX) NULL 
)


GO

-- ----------------------------
-- Records of ACT_HI_COMMENT
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_HI_DETAIL
-- ----------------------------
DROP TABLE [dbo].[ACT_HI_DETAIL]
GO
CREATE TABLE [dbo].[ACT_HI_DETAIL] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[ACT_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[VAR_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[REV_] int NULL ,
[TIME_] datetime NOT NULL ,
[BYTEARRAY_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[DOUBLE_] float(53) NULL ,
[LONG_] numeric(19) NULL ,
[TEXT_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[TEXT2_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of ACT_HI_DETAIL
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_HI_IDENTITYLINK
-- ----------------------------
DROP TABLE [dbo].[ACT_HI_IDENTITYLINK]
GO
CREATE TABLE [dbo].[ACT_HI_IDENTITYLINK] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[GROUP_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of ACT_HI_IDENTITYLINK
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_HI_PROCINST
-- ----------------------------
DROP TABLE [dbo].[ACT_HI_PROCINST]
GO
CREATE TABLE [dbo].[ACT_HI_PROCINST] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[BUSINESS_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[START_TIME_] datetime NOT NULL ,
[END_TIME_] datetime NULL ,
[DURATION_] numeric(19) NULL ,
[START_USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[START_ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[END_ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[SUPER_PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[DELETE_REASON_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of ACT_HI_PROCINST
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_HI_TASKINST
-- ----------------------------
DROP TABLE [dbo].[ACT_HI_TASKINST]
GO
CREATE TABLE [dbo].[ACT_HI_TASKINST] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_DEF_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[PARENT_TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[DESCRIPTION_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[ASSIGNEE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[START_TIME_] datetime NOT NULL ,
[CLAIM_TIME_] datetime NULL ,
[END_TIME_] datetime NULL ,
[DURATION_] numeric(19) NULL ,
[DELETE_REASON_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[PRIORITY_] int NULL ,
[DUE_DATE_] datetime NULL ,
[FORM_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' 
)


GO

-- ----------------------------
-- Records of ACT_HI_TASKINST
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_HI_VARINST
-- ----------------------------
DROP TABLE [dbo].[ACT_HI_VARINST]
GO
CREATE TABLE [dbo].[ACT_HI_VARINST] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[VAR_TYPE_] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[REV_] int NULL ,
[BYTEARRAY_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[DOUBLE_] float(53) NULL ,
[LONG_] numeric(19) NULL ,
[TEXT_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[TEXT2_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[CREATE_TIME_] datetime NULL ,
[LAST_UPDATED_TIME_] datetime NULL 
)


GO

-- ----------------------------
-- Records of ACT_HI_VARINST
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_ID_GROUP
-- ----------------------------
DROP TABLE [dbo].[ACT_ID_GROUP]
GO
CREATE TABLE [dbo].[ACT_ID_GROUP] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' 
)


GO

-- ----------------------------
-- Records of ACT_ID_GROUP
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_ID_INFO
-- ----------------------------
DROP TABLE [dbo].[ACT_ID_INFO]
GO
CREATE TABLE [dbo].[ACT_ID_INFO] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[USER_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TYPE_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[VALUE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[PASSWORD_] varbinary(MAX) NULL ,
[PARENT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of ACT_ID_INFO
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_ID_MEMBERSHIP
-- ----------------------------
DROP TABLE [dbo].[ACT_ID_MEMBERSHIP]
GO
CREATE TABLE [dbo].[ACT_ID_MEMBERSHIP] (
[USER_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[GROUP_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL 
)


GO

-- ----------------------------
-- Records of ACT_ID_MEMBERSHIP
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_ID_USER
-- ----------------------------
DROP TABLE [dbo].[ACT_ID_USER]
GO
CREATE TABLE [dbo].[ACT_ID_USER] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[FIRST_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LAST_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[DISPLAY_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[EMAIL_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[PWD_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[SALT_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[PICTURE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' 
)


GO

-- ----------------------------
-- Records of ACT_ID_USER
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_PROCDEF_INFO
-- ----------------------------
DROP TABLE [dbo].[ACT_PROCDEF_INFO]
GO
CREATE TABLE [dbo].[ACT_PROCDEF_INFO] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[INFO_JSON_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of ACT_PROCDEF_INFO
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RE_DEPLOYMENT
-- ----------------------------
DROP TABLE [dbo].[ACT_RE_DEPLOYMENT]
GO
CREATE TABLE [dbo].[ACT_RE_DEPLOYMENT] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' ,
[DEPLOY_TIME_] datetime NULL 
)


GO

-- ----------------------------
-- Records of ACT_RE_DEPLOYMENT
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RE_MODEL
-- ----------------------------
DROP TABLE [dbo].[ACT_RE_MODEL]
GO
CREATE TABLE [dbo].[ACT_RE_MODEL] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[CREATE_TIME_] datetime NULL ,
[LAST_UPDATE_TIME_] datetime NULL ,
[VERSION_] int NULL ,
[META_INFO_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[DEPLOYMENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[EDITOR_SOURCE_VALUE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[EDITOR_SOURCE_EXTRA_VALUE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' 
)


GO

-- ----------------------------
-- Records of ACT_RE_MODEL
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RE_PROCDEF
-- ----------------------------
DROP TABLE [dbo].[ACT_RE_PROCDEF]
GO
CREATE TABLE [dbo].[ACT_RE_PROCDEF] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[VERSION_] int NOT NULL ,
[DEPLOYMENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[RESOURCE_NAME_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[DGRM_RESOURCE_NAME_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[DESCRIPTION_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[HAS_START_FORM_KEY_] tinyint NULL ,
[HAS_GRAPHICAL_NOTATION_] tinyint NULL ,
[SUSPENSION_STATE_] tinyint NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' 
)


GO

-- ----------------------------
-- Records of ACT_RE_PROCDEF
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RU_EVENT_SUBSCR
-- ----------------------------
DROP TABLE [dbo].[ACT_RU_EVENT_SUBSCR]
GO
CREATE TABLE [dbo].[ACT_RU_EVENT_SUBSCR] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[EVENT_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[EVENT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[ACTIVITY_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[CONFIGURATION_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[CREATED_] datetime NOT NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' 
)


GO

-- ----------------------------
-- Records of ACT_RU_EVENT_SUBSCR
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RU_EXECUTION
-- ----------------------------
DROP TABLE [dbo].[ACT_RU_EXECUTION]
GO
CREATE TABLE [dbo].[ACT_RU_EXECUTION] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[BUSINESS_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[PARENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[SUPER_EXEC_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[IS_ACTIVE_] tinyint NULL ,
[IS_CONCURRENT_] tinyint NULL ,
[IS_SCOPE_] tinyint NULL ,
[IS_EVENT_SCOPE_] tinyint NULL ,
[SUSPENSION_STATE_] tinyint NULL ,
[CACHED_ENT_STATE_] int NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LOCK_TIME_] datetime NULL 
)


GO

-- ----------------------------
-- Records of ACT_RU_EXECUTION
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RU_IDENTITYLINK
-- ----------------------------
DROP TABLE [dbo].[ACT_RU_IDENTITYLINK]
GO
CREATE TABLE [dbo].[ACT_RU_IDENTITYLINK] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[GROUP_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of ACT_RU_IDENTITYLINK
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RU_JOB
-- ----------------------------
DROP TABLE [dbo].[ACT_RU_JOB]
GO
CREATE TABLE [dbo].[ACT_RU_JOB] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[LOCK_EXP_TIME_] datetime NULL ,
[LOCK_OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[EXCLUSIVE_] bit NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[RETRIES_] int NULL ,
[EXCEPTION_STACK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[EXCEPTION_MSG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[DUEDATE_] datetime NULL ,
[REPEAT_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[HANDLER_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[HANDLER_CFG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' 
)


GO

-- ----------------------------
-- Records of ACT_RU_JOB
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RU_TASK
-- ----------------------------
DROP TABLE [dbo].[ACT_RU_TASK]
GO
CREATE TABLE [dbo].[ACT_RU_TASK] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[PARENT_TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[DESCRIPTION_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_DEF_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[ASSIGNEE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[DELEGATION_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PRIORITY_] int NULL ,
[CREATE_TIME_] datetime NULL ,
[DUE_DATE_] datetime NULL ,
[CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[SUSPENSION_STATE_] int NULL ,
[TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' ,
[FORM_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of ACT_RU_TASK
-- ----------------------------

-- ----------------------------
-- Table structure for ACT_RU_VARIABLE
-- ----------------------------
DROP TABLE [dbo].[ACT_RU_VARIABLE]
GO
CREATE TABLE [dbo].[ACT_RU_VARIABLE] (
[ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[REV_] int NULL ,
[TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[BYTEARRAY_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL ,
[DOUBLE_] float(53) NULL ,
[LONG_] numeric(19) NULL ,
[TEXT_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[TEXT2_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of ACT_RU_VARIABLE
-- ----------------------------

-- ----------------------------
-- Table structure for Alarm1
-- ----------------------------
DROP TABLE [dbo].[Alarm1]
GO
CREATE TABLE [dbo].[Alarm1] (
[mpoint_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] date NULL ,
[alarmLevel] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of Alarm1
-- ----------------------------

-- ----------------------------
-- Table structure for BIG_YE
-- ----------------------------
DROP TABLE [dbo].[BIG_YE]
GO
CREATE TABLE [dbo].[BIG_YE] (
[id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[wrylb_text] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[xzqh] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[year] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[dwmc] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[itemids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[scdz] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[longitude] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of BIG_YE
-- ----------------------------

-- ----------------------------
-- Table structure for FangZhen_Balance
-- ----------------------------
DROP TABLE [dbo].[FangZhen_Balance]
GO
CREATE TABLE [dbo].[FangZhen_Balance] (
[Name] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[StayTime] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[FlowSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LeftSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LodSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LevelSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[Mode] int NULL ,
[WaterQualitySignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of FangZhen_Balance
-- ----------------------------

-- ----------------------------
-- Table structure for FangZhen_Browser
-- ----------------------------
DROP TABLE [dbo].[FangZhen_Browser]
GO
CREATE TABLE [dbo].[FangZhen_Browser] (
[BrowserName] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[X] float(53) NULL ,
[Y] float(53) NULL ,
[Width] float(53) NULL ,
[Height] float(53) NULL ,
[url] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[StationID] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[SceneModeIndex] int NULL 
)


GO

-- ----------------------------
-- Records of FangZhen_Browser
-- ----------------------------

-- ----------------------------
-- Table structure for FangZhen_equipment
-- ----------------------------
DROP TABLE [dbo].[FangZhen_equipment]
GO
CREATE TABLE [dbo].[FangZhen_equipment] (
[equipObjName] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[equipID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[equipUIName] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[equipType] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[runsignal] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[stationID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of FangZhen_equipment
-- ----------------------------

-- ----------------------------
-- Table structure for FangZhen_HeadUI
-- ----------------------------
DROP TABLE [dbo].[FangZhen_HeadUI]
GO
CREATE TABLE [dbo].[FangZhen_HeadUI] (
[signalName] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[rowIndex] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[colIndex] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[tableType] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[tableIndex] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[rowName] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[colName] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of FangZhen_HeadUI
-- ----------------------------

-- ----------------------------
-- Table structure for FangZhen_Pipe
-- ----------------------------
DROP TABLE [dbo].[FangZhen_Pipe]
GO
CREATE TABLE [dbo].[FangZhen_Pipe] (
[Name] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ID] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[StationID] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of FangZhen_Pipe
-- ----------------------------

-- ----------------------------
-- Table structure for FangZhen_Station
-- ----------------------------
DROP TABLE [dbo].[FangZhen_Station]
GO
CREATE TABLE [dbo].[FangZhen_Station] (
[stationName] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[stationID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[structuresID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LeftSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LODSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[FlowSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[WaterQualitySignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LevelSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of FangZhen_Station
-- ----------------------------

-- ----------------------------
-- Table structure for FangZhen_Water
-- ----------------------------
DROP TABLE [dbo].[FangZhen_Water]
GO
CREATE TABLE [dbo].[FangZhen_Water] (
[Name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[RunSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[StopSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[BackflushSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[FiltrationSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[MainTainSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[LevelSignal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[ID] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[NTU] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[HCIO] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of FangZhen_Water
-- ----------------------------

-- ----------------------------
-- Table structure for FangZhen_Xeoma
-- ----------------------------
DROP TABLE [dbo].[FangZhen_Xeoma]
GO
CREATE TABLE [dbo].[FangZhen_Xeoma] (
[name] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ID] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[station] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[ip] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[channel] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of FangZhen_Xeoma
-- ----------------------------

-- ----------------------------
-- Table structure for Listener_His
-- ----------------------------
DROP TABLE [dbo].[Listener_His]
GO
CREATE TABLE [dbo].[Listener_His] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pointid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_His', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_His', 
'COLUMN', N'pointid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'point监测点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'pointid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'point监测点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'pointid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_His', 
'COLUMN', N'value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_His', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'输入或者输出'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'输入或者输出'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_His', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'新增时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'新增时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_His'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO

-- ----------------------------
-- Records of Listener_His
-- ----------------------------

-- ----------------------------
-- Table structure for Listener_Interface
-- ----------------------------
DROP TABLE [dbo].[Listener_Interface]
GO
CREATE TABLE [dbo].[Listener_Interface] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[port] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Interface', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Interface', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接口名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接口名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Interface', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接口类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接口类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Interface', 
'COLUMN', N'url')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接口url'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'url'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接口url'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'url'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Interface', 
'COLUMN', N'port')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接口port'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'port'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接口port'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Interface'
, @level2type = 'COLUMN', @level2name = N'port'
GO

-- ----------------------------
-- Records of Listener_Interface
-- ----------------------------

-- ----------------------------
-- Table structure for listener_message
-- ----------------------------
DROP TABLE [dbo].[listener_message]
GO
CREATE TABLE [dbo].[listener_message] (
[Cmdtype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[Objid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[Action] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of listener_message
-- ----------------------------

-- ----------------------------
-- Table structure for listener_message_reload
-- ----------------------------
DROP TABLE [dbo].[listener_message_reload]
GO
CREATE TABLE [dbo].[listener_message_reload] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[CmdType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[Action] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[Objid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of listener_message_reload
-- ----------------------------

-- ----------------------------
-- Table structure for Listener_Point
-- ----------------------------
DROP TABLE [dbo].[Listener_Point]
GO
CREATE TABLE [dbo].[Listener_Point] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[intid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[datatype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[logi] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[logi_val] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[action] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Point', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Point', 
'COLUMN', N'intid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联interface表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'intid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联interface表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'intid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Point', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'点位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'点位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Point', 
'COLUMN', N'address')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'modbus寄存器地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'address'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'modbus寄存器地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'address'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Point', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'输入或者输出'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'输入或者输出'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Point', 
'COLUMN', N'mpcode')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联生产库子表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'mpcode'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联生产库子表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'mpcode'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Point', 
'COLUMN', N'datatype')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'点位类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'datatype'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'点位类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'datatype'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'Listener_Point', 
'COLUMN', N'unitid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'unitid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'Listener_Point'
, @level2type = 'COLUMN', @level2name = N'unitid'
GO

-- ----------------------------
-- Records of Listener_Point
-- ----------------------------

-- ----------------------------
-- Table structure for sysdiagrams
-- ----------------------------
DROP TABLE [dbo].[sysdiagrams]
GO
CREATE TABLE [dbo].[sysdiagrams] (
[name] sysname NOT NULL ,
[principal_id] int NOT NULL ,
[diagram_id] int NOT NULL IDENTITY(1,1) ,
[version] int NULL ,
[definition] varbinary(MAX) NULL 
)


GO

-- ----------------------------
-- Records of sysdiagrams
-- ----------------------------
SET IDENTITY_INSERT [dbo].[sysdiagrams] ON
GO
SET IDENTITY_INSERT [dbo].[sysdiagrams] OFF
GO

-- ----------------------------
-- Table structure for tb_abnormity
-- ----------------------------
DROP TABLE [dbo].[tb_abnormity]
GO
CREATE TABLE [dbo].[tb_abnormity] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_ids] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sumit_man] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[defect_level] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormity_description] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[library_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'equipment_ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id，可多选'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'equipment_ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id，可多选'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'equipment_ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'process_section_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常处理状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常处理状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'sumit_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上报人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'sumit_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上报人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'sumit_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'defect_level')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'缺陷级别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'defect_level'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'缺陷级别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'defect_level'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'abnormity_description')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'abnormity_description'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'abnormity_description'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_abnormity', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_abnormity'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of tb_abnormity
-- ----------------------------

-- ----------------------------
-- Table structure for tb_accident
-- ----------------------------
DROP TABLE [dbo].[tb_accident]
GO
CREATE TABLE [dbo].[tb_accident] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[happen_date] datetime NULL ,
[happen_place] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[accident_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[accident_description] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[emergency_plan_true] int NULL ,
[emergency_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[handle_result] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_accident
-- ----------------------------

-- ----------------------------
-- Table structure for tb_accident_type
-- ----------------------------
DROP TABLE [dbo].[tb_accident_type]
GO
CREATE TABLE [dbo].[tb_accident_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[harm_description] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[note] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_accident_type
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModel
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModel]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModel] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[checkstandard] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[modelgoal] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[requirement] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModel
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModel_file
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModel_file]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModel_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModel_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModel_MPoint
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModel_MPoint]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModel_MPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[acceptance_model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL ,
[pos_x] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pos_y] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sheet_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[unitConversion] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[moveData] int NULL ,
[monthRange] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModel_MPoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModel_Output
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModel_Output]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModel_Output] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[acceptance_model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sheet_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[base_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pos_x] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pos_y] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModel_Output
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModel_Text
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModel_Text]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModel_Text] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[acceptance_model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL ,
[pos_x] int NULL ,
[pos_y] int NULL ,
[sheet_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModel_Text
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModelData
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModelData]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModelData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[modeMPld] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModelData
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModelOutputData
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModelOutputData]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModelOutputData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[value] float(53) NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[modeOutputld] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModelOutputData
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModelRecord
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModelRecord]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModelRecord] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[sdt] datetime NULL ,
[edt] datetime NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModelRecord
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModelRecord_file
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModelRecord_file]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModelRecord_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModelRecord_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_AcceptanceModelTextData
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_AcceptanceModelTextData]
GO
CREATE TABLE [dbo].[TB_Achievement_AcceptanceModelTextData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[text] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[modeTextld] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Achievement_AcceptanceModelTextData
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Achievement_ModelLibrary
-- ----------------------------
DROP TABLE [dbo].[TB_Achievement_ModelLibrary]
GO
CREATE TABLE [dbo].[TB_Achievement_ModelLibrary] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[param_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[param_code] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[reference_high_value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reference_low_value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reference_value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reference_type] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[explain] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[project_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'sj'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'sj'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联上级id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联上级id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'层级类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'层级类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'param_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'指标名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'param_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'指标名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'param_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'param_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'指标编码   （用于指导分厂命名测量点使用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'param_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'指标编码   （用于指导分厂命名测量点使用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'param_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'reference_high_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参考值上限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'reference_high_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参考值上限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'reference_high_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'reference_low_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参考值下限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'reference_low_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参考值下限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'reference_low_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'reference_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参考值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'reference_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参考值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'reference_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'reference_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参考值类型：
大于           reference_value

小于           reference_value
区间内        上下限制2个字段

区间外        上下限制2个字段

不为空        不判断字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'reference_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参考值类型：
大于           reference_value

小于           reference_value
区间内        上下限制2个字段

区间外        上下限制2个字段

不为空        不判断字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'reference_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'unit')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'unit'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'unit'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'explain')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'explain'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'explain'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Achievement_ModelLibrary', 
'COLUMN', N'project_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'项目分类   如 管理要点和成本指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'project_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'项目分类   如 管理要点和成本指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Achievement_ModelLibrary'
, @level2type = 'COLUMN', @level2name = N'project_type'
GO

-- ----------------------------
-- Records of TB_Achievement_ModelLibrary
-- ----------------------------

-- ----------------------------
-- Table structure for tb_administration_organization_class
-- ----------------------------
DROP TABLE [dbo].[tb_administration_organization_class]
GO
CREATE TABLE [dbo].[tb_administration_organization_class] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[version] int NULL ,
[morder] int NULL ,
[sname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[attribute] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_administration_organization_class
-- ----------------------------

-- ----------------------------
-- Table structure for tb_alarm_information
-- ----------------------------
DROP TABLE [dbo].[tb_alarm_information]
GO
CREATE TABLE [dbo].[tb_alarm_information] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[updater] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatetime] datetime NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[level_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mold_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_receivers] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[popup_st] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_alarm_information
-- ----------------------------

-- ----------------------------
-- Table structure for tb_alarm_levels
-- ----------------------------
DROP TABLE [dbo].[tb_alarm_levels]
GO
CREATE TABLE [dbo].[tb_alarm_levels] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_alarm_levels
-- ----------------------------

-- ----------------------------
-- Table structure for tb_alarm_mold
-- ----------------------------
DROP TABLE [dbo].[tb_alarm_mold]
GO
CREATE TABLE [dbo].[tb_alarm_mold] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_alarm_mold
-- ----------------------------

-- ----------------------------
-- Table structure for tb_alarm_point
-- ----------------------------
DROP TABLE [dbo].[tb_alarm_point]
GO
CREATE TABLE [dbo].[tb_alarm_point] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[updater] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatetime] datetime NULL ,
[alarm_point] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[base_value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[information_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_alarm_point
-- ----------------------------

-- ----------------------------
-- Table structure for tb_alarm_subscribe
-- ----------------------------
DROP TABLE [dbo].[tb_alarm_subscribe]
GO
CREATE TABLE [dbo].[tb_alarm_subscribe] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_alarm_subscribe
-- ----------------------------

-- ----------------------------
-- Table structure for tb_alarmType
-- ----------------------------
DROP TABLE [dbo].[tb_alarmType]
GO
CREATE TABLE [dbo].[tb_alarmType] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[noticeType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[no] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[operaterId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[state] bit NULL ,
[autoIssue] bit NULL 
)


GO

-- ----------------------------
-- Records of tb_alarmType
-- ----------------------------

-- ----------------------------
-- Table structure for tb_app_homePageData
-- ----------------------------
DROP TABLE [dbo].[tb_app_homePageData]
GO
CREATE TABLE [dbo].[tb_app_homePageData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[todayYearWater] float(53) NULL ,
[onlineWater] float(53) NULL ,
[waterQuantity] float(53) NULL ,
[waterRate] float(53) NULL ,
[mudVolume] float(53) NULL ,
[mudRate] float(53) NULL ,
[totalEqNum] int NULL ,
[usingEqNum] int NULL ,
[AEq] int NULL ,
[BEq] int NULL ,
[CEq] int NULL ,
[EqRate] float(53) NULL ,
[OverhaulRate] float(53) NULL ,
[MaintainRate] float(53) NULL ,
[abnormalNum] int NULL ,
[abnormalAddNum] int NULL ,
[workingAbnormalNum] int NULL ,
[eqAbnormalNum] int NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_app_homePageData
-- ----------------------------

-- ----------------------------
-- Table structure for tb_app_menuitem
-- ----------------------------
DROP TABLE [dbo].[tb_app_menuitem]
GO
CREATE TABLE [dbo].[tb_app_menuitem] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[description] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[location] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_app_menuitem
-- ----------------------------

-- ----------------------------
-- Table structure for tb_app_productMonitor
-- ----------------------------
DROP TABLE [dbo].[tb_app_productMonitor]
GO
CREATE TABLE [dbo].[tb_app_productMonitor] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[run_mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[current_mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_app_productMonitor
-- ----------------------------

-- ----------------------------
-- Table structure for tb_app_productMonitorMp
-- ----------------------------
DROP TABLE [dbo].[tb_app_productMonitorMp]
GO
CREATE TABLE [dbo].[tb_app_productMonitorMp] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posy] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[owner_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[txt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fsize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[accuracy] int NULL ,
[morder] int NULL DEFAULT NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_app_productMonitorMp
-- ----------------------------

-- ----------------------------
-- Table structure for tb_app_role_menu
-- ----------------------------
DROP TABLE [dbo].[tb_app_role_menu]
GO
CREATE TABLE [dbo].[tb_app_role_menu] (
[roleID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[menuID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_app_role_menu
-- ----------------------------
INSERT INTO [dbo].[tb_app_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'32dc5348d3c9471a82b9f943cd0e4728')
GO
GO
INSERT INTO [dbo].[tb_app_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'52ed90cd64f54bf2b191bb291cb59d34')
GO
GO
INSERT INTO [dbo].[tb_app_role_menu] ([roleID], [menuID]) VALUES (N'ffe05a05b8744994ae64f9b1c067b9cf', N'131e819664c24d44a335e11982d93d1e')
GO
GO
INSERT INTO [dbo].[tb_app_role_menu] ([roleID], [menuID]) VALUES (N'ffe05a05b8744994ae64f9b1c067b9cf', N'32dc5348d3c9471a82b9f943cd0e4728')
GO
GO

-- ----------------------------
-- Table structure for tb_app_yesterdayMainData
-- ----------------------------
DROP TABLE [dbo].[tb_app_yesterdayMainData]
GO
CREATE TABLE [dbo].[tb_app_yesterdayMainData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[defaultValue] float(53) NULL ,
[isTrueDataSt] varchar(5) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[update] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_app_yesterdayMainData
-- ----------------------------

-- ----------------------------
-- Table structure for tb_appData_configure
-- ----------------------------
DROP TABLE [dbo].[tb_appData_configure]
GO
CREATE TABLE [dbo].[tb_appData_configure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dataName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[showName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[datatype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_appData_configure
-- ----------------------------

-- ----------------------------
-- Table structure for TB_AssetClass
-- ----------------------------
DROP TABLE [dbo].[TB_AssetClass]
GO
CREATE TABLE [dbo].[TB_AssetClass] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[assetClassNumber] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[assetClassName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[depreciableLife] float(53) NULL ,
[yearDepreciation] float(53) NULL ,
[netSalvageRatio] float(53) NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[belong_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_belong_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_AssetClass', 
'COLUMN', N'assetClassNumber')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'资产类型编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'assetClassNumber'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'资产类型编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'assetClassNumber'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_AssetClass', 
'COLUMN', N'assetClassName')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'资产类型名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'assetClassName'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'资产类型名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'assetClassName'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_AssetClass', 
'COLUMN', N'depreciableLife')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'折旧年限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'depreciableLife'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'折旧年限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'depreciableLife'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_AssetClass', 
'COLUMN', N'yearDepreciation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年折旧率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'yearDepreciation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年折旧率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'yearDepreciation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_AssetClass', 
'COLUMN', N'netSalvageRatio')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'净残值比例'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'netSalvageRatio'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'净残值比例'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'netSalvageRatio'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_AssetClass', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'资产类型启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'资产类型启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_AssetClass', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_AssetClass'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_AssetClass
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Auto_Alert
-- ----------------------------
DROP TABLE [dbo].[TB_Auto_Alert]
GO
CREATE TABLE [dbo].[TB_Auto_Alert] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] bit NULL ,
[alert_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[alert_date] int NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Auto_Alert
-- ----------------------------

-- ----------------------------
-- Table structure for tb_basic_components
-- ----------------------------
DROP TABLE [dbo].[tb_basic_components]
GO
CREATE TABLE [dbo].[tb_basic_components] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_basic_components
-- ----------------------------
INSERT INTO [dbo].[tb_basic_components] ([id], [name], [pid], [insdt], [insuser], [morder], [active], [remark], [code]) VALUES (N'aaa', N'登录页-抬头', null, null, null, N'1', N'1', null, N'login-title')
GO
GO
INSERT INTO [dbo].[tb_basic_components] ([id], [name], [pid], [insdt], [insuser], [morder], [active], [remark], [code]) VALUES (N'bbb', N'登录页-公司logo', null, null, null, N'2', N'1', null, N'login-bottom')
GO
GO
INSERT INTO [dbo].[tb_basic_components] ([id], [name], [pid], [insdt], [insuser], [morder], [active], [remark], [code]) VALUES (N'ccc', N'顶部-logo', null, null, null, N'3', N'1', null, N'logo-lg')
GO
GO
INSERT INTO [dbo].[tb_basic_components] ([id], [name], [pid], [insdt], [insuser], [morder], [active], [remark], [code]) VALUES (N'ddd', N'顶部-抬头', null, null, null, N'4', N'1', null, N'logo-title')
GO
GO
INSERT INTO [dbo].[tb_basic_components] ([id], [name], [pid], [insdt], [insuser], [morder], [active], [remark], [code]) VALUES (N'eee', N'顶部-icon', null, null, null, N'5', N'1', null, N'logo-mini')
GO
GO
INSERT INTO [dbo].[tb_basic_components] ([id], [name], [pid], [insdt], [insuser], [morder], [active], [remark], [code]) VALUES (N'fff', N'首页-链接地址', null, null, null, N'6', N'1', null, N'main-url')
GO
GO

-- ----------------------------
-- Table structure for tb_basic_configure
-- ----------------------------
DROP TABLE [dbo].[tb_basic_configure]
GO
CREATE TABLE [dbo].[tb_basic_configure] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[version] int NULL ,
[morder] int NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_basic_configure
-- ----------------------------
INSERT INTO [dbo].[tb_basic_configure] ([id], [name], [pid], [insdt], [insuser], [version], [morder], [active], [remark], [type], [url], [abspath]) VALUES (N'aaa1', N'登录页-抬头', N'aaa', null, null, N'1', N'1', N'1', N'', N'in_file', null, N'IMG\login\title.png')
GO
GO
INSERT INTO [dbo].[tb_basic_configure] ([id], [name], [pid], [insdt], [insuser], [version], [morder], [active], [remark], [type], [url], [abspath]) VALUES (N'aaa2', N'登录页-底部', N'bbb', null, null, N'1', N'1', N'0', null, N'in_file', null, N'IMG\login\company.png')
GO
GO
INSERT INTO [dbo].[tb_basic_configure] ([id], [name], [pid], [insdt], [insuser], [version], [morder], [active], [remark], [type], [url], [abspath]) VALUES (N'fff1', N'首页', N'fff', null, null, N'1', N'1', N'1', null, N'url', N'/Login/main_JS_Company.do', N'/work/mpoint/overviewEquipment2020.do')
GO
GO
INSERT INTO [dbo].[tb_basic_configure] ([id], [name], [pid], [insdt], [insuser], [version], [morder], [active], [remark], [type], [url], [abspath]) VALUES (N'top-icon', N'金山', N'eee', null, null, N'1', N'1', N'1', null, N'text', N'', null)
GO
GO
INSERT INTO [dbo].[tb_basic_configure] ([id], [name], [pid], [insdt], [insuser], [version], [morder], [active], [remark], [type], [url], [abspath]) VALUES (N'top-logo', N'上海金山卫污水厂', N'ccc', null, null, N'1', N'1', N'1', null, N'text', N'', null)
GO
GO
INSERT INTO [dbo].[tb_basic_configure] ([id], [name], [pid], [insdt], [insuser], [version], [morder], [active], [remark], [type], [url], [abspath]) VALUES (N'top-title', N'源网一体化管控平台', N'ddd', null, null, N'1', N'1', N'1', null, N'text', null, null)
GO
GO

-- ----------------------------
-- Table structure for tb_basic_homePage
-- ----------------------------
DROP TABLE [dbo].[tb_basic_homePage]
GO
CREATE TABLE [dbo].[tb_basic_homePage] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[rolePeople] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unRolePeople] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_basic_homePage
-- ----------------------------
INSERT INTO [dbo].[tb_basic_homePage] ([id], [userid], [unitId], [type], [active], [url], [rolePeople], [unRolePeople]) VALUES (N'1', N'emp01', N'0533JS', N'sys', N'1', N'Login/main_JS_Company.do', null, null)
GO
GO
INSERT INTO [dbo].[tb_basic_homePage] ([id], [userid], [unitId], [type], [active], [url], [rolePeople], [unRolePeople]) VALUES (N'2', N'emp01', N'JS1C', N'sys', N'1', N'Login/main_JS_Factory.do', null, null)
GO
GO
INSERT INTO [dbo].[tb_basic_homePage] ([id], [userid], [unitId], [type], [active], [url], [rolePeople], [unRolePeople]) VALUES (N'3', N'emp01', N'JS2C', N'sys', N'1', N'Login/main_JS_Factory.do', null, null)
GO
GO
INSERT INTO [dbo].[tb_basic_homePage] ([id], [userid], [unitId], [type], [active], [url], [rolePeople], [unRolePeople]) VALUES (N'4', N'emp01', N'JSBZ', N'sys', N'1', N'Login/main_JS_Factory.do', null, null)
GO
GO

-- ----------------------------
-- Table structure for tb_BIM_alarm_threshold
-- ----------------------------
DROP TABLE [dbo].[tb_BIM_alarm_threshold]
GO
CREATE TABLE [dbo].[tb_BIM_alarm_threshold] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[st] datetime NULL ,
[ct] datetime NULL ,
[place_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[place_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tag_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[foreshow_max_val] money NULL ,
[foreshow_min_val] money NULL ,
[max_val] money NULL ,
[min_val] money NULL ,
[pk_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_BIM_alarm_threshold
-- ----------------------------

-- ----------------------------
-- Table structure for tb_BIM_camera
-- ----------------------------
DROP TABLE [dbo].[tb_BIM_camera]
GO
CREATE TABLE [dbo].[tb_BIM_camera] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[st] datetime NULL ,
[ct] datetime NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[device_pass] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[lon] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[lat] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[interfaces] varchar(200) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_BIM_camera
-- ----------------------------

-- ----------------------------
-- Table structure for tb_BIM_CD_homePage_tree
-- ----------------------------
DROP TABLE [dbo].[tb_BIM_CD_homePage_tree]
GO
CREATE TABLE [dbo].[tb_BIM_CD_homePage_tree] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_BIM_CD_homePage_tree
-- ----------------------------

-- ----------------------------
-- Table structure for tb_BIM_currency
-- ----------------------------
DROP TABLE [dbo].[tb_BIM_currency]
GO
CREATE TABLE [dbo].[tb_BIM_currency] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[st] datetime NULL ,
[ct] datetime NULL ,
[value] money NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[location_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[location_details] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[lon] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lat] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tag_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tag_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_code] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[server_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_BIM_currency
-- ----------------------------

-- ----------------------------
-- Table structure for tb_bimRoute_data
-- ----------------------------
DROP TABLE [dbo].[tb_bimRoute_data]
GO
CREATE TABLE [dbo].[tb_bimRoute_data] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarmValue] float(53) NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[eqName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarmContent] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_bimRoute_data
-- ----------------------------

-- ----------------------------
-- Table structure for tb_bimRoute_eqdata
-- ----------------------------
DROP TABLE [dbo].[tb_bimRoute_eqdata]
GO
CREATE TABLE [dbo].[tb_bimRoute_eqdata] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[eq_num] int NULL ,
[point_num] int NULL ,
[abnormal_point_num] int NULL ,
[abnormal_eq_num] int NULL ,
[normal_eq_num] int NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_bimRoute_eqdata
-- ----------------------------

-- ----------------------------
-- Table structure for tb_bonuspoint
-- ----------------------------
DROP TABLE [dbo].[tb_bonuspoint]
GO
CREATE TABLE [dbo].[tb_bonuspoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[userId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[point] int NULL ,
[edt] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_bonuspoint
-- ----------------------------

-- ----------------------------
-- Table structure for tb_bonuspoint_record
-- ----------------------------
DROP TABLE [dbo].[tb_bonuspoint_record]
GO
CREATE TABLE [dbo].[tb_bonuspoint_record] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[point] bigint NULL ,
[reason] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[goodsId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_bonuspoint_record', 
'COLUMN', N'goodsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'商品id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_bonuspoint_record'
, @level2type = 'COLUMN', @level2name = N'goodsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'商品id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_bonuspoint_record'
, @level2type = 'COLUMN', @level2name = N'goodsId'
GO

-- ----------------------------
-- Records of tb_bonuspoint_record
-- ----------------------------

-- ----------------------------
-- Table structure for tb_bot
-- ----------------------------
DROP TABLE [dbo].[tb_bot]
GO
CREATE TABLE [dbo].[tb_bot] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[design_scale] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[emission] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[influent_index] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[effluent_index] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[process] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[price] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[calculation] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[signdate] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[franchise_period] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[dsnum] bigint NULL ,
[type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[service_area] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[service_population] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[lgtd] decimal(18,10) NULL ,
[lttd] decimal(18,10) NULL ,
[line_map_url] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[point_map_url] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[linetotal] numeric(18) NULL ,
[pointnum] numeric(18) NULL ,
[click_state] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[default_load] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legal_person_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[outlet_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[outlet_name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[entrance_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[entrance_name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[town_num] int NULL ,
[village_num] int NULL ,
[pump_num] int NULL 
)


GO

-- ----------------------------
-- Records of tb_bot
-- ----------------------------

-- ----------------------------
-- Table structure for tb_bot_file
-- ----------------------------
DROP TABLE [dbo].[tb_bot_file]
GO
CREATE TABLE [dbo].[tb_bot_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[size] float(53) NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ord] int NULL ,
[urlpath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filenature] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filefolder] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_bot_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_business_unit
-- ----------------------------
DROP TABLE [dbo].[tb_business_unit]
GO
CREATE TABLE [dbo].[tb_business_unit] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[modal_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_business_unit
-- ----------------------------

-- ----------------------------
-- Table structure for tb_business_unit_audit
-- ----------------------------
DROP TABLE [dbo].[tb_business_unit_audit]
GO
CREATE TABLE [dbo].[tb_business_unit_audit] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[businessId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskDefinitionKey] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[taskId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[auditOpinion] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[targetUsers] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[passStatus] bit NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_business_unit_audit', 
'COLUMN', N'auditOpinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_audit'
, @level2type = 'COLUMN', @level2name = N'auditOpinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_audit'
, @level2type = 'COLUMN', @level2name = N'auditOpinion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_business_unit_audit', 
'COLUMN', N'passStatus')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'通过状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_audit'
, @level2type = 'COLUMN', @level2name = N'passStatus'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'通过状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_audit'
, @level2type = 'COLUMN', @level2name = N'passStatus'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_business_unit_audit', 
'COLUMN', N'unitId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用于区别不同类型的审核'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_audit'
, @level2type = 'COLUMN', @level2name = N'unitId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用于区别不同类型的审核'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_audit'
, @level2type = 'COLUMN', @level2name = N'unitId'
GO

-- ----------------------------
-- Records of tb_business_unit_audit
-- ----------------------------

-- ----------------------------
-- Table structure for tb_business_unit_dept_apply
-- ----------------------------
DROP TABLE [dbo].[tb_business_unit_dept_apply]
GO
CREATE TABLE [dbo].[tb_business_unit_dept_apply] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subscribe_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskDefinitionKey] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[taskId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[targetUsers] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[handleDetail] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_business_unit_dept_apply
-- ----------------------------

-- ----------------------------
-- Table structure for tb_business_unit_handle
-- ----------------------------
DROP TABLE [dbo].[tb_business_unit_handle]
GO
CREATE TABLE [dbo].[tb_business_unit_handle] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[businessId] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[taskDefinitionKey] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[taskId] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[handleDetail] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[handledt] datetime NULL ,
[targetUsers] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_business_unit_handle
-- ----------------------------

-- ----------------------------
-- Table structure for tb_business_unit_handle_detail
-- ----------------------------
DROP TABLE [dbo].[tb_business_unit_handle_detail]
GO
CREATE TABLE [dbo].[tb_business_unit_handle_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenanceDetailId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskDefinitionKey] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[problem] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[handleDetail] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[detailSupplement] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[handleDt] datetime NULL ,
[processSectionId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentIds] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[faultLibraryId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_business_unit_handle_detail', 
'COLUMN', N'detailSupplement')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护处理补充，用于维护商区别显示'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_handle_detail'
, @level2type = 'COLUMN', @level2name = N'detailSupplement'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护处理补充，用于维护商区别显示'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_handle_detail'
, @level2type = 'COLUMN', @level2name = N'detailSupplement'
GO

-- ----------------------------
-- Records of tb_business_unit_handle_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_business_unit_ild
-- ----------------------------
DROP TABLE [dbo].[tb_business_unit_ild]
GO
CREATE TABLE [dbo].[tb_business_unit_ild] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_business_unit_ild
-- ----------------------------

-- ----------------------------
-- Table structure for tb_business_unit_inquiry
-- ----------------------------
DROP TABLE [dbo].[tb_business_unit_inquiry]
GO
CREATE TABLE [dbo].[tb_business_unit_inquiry] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subscribe_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskDefinitionKey] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[taskId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[targetUsers] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[handleDetail] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_business_unit_inquiry
-- ----------------------------

-- ----------------------------
-- Table structure for tb_business_unit_issue
-- ----------------------------
DROP TABLE [dbo].[tb_business_unit_issue]
GO
CREATE TABLE [dbo].[tb_business_unit_issue] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenanceDetailId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[userTaskId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[auditOpinion] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_business_unit_issue', 
'COLUMN', N'auditOpinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_issue'
, @level2type = 'COLUMN', @level2name = N'auditOpinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_business_unit_issue'
, @level2type = 'COLUMN', @level2name = N'auditOpinion'
GO

-- ----------------------------
-- Records of tb_business_unit_issue
-- ----------------------------

-- ----------------------------
-- Table structure for tb_clients
-- ----------------------------
DROP TABLE [dbo].[tb_clients]
GO
CREATE TABLE [dbo].[tb_clients] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[tel] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[fax] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[email] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] nvarchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[contactname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contacttel] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_clients
-- ----------------------------

-- ----------------------------
-- Table structure for tb_common_file
-- ----------------------------
DROP TABLE [dbo].[tb_common_file]
GO
CREATE TABLE [dbo].[tb_common_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_common_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_company
-- ----------------------------
DROP TABLE [dbo].[tb_company]
GO
CREATE TABLE [dbo].[tb_company] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[tel] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[website] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[post] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[version] int NULL ,
[morder] int NULL ,
[sname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[ename] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[longitude] decimal(10,7) NULL ,
[latitude] decimal(10,7) NULL ,
[is_count] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[library_bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[city] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_company', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'公司类型，集团公司或者实质性公司，比如集团公司，与水厂'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_company'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'公司类型，集团公司或者实质性公司，比如集团公司，与水厂'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_company'
, @level2type = 'COLUMN', @level2name = N'type'
GO

-- ----------------------------
-- Records of tb_company
-- ----------------------------
INSERT INTO [dbo].[tb_company] ([id], [name], [pid], [address], [tel], [website], [taskid], [post], [insdt], [insuser], [version], [morder], [sname], [active], [type], [ename], [longitude], [latitude], [is_count], [library_bizid], [city]) VALUES (N'0533JS', N'金山排海工程有限公司', N'-1', N'', null, null, null, null, null, null, null, N'5', N'金山排海', N'1', N'C', N'JSPH', N'119.9800000', N'31.9500000', null, N'', null)
GO
GO
INSERT INTO [dbo].[tb_company] ([id], [name], [pid], [address], [tel], [website], [taskid], [post], [insdt], [insuser], [version], [morder], [sname], [active], [type], [ename], [longitude], [latitude], [is_count], [library_bizid], [city]) VALUES (N'e77a9f7bd00b4d229056c1a57ad22589', N'上海金山卫污水处理有限公司', N'-1', N'上海市金山区金山卫镇海金路958号', null, null, null, null, null, null, null, N'1', N'上海金山卫污水厂', N'1', N'C', N'SHJSWWS', N'121.1600000', N'30.4200000', null, null, N'上海')
GO
GO
INSERT INTO [dbo].[tb_company] ([id], [name], [pid], [address], [tel], [website], [taskid], [post], [insdt], [insuser], [version], [morder], [sname], [active], [type], [ename], [longitude], [latitude], [is_count], [library_bizid], [city]) VALUES (N'JS1C', N'排海公司一车间', N'0533JS', N'', null, null, null, null, null, null, null, N'13', N'一车间', N'1', N'B', N'JS1C', N'111.0000000', N'222.0000000', null, N'7672658e28e54dfdbf8c7c13f97470fa', N'')
GO
GO
INSERT INTO [dbo].[tb_company] ([id], [name], [pid], [address], [tel], [website], [taskid], [post], [insdt], [insuser], [version], [morder], [sname], [active], [type], [ename], [longitude], [latitude], [is_count], [library_bizid], [city]) VALUES (N'JS2C', N'排海公司二车间', N'0533JS', N'', null, null, null, null, null, null, null, N'14', N'二车间', N'1', N'B', N'JS2C', N'119.0000000', N'31.0000000', null, N'c2c0eac85a144d5fadf870aab62fa477', N'')
GO
GO
INSERT INTO [dbo].[tb_company] ([id], [name], [pid], [address], [tel], [website], [taskid], [post], [insdt], [insuser], [version], [morder], [sname], [active], [type], [ename], [longitude], [latitude], [is_count], [library_bizid], [city]) VALUES (N'JSBZ', N'金山排海公司下属泵站', N'0533JS', N'', null, null, null, null, null, null, null, N'15', N'泵站', N'1', N'B', N'JSBZ', N'119.0000000', N'31.0000000', null, N'e25e53bf2e8a4304b10955b30617c812', N'')
GO
GO

-- ----------------------------
-- Table structure for tb_company_file
-- ----------------------------
DROP TABLE [dbo].[tb_company_file]
GO
CREATE TABLE [dbo].[tb_company_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_company_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_CQBYT_KPI_Analysis
-- ----------------------------
DROP TABLE [dbo].[TB_CQBYT_KPI_Analysis]
GO
CREATE TABLE [dbo].[TB_CQBYT_KPI_Analysis] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[MPointCode] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[F_CALCULATIONID] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[F_ORGID] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[F_REMARK] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[F_SOURCEID] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_CQBYT_KPI_Analysis', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_CQBYT_KPI_Analysis', 
'COLUMN', N'MPointCode')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'点位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'MPointCode'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'点位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'MPointCode'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_CQBYT_KPI_Analysis', 
'COLUMN', N'F_CALCULATIONID')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'算法名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'F_CALCULATIONID'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'算法名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'F_CALCULATIONID'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_CQBYT_KPI_Analysis', 
'COLUMN', N'F_ORGID')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'机构名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'F_ORGID'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'机构名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'F_ORGID'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_CQBYT_KPI_Analysis', 
'COLUMN', N'F_REMARK')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'F_REMARK'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'F_REMARK'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_CQBYT_KPI_Analysis', 
'COLUMN', N'F_SOURCEID')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据来源名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'F_SOURCEID'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据来源名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'F_SOURCEID'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_CQBYT_KPI_Analysis', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'公司/厂区ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'公司/厂区ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_CQBYT_KPI_Analysis'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO

-- ----------------------------
-- Records of TB_CQBYT_KPI_Analysis
-- ----------------------------

-- ----------------------------
-- Table structure for TB_CQBYT_SampleValue
-- ----------------------------
DROP TABLE [dbo].[TB_CQBYT_SampleValue]
GO
CREATE TABLE [dbo].[TB_CQBYT_SampleValue] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sampleCode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[itemCode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[itemName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[itemUnit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[checkStandardCode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[checkStandardName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[itemLimit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[originalValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tempProcessValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[specialValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[strategy] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[logicValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[companyCode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reserve1] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reserve2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reserve3] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reserve4] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_CQBYT_SampleValue
-- ----------------------------

-- ----------------------------
-- Table structure for tb_CQBYT_TestReport
-- ----------------------------
DROP TABLE [dbo].[tb_CQBYT_TestReport]
GO
CREATE TABLE [dbo].[tb_CQBYT_TestReport] (
[id] varchar(500) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[reportCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[dataSource] int NULL ,
[sampleSource] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[checkPropertyCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[checkPropertyName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[classifyCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[classifyName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluateStandardCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluateStandardName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[samplePlanCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[samplePlanName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[beCheckedUnitCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[beCheckedUnitName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[sampleInstitutionCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[sampleInstitutionName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[sampleAddress] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[sampleDate] datetime NULL ,
[sampleState] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[sampler] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[receivingDate] datetime NULL ,
[checkDate] datetime NULL ,
[checkItems] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[checkConclusion] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[longitude] float(53) NULL ,
[latitude] float(53) NULL ,
[companyCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[waterPointCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[waterPointName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[createTime] datetime NULL ,
[createMan] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[tsiStatus] int NULL ,
[tsiTime] datetime NULL ,
[des] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[reserved1] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[reserved2] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[reserved3] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[sampleDateStart] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[sampleDateEnd] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[tsiTimeStart] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[tsiTimeEnd] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[companyName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_CQBYT_TestReport
-- ----------------------------

-- ----------------------------
-- Table structure for tb_CQBYT_TestReport_Details
-- ----------------------------
DROP TABLE [dbo].[tb_CQBYT_TestReport_Details]
GO
CREATE TABLE [dbo].[tb_CQBYT_TestReport_Details] (
[id] varchar(500) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sampleCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[itemCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[itemName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[itemUnit] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[dataSource] int NULL ,
[checkStandardCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[checkStandardName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[itemLimit] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[originalValue] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[tempProcessValue] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[specialValue] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[strategy] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[logicValue] int NULL ,
[companyCode] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[reserve1] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[reserve2] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[reserve3] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[reserve4] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_CQBYT_TestReport_Details
-- ----------------------------

-- ----------------------------
-- Table structure for TB_CQBYT_VISITOUTINDATA
-- ----------------------------
DROP TABLE [dbo].[TB_CQBYT_VISITOUTINDATA]
GO
CREATE TABLE [dbo].[TB_CQBYT_VISITOUTINDATA] (
[NAME] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[GENDER] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[CARDID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[IMAGES] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[PHONE] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[CARNUM] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[VISITORTYPE] int NULL ,
[OUTINTYPE] int NULL ,
[DEVICETYPE] int NULL ,
[V_TOTALPEOPLE] int NULL ,
[V_REASON] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[V_REMARK] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[STAFFNAME] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[INTERVIEWEENAME] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[CREATETIME] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_CQBYT_VISITOUTINDATA
-- ----------------------------

-- ----------------------------
-- Table structure for tb_data_cleaning_condition
-- ----------------------------
DROP TABLE [dbo].[tb_data_cleaning_condition]
GO
CREATE TABLE [dbo].[tb_data_cleaning_condition] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[jsType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[jsValue] float(53) NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_data_cleaning_condition
-- ----------------------------

-- ----------------------------
-- Table structure for tb_data_cleaning_configure
-- ----------------------------
DROP TABLE [dbo].[tb_data_cleaning_configure]
GO
CREATE TABLE [dbo].[tb_data_cleaning_configure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[timeRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[replaceType] varchar(20) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_data_cleaning_configure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_data_cleaning_history
-- ----------------------------
DROP TABLE [dbo].[tb_data_cleaning_history]
GO
CREATE TABLE [dbo].[tb_data_cleaning_history] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ParmValue] money NULL ,
[MeasureDT] datetime NULL ,
[ReplaceParmValue] money NULL ,
[cleaningDt] datetime NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_data_cleaning_history
-- ----------------------------

-- ----------------------------
-- Table structure for tb_data_cleaning_point
-- ----------------------------
DROP TABLE [dbo].[tb_data_cleaning_point]
GO
CREATE TABLE [dbo].[tb_data_cleaning_point] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[point] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[timeRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[replaceType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_data_cleaning_point
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Data_Curve
-- ----------------------------
DROP TABLE [dbo].[TB_Data_Curve]
GO
CREATE TABLE [dbo].[TB_Data_Curve] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Data_Curve
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Data_Curve_ RemarkType
-- ----------------------------
DROP TABLE [dbo].[TB_Data_Curve_ RemarkType]
GO
CREATE TABLE [dbo].[TB_Data_Curve_ RemarkType] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Data_Curve_ RemarkType
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Data_Curve_ RemarkTypeDetail
-- ----------------------------
DROP TABLE [dbo].[TB_Data_Curve_ RemarkTypeDetail]
GO
CREATE TABLE [dbo].[TB_Data_Curve_ RemarkTypeDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Data_Curve_ RemarkTypeDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Data_Curve_MPoint
-- ----------------------------
DROP TABLE [dbo].[TB_Data_Curve_MPoint]
GO
CREATE TABLE [dbo].[TB_Data_Curve_MPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[data_curve_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL ,
[func] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[disname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Data_Curve_MPoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Data_Curve_Remark
-- ----------------------------
DROP TABLE [dbo].[TB_Data_Curve_Remark]
GO
CREATE TABLE [dbo].[TB_Data_Curve_Remark] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sdt] datetime NULL ,
[edt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[content] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Data_Curve_Remark
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Data_Curve_Remark_File
-- ----------------------------
DROP TABLE [dbo].[TB_Data_Curve_Remark_File]
GO
CREATE TABLE [dbo].[TB_Data_Curve_Remark_File] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL 
)


GO

-- ----------------------------
-- Records of TB_Data_Curve_Remark_File
-- ----------------------------

-- ----------------------------
-- Table structure for tb_data_source
-- ----------------------------
DROP TABLE [dbo].[tb_data_source]
GO
CREATE TABLE [dbo].[tb_data_source] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[server_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ip_address] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[port] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[username] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[password] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[database_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[database_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[scheduled_scan_status] int NULL ,
[scheduled_scan_minutes] int NULL ,
[connection_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[last_scan_time] datetime NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_data_source
-- ----------------------------

-- ----------------------------
-- Table structure for tb_dept
-- ----------------------------
DROP TABLE [dbo].[tb_dept]
GO
CREATE TABLE [dbo].[tb_dept] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[RoleID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[offtel] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[telout] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[telin] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fax] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[office] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[logopic] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[version] int NULL ,
[morder] int NULL ,
[sname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_dept
-- ----------------------------

-- ----------------------------
-- Table structure for tb_dept_area
-- ----------------------------
DROP TABLE [dbo].[tb_dept_area]
GO
CREATE TABLE [dbo].[tb_dept_area] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[deptid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[areaid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[flag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sequence] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(200) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_dept_area
-- ----------------------------

-- ----------------------------
-- Table structure for tb_dept_process
-- ----------------------------
DROP TABLE [dbo].[tb_dept_process]
GO
CREATE TABLE [dbo].[tb_dept_process] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[deptid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[processid] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[flag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sequence] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(200) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_dept_process
-- ----------------------------

-- ----------------------------
-- Table structure for tb_dept_role
-- ----------------------------
DROP TABLE [dbo].[tb_dept_role]
GO
CREATE TABLE [dbo].[tb_dept_role] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[deptid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[roleid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[flag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sequence] int NULL ,
[remark] varchar(200) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_dept_role
-- ----------------------------

-- ----------------------------
-- Table structure for tb_doc_data
-- ----------------------------
DROP TABLE [dbo].[tb_doc_data]
GO
CREATE TABLE [dbo].[tb_doc_data] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[doctype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[docname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[details] ntext COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[updateuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatedt] datetime NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[path] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[st] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[level] int NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_doc_data
-- ----------------------------

-- ----------------------------
-- Table structure for tb_doc_file
-- ----------------------------
DROP TABLE [dbo].[tb_doc_file]
GO
CREATE TABLE [dbo].[tb_doc_file] (
[id] varchar(500) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pointid] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_doc_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_doc_file_relation
-- ----------------------------
DROP TABLE [dbo].[tb_doc_file_relation]
GO
CREATE TABLE [dbo].[tb_doc_file_relation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[doc_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_doc_file_relation
-- ----------------------------

-- ----------------------------
-- Table structure for tb_document
-- ----------------------------
DROP TABLE [dbo].[tb_document]
GO
CREATE TABLE [dbo].[tb_document] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[w_name] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[w_content] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[master_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insert_user_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insert_time] datetime2(7) NULL ,
[equipmentIds] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_document', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'资料数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'资料数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_document', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_document', 
'COLUMN', N'w_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'资料名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'w_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'资料名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'w_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_document', 
'COLUMN', N'w_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'w_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'w_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_document', 
'COLUMN', N'master_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'master_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'master_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_document', 
'COLUMN', N'insert_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'新增人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'insert_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'新增人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'insert_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_document', 
'COLUMN', N'insert_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'新增时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'insert_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'新增时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_document'
, @level2type = 'COLUMN', @level2name = N'insert_time'
GO

-- ----------------------------
-- Records of tb_document
-- ----------------------------

-- ----------------------------
-- Table structure for tb_efficiency_constituteConfigure
-- ----------------------------
DROP TABLE [dbo].[tb_efficiency_constituteConfigure]
GO
CREATE TABLE [dbo].[tb_efficiency_constituteConfigure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[scheme_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_efficiency_constituteConfigure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_efficiency_constituteConfigureDetail
-- ----------------------------
DROP TABLE [dbo].[tb_efficiency_constituteConfigureDetail]
GO
CREATE TABLE [dbo].[tb_efficiency_constituteConfigureDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpname] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[dsmpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xlmpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_efficiency_constituteConfigureDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_efficiency_efficiencyProcess
-- ----------------------------
DROP TABLE [dbo].[TB_efficiency_efficiencyProcess]
GO
CREATE TABLE [dbo].[TB_efficiency_efficiencyProcess] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_efficiency_efficiencyProcess
-- ----------------------------

-- ----------------------------
-- Table structure for tb_efficiency_overviewConfigure
-- ----------------------------
DROP TABLE [dbo].[tb_efficiency_overviewConfigure]
GO
CREATE TABLE [dbo].[tb_efficiency_overviewConfigure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[picurl] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upperlimit] int NULL ,
[lowerlimit] int NULL ,
[grade] int NULL ,
[colorgroup] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_efficiency_overviewConfigure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_efficiency_overviewConfigure_assembly
-- ----------------------------
DROP TABLE [dbo].[tb_efficiency_overviewConfigure_assembly]
GO
CREATE TABLE [dbo].[tb_efficiency_overviewConfigure_assembly] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[width] float(53) NULL ,
[height] float(53) NULL ,
[txtSize] float(53) NULL ,
[textcolor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bkcolor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[x] float(53) NULL ,
[y] float(53) NULL 
)


GO

-- ----------------------------
-- Records of tb_efficiency_overviewConfigure_assembly
-- ----------------------------

-- ----------------------------
-- Table structure for tb_efficiency_overviewConfigure_file
-- ----------------------------
DROP TABLE [dbo].[tb_efficiency_overviewConfigure_file]
GO
CREATE TABLE [dbo].[tb_efficiency_overviewConfigure_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_efficiency_overviewConfigure_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_efficiency_overviewMpConfigure
-- ----------------------------
DROP TABLE [dbo].[tb_efficiency_overviewMpConfigure]
GO
CREATE TABLE [dbo].[tb_efficiency_overviewMpConfigure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[x] float(53) NULL ,
[y] float(53) NULL ,
[txtSize] int NULL ,
[textcolor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[width] float(53) NULL ,
[height] float(53) NULL ,
[bkcolor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[picId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[lnglats] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[assembly] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[upperLimit] int NULL ,
[lowerLimit] int NULL ,
[grade] int NULL ,
[colorGroup] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_efficiency_overviewMpConfigure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_efficiency_statistics
-- ----------------------------
DROP TABLE [dbo].[tb_efficiency_statistics]
GO
CREATE TABLE [dbo].[tb_efficiency_statistics] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[mpoint_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_efficiency_statistics
-- ----------------------------

-- ----------------------------
-- Table structure for tb_efficiency_waterSpreadDataConfigure
-- ----------------------------
DROP TABLE [dbo].[tb_efficiency_waterSpreadDataConfigure]
GO
CREATE TABLE [dbo].[tb_efficiency_waterSpreadDataConfigure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_efficiency_waterSpreadDataConfigure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_electricity_meter
-- ----------------------------
DROP TABLE [dbo].[tb_electricity_meter]
GO
CREATE TABLE [dbo].[tb_electricity_meter] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[version] int NULL ,
[morder] int NULL ,
[sname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[prefix] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[suffix] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_electricity_meter
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Arrangement
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Arrangement]
GO
CREATE TABLE [dbo].[TB_EM_Arrangement] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[workorderid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[arrangementdate] datetime NULL ,
[grouptypeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stdt] datetime NULL ,
[enddt] datetime NULL ,
[workstepid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Arrangement', 
'COLUMN', N'arrangementdate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安排生产的日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Arrangement'
, @level2type = 'COLUMN', @level2name = N'arrangementdate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安排生产的日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Arrangement'
, @level2type = 'COLUMN', @level2name = N'arrangementdate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Arrangement', 
'COLUMN', N'grouptypeid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'班次的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Arrangement'
, @level2type = 'COLUMN', @level2name = N'grouptypeid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'班次的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Arrangement'
, @level2type = 'COLUMN', @level2name = N'grouptypeid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Arrangement', 
'COLUMN', N'stdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'预约开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Arrangement'
, @level2type = 'COLUMN', @level2name = N'stdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'预约开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Arrangement'
, @level2type = 'COLUMN', @level2name = N'stdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Arrangement', 
'COLUMN', N'enddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'预约结束时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Arrangement'
, @level2type = 'COLUMN', @level2name = N'enddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'预约结束时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Arrangement'
, @level2type = 'COLUMN', @level2name = N'enddt'
GO

-- ----------------------------
-- Records of TB_EM_Arrangement
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_AcceptanceApply
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_AcceptanceApply]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_AcceptanceApply] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_Id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_time] datetime NULL ,
[acceptance_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'warehouse_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'warehouse_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'warehouse_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'warehouse_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'apply_people_Id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_Id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_Id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'apply_people_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'apply_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'apply_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'apply_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'acceptance_apply_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验收申请编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'acceptance_apply_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验收申请编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'acceptance_apply_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'processDefId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'processId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'processId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'processId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'audit_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'audit_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'audit_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApply', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApply'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_EM_Equipment_AcceptanceApply
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_AcceptanceApplyDetail
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_AcceptanceApplyDetail]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_AcceptanceApplyDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[acceptance_apply_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[acceptance_purchase_record_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApplyDetail', 
'COLUMN', N'acceptance_apply_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验收申请编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApplyDetail'
, @level2type = 'COLUMN', @level2name = N'acceptance_apply_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验收申请编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApplyDetail'
, @level2type = 'COLUMN', @level2name = N'acceptance_apply_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AcceptanceApplyDetail', 
'COLUMN', N'acceptance_purchase_record_detail_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'采购记录id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApplyDetail'
, @level2type = 'COLUMN', @level2name = N'acceptance_purchase_record_detail_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'采购记录id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AcceptanceApplyDetail'
, @level2type = 'COLUMN', @level2name = N'acceptance_purchase_record_detail_id'
GO

-- ----------------------------
-- Records of TB_EM_Equipment_AcceptanceApplyDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_Accident
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_Accident]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_Accident] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[accident_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[accident_time] datetime NULL ,
[accident_place] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worker_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[accident_describe] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[accident_reason] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_Accident', 
'COLUMN', N'accident_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'事故编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'事故编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_Accident', 
'COLUMN', N'accident_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'事故时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'事故时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_Accident', 
'COLUMN', N'accident_place')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'事故地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_place'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'事故地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_place'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_Accident', 
'COLUMN', N'worker_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上报人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'worker_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上报人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'worker_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_Accident', 
'COLUMN', N'worker_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上报人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'worker_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上报人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'worker_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_Accident', 
'COLUMN', N'accident_describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'事故描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'事故描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_describe'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_Accident', 
'COLUMN', N'accident_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'事故原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'事故原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_Accident'
, @level2type = 'COLUMN', @level2name = N'accident_reason'
GO

-- ----------------------------
-- Records of TB_EM_Equipment_Accident
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_AccidentDetail
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_AccidentDetail]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_AccidentDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[accident_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_AccidentDetail', 
'COLUMN', N'accident_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'事故编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AccidentDetail'
, @level2type = 'COLUMN', @level2name = N'accident_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'事故编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_AccidentDetail'
, @level2type = 'COLUMN', @level2name = N'accident_number'
GO

-- ----------------------------
-- Records of TB_EM_Equipment_AccidentDetail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_em_equipment_belong
-- ----------------------------
DROP TABLE [dbo].[tb_em_equipment_belong]
GO
CREATE TABLE [dbo].[tb_em_equipment_belong] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[belong_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[belong_code] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_em_equipment_belong
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_characteristic
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_characteristic]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_characteristic] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[characteristic] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[c_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_Equipment_characteristic
-- ----------------------------

-- ----------------------------
-- Table structure for tb_em_equipment_dialin
-- ----------------------------
DROP TABLE [dbo].[tb_em_equipment_dialin]
GO
CREATE TABLE [dbo].[tb_em_equipment_dialin] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dialin_com_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_time] date NULL ,
[dialin_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[accept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[doc_path] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_em_equipment_dialin
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_IncreaseValue
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_IncreaseValue]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_IncreaseValue] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[increase_value] money NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_Equipment_IncreaseValue
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_LoseApply
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_LoseApply]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_LoseApply] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_process_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_to_biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_to_biz_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_model] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_model_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[assets_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] int NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_Id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[file_path] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[lose_instr] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_time] datetime NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[lose_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_LoseApply', 
'COLUMN', N'processDefId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_LoseApply', 
'COLUMN', N'processId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'processId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'processId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_LoseApply', 
'COLUMN', N'audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_LoseApply', 
'COLUMN', N'audit_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'audit_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'audit_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_LoseApply', 
'COLUMN', N'lose_apply_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'丢失申请单编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'lose_apply_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'丢失申请单编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApply'
, @level2type = 'COLUMN', @level2name = N'lose_apply_number'
GO

-- ----------------------------
-- Records of TB_EM_Equipment_LoseApply
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_LoseApplyDetail
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_LoseApplyDetail]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_LoseApplyDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lose_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_LoseApplyDetail', 
'COLUMN', N'lose_apply_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'丢失申请编号(与TB_EM_Equipment_LoseApply)'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApplyDetail'
, @level2type = 'COLUMN', @level2name = N'lose_apply_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'丢失申请编号(与TB_EM_Equipment_LoseApply)'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApplyDetail'
, @level2type = 'COLUMN', @level2name = N'lose_apply_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_LoseApplyDetail', 
'COLUMN', N'equipment_card_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备台账编号(与TB_EM_EquipmentCard表中的id关联)'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApplyDetail'
, @level2type = 'COLUMN', @level2name = N'equipment_card_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备台账编号(与TB_EM_EquipmentCard表中的id关联)'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_LoseApplyDetail'
, @level2type = 'COLUMN', @level2name = N'equipment_card_id'
GO

-- ----------------------------
-- Records of TB_EM_Equipment_LoseApplyDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_Model
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_Model]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_Model] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[gama] decimal(18,2) NULL ,
[lamda] decimal(18,2) NULL ,
[x1] decimal(18,2) NULL ,
[x2] decimal(18,2) NULL ,
[x3] decimal(18,2) NULL ,
[status] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[param1] decimal(18,2) NULL ,
[param2] decimal(18,2) NULL ,
[param3] decimal(18,2) NULL ,
[param4] decimal(18,2) NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_Equipment_Model
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_SaleApply
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_SaleApply]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_SaleApply] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_process_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_to_biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_to_biz_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_model] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_model_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[assets_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] int NULL ,
[unit] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_Id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[file_path] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[sale_instr] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_time] datetime NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[sale_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_SaleApply', 
'COLUMN', N'processDefId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_SaleApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_SaleApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_SaleApply', 
'COLUMN', N'processId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_SaleApply'
, @level2type = 'COLUMN', @level2name = N'processId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_SaleApply'
, @level2type = 'COLUMN', @level2name = N'processId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_SaleApply', 
'COLUMN', N'audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_SaleApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_SaleApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
GO

-- ----------------------------
-- Records of TB_EM_Equipment_SaleApply
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_SaleApplyDetail
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_SaleApplyDetail]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_SaleApplyDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sale_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_Equipment_SaleApplyDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_ScrapApply
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_ScrapApply]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_ScrapApply] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_process_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_to_biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_to_biz_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_model] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_model_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[assets_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] int NULL ,
[unit] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_Id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[file_path] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[scrap_instr] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_time] date NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[scrap_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'work_process_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工作流程名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'work_process_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工作流程名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'work_process_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'send_to_biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'被发送的公司id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'send_to_biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'被发送的公司id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'send_to_biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'send_to_biz_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'被发送的公司名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'send_to_biz_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'被发送的公司名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'send_to_biz_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'equipment_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'equipment_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'equipment_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'equipment_model')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备规格'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'equipment_model'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备规格'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'equipment_model'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'assets_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'assets_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'assets_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'unit')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'unit'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'unit'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'apply_people_Id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_Id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_Id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'apply_people_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'file_path')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'附件路径'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'file_path'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'附件路径'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'file_path'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'scrap_instr')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'报废原因及说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'scrap_instr'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'报废原因及说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'scrap_instr'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'apply_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'apply_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'apply_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'processDefId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'processId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'processId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'processId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_Equipment_ScrapApply', 
'COLUMN', N'audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_Equipment_ScrapApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
GO

-- ----------------------------
-- Records of TB_EM_Equipment_ScrapApply
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_ScrapApplyDetail
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_ScrapApplyDetail]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_ScrapApplyDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[scrap_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_Equipment_ScrapApplyDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_Specification
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_Specification]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_Specification] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_Equipment_Specification
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_Statistics
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_Statistics]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_Statistics] (
[id] int NOT NULL IDENTITY(1,1) ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[equipment_level_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[company_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_equip_num] int NULL ,
[intact_equip_num] int NULL ,
[fault_equip_num] int NULL ,
[intact_rate] float(53) NULL 
)


GO
DBCC CHECKIDENT(N'[dbo].[TB_EM_Equipment_Statistics]', RESEED, 1755)
GO

-- ----------------------------
-- Records of TB_EM_Equipment_Statistics
-- ----------------------------
SET IDENTITY_INSERT [dbo].[TB_EM_Equipment_Statistics] ON
GO
SET IDENTITY_INSERT [dbo].[TB_EM_Equipment_Statistics] OFF
GO

-- ----------------------------
-- Table structure for TB_EM_Equipment_TypeNumber
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_TypeNumber]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_TypeNumber] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[class_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_Equipment_TypeNumber
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_Equipment_UseAge
-- ----------------------------
DROP TABLE [dbo].[TB_EM_Equipment_UseAge]
GO
CREATE TABLE [dbo].[TB_EM_Equipment_UseAge] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[value_min] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value_max] int NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_Equipment_UseAge
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentCard
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentCard]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentCard] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[equipmentCardID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentName] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentClassID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentModelName] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentModel] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[areaID] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[currentManageFlag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processSectionId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[assetClassId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[assetNumber] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentLevelId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[responsibleDepartment] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ratedPower] float(53) NULL ,
[ratedCurrent] float(53) NULL ,
[ratedVoltage] float(53) NULL ,
[supplierId] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentManufacturer] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[leaveFactoryNumber] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[productionDate] datetime NULL ,
[servicePhone] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[useDate] datetime NULL ,
[useAge] float(53) NULL ,
[equipmentValue] money NULL ,
[residualValue] money NULL ,
[nowTotalDepreciation] money NULL ,
[purchaseDate] datetime NULL ,
[majorParameter] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenanceCondition] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[totalTime] float(53) NULL ,
[equipmentStatus] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[specification] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[lng] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[lat] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[x_coord] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[y_coord] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[water_num_long] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[water_num_short] int NULL ,
[equipment_code_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_belong_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_big_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_small_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_level_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_card_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[first_time] date NULL ,
[next_time] date NULL ,
[check_cycle] int NULL ,
[cycle_unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[in_stock_time] date NULL ,
[receive_time] date NULL ,
[is_single_asset] int NULL ,
[equipment_dialin_num] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[add_way] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[ABC_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tech_parameters] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[factory_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[open_date] datetime NULL ,
[service_life] float(53) NULL ,
[is_compulsory_inspection] int NULL ,
[compulsory_inspection_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[asset_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[buy_time] datetime NULL ,
[equip_worth] money NULL ,
[depreciation_life] float(53) NULL ,
[residual_value_rate] float(53) NULL ,
[equipment_status_memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[install_date] datetime NULL ,
[equipment_out_ids] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_set_time] float(53) NULL ,
[equipment_clear_time] float(53) NULL ,
[purchase_value] money NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upstreamId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[downstreamId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[controlId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[powerId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[if_fixed_assets] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equ_entry_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[estimated_life] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[in_code] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[structure_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[last_repair] datetime NULL ,
[last_maintenance] datetime NULL ,
[last_overhaul] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备统一编码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备统一编码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'equipmentCardID')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备厂内编码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentCardID'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备厂内编码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentCardID'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'equipmentName')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentName'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentName'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'equipmentClassID')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentClassID'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentClassID'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'equipmentModel')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备型号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentModel'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备型号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentModel'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'areaID')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安装地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'areaID'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安装地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'areaID'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'processSectionId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'processSectionId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'processSectionId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'assetClassId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'资产类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'assetClassId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'资产类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'assetClassId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'assetNumber')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'资产编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'assetNumber'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'资产编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'assetNumber'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'equipmentLevelId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备等级id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentLevelId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备等级id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentLevelId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'bizId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'水厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'bizId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'水厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'bizId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'responsibleDepartment')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'responsibleDepartment'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'responsibleDepartment'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'ratedPower')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'额定功率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'ratedPower'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'额定功率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'ratedPower'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'ratedCurrent')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'额定电流'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'ratedCurrent'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'额定电流'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'ratedCurrent'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'ratedVoltage')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'额定电压'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'ratedVoltage'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'额定电压'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'ratedVoltage'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'supplierId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'supplierId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'supplierId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'equipmentManufacturer')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'生产商'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentManufacturer'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'生产商'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentManufacturer'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'leaveFactoryNumber')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'出厂编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'leaveFactoryNumber'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'出厂编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'leaveFactoryNumber'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'productionDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'出厂日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'productionDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'出厂日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'productionDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'servicePhone')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'服务电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'servicePhone'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'服务电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'servicePhone'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'useDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'启用日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'useDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'启用日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'useDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'useAge')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'使用年限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'useAge'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'使用年限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'useAge'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'equipmentValue')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'资产原值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentValue'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'资产原值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentValue'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'residualValue')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'剩余价值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'residualValue'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'剩余价值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'residualValue'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'nowTotalDepreciation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'当前总折旧'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'nowTotalDepreciation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'当前总折旧'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'nowTotalDepreciation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'purchaseDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'采购日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'purchaseDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'采购日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'purchaseDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'majorParameter')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主要参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'majorParameter'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主要参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'majorParameter'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'maintenanceCondition')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护保养条件'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'maintenanceCondition'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护保养条件'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'maintenanceCondition'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'totalTime')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'无故障运行总时长'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'totalTime'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'无故障运行总时长'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'totalTime'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'equipmentStatus')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentStatus'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'equipmentStatus'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'specification')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备规格'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'specification'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备规格'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'specification'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'upstreamId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'BIM使用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'upstreamId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'BIM使用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'upstreamId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'downstreamId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'BIM使用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'downstreamId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'BIM使用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'downstreamId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'controlId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'BIM使用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'controlId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'BIM使用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'controlId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'powerId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'BIM使用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'powerId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'BIM使用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'powerId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard', 
'COLUMN', N'in_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内部设备'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'in_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内部设备'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard'
, @level2type = 'COLUMN', @level2name = N'in_code'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentCard
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentCard_Camera
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentCard_Camera]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentCard_Camera] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[eqId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cameraId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_EquipmentCard_Camera
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentCard_file
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentCard_file]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentCard_file] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_EquipmentCard_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentCard_Links
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentCard_Links]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentCard_Links] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[link_url] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[link_name] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[link_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[link_return] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[version] int NULL ,
[morder] int NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[link_ip_intranet] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[link_ip_extranet] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links', 
'COLUMN', N'link_ip_intranet')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内网ip'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links'
, @level2type = 'COLUMN', @level2name = N'link_ip_intranet'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内网ip'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links'
, @level2type = 'COLUMN', @level2name = N'link_ip_intranet'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links', 
'COLUMN', N'link_ip_extranet')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'外网ip'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links'
, @level2type = 'COLUMN', @level2name = N'link_ip_extranet'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'外网ip'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links'
, @level2type = 'COLUMN', @level2name = N'link_ip_extranet'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentCard_Links
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentCard_Links_Parameter
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentCard_Links_Parameter]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentCard_Links_Parameter] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[link_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[parameter] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[parameter_value] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[parameter_type] varchar(53) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[version] int NULL ,
[morder] int NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[parameter_value_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dynamic] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'link_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'链接表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'link_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'链接表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'link_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'parameter')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'链接参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'parameter'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'链接参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'parameter'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'parameter_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'链接参数固定值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'parameter_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'链接参数固定值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'parameter_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'parameter_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参数类型，固定参数/动态参数（动态参数去设备台账获取数据）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'parameter_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参数类型，固定参数/动态参数（动态参数去设备台账获取数据）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'parameter_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'remarks')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'remarks'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'remarks'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'version')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'版本号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'version'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'版本号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'version'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备台账id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备台账id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'parameter_value_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参数值是否包含中文或字符'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'parameter_value_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参数值是否包含中文或字符'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'parameter_value_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Links_Parameter', 
'COLUMN', N'dynamic')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'动态参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'dynamic'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'动态参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Links_Parameter'
, @level2type = 'COLUMN', @level2name = N'dynamic'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentCard_Links_Parameter
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentCard_Prop
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentCard_Prop]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentCard_Prop] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[energy_money] money NULL ,
[repair_money] money NULL ,
[maintain_money] money NULL ,
[labor_money] money NULL ,
[purchase_money] money NULL ,
[residual_value_rate] float(53) NULL ,
[use_time] float(53) NULL ,
[fault_stop_time] float(53) NULL ,
[install_date] datetime NULL ,
[run_time] float(53) NULL ,
[repair_number] float(53) NULL ,
[fault_number] float(53) NULL ,
[intact_rate] float(53) NULL ,
[instant_flow] float(53) NULL ,
[En] float(53) NULL ,
[output_flow] float(53) NULL ,
[physical_life] float(53) NULL ,
[technical_life] float(53) NULL ,
[economic_life] float(53) NULL ,
[maintain_increment] money NULL ,
[increase_value] money NULL ,
[residual_value] money NULL ,
[month_depreciation_rate] float(53) NULL ,
[year_depreciation_rate] float(53) NULL ,
[month_depreciation] money NULL ,
[year_depreciation] money NULL ,
[total_depreciation] money NULL ,
[current_value] money NULL ,
[net_salvage_value] money NULL ,
[is_backup] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[keynum] int NULL ,
[specification] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[contract_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[if_fixed_assets] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equ_entry_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[estimated_life] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[card_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bookkeep_voucher] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equ_logout_date] datetime NULL ,
[equ_user_department] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tax_amount] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'energy_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'能耗费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'energy_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'能耗费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'energy_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'repair_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'repair_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'repair_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'maintain_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'maintain_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'maintain_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'labor_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'人工费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'labor_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'人工费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'labor_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'purchase_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'采购费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'purchase_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'采购费'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'purchase_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'residual_value_rate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'残值率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'residual_value_rate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'残值率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'residual_value_rate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'use_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'已用年限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'use_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'已用年限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'use_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'fault_stop_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'故障停机时长'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'fault_stop_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'故障停机时长'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'fault_stop_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'install_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安装日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'install_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安装日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'install_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'run_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'运行总时长'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'run_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'运行总时长'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'run_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'repair_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修次数累计'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'repair_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修次数累计'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'repair_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'fault_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'故障次数累计'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'fault_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'故障次数累计'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'fault_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'intact_rate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完好率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'intact_rate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完好率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'intact_rate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'instant_flow')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'瞬时流量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'instant_flow'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'瞬时流量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'instant_flow'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'output_flow')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'出口流量累计'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'output_flow'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'出口流量累计'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'output_flow'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'physical_life')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物理寿命'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'physical_life'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物理寿命'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'physical_life'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'technical_life')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'技术寿命'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'technical_life'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'技术寿命'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'technical_life'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'economic_life')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'经济寿命'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'economic_life'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'经济寿命'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'economic_life'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentCard_Prop', 
'COLUMN', N'maintain_increment')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护费用增额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'maintain_increment'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护费用增额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentCard_Prop'
, @level2type = 'COLUMN', @level2name = N'maintain_increment'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentCard_Prop
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentClass
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentClass]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentClass] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_level_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[equipment_class_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_class_code_full] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[asset_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentClass', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备类型名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备类型名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentClass', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentClass', 
'COLUMN', N'unit')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计算单位 如：台  '
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'unit'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计算单位 如：台  '
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'unit'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentClass', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentClass', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'节点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'节点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentClass', 
'COLUMN', N'bizid_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'bizid_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'bizid_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentClass', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentClass'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentClass
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentClass_Prop
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentClass_Prop]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentClass_Prop] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[eco_life_set] float(53) NULL ,
[eco_life_set_res] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintaince_fee_set] float(53) NULL ,
[maintaince_fee_set_res] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_EquipmentClass_Prop
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentDepreciation
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentDepreciation]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentDepreciation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[month_depreciation_rate] money NULL ,
[year_depreciation_rate] money NULL ,
[month_depreciation] money NULL ,
[year_depreciation] money NULL ,
[total_depreciation] money NULL ,
[current_value] money NULL ,
[increase_value] money NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[residual_value] money NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentDepreciation', 
'COLUMN', N'month_depreciation_rate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'月折旧率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'month_depreciation_rate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'月折旧率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'month_depreciation_rate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentDepreciation', 
'COLUMN', N'year_depreciation_rate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年折旧率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'year_depreciation_rate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年折旧率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'year_depreciation_rate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentDepreciation', 
'COLUMN', N'month_depreciation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'月折旧额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'month_depreciation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'月折旧额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'month_depreciation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentDepreciation', 
'COLUMN', N'year_depreciation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年折旧额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'year_depreciation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年折旧额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'year_depreciation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentDepreciation', 
'COLUMN', N'total_depreciation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'累计折旧额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'total_depreciation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'累计折旧额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'total_depreciation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentDepreciation', 
'COLUMN', N'current_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'当前价值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'current_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'当前价值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'current_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentDepreciation', 
'COLUMN', N'increase_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'增加值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'increase_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'增加值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'increase_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentDepreciation', 
'COLUMN', N'residual_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'净残值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'residual_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'净残值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentDepreciation'
, @level2type = 'COLUMN', @level2name = N'residual_value'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentDepreciation
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentEvaluate
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentEvaluate]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentEvaluate] (
[id] int NOT NULL IDENTITY(1,1) ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[specification] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[model] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_score] float(53) NULL ,
[economic_score] float(53) NULL ,
[En] float(53) NULL ,
[efficiency_score] float(53) NULL ,
[power] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[quality_score] float(53) NULL ,
[fault_rate] float(53) NULL ,
[intact_rate] float(53) NULL ,
[use_rate] float(53) NULL ,
[WOM_score] float(53) NULL ,
[comment_label] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[user_comment] float(53) NULL ,
[use_time] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ecomomic_kpi] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[efficiency_kpi] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[quality_kpi] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_kpi] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[Qn] float(53) NULL 
)


GO
DBCC CHECKIDENT(N'[dbo].[TB_EM_EquipmentEvaluate]', RESEED, 302)
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'total_score')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'综合得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'total_score'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'综合得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'total_score'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'economic_score')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'经济得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'economic_score'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'经济得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'economic_score'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'En')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'单位产出成本'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'En'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'单位产出成本'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'En'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'efficiency_score')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'效率得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'efficiency_score'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'效率得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'efficiency_score'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'power')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'额定功率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'power'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'额定功率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'power'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'quality_score')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'质量得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'quality_score'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'质量得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'quality_score'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'fault_rate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'故障率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'fault_rate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'故障率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'fault_rate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'intact_rate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完好率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'intact_rate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完好率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'intact_rate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'use_rate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'利用率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'use_rate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'利用率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'use_rate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'WOM_score')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'口碑得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'WOM_score'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'口碑得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'WOM_score'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'comment_label')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'口碑标签'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'comment_label'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'口碑标签'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'comment_label'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentEvaluate', 
'COLUMN', N'user_comment')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户点评分数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'user_comment'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户点评分数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentEvaluate'
, @level2type = 'COLUMN', @level2name = N'user_comment'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentEvaluate
-- ----------------------------
SET IDENTITY_INSERT [dbo].[TB_EM_EquipmentEvaluate] ON
GO
SET IDENTITY_INSERT [dbo].[TB_EM_EquipmentEvaluate] OFF
GO

-- ----------------------------
-- Table structure for TB_EM_EquipmentLevel
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentLevel]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentLevel] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[levelName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_level_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentLevel', 
'COLUMN', N'levelName')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备等级名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentLevel'
, @level2type = 'COLUMN', @level2name = N'levelName'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备等级名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentLevel'
, @level2type = 'COLUMN', @level2name = N'levelName'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentLevel', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备等级启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentLevel'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备等级启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentLevel'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentLevel', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentLevel'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentLevel'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentLevel
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentMaintain
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentMaintain]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentMaintain] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NOT NULL ,
[equipmentCardID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentClassID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentModel] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[areaID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[currentManageFlag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenanceman] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[time] datetime2(7) NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentMaintain', 
'COLUMN', N'describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentMaintain'
, @level2type = 'COLUMN', @level2name = N'describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentMaintain'
, @level2type = 'COLUMN', @level2name = N'describe'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentMaintain', 
'COLUMN', N'maintenanceman')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修者'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentMaintain'
, @level2type = 'COLUMN', @level2name = N'maintenanceman'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修者'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentMaintain'
, @level2type = 'COLUMN', @level2name = N'maintenanceman'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_EquipmentMaintain', 
'COLUMN', N'time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentMaintain'
, @level2type = 'COLUMN', @level2name = N'time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_EquipmentMaintain'
, @level2type = 'COLUMN', @level2name = N'time'
GO

-- ----------------------------
-- Records of TB_EM_EquipmentMaintain
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_EquipmentPoint
-- ----------------------------
DROP TABLE [dbo].[TB_EM_EquipmentPoint]
GO
CREATE TABLE [dbo].[TB_EM_EquipmentPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentCardid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentCardName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pointName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_EquipmentPoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_FacilitiesCard
-- ----------------------------
DROP TABLE [dbo].[TB_EM_FacilitiesCard]
GO
CREATE TABLE [dbo].[TB_EM_FacilitiesCard] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[position] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[asset_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[asset_class_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[facilities_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[structure] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[completed_time] datetime NULL ,
[use_years_limit] money NULL ,
[main_params] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[built_area] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] money NULL ,
[depreciation_years_limit] money NULL ,
[original_value] money NULL ,
[now_value] money NULL ,
[design_unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[construction_unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[asset_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[asset_evaluate] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[model] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[material_quality] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[measure_unit] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[length] money NULL ,
[type] char(10) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_FacilitiesCard
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_FacilitiesClass
-- ----------------------------
DROP TABLE [dbo].[TB_EM_FacilitiesClass]
GO
CREATE TABLE [dbo].[TB_EM_FacilitiesClass] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_FacilitiesClass
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_GeographyArea
-- ----------------------------
DROP TABLE [dbo].[TB_EM_GeographyArea]
GO
CREATE TABLE [dbo].[TB_EM_GeographyArea] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_GeographyArea
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_MaintenancePlan
-- ----------------------------
DROP TABLE [dbo].[TB_EM_MaintenancePlan]
GO
CREATE TABLE [dbo].[TB_EM_MaintenancePlan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[plan_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenance_man] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[initial_date] datetime NULL ,
[interval_period] int NULL ,
[plan_consume_time] int NULL ,
[plan_date] date NULL ,
[maintenance_way] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_money] money NULL ,
[content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'plan_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'process_section_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'plan_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划类型（检修计划或维护保养计划）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划类型（检修计划或维护保养计划）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'maintenance_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'maintenance_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'maintenance_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'initial_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'初始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'initial_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'初始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'initial_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'interval_period')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'间隔周期（天）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'interval_period'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'间隔周期（天）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'interval_period'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'plan_consume_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划耗时（天）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_consume_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划耗时（天）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_consume_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'plan_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'maintenance_way')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检修或保养方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'maintenance_way'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检修或保养方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'maintenance_way'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'plan_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'plan_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检修或保养内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检修或保养内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_MaintenancePlan', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_MaintenancePlan'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_EM_MaintenancePlan
-- ----------------------------

-- ----------------------------
-- Table structure for tb_EM_MobileManagement
-- ----------------------------
DROP TABLE [dbo].[tb_EM_MobileManagement]
GO
CREATE TABLE [dbo].[tb_EM_MobileManagement] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[deviceid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[user_id] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_EM_MobileManagement
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_StructureCard
-- ----------------------------
DROP TABLE [dbo].[TB_EM_StructureCard]
GO
CREATE TABLE [dbo].[TB_EM_StructureCard] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[type] int NULL ,
[longitude] float(53) NULL ,
[latitude] float(53) NULL ,
[class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] bit NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[design_code] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[adjustable_code] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[current_code] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[load_code] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_StructureCard', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备统一编码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_StructureCard'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备统一编码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_StructureCard'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_EM_StructureCard', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_StructureCard'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_EM_StructureCard'
, @level2type = 'COLUMN', @level2name = N'pid'
GO

-- ----------------------------
-- Records of TB_EM_StructureCard
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_StructureCard_picture
-- ----------------------------
DROP TABLE [dbo].[TB_EM_StructureCard_picture]
GO
CREATE TABLE [dbo].[TB_EM_StructureCard_picture] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[structure_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[floor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[safe_level] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[safe_content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_StructureCard_picture
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_StructureCard_picture_file
-- ----------------------------
DROP TABLE [dbo].[TB_EM_StructureCard_picture_file]
GO
CREATE TABLE [dbo].[TB_EM_StructureCard_picture_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_StructureCard_picture_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_StructureCard_picture_route
-- ----------------------------
DROP TABLE [dbo].[TB_EM_StructureCard_picture_route]
GO
CREATE TABLE [dbo].[TB_EM_StructureCard_picture_route] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[structure_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[structure_card_picture_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[previous_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[next_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] decimal(6,2) NULL ,
[posy] decimal(6,2) NULL ,
[container_width] decimal(6,2) NULL ,
[container_height] decimal(6,2) NULL ,
[morder] int NULL ,
[patrol_content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_StructureCard_picture_route
-- ----------------------------

-- ----------------------------
-- Table structure for TB_EM_StructureCard_picture_route_pointdetail
-- ----------------------------
DROP TABLE [dbo].[TB_EM_StructureCard_picture_route_pointdetail]
GO
CREATE TABLE [dbo].[TB_EM_StructureCard_picture_route_pointdetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[requirement] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[num] int NULL ,
[ord] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_EM_StructureCard_picture_route_pointdetail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_EMPP_EmppAdmin
-- ----------------------------
DROP TABLE [dbo].[tb_EMPP_EmppAdmin]
GO
CREATE TABLE [dbo].[tb_EMPP_EmppAdmin] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[emppname] varchar(500) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[host] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[port] int NULL ,
[accountId] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[accname] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[password] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[serviceId] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insertuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insertdate] datetime NOT NULL ,
[updateuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[updatedate] datetime NOT NULL 
)


GO

-- ----------------------------
-- Records of tb_EMPP_EmppAdmin
-- ----------------------------

-- ----------------------------
-- Table structure for tb_EMPP_EmppSend
-- ----------------------------
DROP TABLE [dbo].[tb_EMPP_EmppSend]
GO
CREATE TABLE [dbo].[tb_EMPP_EmppSend] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[emppAdminid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[senduserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[senddate] datetime NOT NULL ,
[recuserid] varchar(MAX) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[recusername] varchar(MAX) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sendtitle] varchar(MAX) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insertuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insertdate] datetime NOT NULL ,
[updateuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[updatedate] datetime NOT NULL 
)


GO

-- ----------------------------
-- Records of tb_EMPP_EmppSend
-- ----------------------------

-- ----------------------------
-- Table structure for tb_EMPP_EmppSendUser
-- ----------------------------
DROP TABLE [dbo].[tb_EMPP_EmppSendUser]
GO
CREATE TABLE [dbo].[tb_EMPP_EmppSendUser] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[emppSendid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[senduserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[senddate] datetime NOT NULL ,
[recuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mobile] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[backdate] datetime NULL ,
[insertuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insertdate] datetime NOT NULL ,
[updateuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[updatedate] datetime NOT NULL ,
[msgId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_EMPP_EmppSendUser
-- ----------------------------

-- ----------------------------
-- Table structure for TB_energyEfficiency_electricityPrice
-- ----------------------------
DROP TABLE [dbo].[TB_energyEfficiency_electricityPrice]
GO
CREATE TABLE [dbo].[TB_energyEfficiency_electricityPrice] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[company] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[diantype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[voltagelevel] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dianduprice] float(53) NULL ,
[peakprice] float(53) NULL ,
[heightprice] float(53) NULL ,
[sectionprice] float(53) NULL ,
[troughprice] float(53) NULL ,
[basicprice] float(53) NULL ,
[transformerJFcapacity] float(53) NULL ,
[transformernumber] float(53) NULL ,
[transformerALLcapacity] float(53) NULL ,
[basictariff] float(53) NULL ,
[adjustmentcontent] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[purpose] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[stop_time] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_energyEfficiency_electricityPrice
-- ----------------------------

-- ----------------------------
-- Table structure for TB_energyEfficiency_electricityPrice_detail
-- ----------------------------
DROP TABLE [dbo].[TB_energyEfficiency_electricityPrice_detail]
GO
CREATE TABLE [dbo].[TB_energyEfficiency_electricityPrice_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[company] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[diantype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[voltagelevel] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[adjustmentcontent] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[start_time] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[end_time] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[dianduprice] float(53) NULL 
)


GO

-- ----------------------------
-- Records of TB_energyEfficiency_electricityPrice_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_code_library
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_code_library]
GO
CREATE TABLE [dbo].[tb_equipment_code_library] (
[id] int NOT NULL IDENTITY(1,1) ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[table_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[table_column] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[field] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[active] int NULL 
)


GO
DBCC CHECKIDENT(N'[dbo].[tb_equipment_code_library]', RESEED, 6)
GO

-- ----------------------------
-- Records of tb_equipment_code_library
-- ----------------------------
SET IDENTITY_INSERT [dbo].[tb_equipment_code_library] ON
GO
SET IDENTITY_INSERT [dbo].[tb_equipment_code_library] OFF
GO

-- ----------------------------
-- Table structure for tb_equipment_code_rule
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_code_rule]
GO
CREATE TABLE [dbo].[tb_equipment_code_rule] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alias_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[table_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[table_column] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code_field] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] int NULL ,
[code_num] int NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_code_rule
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Equipment_File
-- ----------------------------
DROP TABLE [dbo].[TB_Equipment_File]
GO
CREATE TABLE [dbo].[TB_Equipment_File] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[file_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Equipment_File
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Equipment_Fittings
-- ----------------------------
DROP TABLE [dbo].[TB_Equipment_Fittings]
GO
CREATE TABLE [dbo].[TB_Equipment_Fittings] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] date NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] date NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_or_facility] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Equipment_Fittings
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_maintenanceplan_equipmentcard
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_maintenanceplan_equipmentcard]
GO
CREATE TABLE [dbo].[tb_equipment_maintenanceplan_equipmentcard] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NOT NULL ,
[maintenanceplanid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[EquipmentCardid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_maintenanceplan_equipmentcard
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_maintenancerecord
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_maintenancerecord]
GO
CREATE TABLE [dbo].[tb_equipment_maintenancerecord] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[record_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[record_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenance_man] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[start_date] datetime NULL ,
[plan_finish_date] datetime NULL ,
[actual_finish_date] datetime NULL ,
[plan_consume_time] int NULL ,
[maintenance_way] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[defect_level] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_money] money NULL ,
[actual_money] money NULL ,
[fault_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[delay_reason] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[change_parts] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'record_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'保养/检修/维修记录单号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'record_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'保养/检修/维修记录单号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'record_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'process_section_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'record_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'记录类型（维修/保养/检修）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'record_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'记录类型（维修/保养/检修）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'record_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'maintenance_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'maintenance_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'maintenance_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'start_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开始执行日期（签收任务的日期）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'start_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开始执行日期（签收任务的日期）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'start_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'plan_finish_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划完成日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'plan_finish_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划完成日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'plan_finish_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'actual_finish_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际完成日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'actual_finish_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际完成日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'actual_finish_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'plan_consume_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划消耗时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'plan_consume_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划消耗时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'plan_consume_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'maintenance_way')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修/检修/保养方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'maintenance_way'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修/检修/保养方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'maintenance_way'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'记录执行状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'记录执行状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'defect_level')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'缺陷级别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'defect_level'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'缺陷级别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'defect_level'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'plan_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'plan_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'plan_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'actual_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'actual_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'actual_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'fault_type_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'故障类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'fault_type_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'故障类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'fault_type_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'delay_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'延误原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'delay_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'延误原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'delay_reason'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'change_parts')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更换备件'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'change_parts'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更换备件'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'change_parts'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修/检修/保养内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修/检修/保养内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_maintenancerecord', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_maintenancerecord'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of tb_equipment_maintenancerecord
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_paramset
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_paramset]
GO
CREATE TABLE [dbo].[tb_equipment_paramset] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] int NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_paramset
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_paramset_detail
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_paramset_detail]
GO
CREATE TABLE [dbo].[tb_equipment_paramset_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[param_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_output_level_1] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_output_level_2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_output_level_3] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status_evaluation_project_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[allowable_datum_deviation] int NULL ,
[weight] int NULL ,
[evaluation_criteria_and_decision] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluation_method] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[library_bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_paramset_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_paramset_status_evaluation
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_paramset_status_evaluation]
GO
CREATE TABLE [dbo].[tb_equipment_paramset_status_evaluation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[score] int NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_paramset_status_evaluation
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_paramset_value
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_paramset_value]
GO
CREATE TABLE [dbo].[tb_equipment_paramset_value] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[alarm_limit_1] float(53) NULL ,
[alarm_limit_2] float(53) NULL ,
[alarm_limit_3] float(53) NULL ,
[actual_source] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[base_value] float(53) NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_paramset_value
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_plan
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_plan]
GO
CREATE TABLE [dbo].[tb_equipment_plan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[plan_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_type_big] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_type_small] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_date] datetime NULL ,
[plan_money] money NULL ,
[plan_contents] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[processdefid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[group_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[group_detail_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan', 
'COLUMN', N'plan_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划单号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划单号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan', 
'COLUMN', N'plan_type_big')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_type_big'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_type_big'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan', 
'COLUMN', N'plan_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan', 
'COLUMN', N'plan_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan', 
'COLUMN', N'plan_contents')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_contents'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'plan_contents'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan', 
'COLUMN', N'audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan'
, @level2type = 'COLUMN', @level2name = N'audit_id'
GO

-- ----------------------------
-- Records of tb_equipment_plan
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_plan_equ
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_plan_equ]
GO
CREATE TABLE [dbo].[tb_equipment_plan_equ] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_money] money NULL ,
[plan_date] datetime NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_equ', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_equ', 
'COLUMN', N'contents')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'contents'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'contents'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_equ', 
'COLUMN', N'plan_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'plan_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'plan_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_equ', 
'COLUMN', N'plan_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'plan_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'plan_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_equ', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_equ', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_equ'
, @level2type = 'COLUMN', @level2name = N'status'
GO

-- ----------------------------
-- Records of tb_equipment_plan_equ
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_plan_main_year
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_plan_main_year]
GO
CREATE TABLE [dbo].[tb_equipment_plan_main_year] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_money] money NULL ,
[particular_year] datetime NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year', 
'COLUMN', N'plan_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'plan_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'plan_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year', 
'COLUMN', N'particular_year')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'particular_year'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'particular_year'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'类型：通用、润滑、仪表、防腐'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'类型：通用、润滑、仪表、防腐'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year', 
'COLUMN', N'contents')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维保内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'contents'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维保内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year'
, @level2type = 'COLUMN', @level2name = N'contents'
GO

-- ----------------------------
-- Records of tb_equipment_plan_main_year
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_plan_main_year_detail
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_plan_main_year_detail]
GO
CREATE TABLE [dbo].[tb_equipment_plan_main_year_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[main_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[month] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year_detail', 
'COLUMN', N'main_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'保养周期：
月  
季   
半年   
年'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year_detail'
, @level2type = 'COLUMN', @level2name = N'main_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'保养周期：
月  
季   
半年   
年'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year_detail'
, @level2type = 'COLUMN', @level2name = N'main_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year_detail', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联 tb_equipment_plan_main_year 表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year_detail'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联 tb_equipment_plan_main_year 表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year_detail'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_equipment_plan_main_year_detail', 
'COLUMN', N'month')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'月份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year_detail'
, @level2type = 'COLUMN', @level2name = N'month'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'月份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_equipment_plan_main_year_detail'
, @level2type = 'COLUMN', @level2name = N'month'
GO

-- ----------------------------
-- Records of tb_equipment_plan_main_year_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_plan_type
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_plan_type]
GO
CREATE TABLE [dbo].[tb_equipment_plan_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[library_active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[is_compete] char(1) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_plan_type
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Equipment_RepairPlan
-- ----------------------------
DROP TABLE [dbo].[TB_Equipment_RepairPlan]
GO
CREATE TABLE [dbo].[TB_Equipment_RepairPlan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[plan_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenance_man] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[initial_date] datetime NULL ,
[interval_period] int NULL ,
[plan_consume_time] int NULL ,
[plan_date] date NULL ,
[maintenance_way] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_money] money NULL ,
[content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Equipment_RepairPlan
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Equipment_StatusManagement
-- ----------------------------
DROP TABLE [dbo].[TB_Equipment_StatusManagement]
GO
CREATE TABLE [dbo].[TB_Equipment_StatusManagement] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[workOrderSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_Equipment_StatusManagement
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_stop_record
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_stop_record]
GO
CREATE TABLE [dbo].[tb_equipment_stop_record] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stop_reson] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_time] datetime NULL ,
[stop_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stop_time] datetime NULL ,
[start_time] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_stop_record
-- ----------------------------

-- ----------------------------
-- Table structure for tb_equipment_stop_record_detail
-- ----------------------------
DROP TABLE [dbo].[tb_equipment_stop_record_detail]
GO
CREATE TABLE [dbo].[tb_equipment_stop_record_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stop_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_equipment_stop_record_detail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Equipment_TransfersApply
-- ----------------------------
DROP TABLE [dbo].[TB_Equipment_TransfersApply]
GO
CREATE TABLE [dbo].[TB_Equipment_TransfersApply] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[company_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_process_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_to_biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_to_biz_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_model] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[assets_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(30) COLLATE Chinese_PRC_CI_AS NULL ,
[number] int NULL ,
[apply_people_Id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_people_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[file_path] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[transfers_instr] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_time] date NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[transfers_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[dept_opinion] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'work_process_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工作流程名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'work_process_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工作流程名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'work_process_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'send_to_biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'被申请厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'send_to_biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'被申请厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'send_to_biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'send_to_biz_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'被申请厂区名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'send_to_biz_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'被申请厂区名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'send_to_biz_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'equipment_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'equipment_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'equipment_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'equipment_model')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备型号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'equipment_model'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备型号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'equipment_model'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'assets_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'固定资产编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'assets_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'固定资产编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'assets_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'unit')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'unit'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'unit'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'apply_people_Id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_Id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_Id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'apply_people_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'apply_people_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'file_path')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'附件上传路径'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'file_path'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'附件上传路径'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'file_path'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'transfers_instr')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'调拨说明或原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'transfers_instr'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'调拨说明或原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'transfers_instr'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'apply_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'apply_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'apply_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'processDefId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'processDefId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'processId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'processId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'processId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Equipment_TransfersApply', 
'COLUMN', N'audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Equipment_TransfersApply'
, @level2type = 'COLUMN', @level2name = N'audit_id'
GO

-- ----------------------------
-- Records of TB_Equipment_TransfersApply
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Equipment_TransfersApplyDetail
-- ----------------------------
DROP TABLE [dbo].[TB_Equipment_TransfersApplyDetail]
GO
CREATE TABLE [dbo].[TB_Equipment_TransfersApplyDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[transfers_apply_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Equipment_TransfersApplyDetail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_evaluation_criterion
-- ----------------------------
DROP TABLE [dbo].[tb_evaluation_criterion]
GO
CREATE TABLE [dbo].[tb_evaluation_criterion] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[nation_criterion_value] float(53) NULL ,
[nation_criterion_min] float(53) NULL ,
[nation_criterion_max] float(53) NULL ,
[area_criterion_value] float(53) NULL ,
[area_criterion_min] float(53) NULL ,
[area_criterion_max] float(53) NULL ,
[company_criterion_value] float(53) NULL ,
[company_criterion_max] float(53) NULL ,
[company_criterion_min] float(53) NULL ,
[condition] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[detectionLimit] float(53) NULL ,
[isSeries] bit NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价标准表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价标准表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'criterion_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'标准名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'criterion_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'标准名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'criterion_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'nation_criterion_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'国家标准比较基准值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'nation_criterion_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'国家标准比较基准值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'nation_criterion_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'nation_criterion_min')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'国家标准比较基准小值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'nation_criterion_min'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'国家标准比较基准小值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'nation_criterion_min'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'nation_criterion_max')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'国家标准比较基准大值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'nation_criterion_max'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'国家标准比较基准大值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'nation_criterion_max'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'area_criterion_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'地区标准比较基准值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'area_criterion_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'地区标准比较基准值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'area_criterion_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'area_criterion_min')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'地区标准比较基准小值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'area_criterion_min'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'地区标准比较基准小值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'area_criterion_min'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'area_criterion_max')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'地区标准比较基准大值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'area_criterion_max'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'地区标准比较基准大值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'area_criterion_max'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'company_criterion_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内控标准比较基准值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'company_criterion_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内控标准比较基准值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'company_criterion_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'company_criterion_max')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内控标准比较基准大值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'company_criterion_max'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内控标准比较基准大值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'company_criterion_max'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'company_criterion_min')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内控标准比较基准小值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'company_criterion_min'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内控标准比较基准小值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'company_criterion_min'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'condition')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'条件（1：大于，2：小于，3：区间内，4：区间外）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'condition'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'条件（1：大于，2：小于，3：区间内，4：区间外）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'condition'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_criterion', 
'COLUMN', N'detectionLimit')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检测限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'detectionLimit'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检测限'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_criterion'
, @level2type = 'COLUMN', @level2name = N'detectionLimit'
GO

-- ----------------------------
-- Records of tb_evaluation_criterion
-- ----------------------------

-- ----------------------------
-- Table structure for tb_evaluation_index
-- ----------------------------
DROP TABLE [dbo].[tb_evaluation_index]
GO
CREATE TABLE [dbo].[tb_evaluation_index] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_definition] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[index_frequency] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_function] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterionIds] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数配置表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数配置表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index', 
'COLUMN', N'index_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'index_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'index_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index', 
'COLUMN', N'index_definition')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'index_definition'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'index_definition'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index', 
'COLUMN', N'index_frequency')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的频率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'index_frequency'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的频率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'index_frequency'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index', 
'COLUMN', N'index_function')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'index_function'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'index_function'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index', 
'COLUMN', N'evaluationCriterionIds')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联的评价标准ids'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterionIds'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联的评价标准ids'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterionIds'
GO

-- ----------------------------
-- Records of tb_evaluation_index
-- ----------------------------

-- ----------------------------
-- Table structure for tb_evaluation_index_day
-- ----------------------------
DROP TABLE [dbo].[tb_evaluation_index_day]
GO
CREATE TABLE [dbo].[tb_evaluation_index_day] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[date] datetime NULL ,
[criterion_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[sub_index_nation] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[sub_index_area] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[sub_index_company] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[wqi_day_nation] float(53) NULL ,
[wqi_day_area] float(53) NULL ,
[wqi_day_company] float(53) NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_day', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'日评价指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'日评价指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_day', 
'COLUMN', N'criterion_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'criterion_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'criterion_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_day', 
'COLUMN', N'sub_index_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分指数（国标）json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'sub_index_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分指数（国标）json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'sub_index_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_day', 
'COLUMN', N'sub_index_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分指数（地标）json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'sub_index_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分指数（地标）json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'sub_index_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_day', 
'COLUMN', N'sub_index_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分指数（内控）json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'sub_index_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分指数（内控）json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'sub_index_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_day', 
'COLUMN', N'wqi_day_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'日评指数值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'wqi_day_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'日评指数值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_day'
, @level2type = 'COLUMN', @level2name = N'wqi_day_nation'
GO

-- ----------------------------
-- Records of tb_evaluation_index_day
-- ----------------------------

-- ----------------------------
-- Table structure for tb_evaluation_index_m
-- ----------------------------
DROP TABLE [dbo].[tb_evaluation_index_m]
GO
CREATE TABLE [dbo].[tb_evaluation_index_m] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_definition] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[index_frequency] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_function] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_bacteriology_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_disinfectant_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_sensoryorgans_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_toxicology_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'月评价指数配置表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'月评价指数配置表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
'COLUMN', N'index_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'index_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'index_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
'COLUMN', N'index_definition')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'index_definition'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'index_definition'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
'COLUMN', N'index_frequency')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的频率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'index_frequency'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的频率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'index_frequency'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
'COLUMN', N'index_function')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'index_function'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'index_function'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
'COLUMN', N'evaluationCriterion_bacteriology_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_bacteriology_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_bacteriology_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
'COLUMN', N'evaluationCriterion_disinfectant_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_disinfectant_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_disinfectant_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
'COLUMN', N'evaluationCriterion_sensoryorgans_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_sensoryorgans_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_sensoryorgans_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_m', 
'COLUMN', N'evaluationCriterion_toxicology_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_toxicology_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_m'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_toxicology_Ids'
GO

-- ----------------------------
-- Records of tb_evaluation_index_m
-- ----------------------------

-- ----------------------------
-- Table structure for tb_evaluation_index_month
-- ----------------------------
DROP TABLE [dbo].[tb_evaluation_index_month]
GO
CREATE TABLE [dbo].[tb_evaluation_index_month] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[date] datetime NULL ,
[criterion_bacteriology_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_disinfectant_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_sensoryorgan_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_toxicology_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[sub_index_nation] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[sub_index_area] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[sub_index_company] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[wqi_bacteriology_month_nation] float(53) NULL ,
[wqi_bacteriology_month_area] float(53) NULL ,
[wqi_bacteriology_month_company] float(53) NULL ,
[wqi_disinfectant_month_nation] float(53) NULL ,
[wqi_disinfectant_month_area] float(53) NULL ,
[wqi_disinfectant_month_company] float(53) NULL ,
[wqi_sensoryorgan_month_nation] float(53) NULL ,
[wqi_sensoryorgan_month_area] float(53) NULL ,
[wqi_sensoryorgan_month_company] float(53) NULL ,
[wqi_toxicology_month_nation] float(53) NULL ,
[wqi_toxicology_month_area] float(53) NULL ,
[wqi_toxicology_month_company] float(53) NULL ,
[wqi_month_nation] float(53) NULL ,
[wqi_month_area] float(53) NULL ,
[wqi_month_company] float(53) NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'月评价指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'月评价指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'criterion_bacteriology_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'criterion_bacteriology_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'criterion_bacteriology_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'criterion_disinfectant_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'criterion_disinfectant_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'criterion_disinfectant_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'criterion_sensoryorgan_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'criterion_sensoryorgan_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'criterion_sensoryorgan_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'criterion_toxicology_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'criterion_toxicology_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'criterion_toxicology_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_bacteriology_month_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学指标国标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_month_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学指标国标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_month_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_bacteriology_month_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学指标地标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_month_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学指标地标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_month_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_bacteriology_month_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学指标内控综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_month_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学指标内控综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_month_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_disinfectant_month_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂指标国标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_month_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂指标国标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_month_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_disinfectant_month_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂指标地标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_month_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂指标地标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_month_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_disinfectant_month_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂指标内控综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_month_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂指标内控综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_month_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_sensoryorgan_month_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官指标国标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_month_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官指标国标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_month_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_sensoryorgan_month_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官指标地标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_month_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官指标地标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_month_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_sensoryorgan_month_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官指标内控综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_month_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官指标内控综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_month_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_toxicology_month_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理指标国标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_month_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理指标国标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_month_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_toxicology_month_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理指标地标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_month_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理指标地标综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_month_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_toxicology_month_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理指标内控综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_month_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理指标内控综合指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_month_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_month_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'月评指数国标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_month_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'月评指数国标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_month_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_month_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'月评指数地标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_month_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'月评指数地标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_month_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_month', 
'COLUMN', N'wqi_month_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'月评指数内控'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_month_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'月评指数内控'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_month'
, @level2type = 'COLUMN', @level2name = N'wqi_month_company'
GO

-- ----------------------------
-- Records of tb_evaluation_index_month
-- ----------------------------

-- ----------------------------
-- Table structure for tb_evaluation_index_y
-- ----------------------------
DROP TABLE [dbo].[tb_evaluation_index_y]
GO
CREATE TABLE [dbo].[tb_evaluation_index_y] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_definition] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[index_frequency] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_function] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_bacteriology_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_disinfectant_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_sensoryorgans_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_toxicology_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_organic_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_smell_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluationCriterion_dbps_Ids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年评价指数配置表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年评价指数配置表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'index_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'index_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'index_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'index_definition')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'index_definition'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的定义'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'index_definition'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'index_frequency')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的频率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'index_frequency'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的频率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'index_frequency'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'index_function')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评价指数的方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'index_function'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评价指数的方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'index_function'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'evaluationCriterion_bacteriology_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_bacteriology_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_bacteriology_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'evaluationCriterion_disinfectant_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_disinfectant_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_disinfectant_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'evaluationCriterion_sensoryorgans_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_sensoryorgans_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_sensoryorgans_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'evaluationCriterion_toxicology_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_toxicology_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_toxicology_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'evaluationCriterion_organic_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'有机物指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_organic_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'有机物指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_organic_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'evaluationCriterion_smell_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'嗅味指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_smell_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'嗅味指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_smell_Ids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_y', 
'COLUMN', N'evaluationCriterion_dbps_Ids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒副产品指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_dbps_Ids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒副产品指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_y'
, @level2type = 'COLUMN', @level2name = N'evaluationCriterion_dbps_Ids'
GO

-- ----------------------------
-- Records of tb_evaluation_index_y
-- ----------------------------

-- ----------------------------
-- Table structure for tb_evaluation_index_year
-- ----------------------------
DROP TABLE [dbo].[tb_evaluation_index_year]
GO
CREATE TABLE [dbo].[tb_evaluation_index_year] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[date] date NULL ,
[criterion_bacteriology_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_disinfectant_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_sensoryorgan_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_toxicology_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_organic_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_smell_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[criterion_dbps_value] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[wqi_bacteriology_year_nation] float(53) NULL ,
[wqi_bacteriology_year_area] float(53) NULL ,
[wqi_bacteriology_year_company] float(53) NULL ,
[wqi_disinfectant_year_nation] float(53) NULL ,
[wqi_disinfectant_year_area] float(53) NULL ,
[wqi_disinfectant_year_company] float(53) NULL ,
[wqi_sensoryorgan_year_nation] float(53) NULL ,
[wqi_sensoryorgan_year_area] float(53) NULL ,
[wqi_sensoryorgan_year_company] float(53) NULL ,
[wqi_toxicology_year_nation] float(53) NULL ,
[wqi_toxicology_year_area] float(53) NULL ,
[wqi_toxicology_year_company] float(53) NULL ,
[wqi_organic_year_nation] float(53) NULL ,
[wqi_organic_year_area] float(53) NULL ,
[wqi_organic_year_company] float(53) NULL ,
[wqi_smell_year_nation] float(53) NULL ,
[wqi_smell_year_area] float(53) NULL ,
[wqi_smell_year_company] float(53) NULL ,
[wqi_dbps_year_nation] float(53) NULL ,
[wqi_dbps_year_area] float(53) NULL ,
[wqi_dbps_year_company] float(53) NULL ,
[wqi_basic_year_nation] float(53) NULL ,
[wqi_basic_year_area] float(53) NULL ,
[wqi_basic_year_company] float(53) NULL ,
[wqi_features_year_nation] float(53) NULL ,
[wqi_features_year_area] float(53) NULL ,
[wqi_features_year_company] float(53) NULL ,
[wqi_year_nation] float(53) NULL ,
[wqi_year_area] float(53) NULL ,
[wqi_year_company] float(53) NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年评价指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年评价指数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'criterion_bacteriology_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_bacteriology_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_bacteriology_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'criterion_disinfectant_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_disinfectant_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_disinfectant_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'criterion_sensoryorgan_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_sensoryorgan_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_sensoryorgan_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'criterion_toxicology_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_toxicology_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_toxicology_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'criterion_organic_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'有机物指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_organic_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'有机物指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_organic_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'criterion_smell_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'嗅味指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_smell_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'嗅味指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_smell_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'criterion_dbps_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒副产品指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_dbps_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒副产品指标检测值json数据'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'criterion_dbps_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_bacteriology_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_bacteriology_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_bacteriology_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'细菌学综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'细菌学综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_bacteriology_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_disinfectant_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_disinfectant_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_disinfectant_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒剂综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒剂综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_disinfectant_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_sensoryorgan_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_sensoryorgan_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_sensoryorgan_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'感官综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'感官综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_sensoryorgan_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_toxicology_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_toxicology_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_toxicology_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'毒理综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'毒理综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_toxicology_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_organic_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'有机物综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_organic_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'有机物综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_organic_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_organic_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'有机物综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_organic_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'有机物综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_organic_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_organic_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'有机物综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_organic_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'有机物综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_organic_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_smell_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'嗅味综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_smell_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'嗅味综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_smell_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_smell_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'嗅味综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_smell_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'嗅味综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_smell_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_smell_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'嗅味综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_smell_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'嗅味综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_smell_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_dbps_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒副产品综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_dbps_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒副产品综合指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_dbps_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_dbps_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒副产品综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_dbps_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒副产品综合指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_dbps_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_dbps_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'消毒副产品综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_dbps_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'消毒副产品综合指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_dbps_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_basic_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'基础指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_basic_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'基础指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_basic_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_basic_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'基础指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_basic_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'基础指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_basic_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_basic_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'基础指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_basic_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'基础指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_basic_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_features_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'特征指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_features_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'特征指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_features_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_features_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'特征指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_features_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'特征指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_features_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_features_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'特征指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_features_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'特征指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_features_year_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_year_nation')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年评价指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_year_nation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年评价指数（国标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_year_nation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_year_area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年评价指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_year_area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年评价指数（地标）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_year_area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_evaluation_index_year', 
'COLUMN', N'wqi_year_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'年评价指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_year_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'年评价指数（内控）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_evaluation_index_year'
, @level2type = 'COLUMN', @level2name = N'wqi_year_company'
GO

-- ----------------------------
-- Records of tb_evaluation_index_year
-- ----------------------------

-- ----------------------------
-- Table structure for tb_extsystem
-- ----------------------------
DROP TABLE [dbo].[tb_extsystem]
GO
CREATE TABLE [dbo].[tb_extsystem] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] bit NULL ,
[mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[namespace] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[workShopId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_extsystem', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属系统类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属系统类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_extsystem', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_extsystem', 
'COLUMN', N'mode')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'通讯方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'mode'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'通讯方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'mode'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_extsystem', 
'COLUMN', N'url')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'请求链接'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'url'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'请求链接'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'url'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_extsystem', 
'COLUMN', N'namespace')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'命名空间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'namespace'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'命名空间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'namespace'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_extsystem', 
'COLUMN', N'workShopId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'车间Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'workShopId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'车间Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_extsystem'
, @level2type = 'COLUMN', @level2name = N'workShopId'
GO

-- ----------------------------
-- Records of tb_extsystem
-- ----------------------------

-- ----------------------------
-- Table structure for tb_finance_equipment_dept_info
-- ----------------------------
DROP TABLE [dbo].[tb_finance_equipment_dept_info]
GO
CREATE TABLE [dbo].[tb_finance_equipment_dept_info] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[belong_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_finance_equipment_dept_info
-- ----------------------------

-- ----------------------------
-- Table structure for tb_formula_configure
-- ----------------------------
DROP TABLE [dbo].[tb_formula_configure]
GO
CREATE TABLE [dbo].[tb_formula_configure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[datatype] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[exp] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_formula_configure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_formula_configureDetail
-- ----------------------------
DROP TABLE [dbo].[tb_formula_configureDetail]
GO
CREATE TABLE [dbo].[tb_formula_configureDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pmpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[formulaname] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[starthour] int NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_formula_configureDetail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_fwk_menunumber
-- ----------------------------
DROP TABLE [dbo].[tb_fwk_menunumber]
GO
CREATE TABLE [dbo].[tb_fwk_menunumber] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[menuitemid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[onclickdatetime] datetime NOT NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL 
)


GO
 
-- ----------------------------
-- Table structure for tb_fwk_usertomenu
-- ----------------------------
DROP TABLE [dbo].[tb_fwk_usertomenu]
GO
CREATE TABLE [dbo].[tb_fwk_usertomenu] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[touserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[menuitemname] varchar(500) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[menuitemid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[menuitemurl] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[morder] int NOT NULL ,
[insertuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insertdate] datetime NOT NULL 
)


GO

-- ----------------------------
-- Records of tb_fwk_usertomenu
-- ----------------------------

-- ----------------------------
-- Table structure for tb_info
-- ----------------------------
DROP TABLE [dbo].[tb_info]
GO
CREATE TABLE [dbo].[tb_info] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[title] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[matter] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[typeid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[publishtime1] datetime NULL ,
[publishtime2] datetime NULL ,
[recvid] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[modifydt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_info
-- ----------------------------

-- ----------------------------
-- Table structure for tb_info_file
-- ----------------------------
DROP TABLE [dbo].[tb_info_file]
GO
CREATE TABLE [dbo].[tb_info_file] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_info_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_info_recv
-- ----------------------------
DROP TABLE [dbo].[tb_info_recv]
GO
CREATE TABLE [dbo].[tb_info_recv] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[recvid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_info_recv
-- ----------------------------

-- ----------------------------
-- Table structure for tb_info_type
-- ----------------------------
DROP TABLE [dbo].[tb_info_type]
GO
CREATE TABLE [dbo].[tb_info_type] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[owner] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[modifydt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_info_type
-- ----------------------------

-- ----------------------------
-- Table structure for tb_job
-- ----------------------------
DROP TABLE [dbo].[tb_job]
GO
CREATE TABLE [dbo].[tb_job] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pri] int NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[serial] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[level_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_job
-- ----------------------------
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002545', N'2026-01-27 00:27:22.000', N'emp01', N'总经理', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'1b29669f-2f49-4fd9-8766-883bcfd9d616', N'1')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002546', N'2026-01-27 00:27:22.000', N'emp01', N'支部书记', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'0192A92F-03A8-4F76-A0E0-74BAB5E5919F', N'1')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002547', N'2026-01-27 00:27:22.000', N'emp01', N'副经理', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'59C157CB-11CF-49DB-803C-975DA4C14B0A', N'1')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002548', N'2026-01-27 00:27:22.000', N'emp01', N'行政科副科长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'F013634D-1BC6-413A-B967-6AF9574BCE3A', N'2')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002549', N'2026-01-27 00:27:22.000', N'emp01', N'员工', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'18E857D3-CE53-4F83-AD7E-7837B2A47ECD', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002550', N'2026-01-27 00:27:22.000', N'emp01', N'后勤', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'3F431DC1-2A6A-43ED-8D16-CD9B76211CA8', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002551', N'2026-01-27 00:27:22.000', N'emp01', N'财务科科长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'43A4E600-E877-40AC-8B68-D7145E06AEED', N'2')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002552', N'2026-01-27 00:27:22.000', N'emp01', N'出纳', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'34FB0C70-043C-4962-96D2-3296591B931F', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002553', N'2026-01-27 00:27:22.000', N'emp01', N'管线科科长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'FD7A579B-520A-41CF-9D96-ED4BC56FC510', N'2')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002554', N'2026-01-27 00:27:22.000', N'emp01', N'兼职环保专员', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'75C43C19-9E2F-4228-B979-E41CA6456265', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002555', N'2026-01-27 00:27:22.000', N'emp01', N'化验科副科长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'640AF1E3-C222-4C4E-8C6B-8749242791CF', N'2')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002556', N'2026-01-27 00:27:22.000', N'emp01', N'运行科科长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'A6D4C617-8748-4BCB-9929-DF7201CE682B', N'2')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002557', N'2026-01-27 00:27:22.000', N'emp01', N'运行科副科长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'8B693B01-09E1-489E-B97E-9324189640D8', N'2')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002558', N'2026-01-27 00:27:22.000', N'emp01', N'甲班班长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'54D7754B-569F-403C-9265-9BD00F41F7B8', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002559', N'2026-01-27 00:27:22.000', N'emp01', N'乙班班长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'61A0D616-C004-45A4-8170-BB4D49EC2E5D', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002600', N'2026-01-27 00:27:22.000', N'emp01', N'丙班班长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'D664A6C5-AD73-4EB0-8203-416A0E106740', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002601', N'2026-01-27 00:27:22.000', N'emp01', N'丁班班长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'AA993B5A-496E-43AB-AA2D-6DF0CEC852D0', N'0')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002602', N'2026-01-27 00:27:22.000', N'emp01', N'脱泥班班长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'45400402-95CC-4A52-BD10-8EF7E2053272', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002603', N'2026-01-27 00:27:22.000', N'emp01', N'安全员', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'C8A061D7-C0CE-4E4A-90E6-6779D4E7E5A4', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002604', N'2026-01-27 00:27:22.000', N'emp01', N'兼职安全员', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'B631AD4C-0D31-4E2A-901B-D34E30416512', N'3')
GO
GO
INSERT INTO [dbo].[tb_job] ([id], [insdt], [insuser], [name], [taskid], [pri], [pid], [biz_id], [dept_id], [serial], [level_type]) VALUES (N'SHJSW-WS-20260127002605', N'2026-01-27 00:27:22.000', N'emp01', N'机电科副科长', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', null, N'199479D1-8FE9-4D98-A6B4-24E7159E8F40', N'2')
GO
GO

-- ----------------------------
-- Table structure for TB_JSYW_Company
-- ----------------------------
DROP TABLE [dbo].[TB_JSYW_Company]
GO
CREATE TABLE [dbo].[TB_JSYW_Company] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[wrylb_text] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[xzqh] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NULL ,
[year] int NULL ,
[dwmc] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[itemids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[scdz] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[longitude] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_JSYW_Company
-- ----------------------------

-- ----------------------------
-- Table structure for TB_JSYW_Point
-- ----------------------------
DROP TABLE [dbo].[TB_JSYW_Point]
GO
CREATE TABLE [dbo].[TB_JSYW_Point] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[factorname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[psname] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[update_date] datetime NULL ,
[update_time] datetime NULL ,
[outputname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tstamp] datetime NULL ,
[pollutantvalue] money NULL 
)


GO

-- ----------------------------
-- Records of TB_JSYW_Point
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_apply_biz
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_apply_biz]
GO
CREATE TABLE [dbo].[tb_kpi_apply_biz] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[period_instance_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[status] tinyint NOT NULL ,
[create_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[auditors] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rejection_comment] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[marker] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_kpi_apply_biz
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_dimension
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_dimension]
GO
CREATE TABLE [dbo].[tb_kpi_dimension] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dimension_name] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dimension_type] tinyint NULL ,
[status] tinyint NOT NULL ,
[desc] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[period_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[job_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核维度管理表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核维度管理表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
'COLUMN', N'dimension_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核维度名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'dimension_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核维度名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'dimension_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
'COLUMN', N'dimension_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核维度类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'dimension_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核维度类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'dimension_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
'COLUMN', N'desc')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'desc'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'desc'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_dimension', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_dimension'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO

-- ----------------------------
-- Records of tb_kpi_dimension
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_indicator_lib
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_indicator_lib]
GO
CREATE TABLE [dbo].[tb_kpi_indicator_lib] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dimension_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[job_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[period_type] tinyint NOT NULL ,
[audit_level_weight] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[result_weight] tinyint NULL ,
[process_weight] tinyint NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绩效考核库管理表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绩效考核库管理表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'dimension_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核维度主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'dimension_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核维度主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'dimension_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'job_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'岗位主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'job_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'岗位主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'job_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'period_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核周期类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'period_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核周期类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'period_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'audit_level_weight')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评分层级权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'audit_level_weight'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评分层级权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'audit_level_weight'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'result_weight')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成结果权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'result_weight'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成结果权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'result_weight'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'process_weight')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'过程表现权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'process_weight'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'过程表现权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'process_weight'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO

-- ----------------------------
-- Records of tb_kpi_indicator_lib
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_indicator_lib_detail
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_indicator_lib_detail]
GO
CREATE TABLE [dbo].[tb_kpi_indicator_lib_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dimension_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[indicator_name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[content_a] varchar(8000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_b] varchar(8000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_c] varchar(8000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_d] varchar(8000) COLLATE Chinese_PRC_CI_AS NULL ,
[indicator_detail] varchar(8000) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[morder] int NULL ,
[indicator_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[indicator_weight] decimal(5,2) NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绩效考核库详情表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绩效考核库详情表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'dimension_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绩效考核库主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'dimension_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绩效考核库主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'dimension_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'indicator_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'content_a')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'A级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'content_a'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'A级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'content_a'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'content_b')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'B级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'content_b'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'B级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'content_b'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'content_c')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'C级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'content_c'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'C级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'content_c'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'content_d')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'D级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'content_d'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'D级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'content_d'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'indicator_detail')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'指标解释'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'指标解释'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_indicator_lib_detail', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_indicator_lib_detail'
, @level2type = 'COLUMN', @level2name = N'morder'
GO

-- ----------------------------
-- Records of tb_kpi_indicator_lib_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_period_instance
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_period_instance]
GO
CREATE TABLE [dbo].[tb_kpi_period_instance] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[job_type] tinyint NOT NULL ,
[period_year] char(4) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[period_type] tinyint NOT NULL ,
[period_no] tinyint NOT NULL ,
[create_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核周期计划'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核周期计划'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'job_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绩效类型（岗位类型）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'job_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绩效类型（岗位类型）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'job_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'period_year')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核年份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'period_year'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核年份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'period_year'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'period_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核周期类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'period_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核周期类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'period_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'period_no')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核周期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'period_no'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核周期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'period_no'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'create_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'编制人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'编制人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_period_instance', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_period_instance'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO

-- ----------------------------
-- Records of tb_kpi_period_instance
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_plan
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_plan]
GO
CREATE TABLE [dbo].[tb_kpi_plan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[obj_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[period_type] tinyint NULL ,
[create_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[update_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绩效方案管理表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绩效方案管理表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'obj_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核对象主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'obj_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核对象主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'obj_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'job_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'岗位主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'job_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'岗位主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'job_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'period_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'周期类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'period_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'周期类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'period_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'create_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'update_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'update_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'update_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO

-- ----------------------------
-- Records of tb_kpi_plan
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_plan_detail
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_plan_detail]
GO
CREATE TABLE [dbo].[tb_kpi_plan_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dimension_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[indicator_name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[content_a] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_b] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_c] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_d] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[indicator_detail] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[indicator_weight] decimal(5,2) NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[morder] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绩效方案详情表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绩效方案详情表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'plan_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绩效方案主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'plan_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绩效方案主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'plan_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'dimension_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核维度主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'dimension_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核维度主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'dimension_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'indicator_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'content_a')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'A级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'content_a'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'A级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'content_a'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'content_b')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'B级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'content_b'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'B级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'content_b'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'content_c')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'C级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'content_c'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'C级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'content_c'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'content_d')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'D级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'content_d'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'D级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'content_d'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'indicator_detail')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'指标解释'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'指标解释'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'indicator_weight')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_weight'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_weight'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_detail', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_detail'
, @level2type = 'COLUMN', @level2name = N'morder'
GO

-- ----------------------------
-- Records of tb_kpi_plan_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_plan_staff
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_plan_staff]
GO
CREATE TABLE [dbo].[tb_kpi_plan_staff] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[period_instance_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[obj_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[status] tinyint NOT NULL ,
[create_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[job_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rejection_comment] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核人员计划表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核人员计划表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
'COLUMN', N'period_instance_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核周期计划主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'period_instance_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核周期计划主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'period_instance_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
'COLUMN', N'obj_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核对象主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'obj_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核对象主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'obj_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff', 
'COLUMN', N'create_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
GO

-- ----------------------------
-- Records of tb_kpi_plan_staff
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_plan_staff_detail
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_plan_staff_detail]
GO
CREATE TABLE [dbo].[tb_kpi_plan_staff_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_staff_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dimension_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[indicator_name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[content_a] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_b] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_c] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[content_d] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[indicator_detail] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[indicator_weight] decimal(5,2) NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[morder] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核计划人员详情表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核计划人员详情表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'plan_staff_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核计划人员主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'plan_staff_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核计划人员主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'plan_staff_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'dimension_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核维度主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'dimension_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核维度主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'dimension_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'indicator_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核指标'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'content_a')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'A级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'content_a'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'A级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'content_a'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'content_b')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'B级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'content_b'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'B级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'content_b'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'content_c')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'C级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'content_c'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'C级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'content_c'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'content_d')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'D级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'content_d'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'D级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'content_d'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'indicator_detail')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'指标解释'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'指标解释'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'indicator_weight')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_weight'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'权重'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'indicator_weight'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_plan_staff_detail', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_plan_staff_detail'
, @level2type = 'COLUMN', @level2name = N'morder'
GO

-- ----------------------------
-- Records of tb_kpi_plan_staff_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_result
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_result]
GO
CREATE TABLE [dbo].[tb_kpi_result] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[plan_staff_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dimension_point] decimal(5,2) NULL ,
[single_indicator_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[single_indicator_point] decimal(5,2) NULL ,
[result_point] decimal(5,2) NULL ,
[result_level] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核实施结果表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核实施结果表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'plan_staff_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核人员计划主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'plan_staff_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核人员计划主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'plan_staff_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'dimension_point')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'四维度得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'dimension_point'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'四维度得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'dimension_point'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'single_indicator_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'单项指标名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'single_indicator_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'单项指标名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'single_indicator_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'single_indicator_point')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'单项指标得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'single_indicator_point'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'单项指标得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'single_indicator_point'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'result_point')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'最终得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'result_point'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'最终得分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'result_point'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'result_level')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评定等级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'result_level'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评定等级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'result_level'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO

-- ----------------------------
-- Records of tb_kpi_result
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_result_indicator
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_result_indicator]
GO
CREATE TABLE [dbo].[tb_kpi_result_indicator] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[plan_staff_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[audit_level] tinyint NOT NULL ,
[auditor_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[result_point] decimal(5,2) NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[process_point] decimal(5,2) NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核实施结果单次评分表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核实施结果单次评分表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
'COLUMN', N'plan_staff_detail_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核计划人员考核内容主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'plan_staff_detail_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核计划人员考核内容主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'plan_staff_detail_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
'COLUMN', N'audit_level')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评分人层级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'audit_level'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评分人层级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'audit_level'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
'COLUMN', N'auditor_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评分人主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'auditor_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评分人主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'auditor_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
'COLUMN', N'result_point')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'评分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'result_point'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'评分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'result_point'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO

-- ----------------------------
-- Records of tb_kpi_result_indicator
-- ----------------------------

-- ----------------------------
-- Table structure for tb_kpi_result_indicator_weight
-- ----------------------------
DROP TABLE [dbo].[tb_kpi_result_indicator_weight]
GO
CREATE TABLE [dbo].[tb_kpi_result_indicator_weight] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[plan_staff_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[weight_point] decimal(5,2) NOT NULL ,
[desc] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NOT NULL ,
[update_time] datetime NOT NULL ,
[is_deleted] bit NOT NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[completion_status] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核实施结果权重评分表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核实施结果权重评分表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
'COLUMN', N'plan_staff_detail_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'考核计划人员详情主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'plan_staff_detail_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'考核计划人员详情主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'plan_staff_detail_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
'COLUMN', N'weight_point')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'权重评分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'weight_point'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'权重评分'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'weight_point'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
'COLUMN', N'desc')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'指标完成情况（备注）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'desc'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'指标完成情况（备注）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'desc'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
'COLUMN', N'update_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'update_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'update_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
'COLUMN', N'is_deleted')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'is_deleted'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_kpi_result_indicator_weight', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_kpi_result_indicator_weight'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO

-- ----------------------------
-- Records of tb_kpi_result_indicator_weight
-- ----------------------------

-- ----------------------------
-- Table structure for TB_KPIPoint
-- ----------------------------
DROP TABLE [dbo].[TB_KPIPoint]
GO
CREATE TABLE [dbo].[TB_KPIPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[bizId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processSectionId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpointId] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[grade] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_KPIPoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_KPIPoint_Professor
-- ----------------------------
DROP TABLE [dbo].[TB_KPIPoint_Professor]
GO
CREATE TABLE [dbo].[TB_KPIPoint_Professor] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[aid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[flag] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[text] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[mark] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_KPIPoint_Professor', 
'COLUMN', N'aid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'专家系统传来的建议id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_KPIPoint_Professor'
, @level2type = 'COLUMN', @level2name = N'aid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'专家系统传来的建议id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_KPIPoint_Professor'
, @level2type = 'COLUMN', @level2name = N'aid'
GO

-- ----------------------------
-- Records of TB_KPIPoint_Professor
-- ----------------------------

-- ----------------------------
-- Table structure for TB_KPIPoint_Professor_Param
-- ----------------------------
DROP TABLE [dbo].[TB_KPIPoint_Professor_Param]
GO
CREATE TABLE [dbo].[TB_KPIPoint_Professor_Param] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[chart_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sdt] datetime NULL ,
[edt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_KPIPoint_Professor_Param
-- ----------------------------

-- ----------------------------
-- Table structure for tb_lagerScreen_Configure
-- ----------------------------
DROP TABLE [dbo].[tb_lagerScreen_Configure]
GO
CREATE TABLE [dbo].[tb_lagerScreen_Configure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_lagerScreen_Configure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_lagerScreen_ConfigureDetail
-- ----------------------------
DROP TABLE [dbo].[tb_lagerScreen_ConfigureDetail]
GO
CREATE TABLE [dbo].[tb_lagerScreen_ConfigureDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[columnNum] int NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_lagerScreen_ConfigureDetail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_lagerScreen_data
-- ----------------------------
DROP TABLE [dbo].[tb_lagerScreen_data]
GO
CREATE TABLE [dbo].[tb_lagerScreen_data] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[eqtotalnum] float(53) NULL ,
[eqAnum] float(53) NULL ,
[eqBnum] float(53) NULL ,
[eqCnum] float(53) NULL ,
[eqIntactRate] float(53) NULL ,
[xjIntactRate] float(53) NULL ,
[xjNum] float(53) NULL ,
[xjWorkHour] float(53) NULL ,
[wxIntactRate] float(53) NULL ,
[wxNum] float(53) NULL ,
[wxWorkHour] float(53) NULL ,
[byIntactRate] float(53) NULL ,
[byNum] float(53) NULL ,
[byWorkHour] float(53) NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_lagerScreen_data
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_base
-- ----------------------------
DROP TABLE [dbo].[tb_library_base]
GO
CREATE TABLE [dbo].[tb_library_base] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[library_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[place_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updt] datetime NULL ,
[upuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_library_base', 
'COLUMN', N'library_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'库的类型：
维修库：repair
大修库：overhaul
保养库：main'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_base'
, @level2type = 'COLUMN', @level2name = N'library_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'库的类型：
维修库：repair
大修库：overhaul
保养库：main'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_base'
, @level2type = 'COLUMN', @level2name = N'library_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_library_base', 
'COLUMN', N'place_status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否需要部位  
需要:   y     
不需要:    n'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_base'
, @level2type = 'COLUMN', @level2name = N'place_status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否需要部位  
需要:   y     
不需要:    n'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_base'
, @level2type = 'COLUMN', @level2name = N'place_status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_library_base', 
'COLUMN', N'updt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_base'
, @level2type = 'COLUMN', @level2name = N'updt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_base'
, @level2type = 'COLUMN', @level2name = N'updt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_library_base', 
'COLUMN', N'upuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_base'
, @level2type = 'COLUMN', @level2name = N'upuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_base'
, @level2type = 'COLUMN', @level2name = N'upuser'
GO

-- ----------------------------
-- Records of tb_library_base
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_fault_bloc
-- ----------------------------
DROP TABLE [dbo].[tb_library_fault_bloc]
GO
CREATE TABLE [dbo].[tb_library_fault_bloc] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[fault_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_describe] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_fault_bloc
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_fault_bloc_copy1
-- ----------------------------
DROP TABLE [dbo].[tb_library_fault_bloc_copy1]
GO
CREATE TABLE [dbo].[tb_library_fault_bloc_copy1] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[fault_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_describe] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_fault_bloc_copy1
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_maintain_car
-- ----------------------------
DROP TABLE [dbo].[tb_library_maintain_car]
GO
CREATE TABLE [dbo].[tb_library_maintain_car] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[model] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fuel_consumption_per100km] float(53) NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_library_maintain_car
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_maintain_car_detail
-- ----------------------------
DROP TABLE [dbo].[tb_library_maintain_car_detail]
GO
CREATE TABLE [dbo].[tb_library_maintain_car_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[maintain_car_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[num_10thousand_km] float(53) NULL ,
[money] money NULL ,
[working_hours] float(53) NULL ,
[memo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_maintain_car_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_maintenance_common
-- ----------------------------
DROP TABLE [dbo].[tb_library_maintenance_common]
GO
CREATE TABLE [dbo].[tb_library_maintenance_common] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inside_repair_time] money NULL ,
[cost] money NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_library_maintenance_common
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_maintenance_common_content
-- ----------------------------
DROP TABLE [dbo].[tb_library_maintenance_common_content]
GO
CREATE TABLE [dbo].[tb_library_maintenance_common_content] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[tools] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[security] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[common_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_maintenance_common_content
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_maintenance_lubrication
-- ----------------------------
DROP TABLE [dbo].[tb_library_maintenance_lubrication]
GO
CREATE TABLE [dbo].[tb_library_maintenance_lubrication] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[standard] money NULL ,
[unit] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[model] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inside_repair_time] money NULL ,
[lubricationuId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cost] money NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_library_maintenance_lubrication
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_material_quota
-- ----------------------------
DROP TABLE [dbo].[tb_library_material_quota]
GO
CREATE TABLE [dbo].[tb_library_material_quota] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[material_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[material_num] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_material_quota
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_mpoint_prop
-- ----------------------------
DROP TABLE [dbo].[tb_library_mpoint_prop]
GO
CREATE TABLE [dbo].[tb_library_mpoint_prop] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluation_formula] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[calFreq] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[calRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[signaltag] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_mpoint_prop
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_mpoint_propsource
-- ----------------------------
DROP TABLE [dbo].[tb_library_mpoint_propsource]
GO
CREATE TABLE [dbo].[tb_library_mpoint_propsource] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[index_details] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cal_range] int NULL ,
[cal_range_unit] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[calculation_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_mpoint_propsource
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_overhaul_content_bloc
-- ----------------------------
DROP TABLE [dbo].[tb_library_overhaul_content_bloc]
GO
CREATE TABLE [dbo].[tb_library_overhaul_content_bloc] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[content_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_content] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_party_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_library_overhaul_content_bloc
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_overhaul_content_equ_biz
-- ----------------------------
DROP TABLE [dbo].[tb_library_overhaul_content_equ_biz]
GO
CREATE TABLE [dbo].[tb_library_overhaul_content_equ_biz] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[adjustment_reason] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[content_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_overhaul_content_equ_biz
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_overhaul_content_model_bloc
-- ----------------------------
DROP TABLE [dbo].[tb_library_overhaul_content_model_bloc]
GO
CREATE TABLE [dbo].[tb_library_overhaul_content_model_bloc] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[content_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_overhaul_content_model_bloc
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_overhaul_project_bloc
-- ----------------------------
DROP TABLE [dbo].[tb_library_overhaul_project_bloc]
GO
CREATE TABLE [dbo].[tb_library_overhaul_project_bloc] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[project_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[project_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[condition] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_overhaul_project_bloc
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_overhaul_project_equ_biz
-- ----------------------------
DROP TABLE [dbo].[tb_library_overhaul_project_equ_biz]
GO
CREATE TABLE [dbo].[tb_library_overhaul_project_equ_biz] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[project_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_overhaul_project_equ_biz
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_overhaul_project_model_bloc
-- ----------------------------
DROP TABLE [dbo].[tb_library_overhaul_project_model_bloc]
GO
CREATE TABLE [dbo].[tb_library_overhaul_project_model_bloc] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[project_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_overhaul_project_model_bloc
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_process_abnormal
-- ----------------------------
DROP TABLE [dbo].[tb_library_process_abnormal]
GO
CREATE TABLE [dbo].[tb_library_process_abnormal] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[abnormal_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_analysis] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_library_process_abnormal', 
'COLUMN', N'abnormal_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_process_abnormal'
, @level2type = 'COLUMN', @level2name = N'abnormal_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_process_abnormal'
, @level2type = 'COLUMN', @level2name = N'abnormal_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_library_process_abnormal', 
'COLUMN', N'abnormal_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_process_abnormal'
, @level2type = 'COLUMN', @level2name = N'abnormal_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_process_abnormal'
, @level2type = 'COLUMN', @level2name = N'abnormal_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_library_process_abnormal', 
'COLUMN', N'abnormal_analysis')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常现象及分析'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_process_abnormal'
, @level2type = 'COLUMN', @level2name = N'abnormal_analysis'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常现象及分析'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_library_process_abnormal'
, @level2type = 'COLUMN', @level2name = N'abnormal_analysis'
GO

-- ----------------------------
-- Records of tb_library_process_abnormal
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_process_adjustment
-- ----------------------------
DROP TABLE [dbo].[tb_library_process_adjustment]
GO
CREATE TABLE [dbo].[tb_library_process_adjustment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[abnormal_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_analysis] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[pro_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pro_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pro_measures_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pro_measures] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[monitor_target] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[check_standard] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_rated_time] money NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_process_adjustment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_process_manage
-- ----------------------------
DROP TABLE [dbo].[tb_library_process_manage]
GO
CREATE TABLE [dbo].[tb_library_process_manage] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[area] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[max_value] float(53) NULL ,
[min_value] float(53) NULL ,
[target_value] float(53) NULL ,
[control_logic] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[base_hours] float(53) NULL ,
[remarks] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_process_manage
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_process_manage_detail
-- ----------------------------
DROP TABLE [dbo].[tb_library_process_manage_detail]
GO
CREATE TABLE [dbo].[tb_library_process_manage_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[measure_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluation_rules] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[selection_method] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_library_process_manage_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_process_manage_workOrder
-- ----------------------------
DROP TABLE [dbo].[tb_library_process_manage_workOrder]
GO
CREATE TABLE [dbo].[tb_library_process_manage_workOrder] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[IssuedTime] datetime NULL ,
[Issueder] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reviewTime] datetime NULL ,
[reviewer] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[true_value] float(53) NULL ,
[control_measures] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[true_hours] float(53) NULL 
)


GO

-- ----------------------------
-- Records of tb_library_process_manage_workOrder
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_repair_bloc
-- ----------------------------
DROP TABLE [dbo].[tb_library_repair_bloc]
GO
CREATE TABLE [dbo].[tb_library_repair_bloc] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[repair_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_party_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[morder] int NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_repair_bloc
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_repair_equ_biz
-- ----------------------------
DROP TABLE [dbo].[tb_library_repair_equ_biz]
GO
CREATE TABLE [dbo].[tb_library_repair_equ_biz] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[adjustment_reason] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[content_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_repair_equ_biz
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_repair_model_bloc
-- ----------------------------
DROP TABLE [dbo].[tb_library_repair_model_bloc]
GO
CREATE TABLE [dbo].[tb_library_repair_model_bloc] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[content_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_repair_model_bloc
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_routine_work
-- ----------------------------
DROP TABLE [dbo].[tb_library_routine_work]
GO
CREATE TABLE [dbo].[tb_library_routine_work] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[position_type_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[position_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_type_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_type_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_content] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluation_criterion] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[work_frequency_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_start_time] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[base_hours] money NULL ,
[base_cost] money NULL ,
[need_people] int NULL ,
[skill_level] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rob_workorder] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[day_register] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[week_register] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[week_interval] int NULL ,
[month_register] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_routine_work
-- ----------------------------

-- ----------------------------
-- Table structure for tb_library_water_test
-- ----------------------------
DROP TABLE [dbo].[tb_library_water_test]
GO
CREATE TABLE [dbo].[tb_library_water_test] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[measure_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[method] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[base_hours] money NULL ,
[base_cost] money NULL ,
[safe_careful] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_library_water_test
-- ----------------------------

-- ----------------------------
-- Table structure for tb_line
-- ----------------------------
DROP TABLE [dbo].[tb_line]
GO
CREATE TABLE [dbo].[tb_line] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[area_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_line
-- ----------------------------

-- ----------------------------
-- Table structure for tb_line_equipmentcard
-- ----------------------------
DROP TABLE [dbo].[tb_line_equipmentcard]
GO
CREATE TABLE [dbo].[tb_line_equipmentcard] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[line_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equ_order] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_line_equipmentcard
-- ----------------------------

-- ----------------------------
-- Table structure for tb_line_process_section
-- ----------------------------
DROP TABLE [dbo].[tb_line_process_section]
GO
CREATE TABLE [dbo].[tb_line_process_section] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[line_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_line_process_section
-- ----------------------------

-- ----------------------------
-- Table structure for tb_log
-- ----------------------------
DROP TABLE [dbo].[tb_log]
GO
CREATE TABLE [dbo].[tb_log] (
[dt] datetime NULL ,
[IP] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[Name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[Pass] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[a] int NOT NULL 
)


GO

-- ----------------------------
-- Records of tb_log
-- ----------------------------

-- ----------------------------
-- Table structure for tb_log_info
-- ----------------------------
DROP TABLE [dbo].[tb_log_info]
GO
CREATE TABLE [dbo].[tb_log_info] (
[id] bigint NOT NULL IDENTITY(1,1) ,
[controller] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[method] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[user_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[ip] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[operate_content] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[ex_msg] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[user_caption] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[param] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[result] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[remote_port] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[user_method] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
DBCC CHECKIDENT(N'[dbo].[tb_log_info]', RESEED, 30430)
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'controller')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'控制器'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'controller'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'控制器'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'controller'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'method')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'方法名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'method'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'方法名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'method'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'ip')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'IP'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'ip'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'IP'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'ip'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'请求时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'请求时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'operate_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'方法说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'operate_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'方法说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'operate_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'请求情况，正常、异常'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'请求情况，正常、异常'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'ex_msg')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'ex_msg'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'ex_msg'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'user_caption')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'user_caption'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'user_caption'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'param')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'请求参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'param'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'请求参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'param'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'result')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'返回内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'result'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'返回内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'result'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'remote_port')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户端口'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'remote_port'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户端口'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'remote_port'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_log_info', 
'COLUMN', N'user_method')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'请求方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'user_method'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'请求方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_log_info'
, @level2type = 'COLUMN', @level2name = N'user_method'
GO

-- ----------------------------
-- Records of tb_log_info
-- ----------------------------
SET IDENTITY_INSERT [dbo].[tb_log_info] ON
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'10430', N'com.sipai.controller.user.RoleController', N'updateFuncByRoleMenu', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-26 19:28:25.000', N'根据角色和菜单，更新功能权限', N'正常', null, N'超级管理员', N'{"funcstr":["473bb7a3f7a64fdd88db6ed4ea639d6e,ace483331ffb47be86a8fec3561f604d,26a4f8058e9344b0af16a30c83041f4a,6d390808e3d345799f24d7f49e6e1c49,583cb25e3ee2477e8f2da5d22ff16cac,85f0e816492640f98772633523a547ae,"],"roleid":["6c6ab286f106415382a735607fa73459"],"menuid":["990101"]}', N'result', N'63246', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'10432', N'com.sipai.controller.user.RoleController', N'updateUserRole', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-26 19:30:53.000', N'根据角色，更新用户关系', N'正常', null, N'超级管理员', N'{"userstr":["emp01,"],"roleid":["6c6ab286f106415382a735607fa73459"]}', N'result', N'63317', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'10433', N'com.sipai.controller.user.UserController', N'doupdate', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-26 19:34:08.000', N'修改用户信息', N'正常', null, N'超级管理员', N'{"id":["556847e6646c4e67b9cc20835110b0d0"],"name":["ceshi1"],"caption":["????"],"userCardId":[""],"sex":["1"],"_pname":["金山排海工程有限公司"],"pid":["0533JS"],"mobile":[""],"cardid":[""],"_roles":["rol0001"],"active":["1"],"morder":["0"]}', N'result', N'63773', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'10434', N'com.sipai.controller.user.RoleController', N'updateRoleUser', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-26 19:34:08.000', N'根据用户，更新角色关系', N'正常', null, N'超级管理员', N'{"rolestr":["rol0001"],"userid":["556847e6646c4e67b9cc20835110b0d0"]}', N'result', N'63773', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'10435', N'com.sipai.controller.user.UserController', N'doupdate', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-26 19:34:24.000', N'修改用户信息', N'正常', null, N'超级管理员', N'{"id":["556847e6646c4e67b9cc20835110b0d0"],"name":["ceshi1"],"caption":["系统管理员"],"userCardId":[""],"sex":["1"],"_pname":["金山排海工程有限公司"],"pid":["0533JS"],"mobile":[""],"cardid":[""],"_roles":["rol0001"],"active":["1"],"morder":["0"]}', N'result', N'63774', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'10436', N'com.sipai.controller.user.RoleController', N'updateRoleUser', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-26 19:34:24.000', N'根据用户，更新角色关系', N'正常', null, N'超级管理员', N'{"rolestr":["rol0001"],"userid":["556847e6646c4e67b9cc20835110b0d0"]}', N'result', N'63774', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'20431', N'com.sipai.controller.user.UnitController', N'doCompanySave', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-27 00:20:25.000', N'新增公司或厂区', N'正常', null, N'超级管理员', N'{"name":["上海金山卫污水处理有限公司"],"_pname":[""],"pid":["-1"],"sname":["上海金山卫污水厂"],"type":["C"],"id":[""],"longitude":["121.16"],"latitude":["30.42"],"address":["上海市金山区金山卫镇海金路958号"],"ename":["SHJSWWS"],"city":["上海"],"morder":["1"],"active":["1"]}', N'ModelAndView [view="result"; model=null]', N'53031', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'20432', N'com.sipai.controller.user.UserController', N'dosave', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-27 00:21:48.000', N'新增用户信息', N'正常', null, N'超级管理员', N'{"id":[""],"name":["guopu"],"caption":["郭扑"],"userCardId":["10001"],"sex":["1"],"_pname":["上海金山卫污水厂"],"pid":["e77a9f7bd00b4d229056c1a57ad22589"],"mobile":["13585675617"],"cardid":[""],"_roles":["6c6ab286f106415382a735607fa73459"],"active":["1"],"morder":["1"]}', N'result', N'53105', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'20433', N'com.sipai.controller.user.RoleController', N'updateRoleUser', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-27 00:21:48.000', N'根据用户，更新角色关系', N'正常', null, N'超级管理员', N'{"rolestr":["6c6ab286f106415382a735607fa73459"],"userid":["92893c2c12aa4d6680e2a489c3b51797"]}', N'result', N'53105', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'20434', N'com.sipai.controller.user.UserController', N'doupdate', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-27 01:20:11.000', N'修改用户信息', N'正常', null, N'超级管理员', N'{"id":["0219AB41-ECFB-428F-B4E9-B3CC64ADAAFC"],"name":["zhouhui"],"caption":["周辉"],"userCardId":["1029"],"sex":["1"],"_pname":["上海金山卫污水厂"],"pid":["e77a9f7bd00b4d229056c1a57ad22589"],"mobile":["15921363773"],"cardid":[""],"_roles":["rol0005"],"active":["1"],"morder":["1"]}', N'result', N'56314', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'20435', N'com.sipai.controller.user.RoleController', N'updateRoleUser', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-27 01:20:11.000', N'根据用户，更新角色关系', N'正常', null, N'超级管理员', N'{"rolestr":["rol0005"],"userid":["0219AB41-ECFB-428F-B4E9-B3CC64ADAAFC"]}', N'result', N'56314', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'20436', N'com.sipai.controller.user.UserController', N'doupdate', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-27 01:21:44.000', N'修改用户信息', N'正常', null, N'超级管理员', N'{"id":["emp01"],"name":["admin"],"caption":["超级管理员"],"userCardId":["0101"],"sex":["1"],"_pname":["上海金山卫污水厂"],"pid":["e77a9f7bd00b4d229056c1a57ad22589"],"mobile":["18616335756"],"cardid":[""],"_roles":["c437bb0599664d9dac64d299042b2a3e","6c6ab286f106415382a735607fa73459","rol0001"],"active":["1"],"morder":["0"]}', N'result', N'56485', N'POST')
GO
GO
INSERT INTO [dbo].[tb_log_info] ([id], [controller], [method], [user_id], [ip], [insdt], [operate_content], [type], [ex_msg], [user_caption], [param], [result], [remote_port], [user_method]) VALUES (N'20437', N'com.sipai.controller.user.RoleController', N'updateRoleUser', N'emp01', N'0:0:0:0:0:0:0:1', N'2026-01-27 01:21:44.000', N'根据用户，更新角色关系', N'正常', null, N'超级管理员', N'{"rolestr":["c437bb0599664d9dac64d299042b2a3e,6c6ab286f106415382a735607fa73459,rol0001"],"userid":["emp01"]}', N'result', N'56485', N'POST')
GO
GO
SET IDENTITY_INSERT [dbo].[tb_log_info] OFF
GO

-- ----------------------------
-- Table structure for tb_main_config
-- ----------------------------
DROP TABLE [dbo].[tb_main_config]
GO
CREATE TABLE [dbo].[tb_main_config] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[memo] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fun_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[div_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[test_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_main_config', 
'COLUMN', N'fun_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'方法名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config'
, @level2type = 'COLUMN', @level2name = N'fun_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'方法名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config'
, @level2type = 'COLUMN', @level2name = N'fun_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_main_config', 
'COLUMN', N'div_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'插件对应div的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config'
, @level2type = 'COLUMN', @level2name = N'div_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'插件对应div的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config'
, @level2type = 'COLUMN', @level2name = N'div_id'
GO

-- ----------------------------
-- Records of tb_main_config
-- ----------------------------

-- ----------------------------
-- Table structure for tb_main_config_20241122
-- ----------------------------
DROP TABLE [dbo].[tb_main_config_20241122]
GO
CREATE TABLE [dbo].[tb_main_config_20241122] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[memo] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fun_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[div_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[test_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_main_config_20241122', 
'COLUMN', N'fun_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'方法名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config_20241122'
, @level2type = 'COLUMN', @level2name = N'fun_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'方法名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config_20241122'
, @level2type = 'COLUMN', @level2name = N'fun_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_main_config_20241122', 
'COLUMN', N'div_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'插件对应div的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config_20241122'
, @level2type = 'COLUMN', @level2name = N'div_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'插件对应div的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config_20241122'
, @level2type = 'COLUMN', @level2name = N'div_id'
GO

-- ----------------------------
-- Records of tb_main_config_20241122
-- ----------------------------

-- ----------------------------
-- Table structure for tb_main_config_JS(无需同步)
-- ----------------------------
DROP TABLE [dbo].[tb_main_config_JS(无需同步)]
GO
CREATE TABLE [dbo].[tb_main_config_JS(无需同步)] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[memo] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fun_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[div_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[test_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_main_config_JS(无需同步)', 
'COLUMN', N'fun_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'方法名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config_JS(无需同步)'
, @level2type = 'COLUMN', @level2name = N'fun_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'方法名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config_JS(无需同步)'
, @level2type = 'COLUMN', @level2name = N'fun_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_main_config_JS(无需同步)', 
'COLUMN', N'div_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'插件对应div的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config_JS(无需同步)'
, @level2type = 'COLUMN', @level2name = N'div_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'插件对应div的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_main_config_JS(无需同步)'
, @level2type = 'COLUMN', @level2name = N'div_id'
GO

-- ----------------------------
-- Records of tb_main_config_JS(无需同步)
-- ----------------------------

-- ----------------------------
-- Table structure for tb_mainpage
-- ----------------------------
DROP TABLE [dbo].[tb_mainpage]
GO
CREATE TABLE [dbo].[tb_mainpage] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[show_way] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_mainpage
-- ----------------------------

-- ----------------------------
-- Table structure for tb_mainpage_type
-- ----------------------------
DROP TABLE [dbo].[tb_mainpage_type]
GO
CREATE TABLE [dbo].[tb_mainpage_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[height] int NULL ,
[classlg] int NULL ,
[active] bit NULL ,
[style] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_mainpage_type
-- ----------------------------

-- ----------------------------
-- Table structure for tb_mainpage_type_user
-- ----------------------------
DROP TABLE [dbo].[tb_mainpage_type_user]
GO
CREATE TABLE [dbo].[tb_mainpage_type_user] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] bit NULL 
)


GO

-- ----------------------------
-- Records of tb_mainpage_type_user
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance]
GO
CREATE TABLE [dbo].[tb_maintenance] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[problem] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[companyid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[expectenddt] datetime NULL ,
[applicantId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[confirmdt] datetime NULL ,
[submitProblemDt] datetime NULL ,
[maintenanceMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenanceDt] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cancelReason] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainerTypeId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainerId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[managerId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainerConfirmDt] datetime NULL ,
[contractNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainerFinishiDt] datetime NULL ,
[result] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[enddt] datetime NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[judgemaintainer] int NULL ,
[judgemaintainerstaff] int NULL ,
[judgeresult] int NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'problem')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'问题内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'problem'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'问题内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'problem'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'expectenddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'期望完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'expectenddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'期望完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'expectenddt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'applicantId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'问题发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'applicantId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'问题发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'applicantId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'confirmdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'负责人确认时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'confirmdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'负责人确认时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'confirmdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'submitProblemDt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发布问题时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'submitProblemDt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发布问题时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'submitProblemDt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'maintenanceMethod')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'maintenanceMethod'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'maintenanceMethod'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'maintenanceDt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'maintenanceDt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'maintenanceDt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主流程或是补录，补录为0，主流程为1'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主流程或是补录，补录为0，主流程为1'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态（提交，负责人确认，委托，客户确认，完成）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态（提交，负责人确认，委托，客户确认，完成）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'maintainerId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'运营商Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'maintainerId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'运营商Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'maintainerId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'managerId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'managerId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'managerId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'contractNo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'contractNo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'contractNo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'result')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'运维结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'result'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'运维结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'result'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'enddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'结束时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'enddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'结束时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'enddt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'judgemaintainer')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'运维商评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'judgemaintainer'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'运维商评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'judgemaintainer'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'judgemaintainerstaff')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'运维人员评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'judgemaintainerstaff'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'运维人员评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'judgemaintainerstaff'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance', 
'COLUMN', N'judgeresult')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'运维结果评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'judgeresult'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'运维结果评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance'
, @level2type = 'COLUMN', @level2name = N'judgeresult'
GO

-- ----------------------------
-- Records of tb_maintenance
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_anticorrosive_library
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_anticorrosive_library]
GO
CREATE TABLE [dbo].[tb_maintenance_anticorrosive_library] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[project_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[project_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[num] int NULL ,
[contents] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[area] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reason] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[quality_requirement] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[warranty_time] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[times] money NULL ,
[cost] money NULL ,
[total_cost] money NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_anticorrosive_library
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_anticorrosive_library_equipment
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_anticorrosive_library_equipment]
GO
CREATE TABLE [dbo].[tb_maintenance_anticorrosive_library_equipment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[equid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_anticorrosive_library_equipment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_anticorrosive_library_material
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_anticorrosive_library_material]
GO
CREATE TABLE [dbo].[tb_maintenance_anticorrosive_library_material] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[material_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[num] money NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_anticorrosive_library_material
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_anticorrosive_material
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_anticorrosive_material]
GO
CREATE TABLE [dbo].[tb_maintenance_anticorrosive_material] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cost] money NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_anticorrosive_material
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_detail
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_detail]
GO
CREATE TABLE [dbo].[tb_maintenance_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[detail_number] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[problemcontent] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[companyId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[contactIds] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[plannedEnddt] datetime NULL ,
[maintenanceId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainPlanId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenance_man] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[problemtypeId] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_money] money NULL ,
[actual_money] money NULL ,
[submitTime] datetime NULL ,
[defect_level] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[start_date] datetime NULL ,
[actual_finish_date] datetime NULL ,
[process_section_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenance_way] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_consume_time] int NULL ,
[delay_reason] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[change_parts] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[solveTime] datetime NULL ,
[solver] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[assistantedId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[problemresult] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainerId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[judgemaintainerstaff] int NULL ,
[judgeresult] int NULL ,
[equipment_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[base_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[product_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[middle_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[quality_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[material_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[manual_input_equipment] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[workinghours] money NULL ,
[plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormity_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'detail_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'detail_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'detail_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'problemcontent')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护/检修/维修内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'problemcontent'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护/检修/维修内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'problemcontent'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'companyId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'companyId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'companyId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'plannedEnddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'plannedEnddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'plannedEnddt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'maintenanceId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护单id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'maintenanceId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护单id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'maintenanceId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'maintenance_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'maintenance_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'maintenance_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'problemtypeId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'问题故障类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'problemtypeId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'问题故障类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'problemtypeId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态（已委派，已解决）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态（已委派，已解决）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'plan_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'plan_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'plan_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'actual_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'actual_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际费用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'actual_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'defect_level')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'故障级别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'defect_level'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'故障级别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'defect_level'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'start_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开始时间（任务签收时间）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'start_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开始时间（任务签收时间）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'start_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'actual_finish_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'actual_finish_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'actual_finish_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'process_section_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'maintenance_way')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护/检修/维修方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'maintenance_way'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护/检修/维修方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'maintenance_way'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'plan_consume_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划耗时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'plan_consume_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划耗时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'plan_consume_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'delay_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'延误原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'delay_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'延误原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'delay_reason'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'change_parts')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更换备件'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'change_parts'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更换备件'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'change_parts'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'solveTime')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'solveTime'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'solveTime'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'solver')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'解决人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'solver'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'解决人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'solver'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'assistantedId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'被委托人员Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'assistantedId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'被委托人员Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'assistantedId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'详情类型：维护、维修（缺陷）、检修'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'详情类型：维护、维修（缺陷）、检修'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'equipment_opinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备专责意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'equipment_opinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备专责意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'equipment_opinion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'base_opinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'基层领导意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'base_opinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'基层领导意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'base_opinion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'product_opinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'生产运营中心意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'product_opinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'生产运营中心意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'product_opinion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'middle_opinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'中层领导意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'middle_opinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'中层领导意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'middle_opinion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'quality_opinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修质量意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'quality_opinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修质量意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'quality_opinion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_detail', 
'COLUMN', N'material_opinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'使用材料数量验收意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'material_opinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'使用材料数量验收意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_detail'
, @level2type = 'COLUMN', @level2name = N'material_opinion'
GO

-- ----------------------------
-- Records of tb_maintenance_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_equipment
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_equipment]
GO
CREATE TABLE [dbo].[tb_maintenance_equipment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[maintenanceId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_equipment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_faultlibrary
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_faultlibrary]
GO
CREATE TABLE [dbo].[tb_maintenance_faultlibrary] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_describe] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_faultlibrary', 
'COLUMN', N'fault_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'故障编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_faultlibrary'
, @level2type = 'COLUMN', @level2name = N'fault_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'故障编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_faultlibrary'
, @level2type = 'COLUMN', @level2name = N'fault_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_faultlibrary', 
'COLUMN', N'fault_describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'故障描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_faultlibrary'
, @level2type = 'COLUMN', @level2name = N'fault_describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'故障描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_faultlibrary'
, @level2type = 'COLUMN', @level2name = N'fault_describe'
GO

-- ----------------------------
-- Records of tb_maintenance_faultlibrary
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_faultlibrary_branch
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_faultlibrary_branch]
GO
CREATE TABLE [dbo].[tb_maintenance_faultlibrary_branch] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[trunk_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_faultlibrary_branch
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_file
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_file]
GO
CREATE TABLE [dbo].[tb_maintenance_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_library_quota_level
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_library_quota_level]
GO
CREATE TABLE [dbo].[tb_maintenance_library_quota_level] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] bit NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_library_quota_level
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_maintain
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_maintain]
GO
CREATE TABLE [dbo].[tb_maintenance_maintain] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[complete_date] datetime NULL ,
[cycle] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_ids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_date] datetime NULL ,
[plan_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintain_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_maintain
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_maintain_car
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_maintain_car]
GO
CREATE TABLE [dbo].[tb_maintenance_maintain_car] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[detail_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintain_work_unit_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[solver] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[car_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintain_car_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[last_maintain_time] datetime NULL ,
[odograph] int NULL ,
[maintain_reason] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_money] money NULL ,
[actual_working_hours] float(53) NULL ,
[memo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[quality_opinion] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cal_working_hours] float(53) NULL ,
[final_working_hours] float(53) NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintain_car_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_maintain_car
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_maintain_library
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_maintain_library]
GO
CREATE TABLE [dbo].[tb_maintenance_maintain_library] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[maintain_tools] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[maintain_guarantee] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[times] money NULL ,
[cost] money NULL ,
[lubricate_oilnorm] money NULL ,
[lubricate_unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lubricate_oiltype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lubricate_usersid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_maintain_library
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_maintain_plan
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_maintain_plan]
GO
CREATE TABLE [dbo].[tb_maintenance_maintain_plan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainerId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[companyId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sdt] datetime NULL ,
[edt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainContent] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_maintain_plan
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_maintainer
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_maintainer]
GO
CREATE TABLE [dbo].[tb_maintenance_maintainer] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[full_name] varchar(150) COLLATE Chinese_PRC_CI_AS NULL ,
[short_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(150) COLLATE Chinese_PRC_CI_AS NULL ,
[fax] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contacts_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contacts_mobilephone] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[telephone] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[syncflag] varchar(1) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护商类别（可从维护商类别表中选择）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护商类别（可从维护商类别表中选择）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'full_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护商全称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'full_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护商全称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'full_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'short_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护商简称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'short_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护商简称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'short_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'address')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护商地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'address'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护商地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'address'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'fax')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护商传真'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'fax'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护商传真'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'fax'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'contacts_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系人名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'contacts_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系人名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'contacts_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'contacts_mobilephone')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系人手机号码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'contacts_mobilephone'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系人手机号码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'contacts_mobilephone'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'telephone')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护商电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'telephone'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护商电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'telephone'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of tb_maintenance_maintainer
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_maintainer_company
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_maintainer_company]
GO
CREATE TABLE [dbo].[tb_maintenance_maintainer_company] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainerid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[companyid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startdate] datetime NULL ,
[enddate] datetime NULL ,
[maintainerleader] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[factorycontacter] varchar(200) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer_company', 
'COLUMN', N'maintainerleader')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护商负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer_company'
, @level2type = 'COLUMN', @level2name = N'maintainerleader'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护商负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer_company'
, @level2type = 'COLUMN', @level2name = N'maintainerleader'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer_company', 
'COLUMN', N'factorycontacter')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区联系人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer_company'
, @level2type = 'COLUMN', @level2name = N'factorycontacter'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区联系人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer_company'
, @level2type = 'COLUMN', @level2name = N'factorycontacter'
GO

-- ----------------------------
-- Records of tb_maintenance_maintainer_company
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_maintainer_selecttype
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_maintainer_selecttype]
GO
CREATE TABLE [dbo].[tb_maintenance_maintainer_selecttype] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainer_typeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintainerid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_maintainer_selecttype
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_maintainer_type
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_maintainer_type]
GO
CREATE TABLE [dbo].[tb_maintenance_maintainer_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer_type', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护商类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer_type'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护商类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer_type'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_maintainer_type', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer_type'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_maintainer_type'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of tb_maintenance_maintainer_type
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_newAndReset_library
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_newAndReset_library]
GO
CREATE TABLE [dbo].[tb_maintenance_newAndReset_library] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[project_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[project_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_party_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_newAndReset_library
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_newAndReset_library_quota
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_newAndReset_library_quota]
GO
CREATE TABLE [dbo].[tb_maintenance_newAndReset_library_quota] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[level_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[demolition_cost] money NULL ,
[install_cost] money NULL ,
[debug_cost] money NULL ,
[transport_cost] money NULL ,
[subsidiary_install_cost] money NULL ,
[outside_repair_cost] money NULL ,
[inside_repair_time] money NULL ,
[material_cost] money NULL ,
[memo] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_newAndReset_library_quota
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[process_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[outsourcing_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle_quota] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle_actual] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[project_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[project_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[budget_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[budget_cost] money NULL ,
[plan_date] datetime NULL ,
[plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_ids] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[project_describe] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_overhaul
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_item_content
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_item_content]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_item_content] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[progress] money NULL ,
[base_hours] money NULL ,
[working_hours] money NULL ,
[start_date] datetime NULL ,
[finish_date] datetime NULL ,
[item_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'随机id（通用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'随机id（通用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据插入时间（通用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据插入时间（通用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据插入人id（通用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据插入人id（通用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'contents')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分项内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'contents'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分项内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'contents'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'progress')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分项进度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'progress'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分项进度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'progress'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'base_hours')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'定额工时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'base_hours'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'定额工时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'base_hours'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'working_hours')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际工时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'working_hours'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际工时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'working_hours'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'start_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'start_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'start_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'finish_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'finish_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'finish_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_item_content', 
'COLUMN', N'item_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分项表id   tb_maintenance_overhaul_item_project表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'item_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分项表id   tb_maintenance_overhaul_item_project表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_item_content'
, @level2type = 'COLUMN', @level2name = N'item_id'
GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_item_content
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_item_equipment
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_item_equipment]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_item_equipment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[quota_hour] int NULL DEFAULT ((10)) ,
[actual_hour] int NULL ,
[quota_fee] int NULL DEFAULT ((100)) ,
[actual_fee] int NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_start_date] datetime NULL ,
[plan_end_date] datetime NULL ,
[status] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_item_equipment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_item_project
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_item_project]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_item_project] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_status] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[job_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[project_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_ids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_dt] datetime NULL ,
[plan_start_date] datetime NULL ,
[plan_finish_date] datetime NULL ,
[project_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[finish_explain] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[difficulty_degree] money NULL ,
[work_evaluate_score] money NULL ,
[working_hours] money NULL ,
[evaluate_explain] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[outsourcing_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[safe_operation_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[check_score] money NULL ,
[install_evaluate_score] money NULL ,
[install_problems] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[debug_evaluate_score] money NULL ,
[debug_problems] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[annex] int NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_item_project
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_library
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_library]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_library] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[project_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[project_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[condition] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[repair_party_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_library
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_library_branch_content
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_library_branch_content]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_library_branch_content] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[outside_repair_cost] money NULL ,
[inside_repair_time] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[adjustment_reason] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[trunk_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_library_branch_content
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_library_branch_project
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_library_branch_project]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_library_branch_project] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[trunk_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_library_branch_project
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_library_content
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_library_content]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_library_content] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[content_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[overhaul_describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_library_content
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_library_content_quota
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_library_content_quota]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_library_content_quota] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[repair_party_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inside_repair_time] money NULL ,
[material_cost] money NULL ,
[outside_repair_cost] money NULL ,
[total_cost] money NULL ,
[level_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_library_content_quota
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_overhaul_type
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_overhaul_type]
GO
CREATE TABLE [dbo].[tb_maintenance_overhaul_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[activiti_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_type', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'uuid'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'uuid'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_type', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_type', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_type', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否启用：启用、禁用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否启用：启用、禁用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_overhaul_type', 
'COLUMN', N'activiti_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绑定流程id  暂时未用到'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'activiti_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绑定流程id  暂时未用到'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_overhaul_type'
, @level2type = 'COLUMN', @level2name = N'activiti_id'
GO

-- ----------------------------
-- Records of tb_maintenance_overhaul_type
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_problem_fille
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_problem_fille]
GO
CREATE TABLE [dbo].[tb_maintenance_problem_fille] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_problem_fille
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_record
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_record]
GO
CREATE TABLE [dbo].[tb_maintenance_record] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[maintenanceid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[record] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_record', 
'COLUMN', N'maintenanceid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维护id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_record'
, @level2type = 'COLUMN', @level2name = N'maintenanceid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维护id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_record'
, @level2type = 'COLUMN', @level2name = N'maintenanceid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_record', 
'COLUMN', N'unitid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'单位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_record'
, @level2type = 'COLUMN', @level2name = N'unitid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'单位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_record'
, @level2type = 'COLUMN', @level2name = N'unitid'
GO

-- ----------------------------
-- Records of tb_maintenance_record
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_repair
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_repair]
GO
CREATE TABLE [dbo].[tb_maintenance_repair] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[job_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_ids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[complete_date] datetime NULL ,
[complete_plandate] datetime NULL ,
[outsourcing_st] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[safeOperation_st] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[scheme_description] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_date] datetime NULL ,
[plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_money] money NULL ,
[process_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_repair
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_repair_car
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_repair_car]
GO
CREATE TABLE [dbo].[tb_maintenance_repair_car] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[detail_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintain_work_unit_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[solver] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[car_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintain_car_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insurance_compensation_money] money NULL ,
[repair_reason] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insurance_compensation_situation] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_repair_money] money NULL ,
[exceed_compensation_reason] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[working_hours] float(53) NULL ,
[actual_working_hours] float(53) NULL ,
[memo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[quality_opinion] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cal_working_hours] float(53) NULL ,
[final_working_hours] float(53) NULL ,
[punish_award_money] money NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_repair_car
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_repairlibrary
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_repairlibrary]
GO
CREATE TABLE [dbo].[tb_maintenance_repairlibrary] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_describe] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[repair_party_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_repairlibrary', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_repairlibrary', 
'COLUMN', N'repair_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'repair_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'repair_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_repairlibrary', 
'COLUMN', N'repair_describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修内容描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'repair_describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修内容描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'repair_describe'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_repairlibrary', 
'COLUMN', N'repair_party_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修方  自修或委外'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'repair_party_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修方  自修或委外'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'repair_party_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_maintenance_repairlibrary', 
'COLUMN', N'repair_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修类型   小修、中修等'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'repair_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修类型   小修、中修等'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_maintenance_repairlibrary'
, @level2type = 'COLUMN', @level2name = N'repair_type'
GO

-- ----------------------------
-- Records of tb_maintenance_repairlibrary
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_repairlibrary_branch
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_repairlibrary_branch]
GO
CREATE TABLE [dbo].[tb_maintenance_repairlibrary_branch] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[outside_repair_cost] money NULL ,
[inside_repair_time] money NULL ,
[total_cost] money NULL ,
[adjustment_reason] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[trunk_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[material_cost] money NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_repairlibrary_branch
-- ----------------------------

-- ----------------------------
-- Table structure for tb_maintenance_repairlibrary_quota
-- ----------------------------
DROP TABLE [dbo].[tb_maintenance_repairlibrary_quota]
GO
CREATE TABLE [dbo].[tb_maintenance_repairlibrary_quota] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[level_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[material_cost] money NULL ,
[total_cost] money NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_maintenance_repairlibrary_quota
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MeasurePoint_DATA
-- ----------------------------
DROP TABLE [dbo].[TB_MeasurePoint_DATA]
GO
CREATE TABLE [dbo].[TB_MeasurePoint_DATA] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] date NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[data_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(150) COLLATE Chinese_PRC_CI_AS NULL ,
[MPointCode] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[type_1] varchar(55) COLLATE Chinese_PRC_CI_AS NULL ,
[type_2] varchar(55) COLLATE Chinese_PRC_CI_AS NULL ,
[page_nub] varchar(55) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_MeasurePoint_DATA
-- ----------------------------

-- ----------------------------
-- Table structure for tb_menuitem
-- ----------------------------
DROP TABLE [dbo].[tb_menuitem]
GO
CREATE TABLE [dbo].[tb_menuitem] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[PowerID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[caption] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[description] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[location] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[target] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[onclick] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[onmouseover] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[onmouseout] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[image] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[altImage] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tooltip] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[roles] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[page] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(5) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(5) COLLATE Chinese_PRC_CI_AS NULL ,
[forward] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[action] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[lvl] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[mainpage] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[count] int NULL ,
[engkey] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_menuitem
-- ----------------------------
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'00015c1b16fe44269f2f29d346127ba4', N'2d43030c17234666873d1462b6f2071c', null, null, N'查看部门', null, N'sparepart/inStockRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'00230aefbdc4455ea0fffca8904c0639', N'd38607ef9b02472388a333ceb982621d', null, null, N'设备能效分析', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'002b1723b2244817ae2b40f27ebfa43b', N'6175563fe13040f9905425212576a0da', null, null, N'设备登记/检定记录', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'007b3b51c25742c5b6621e440414bbb3', N'2e536132a05548df95037c3f3a6a779e', null, null, N'设备事故记录', null, N'equipment/equipmentAccident/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'00ce6922b9d0452bb9a5ca8eea78493c', N'2e4e28c52a9b4558afc02585f82a8ac6', null, null, N'新增', null, N'sparepart/outStockRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0119f4b25f7b4d6a967d17af5af4fef2', N'08c0df457cc24bb0843c0266ac5a14f5', null, null, N'工艺调整类型', null, N'process/processAdjustmentType/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'013c32b8d2ed4e65b0c3b1f2b5fdaf4c', N'2ef90da016114578ae28f4a927980efe', null, null, N'报警等级配置', null, N'alarm/alarmLevels/showist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'019866e2b48c4bc692ed7f861bb15e30', N'e4f4c58fd110484f87c9324b659a935f', null, null, N'预案配置', null, N'command/emergencyConfigure/showMenuTree_NS.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'01b0a338de7046df8fc15a3585681165', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d', null, null, N'删除', null, N'work/camera/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'01be14dbeab347418f1a0c8cc327157d', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'关联测量点', null, N'equipment/addMpoint.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'01dbfd7817ae4c44804df7393346e9a2', N'3cea8f370a1248a4904cef742526d7d3', null, null, N'工作类型', null, N'administration/organizationClass/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'02', N'-1', N'02', N'个人办公', N'消息管理', null, N'', N'mainframe', null, null, null, N'fa-comments', null, null, null, null, null, null, null, null, N'92', N'1', N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0201', N'02', null, null, N'消息通知', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'020101', N'0201', null, null, N'收消息', null, N'msg/showMsgrecv.do', null, null, null, null, null, null, null, null, null, null, null, null, N'message/message-receive', N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'020102', N'0201', null, null, N'发消息', null, N'msg/showMsgsend.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'020d737457684aae8583b4355181dafa', N'8e4f02e6d3e142fe9fcf4d238e1c42c1', null, null, N'删除', null, N'maintenance/abnormity/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0268759b89264df18450882a4032cbd0', N'c6516395208242f08ee612f6a9bb1661', null, null, N'删除', null, N'equipment/equipmentTypeNumber/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'03358fbdd95e4a19a5e2c8f9768929b9', N'b62e2bfaba5c4d2f853363af201bece8', null, null, N'查看全部', null, N'valueEngineering/equipmentDepreciation/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'042478cc0ef8435b8fa131e3b09c7912', N'25166f0c28534da582b079cb165fe34d', null, null, N'日常安全检查', null, N'safety/SafetyCheckDayly/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'04463a8e128a4d1b82eeed40f3f56e25', N'a65bc2df01cc4c2f984b40b284396f87', null, null, N'报表配置', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'04a25a406690444a95d9168804e85392', N'3d2302e3ebf647d8977c55c2ac3ffb66', null, null, N'水质化验库', null, N'process/libraryWaterTest/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'04cc222437aa4df8bb4d609cda370eb2', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'当前库存', null, N'sparepart/stock/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'059ef59f26dd478383e1e72c7e5cd286', N'99', null, null, N'数据源管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'05c1fbc731fb471f88b6f9caca7294a5', N'68486a28ff644c26b0087e58cb3972a4', null, null, N'新增', null, N'timeEfficiency/patrolPlan/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'05d05c5d63d14c83965e96f90b953540', N'89dc2f184cbb44e98c019775b04a6b30', null, null, N'查看部门', null, N'maintenance/faultLibrary/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'06323ccb0c4c4c3aa99b7a1dd2b8ddda', N'742cb94b264347d09faf4a46f595546e', null, null, N'查看全部', null, N'document/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0645cb3ff7704958a57ed8bb960f2cd7', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'064c9a068c724384994e38fc2de81580', N'50218c9a22184fe79437a01e6100d2dc', null, null, N'计划类型', null, N'maintenance/equipmentPlanType/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0666b40029d2497f96e06a581f9db193', N'7a1c6680cdb54c66acd6fcd56158f676', null, null, N'查看部门', null, N'report/customReport/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'06ea5ba3dd2f46e387dd4b9d91297ff8', N'f517c03375854ea38feb88f641552061', null, null, N'违规统计', null, N'timeEfficiency/violationRecordCount/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'06fa15a044854d92a94929ab8ff3df30', N'c963df9afc1d46e4b632a4c9f8266491', null, null, N'修改', null, N'activiti/leavew/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0705e3be74c549759405a1e7367dab3e', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'巡检人员考核', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'076e7705608c44c3b74eb83c43b51e71', N'1cbf77c623f24046b9b42d80dc853445', null, null, N'新增', null, N'equipment/EquipmentLoseApply/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'078e6f10a90a48c0931c9e6941d57ec7', N'5f408a168e434f74b5b7203161849b01', null, null, N'新增', null, N'timeEfficiency/patrolRecordViolationRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'07e360dc38334d60a39a533a80e33b3e', N'fd2737d3131c4974a3da03265802973c', null, null, N'合同管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'08c0df457cc24bb0843c0266ac5a14f5', N'42881246cc584821829f9a9228d1e535', null, null, N'工艺调整管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'08f22cb587e5494da1eb487dd087aeac', N'7b478532eb8e42e39f047e493a566e37', null, null, N'化验指标管理', null, N'process/testIndexManage/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'092baf56ba9d47b8b0c49aa4bf27d3ee', N'd1a5b76608044ad1bf651ea44d1c01eb', null, null, N'查看部门', null, N'document/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0958a69df2384742aeccf53f8bc707bc', N'de11e520ea344d0883eec9d7138cb025', null, null, N'外包单位信息', null, N'sparepart/supplier_copy/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'09a0b257886d4f5cac74e0b990317a87', N'728f3968261540a29e87662f722bcb3f', null, null, N'设备效能分析', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'09d48c951f1c427db5c039e6cfc0e86a', N'9c0e68e4dd3c469eb542fa3d9b72e885', null, null, N'可视化展示', null, N'process/dataVisualFrame/viewList.do?menuType=proVisual', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'09e049fa8305465ebf6b2044322d0589', N'8dcc788ded394af9b59a2d2f3f081845', null, null, N'新增', null, N'sparepart/stockCheck/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0a0cc81463624d8a943990ede82736f7', N'f3ead4a71df24345800ffc0609315dbd', null, null, N'查看部门', null, N'timeEfficiency/patrolPlan/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0a335cedda5749eeb42d2848e07869c0', N'f3c15bf456124ee1905696e474e5a1b2', null, null, N'查看全部', null, N'equipment/equipmentStopRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0a3dc7f7919040f2872e61b2156af009', N'0c35fcf6b5b94c2ebe3c2f7958632b86', null, null, N'外接系统管理', null, N'user/extsystem/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, N'system/external-system-management', N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0a6c72183ef9416aa1de324cd44cb90b', null, null, null, N'12', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0abe8266f77b4a20bff5ab271e7573ed', N'226f8cb8df9c4279a7b2e45fc33fdbe5', null, null, N'新增重置库', null, N'maintenance/libraryAddResetProject/showList4TreeBloc.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0aee45e6a06b43f3851835e12842d9b7', N'07e360dc38334d60a39a533a80e33b3e', null, null, N'合同记录', null, N'sparepart/contract/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0b00cc216d5a4bc9946de2369be5f0a8', N'd7118dde05d240d6ac78874469d742dd', null, null, N'巡检复制', null, N'timeEfficiency/patrolModel/setDefaultPatrol.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0b334ccbe1484425a9e9549ac274c4e3', N'11ecb72685584b11b3aad166312df054', null, null, N'导出', null, N'workorder/workorderDetail/export.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0b36b89ddc2d4f81b8ca568f69336d74', N'427a84637b354cefb1d077971495744b', null, null, N'委外记录', null, N'workorder/workorderDetail/showEndMaintainListOut.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0b74aa2537bd4b63a581d3f96fac70f4', N'd2a1b7f93b8349a6a11bb775f320746e', null, null, N'资料管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0b9e7859ac1048bbac5e869557e320bb', N'226ac9dcb6fa4bffbe4c70bcee57408e', null, null, N'下发工单', null, N'process/libraryProcessManageWorkOrderForExec/downWorkOrder.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0c042acc603a4f1aac876b9d2669f2ab', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'验收模型管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0c35b5a46a2940d1b71ad2a9a401b021', N'c0597983d30143d58a6d98d1436e905c', null, null, N'设备出售申请单', null, N'equipment/EquipmentSaleApply/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0c35fcf6b5b94c2ebe3c2f7958632b86', N'99', null, null, N'外接系统', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0c39c190e9a445fab0053802577759b2', N'72fd4439f8ad41eab7b765fd66052135', null, null, N'修改', null, N'timeEfficiency/patrolPlan/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0c568215f2e7479282e32ddd7467ca7f', N'6921534080ef4507bc99002e98e13190', null, null, N'删除', null, N'equipment/specialEquipment/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0d119048bfc34f559ba4d34207a6ea77', N'40c24596ff954e3fb67b703e2c42178a', null, null, N'修改', null, N'work/mpoint/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0d9a3124806f4d509fde3cd2ec5408e1', N'20038371000c40bbbb3485ed900b2593', null, null, N'删除', null, N'equipment/equipmentClass/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0d9bccde397f481abb366d14b20215ab', N'-1', null, null, N'安全管理', null, N'', null, null, null, null, N'fa-street-view', null, null, null, null, null, null, null, null, N'14', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0d9debe02623454dbd2b5999f1977d7b', N'2dcc67bdca3f43478b4f042400fed80f', null, null, N'设备巡检日历', null, N'timeEfficiency/patrolRecord/showCalendar_Equipment.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0e17802860554094a64065e84ce0dab5', N'fd2737d3131c4974a3da03265802973c', null, null, N'列资渠道', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0f03786758654d2e96c772c9dc9be297', N'3ad55b78720d4329b2af759943bf90d0', null, null, N'查看全部', null, N'maintenance/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0fddb4c66e554f4c9d2418e1b8682d22', N'4bef25f247aa4838b397aa4c5cab9b6a', null, null, N'查看全部', null, N'valueEngineering/equipmentEvaluate/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0fe0337f4b3748a7858f3dd6e4df7c4e', N'6175563fe13040f9905425212576a0da', null, null, N'基础信息', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'99', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'0ff0112fc5804fb7b8ef07ec5e28ee00', N'92913e48969f4ae3bcaf6c1e0fdb7704', null, null, N'删除', null, N'sparepart/sewage/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'-1', null, null, null, N'菜单管理', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'10d7c5a267684d66b4c5c2c84dd9008e', N'd9acffba9b594b31a5682135678c1f23', null, null, N'运维人员统计', null, N'maintenance/showStaffMaintenanceResultList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'11cf8b766cd74b938295f34fc0051754', N'0d9bccde397f481abb366d14b20215ab', null, null, N'人员管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'11d70715ece949a58595f0401808600e', N'5308297074f940bdb56bf7b5cd25c87d', null, null, N'消息类型新增', null, N'msg/addMsgType.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'11ecb72685584b11b3aad166312df054', N'5d4c737b7f2345ba9d2196aa6bba10dc', null, null, N'维修记录', null, N'workorder/workorderDetail/showEndRepairList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'12dcec0d3b224779838fdb3c0f8677a8', N'ba988e6b6eaf482a9f24651d717917cb', null, null, N'Modbus服务器', null, N'modbusfigaction.do?method=doshowlist', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1305ff98a4fe49419eb25e6d853c2725', N'af118a74bff547a3a088427be912d8bd', null, null, N'查看全部', null, N'equipment/equipmentCodeRule/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1366c5d4e43243de94ca53dc0cb2989c', N'd35bbec545024394a62dd1e31d49db6b', null, null, N'删除', null, N'equipment/equipmentSpecification/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'13cc6479f8b9437c824690c722d2bee5', N'7ed12d77875841c3a4244262d78ef1bb', null, null, N'过程控制单审核', null, N'process/libraryProcessManageWorkOrder/showListForReview.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'13f14f79019a4103ba1cc7651288613c', N'f07312a9aada4547ac986a3f5249144d', null, null, N'查看部门', null, N'report/customReport/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'141f6b919ba940d5a8430214db41beae', N'c035a8f1e458452bad464878554007e4', null, null, N'APP生产监测', null, N'app/appProductMonitor/showTree1.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'143060d1e8a247cd97bd26650149fb7e', N'ffde2acbc2aa4d5ea423342bd510e57f', null, null, N'报表浏览', null, N'report/rptCreate/showTree4View.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'14df5ad3efd547edb462bcde89894568', N'6921534080ef4507bc99002e98e13190', null, null, N'查看全部', null, N'equipment/specialEquipment/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'14ecd1cb233f453e92771729f81c24e3', N'728f3968261540a29e87662f722bcb3f', null, null, N'能效总览', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'14ef17c7e78f470aae1108d023ac78ca', N'e2758f6ca8ea492bbe8a8109db54089d', null, null, N'大屏展示', null, N'process/dataVisualFrame/viewList.do?menuType=largeScreen', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'14fb8c33e9d247febc35be5433f2aaf9', N'f3ead4a71df24345800ffc0609315dbd', null, null, N'新增', null, N'timeEfficiency/patrolPlan/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'15177f19c31d43a193725772cf9d47ad', N'8c551746fbd945cc97e9dcf0f74b9c95', null, null, N'供应商资质', null, N'sparepart/qualificationType/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'152e4e22f242409bad2921575613d1d6', N'82ba20cfc3d4421ca9fe71bc6dcb9c87', null, null, N'新增', null, N'equipment/equipmentAcceptanceApply/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'155a8eae742045ca8e94de5f6b879031', N'e51e3828488a4e37af7c8ea066d37e91', null, null, N'查看全部', null, N'sparepart/goods/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1562a3c7f58140d9b0b45c73a9bbe713', N'e13bd14427464225b701a7c1f3654336', null, null, N'能效分析', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'15c7a137efe644a28696f32e8738878c', N'020102', null, null, N'新增消息', null, N'msg/addMsg.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'15f34324e8a34dc3b3c583b656a4514a', N'f0717c53777e447ea359179957bd9498', null, null, N'删除', null, N'document/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'161da4887d7a42468c96b46ac1b85b84', N'e13bd14427464225b701a7c1f3654336', null, null, N'能效总览', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'16d8048f047f49fa9a512f3401c97c7a', N'212211a6cafb44eeaab97ff10ff255ab', null, null, N'维修计划', null, N'equipment/equipmentRepairPlan/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1704073953694da6a69d2b96de7a6118', N'5f408a168e434f74b5b7203161849b01', null, null, N'删除', null, N'timeEfficiency/patrolRecordViolationRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'170d72f3ad4d4dc6a7fd60e52e8f515e', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'工艺调整', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'17315b9d8d714ac0a258cf2f6974b11d', N'4f6f2a45e14a43b5ae298ea3367acf29', null, null, N'修改', null, N'timeEfficiency/patrolPlan/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'173764d8ac3745238aff818bf53ba016', N'840cc5fa8c704657ba877efd5bb5f886', null, null, N'模型浏览', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'185ac3913a1841129b255d1e42f52a3a', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d', null, null, N'查看部门', null, N'work/camera/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'19adc2aa70d44d2388747baf99055143', N'2f395371ffc54990b333441da53f130e', null, null, N'发消息查看个人', null, N'msg/getMsgsend.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'19fbdb5636b347a6afe5c64c1f75da0f', N'6921534080ef4507bc99002e98e13190', null, null, N'新增', null, N'equipment/specialEquipment/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1a87b79cccb74e48bb2d6705ea65f520', N'0c35b5a46a2940d1b71ad2a9a401b021', null, null, N'删除', null, N'equipment/EquipmentSaleApply/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1a89a3eb45644e3fb54fdda0a6c47177', N'6175563fe13040f9905425212576a0da', null, null, N'设备性能管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'30', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1b65f085845b403e896c6d7b3d8d4537', N'50218c9a22184fe79437a01e6100d2dc', null, null, N'设备计划', null, N'maintenance/equipmentPlan/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1bceb7780d7a40db9ac77bc795c02ef6', N'9e7ab87dea6843d5b22da1de86e2eb7f', null, null, N'查看全部', null, N'timeEfficiency/patrolModel/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1bf3d7ea753d447e82bf990684b6f4a1', N'e90bce8b678946dca131f855d6c532e8', null, null, N'流程实例', null, N'activiti/workflow/processInstaceList.do', null, null, null, null, null, null, null, null, null, null, null, null, N'produce/process-instance', N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1c0e81a621224495aac5191347ddb70e', N'f12e20e36ff246faa26c7be425c9b1c9', null, null, N'设备运行参数(公司)', null, N'equipment/equipmentParamSet/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1c2def07ba704688b0166a38384b3f08', N'26c59bdfca8449588bbd38ab60b4ea1a', null, null, N'设备巡检计划', null, N'timeEfficiency/patrolPlan/showList_Equipment.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1c9b759a3bbe49188a7b249e555db931', N'04cc222437aa4df8bb4d609cda370eb2', null, null, N'新增', null, N'sparepart/stock/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1cba06ca3f884fdd8dace2ca9d649339', N'58173f6066344fab8122a940ce6d66c0', null, null, N'曲线分析', null, N'data/showCurveTreeView.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1cbf77c623f24046b9b42d80dc853445', N'8b90b27ba4a7401c8bab0e0ad02d675d', null, null, N'设备丢失申请单', null, N'equipment/EquipmentLoseApply/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1d0d2bb2ff6f447e865f5790300e2c49', N'9609d91ed7d14b7b8e89e92b96a3c633', null, null, N'新增', null, N'equipment/equipmentMaintain/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1d5b8ca1bd8246688073d0ae5fe9256d', N'214691b5cd5c4aceb97929bfc71812d8', null, null, N'保养工单', null, N'workorder/workorderDetail/showMaintainList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1d815a8b4c3d4639b1c0189580ceea52', N'40c24596ff954e3fb67b703e2c42178a', null, null, N'查看部门', null, N'work/mpoint/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1da28e22272e4acb927687935611e9af', N'f3c15bf456124ee1905696e474e5a1b2', null, null, N'新增', null, N'equipment/equipmentStopRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1dd8c6bd71c74eb4bc2fbb6722d9c1b8', N'02', null, null, N'事项管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1edd9fa2c6494bfcb50f3d99bab9876a', N'49b94cac6edf4a6b9bc1d5c76379431b', null, null, N'施工人员教育', null, N'safety/SafetyEducationBuilder/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1edf8786513745619dddabfa5a4aea3e', N'f3ead4a71df24345800ffc0609315dbd', null, null, N'删除', null, N'timeEfficiency/patrolPlan/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1f0cfbd7dcc340ddbbd7f0b80f164539', N'54ce95b20de7459ea0e77abca515e6d2', null, null, N'新增', null, N'sparepart/purchaseRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1f1547f041584cfc86a1b5cfe614b349', N'2ac6352f279c48cd820911e0ed0a3419', null, null, N'查看部门', null, N'activiti/workflow/model/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1f2c1b654f5d4872a872d73de1e26df8', N'6175563fe13040f9905425212576a0da', null, null, N'设备计划管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1f31427521de467eb3f8f62dcaf36205', N'd34047cfa77347769ed13959bf9a4a12', null, null, N'查看全部', null, N'sparepart/subscribe/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1f8acae743404455ac642b897b359383', N'f0717c53777e447ea359179957bd9498', null, null, N'查看部门', null, N'document/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1f9a9aeeb22f413ba710da87e33fc986', N'99', null, null, N'基础配置', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1fb187dc74d043b3861c01be7be4c78e', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'巡检配置', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1fb5e29f86f24bd3b3f8ae48db08f438', N'0e17802860554094a64065e84ce0dab5', null, null, N'列资渠道信息', null, N'sparepart/channels/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1fb92110f4ed4ecdb071544a40fd1e44', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d', null, null, N'修改', null, N'work/camera/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'1ffacdc9f71b4cefb250e37588f8c7aa', N'7b478532eb8e42e39f047e493a566e37', null, null, N'检验方法管理', null, N'process/testMethods/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'20038371000c40bbbb3485ed900b2593', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备类型', null, N'equipment/equipmentClass/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'201a0e49a69d433a9aa8f202381514c1', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'缺陷管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'204ab6c92c534d5681bb62929a86eed6', N'a824c974a173430bb806e4824a0aec85', null, null, N'修改', null, N'equipment/EquipmentTransfersApply/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'212211a6cafb44eeaab97ff10ff255ab', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'维保计划', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'212bd407ac404b32afbe7885e492e4a3', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'仓库信息', null, N'sparepart/warehouse/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'214691b5cd5c4aceb97929bfc71812d8', N'3ac47c2edde244fda38aad5e6afa2881', null, null, N'维保工单', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'21abd1a915ee4958b73411ed6896fbbd', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'设备价值增加', null, N'equipment/addIncreaseValue.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'21f27e39064442f682320b517139c8be', N'36486dccbff948c08700684e46793c90', null, null, N'查看部门', null, N'timeEfficiency/patrolModel/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2202080597a44dcdb27b18ce44e704f5', N'e557e9b7232b43be9a5ad43a159e41a1', null, null, N'设备保养库', null, N'/maintenance/maintainLibrary/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2226260a505e490e8954ca019af861fe', N'f0717c53777e447ea359179957bd9498', null, null, N'新增', null, N'document/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'226ac9dcb6fa4bffbe4c70bcee57408e', N'7ed12d77875841c3a4244262d78ef1bb', null, null, N'过程控制单实施', null, N'process/libraryProcessManageWorkOrder/showListForExec.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'226f8cb8df9c4279a7b2e45fc33fdbe5', N'2c0f6327ad1b41079831be8b431963c4', null, null, N'集团标准库', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2293ab50f5db4eddb59e43b92d5c8c27', N'f93dfbe1cdea49b2b6b05095c86d7849', null, null, N'设备拨入管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'22bc39d738d54febb90aadc6d6b911a0', N'767789945d9b438aadbd0d387a759d4a', null, null, N'收消息删除', null, N'msg/deleteMsgRecv.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'22fc0b1b16634ac680ae039954a73619', N'f0717c53777e447ea359179957bd9498', null, null, N'修改', null, N'document/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'232bfc3c575b424fb8a0b7bd20b07396', N'a2fd82344d064519bbc992d1dbbb3015', null, null, N'删除', null, N'base/mainPage/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'232d5e0f8cbc4720987713cb5de6e88e', N'2d43030c17234666873d1462b6f2071c', null, null, N'新增', null, N'sparepart/inStockRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'233fc7b79dd94772b6b3165ada647a90', N'b332bf7996104e3a9408666a356b6e3f', null, null, N'巡检配置', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2359b91d439642f0a64fa84ddd30819b', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d', null, null, N'新增', null, N'work/camera/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2381fff93d024aef9fa9435be4f9e9c4', N'8c551746fbd945cc97e9dcf0f74b9c95', null, null, N'供应商评估', null, N'sparepart/Score/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'239925a9ef34450b8af03769c911e7b5', N'de11e520ea344d0883eec9d7138cb025', null, null, N'外包单位评估', null, N'sparepart/Score_copy/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'23a58522288b4c8da1e7b8eba07b1f77', N'2293ab50f5db4eddb59e43b92d5c8c27', null, null, N'设备拨入管理', null, N'equipment/equipmentDialin/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'23b9db729ec34cc2b9369fa5fff5e242', N'0c042acc603a4f1aac876b9d2669f2ab', null, null, N'模型指标库', null, N'achievement/modelLibrary/showTree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'240a4bdca86a424bba500e59665620f3', N'6175563fe13040f9905425212576a0da', null, null, N'设备停用管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'24b125cff0bc4cf3b2b0b5f921923d45', N'06ea5ba3dd2f46e387dd4b9d91297ff8', null, null, N'查看部门', null, N'timeEfficiency/violationRecordCount/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'25166f0c28534da582b079cb165fe34d', N'0d9bccde397f481abb366d14b20215ab', null, null, N'安全隐患排查整改', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'25484fd2aeba415e9ec93bf2eba02b3e', N'f07312a9aada4547ac986a3f5249144d', null, null, N'查看全部', null, N'report/customReport/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'258b0f95c98841feb079f05911182571', N'2ac6352f279c48cd820911e0ed0a3419', null, null, N'查看全部', null, N'activiti/workflow/model/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2592b4093fd3462ab8f3da855591ddad', N'233fc7b79dd94772b6b3165ada647a90', null, null, N'巡检点', null, N'timeEfficiency/patrolPoint/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'265dd7ac9bf344e1885072e16f0ffafc', N'f07312a9aada4547ac986a3f5249144d', null, null, N'新增', null, N'report/customReport/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'26a42f9e856f4ea1a11ecf9565d68835', N'311f49be82d64a0e9f33695ab3e5d65d', null, null, N'关联测量点', null, N'equipment/addMpoint.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'26a4f8058e9344b0af16a30c83041f4a', N'990101', null, null, N'编辑', null, N'user/editUser.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'26c59bdfca8449588bbd38ab60b4ea1a', N'b332bf7996104e3a9408666a356b6e3f', null, null, N'巡检计划', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'26d70d283e984c84b2a00f001ac44e7b', N'f7fe337d5d29480f8d475e6e0fd8c53e', null, null, N'新增', null, N'timeEfficiency/patrolPlan/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'26dd5520dc58443492077828ade31dc1', N'c963df9afc1d46e4b632a4c9f8266491', null, null, N'新增', null, N'activiti/leavew/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'26f0d7bbb27f4f218a67a827665855cd', N'0c35b5a46a2940d1b71ad2a9a401b021', null, null, N'查看部门', null, N'equipment/EquipmentSaleApply/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2717ff385a504d6db199d17dd33892c1', N'b97e06a17e64481bae7bb0bdbd18b130', null, null, N'查看部门', null, N'equipment/equipmentBelong/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2766d240cc2d47abaf3c9236c401e24e', N'5f408a168e434f74b5b7203161849b01', null, null, N'查看全部', null, N'timeEfficiency/patrolRecordViolationRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'27b805e442f54352a7bf8556c0fe0ed6', N'bbe50d4ae43c4ca49a53fe30148b1066', null, null, N'修改', null, N'work/scadaPic/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'27de883bea90440892b2c148c3bcdd13', N'80100b1506fe499fb6ee99d305e70bc7', null, null, N'养护维修提醒', null, N' finance/placeClass/showEequipmentRemindCard.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'28778a5d8ab945be85f8936b3b09815a', N'80a9346edfb14643a092a027d22dec1c', null, null, N'修改', null, N'timeEfficiency/patrolPoint/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'28a9123ce41a4422bde733cb750064d9', N'80100b1506fe499fb6ee99d305e70bc7', null, null, N'养护维修分析', null, N'maintenance/maintenanceAndRepairAnalysis.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'295b7fa0b73b4416a078879379be1fde', N'e0d1bd2b49d747209f194b865914e1d6', null, null, N'设备防腐库', null, N'maintenance/anticorrosiveLibrary/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'297f4c3329274d64bdd4c6258561a0f2', N'9a3e395c63d24f54a418cad104374e66', null, null, N'修改', null, N'timeEfficiency/patrolContents/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2a2342f97a124242b0224104b2641593', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d', null, null, N'查看全部', null, N'work/camera/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2a2f9cce89574cb3ac8f2b9ce76379f8', N'7ed12d77875841c3a4244262d78ef1bb', null, null, N'过程控制单浏览', null, N'process/libraryProcessManageWorkOrder/showListForRecord.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2ac6352f279c48cd820911e0ed0a3419', N'e586112b94b44bd0a78b71fb9bc1cca0', null, null, N'模型配置', null, N'activiti/workflow/model/showModelList.do', null, null, null, null, null, null, null, null, null, null, null, null, N'/process/model-config', N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2be3a8d47fd3459486b727aa6ca47a7c', N'9ee4e517487448b097c809bd7c66db35', null, null, N'查看部门', null, N'sparepart/supplier/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2c0f6327ad1b41079831be8b431963c4', N'-1', null, null, N'设备标准库', null, N'', null, null, null, null, N'fa-check-square-o', null, null, null, null, null, null, null, null, N'10', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2d2f054248f24311be5d0e69f0bde6e0', N'584e304b1e5743bd96300559f9f63073', null, null, N'查看全部', null, N'timeEfficiency/patrolRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2d305ec7b16d4e37a319fa7d4f53cba4', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2d383ea469ab468789da2757dec10012', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2d43030c17234666873d1462b6f2071c', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'入库登记', null, N'sparepart/inStockRecord/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2d743c9d33914c8e8b865cb03c50b317', N'99', null, null, N'使用统计', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'19', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2d8e1cdb55ea4a13b8339ac8726298b0', N'11cf8b766cd74b938295f34fc0051754', null, null, N'外部人员证书管理', null, N'safety/externalCertificate/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2dca16c113834005893f9d7d23482588', N'6175563fe13040f9905425212576a0da', null, null, N'设备报废查询', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'17', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2dcc67bdca3f43478b4f042400fed80f', N'b332bf7996104e3a9408666a356b6e3f', null, null, N'巡检记录', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2e4e28c52a9b4558afc02585f82a8ac6', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'出库记录', null, N'sparepart/outStockRecord/showOutStockRecordList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2e536132a05548df95037c3f3a6a779e', N'fd2737d3131c4974a3da03265802973c', null, null, N'设备事故管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2e84e1225f1e46d9ab38822b6efdb7d4', N'e557e9b7232b43be9a5ad43a159e41a1', null, null, N'设备防腐库', null, N'maintenance/anticorrosiveLibrary/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2eb3fb5033ee42f9bade06c210d60762', N'5f408a168e434f74b5b7203161849b01', null, null, N'修改', null, N'timeEfficiency/patrolRecordViolationRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2ed1e1e96f224902baa68727fc05ce31', N'7a1c6680cdb54c66acd6fcd56158f676', null, null, N'修改', null, N'report/customReport/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2ef90da016114578ae28f4a927980efe', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'报警管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2f112408265c45ac9a9a89538b0236f6', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'运行管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'2f395371ffc54990b333441da53f130e', N'0201', null, null, N'已删除（发消息）', null, N'msg/showMsgsenddeleted.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'30592992e44f4e31ada05466750a1c54', N'36486dccbff948c08700684e46793c90', null, null, N'修改', null, N'timeEfficiency/patrolModel/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'30c2bb40801f43e88ea46b30c69409ea', N'66b5568be6cc4ef98d623843150a6d66', null, null, N'查看部门', null, N'equipment/assetClass/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'311b2aaaa98449349ec1f61c08fd51a1', N'6f7e4e2a77834a7eaae90345461a5117', null, null, N'删除', null, N'equipment/EquipmentScrapApply/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'311f49be82d64a0e9f33695ab3e5d65d', N'aa780e1540eb45b69c10f619049a6e58', null, null, N'设备台账', null, N'equipment/showEquipmentCard.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3121bd16ac4b4e618639614975cfe536', N'1cbf77c623f24046b9b42d80dc853445', null, null, N'查看部门', null, N'equipment/EquipmentLoseApply/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'319414276ee34d40935cc0546c0b7804', N'd7118dde05d240d6ac78874469d742dd', null, null, N'删除', null, N'user/deleteCompany.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'320941fc1fd44ca3aeabecd80af38a17', N'23a58522288b4c8da1e7b8eba07b1f77', null, null, N'修改', null, N'equipment/equipmentDialin/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3210cdc34df541229e4fe2f688bf74ec', N'd8187348d2fc4a1995c5135dacdef69f', null, null, N'删除', null, N'sparepart/outStockRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3269c5cc738c4cfc94d37a813ce55b87', N'25166f0c28534da582b079cb165fe34d', null, null, N'专项安全检查', null, N'safety/SafetyCheckSpecial/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'32beeda4eada462ab05d97c82b6efdeb', N'07e360dc38334d60a39a533a80e33b3e', null, null, N'合同提醒', null, N'sparepart/contract/remind.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'32e15e4d22324f42a412bb980945a5a6', N'd9acffba9b594b31a5682135678c1f23', null, null, N'运维总览', null, N'Login/showStatisticalInfo.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3322f5a2629b49a4af5832b95040dd02', N'f3ead4a71df24345800ffc0609315dbd', null, null, N'修改', null, N'timeEfficiency/patrolPlan/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'338360e331dc451895ffd60fa5aea5b6', N'e6e12648bda14bc6b4f29a174f2268b6', null, null, N'源头GIS管理', null, N'http://116.228.107.170:9190/LTGWMap/map.html', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'33d5b49e6f9e40cabd46bd1c77e1e0d3', N'adae2d280cb247bd9325548b2a4eb60e', null, null, N'控制指标浏览', null, N'work/productionIndexData/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'341636ff3758431d84734ee316c66238', N'c6516395208242f08ee612f6a9bb1661', null, null, N'查看全部', null, N'equipment/equipmentTypeNumber/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3432d003a6194eaa93bb9f54d08d0fad', N'0a3dc7f7919040f2872e61b2156af009', null, null, N'新增', null, N'user/extsystem/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3503dc28a0ff4831a6c7ea6e8fcb1a6d', N'598d7c675e2c4db7a1c6494de211d6e0', null, null, N'摄像头配置', null, N'work/camera/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3605b1962076488598f48d74bf74406b', N'04cc222437aa4df8bb4d609cda370eb2', null, null, N'查看全部', null, N'sparepart/stock/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'36411bf73cf34cdd84e30909f7d78ead', N'53775666599549b39dd101b26cbbe824', null, null, N'异常上报', null, N'maintenance/abnormity/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'36486dccbff948c08700684e46793c90', N'1fb187dc74d043b3861c01be7be4c78e', null, null, N'巡检模式', null, N'timeEfficiency/patrolModel/showPatrolModellist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'366a20c5c38a412ca89e23444f3b3fbb', N'fa5cf17f6bd847af956c229ab3567852', null, null, N'修改', null, N'equipment/equipmentLevel/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'371079d703fd4a61afad0ed03ae6c262', N'4d4f49d6dff74f0b862eb0590de32652', null, null, N'修改', null, N'equipment/maintenancePlan/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'374d0af474024466a21c94e4e451a76f', N'b97e06a17e64481bae7bb0bdbd18b130', null, null, N'新增', null, N'equipment/equipmentBelong/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'378c6ad7561a42a0b720916fb327bbcd', N'58173f6066344fab8122a940ce6d66c0', null, null, N'方案配置', null, N'data/showCurveTree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'392d93709b9e4e40bff4e87f02d65c8d', N'9a3e395c63d24f54a418cad104374e66', null, null, N'删除', null, N'timeEfficiency/patrolContents/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'39470caf60614d559aae3dc80f99b148', N'b62e2bfaba5c4d2f853363af201bece8', null, null, N'修改', null, N'valueEngineering/equipmentDepreciation/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'395d4639580548bd8f5495ad098cefc8', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'设备故障', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'395e36a0550c4bf2bd4614f73bc0e2d2', N'8c4658ea41b149df8f04d361f459da7c', null, null, N'修改', null, N'equipment/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3993aa6d25d94806adb5d89f678a4efb', N'4d4f49d6dff74f0b862eb0590de32652', null, null, N'新增', null, N'equipment/maintenancePlan/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'39d685bf48244ca7be4070170a85233d', N'd38607ef9b02472388a333ceb982621d', null, null, N'设备寿命管理', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3a2251e225424e65a7d6e27ee3fa7394', N'9609d91ed7d14b7b8e89e92b96a3c633', null, null, N'删除', null, N'equipment/equipmentMaintain/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3a9fcfced0d3455f86a6d6202d00825f', N'b62e2bfaba5c4d2f853363af201bece8', null, null, N'删除', null, N'valueEngineering/equipmentDepreciation/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3ac47c2edde244fda38aad5e6afa2881', N'-1', null, null, N'工单管理', null, N'', null, null, null, null, N'fa-bars', null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3ad55b78720d4329b2af759943bf90d0', N'201a0e49a69d433a9aa8f202381514c1', null, null, N'缺陷记录', null, N'maintenance/showDefectList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3b008360790c4a6491df786023cdf413', N'584e304b1e5743bd96300559f9f63073', null, null, N'新增', null, N'timeEfficiency/patrolRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3b186959a5a74fb593c252765fa0e729', N'9cca0129abb84323a6994d60981722ae', null, null, N'提醒配置', null, N'work/autoAlert/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3b717a8f260648f8bfe4dc189cc1512d', N'226f8cb8df9c4279a7b2e45fc33fdbe5', null, null, N'设备运行参数', null, N'equipment/equipmentParamSet/showList4Tree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3c8b81eddcd9400a9c67f63521ba6aee', N'e0d1bd2b49d747209f194b865914e1d6', null, null, N'设备巡检库', null, N'timeEfficiency/patrolContentsStandard/showList4Tree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'6', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3cb178f27bf7478ca08e0d32d79aafa5', N'8c4658ea41b149df8f04d361f459da7c', null, null, N'删除', null, N'equipment/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc', N'5f7c1539059f4752a117a01f01583060', null, null, N'修改', null, N'equipment/equipmentMaintain/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3cea8f370a1248a4904cef742526d7d3', N'42881246cc584821829f9a9228d1e535', null, null, N'基础配置', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3d2302e3ebf647d8977c55c2ac3ffb66', N'42881246cc584821829f9a9228d1e535', null, null, N'水质化验管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3d5abff5f60c425480373fcedac60554', N'36486dccbff948c08700684e46793c90', null, null, N'新增', null, N'timeEfficiency/patrolModel/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3d8b7cc2aaa34f71a24b5be468373744', N'1c2def07ba704688b0166a38384b3f08', null, null, N'修改', null, N'timeEfficiency/patrolPlan/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'3f5058ac3ba244e4820664c349402e42', N'1cbf77c623f24046b9b42d80dc853445', null, null, N'查看全部', null, N'equipment/EquipmentLoseApply/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4008aefc49ee4a0c98d30dcda311f9bc', N'5308297074f940bdb56bf7b5cd25c87d', null, null, N'消息类型删除', null, N'msg/deleteMsgType.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4089cf14e4d242ffb5fdfb54e8cadbea', N'007b3b51c25742c5b6621e440414bbb3', null, null, N'删除', null, N'equipment/equipmentAccident/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'40989b20120e4e159a3ee7c6a29881ff', N'f07312a9aada4547ac986a3f5249144d', null, null, N'修改', null, N'report/customReport/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'40c24596ff954e3fb67b703e2c42178a', N'5f8ae80566734643b845c8235735ee55', null, null, N'测量点清单', null, N'work/mpoint/showlistES.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4132721e6b414c738b3ec2ed584e0c6e', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'新增', null, N'equipment/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'414c4f8eeb124187933c7f1de416057b', N'6f7e4e2a77834a7eaae90345461a5117', null, null, N'修改', null, N'equipment/EquipmentScrapApply/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'417d91d35d3145ea97d808a462a966ec', N'a02f2a4c5cba48a68802b9fec6a6459a', null, null, N'查看部门', null, N'timeEfficiency/patrolRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'41a14eee166846cb8cd3425d8bc781f4', N'472e54139d1947d9ae32d248852d9630', null, null, N'修改', null, N'timeEfficiency/patrolRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'41e5b59b1e15453b91307dfbeb9fe77c', N'afff6d5874cf4c3281a5106cff9a5b01', null, null, N'当前待办', null, N'activiti/workflow/taskList.do', null, null, null, null, null, null, null, null, null, null, null, null, N'produce/activiti', N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'423ecadeb5804c41aa0de74b8ff9588c', N'5bee87d91acb4b5d9c3450a733e95ab0', null, null, N'设备总览', null, N'equipment/equipmentOverview.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4241825c1479412395fff0a5356e8198', N'50218c9a22184fe79437a01e6100d2dc', null, null, N'大修项目配置', null, N'workorder/overhaulType/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'427a84637b354cefb1d077971495744b', N'3ac47c2edde244fda38aad5e6afa2881', null, null, N'委外维保', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'42881246cc584821829f9a9228d1e535', N'-1', null, null, N'运行标准化工单', null, N'', null, null, null, null, N'fa-exchange', null, null, null, null, null, null, null, null, N'11', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'42923562567c4afd9fb9a13ae68186c2', N'2f395371ffc54990b333441da53f130e', null, null, N'发消息删除', null, N'msg/deleteMsg.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'429879a1f31248de9f5a4e348224bd3b', N'a824c974a173430bb806e4824a0aec85', null, null, N'查看全部', null, N'equipment/EquipmentTransfersApply/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'42aebe9301a049209977a3642798b718', N'5f7c1539059f4752a117a01f01583060', null, null, N'查看部门', null, N'equipment/equipmentMaintain/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4339a3371c3a4ead9140ec010767e20c', N'3ad55b78720d4329b2af759943bf90d0', null, null, N'修改', null, N'maintenance/editDefect.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'440a335a8491456e853ba26bdce0a748', N'725b36ffda96492c83338b01ed45d5ae', null, null, N'报告生成', null, N'work/wordAnalysisReportStructure/showManage.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4449ee45bfd348c1908c64f9329d0720', N'9e7ab87dea6843d5b22da1de86e2eb7f', null, null, N'修改', null, N'timeEfficiency/patrolModel/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'45a46dd5f5dd44b9a8f48c5df691cd4f', N'4bef25f247aa4838b397aa4c5cab9b6a', null, null, N'查看部门', null, N'valueEngineering/equipmentEvaluate/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'45d06566906a47a39f6c8f9916703665', N'b6d748e2df3d4aecacfec3689c6557a8', null, null, N'统计分析', null, N'timeEfficiency/patrolPlan/showCollection.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4644d34f9c444637953f68d014505cc2', N'80100b1506fe499fb6ee99d305e70bc7', null, null, N'维修记录', null, N'equipment/equipmentMaintain/showEquipmentRepairList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'464965e3c6c147b4823b4611eaf63416', N'8c551746fbd945cc97e9dcf0f74b9c95', null, null, N'供应商类型', null, N'sparepart/supplierClass/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'464f354e8e4d431ea5e8fd59f55f31bf', N'23a58522288b4c8da1e7b8eba07b1f77', null, null, N'删除', null, N'equipment/equipmentDialin/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4681d5ddd42b4e41914aa9253960c358', N'4f6f2a45e14a43b5ae298ea3367acf29', null, null, N'新增', null, N'timeEfficiency/patrolPlan/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'46909e114a1444058f6fe67a3e6efe52', N'7b1dc89b15f8420bae3676b9e6fccf06', null, null, N'设备维修库(集团)', null, N'maintenance/libraryFaultBloc/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'46d1b0425fb44be8b90f66679d4226a6', N'5308297074f940bdb56bf7b5cd25c87d', null, null, N'消息报警级别编辑', null, N'msg/editAlarmlevel.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'46fb6653024e48a8b8f042d4689f0085', N'886d2ae66b1440efb131cef95717d555', null, null, N'数据填报浏览', null, N'report/rptDeptSet/showRptDayLogBrowseTree1.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'472e54139d1947d9ae32d248852d9630', N'f517c03375854ea38feb88f641552061', null, null, N'巡检任务', null, N'timeEfficiency/patrolRecord/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'473bb7a3f7a64fdd88db6ed4ea639d6e', N'990101', null, null, N'重置密码', null, N'user/resetPwd.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'47b56b85be394d6196be99f972c4876c', N'233fc7b79dd94772b6b3165ada647a90', null, null, N'巡检内容', null, N'timeEfficiency/patrolContents/showPatrolPointEquipmentTree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'48a5c2931bf7422d840cef4cadbbbc8b', N'e51e3828488a4e37af7c8ea066d37e91', null, null, N'新增', null, N'sparepart/goods/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'48f69d7660804ec891b2649da32f0d97', N'886d2ae66b1440efb131cef95717d555', null, null, N'数据填报配置', null, N'report/rptDeptSet/showRptDeptSetTree1.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'490f16996629418f8c3480a259b9097c', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'493a34fe7bfa42b380a1bd3b70685139', N'9e7ab87dea6843d5b22da1de86e2eb7f', null, null, N'查看部门', null, N'timeEfficiency/patrolModel/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'49b94cac6edf4a6b9bc1d5c76379431b', N'0d9bccde397f481abb366d14b20215ab', null, null, N'安全教育', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4a6ee0c983324eab974663db2798d8fa', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'进销存', null, N'sparepart/goods/showSaleList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'10', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4ac05cf1b56a41d885a31e7fd452d0d5', N'1fb187dc74d043b3861c01be7be4c78e', null, null, N'设备巡检标准库', null, N'timeEfficiency/patrolContentsStandard/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4ae06b60d5e4432f9d369dfb92597aaa', N'212bd407ac404b32afbe7885e492e4a3', null, null, N'删除', null, N'sparepart/warehouse/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4b6bfe48bcc04261894c35aa26be9743', N'a02f2a4c5cba48a68802b9fec6a6459a', null, null, N'删除', null, N'timeEfficiency/patrolRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4b973b77922c44f392516c1596b1f5ca', N'bbe50d4ae43c4ca49a53fe30148b1066', null, null, N'查看部门', null, N'work/scadaPic/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4bef25f247aa4838b397aa4c5cab9b6a', N'cff2e5b9d88940aab23941d450bbd39a', null, null, N'设备统计', null, N'valueEngineering/equipmentEvaluate/showEquipmentStatisticsList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4c1cbee2ca4e4012bf3f23c0f9f26395', N'aedcbd64d54e4d429c5d26e6377c129a', null, null, N'周期常规工单', null, N'process/routineWork/showList.do?typestr=manage', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4c2b903a8ddd4747819338806c6c438d', N'2d43030c17234666873d1462b6f2071c', null, null, N'查看全部', null, N'sparepart/inStockRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4c527ae9009d4d6dbfbe01544667a08a', N'f0717c53777e447ea359179957bd9498', null, null, N'查看全部', null, N'document/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4ce1a7811d08457883187d25c4c606e4', N'e51e3828488a4e37af7c8ea066d37e91', null, null, N'删除', null, N'sparepart/goods/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4d0e44a52765484d993435cfa1299508', N'00230aefbdc4455ea0fffca8904c0639', null, null, N'设备能效分析配置', null, N'efficiency/constituteConfigure/showManage.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4d4f49d6dff74f0b862eb0590de32652', N'212211a6cafb44eeaab97ff10ff255ab', null, null, N'保养计划', null, N'equipment/maintenancePlan/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4e484664c5f94d6d862f7a9928a8f986', N'99', null, null, N'首页管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4e514d286c09438d8ea989e27d26b5b5', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'查看全部', null, N'equipment/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4e5fe11879054404a53fd2265a14ae3a', N'2dcc67bdca3f43478b4f042400fed80f', null, null, N'运行巡检日历', null, N'timeEfficiency/patrolRecord/showCalendar.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4effefc88b4f401d9f6f24fcd6e51210', N'1c2def07ba704688b0166a38384b3f08', null, null, N'查看全部', null, N'timeEfficiency/patrolPlan/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4f341102367f4207b13a3ec720982fbb', N'47b56b85be394d6196be99f972c4876c', null, null, N'查看全部', null, N'timeEfficiency/patrolContents/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4f6f2a45e14a43b5ae298ea3367acf29', N'2dcc67bdca3f43478b4f042400fed80f', null, null, N'巡检总览', null, N'timeEfficiency/patrolRecord/showOverview.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4fb60db825724c7f87a115794614e774', N'd60fa9155c11491094ccc4b2f22bd36f', null, null, N'基础信息', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4fd6d129fbd04aba870262dea7083ce2', N'8c4658ea41b149df8f04d361f459da7c', null, null, N'新增', null, N'equipment/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'4ffb7473644a445ea43737bff4ee9a2d', N'36411bf73cf34cdd84e30909f7d78ead', null, null, N'查看全部', null, N'maintenance/abnormity/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'50218c9a22184fe79437a01e6100d2dc', N'3ac47c2edde244fda38aad5e6afa2881', null, null, N'基础配置', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'50f647dcc6344d3e9d25c58529c941b3', N'2e4e28c52a9b4558afc02585f82a8ac6', null, null, N'查看全部', null, N'sparepart/outStockRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'51b6110cdbd3486881aebc49f08b92c9', N'ac35bc7bd58a4dfab74fabadf64eb029', null, null, N'周期常规库', null, N'process/libraryRoutineWork/showList.do?typestr=run', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'51f3770d1ad248b8a340deca37a62996', N'b9ce31b99099435483e297520c3bf8b3', null, null, N'查看部门', null, N'activiti/workflow/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'523551cff46241d891c307417407b18c', N'0a3dc7f7919040f2872e61b2156af009', null, null, N'查看部门', null, N'user/extsystem/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5245c92276b4436d9789874a28c53599', N'fa5cf17f6bd847af956c229ab3567852', null, null, N'查看全部', null, N'equipment/equipmentLevel/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'52903944b61c439d81834ae90c0c17b6', N'1562a3c7f58140d9b0b45c73a9bbe713', null, null, N'分析展示', null, N'efficiency/constitute/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5308297074f940bdb56bf7b5cd25c87d', N'0201', null, null, N'消息类型管理', null, N'msg/showMsgType.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'53775666599549b39dd101b26cbbe824', N'6175563fe13040f9905425212576a0da', null, null, N'维保记录', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5380c814102b46e6a3c4f28af5ec1a48', N'1c2def07ba704688b0166a38384b3f08', null, null, N'新增', null, N'timeEfficiency/patrolPlan/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'53ce8eab53024b29be7f4cc1bc564b38', N'af118a74bff547a3a088427be912d8bd', null, null, N'修改', null, N'equipment/equipmentCodeRule/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'54ce95b20de7459ea0e77abca515e6d2', N'88db87613baf4418a4a1c42a0b65bc32', null, null, N'设备采购记录', null, N'sparepart/purchaseRecord/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'54ec8de60fa54efd981730538fdb159e', N'0c35b5a46a2940d1b71ad2a9a401b021', null, null, N'新增', null, N'equipment/EquipmentSaleApply/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5524c5259704441a981a987454755283', N'6379eaa71f6e451d81f69226fcbf7c1a', null, null, N'班次管理', null, N'work/groupTime/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'6', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'56f9f1ac425f4c59a204de41b41bdc7c', N'212bd407ac404b32afbe7885e492e4a3', null, null, N'修改', null, N'sparepart/warehouse/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'58173f6066344fab8122a940ce6d66c0', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'运行曲线', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'583213aa1b854bb6a22d8341ebd298d7', N'fac4bb088d764a74a09dc4cdc5921047', null, null, N'故障缺陷统计', null, N'maintenance/repairStatistics.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'583cb25e3ee2477e8f2da5d22ff16cac', N'990101', null, null, N'查看部门', null, N'user/getUsers.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'10', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'584e304b1e5743bd96300559f9f63073', N'f517c03375854ea38feb88f641552061', null, null, N'设备巡检日历', null, N'timeEfficiency/patrolRecord/showCalendar_Equipment.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'92', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'58cde407d2fb479a8349d092a53a398c', N'472e54139d1947d9ae32d248852d9630', null, null, N'删除', null, N'timeEfficiency/patrolRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'590d8c4b5ef74b0a96fb878231fa67c5', N'68486a28ff644c26b0087e58cb3972a4', null, null, N'查看部门', null, N'timeEfficiency/patrolPlan/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'595f1eecacbf4cf19128631ed32e347e', N'f12089505a904215aef43f145c9dba2c', null, null, N'设备指标报表', null, N'report/drainageDataomprehensiveTable/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'59794dd19044438b83d685e17bb44f7f', N'9c0e68e4dd3c469eb542fa3d9b72e885', null, null, N'内容配置', null, N'process/dataVisualFrame/configureList.do?menuType=proVisual', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'598b8f06a93e4535aa6484b6c52edf90', N'6379eaa71f6e451d81f69226fcbf7c1a', null, null, N'班组管理', null, N'work/groupDetail/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'598d7c675e2c4db7a1c6494de211d6e0', N'99', null, null, N'工艺配置', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'59ca91ebe24140749c73eca19e971737', N'40c24596ff954e3fb67b703e2c42178a', null, null, N'删除', null, N'work/mpoint/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5b4a0df2fe8046f5a6c7f782dd1d2698', N'36411bf73cf34cdd84e30909f7d78ead', null, null, N'修改', null, N'maintenance/abnormity/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5b5ba58897c04d2997e3468af0722c67', N'bbe50d4ae43c4ca49a53fe30148b1066', null, null, N'删除', null, N'work/scadaPic/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5b81c7a6277242a6805cb2c5e311b2ea', N'9e7ab87dea6843d5b22da1de86e2eb7f', null, null, N'新增', null, N'timeEfficiency/patrolModel/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5b93a0e415c84fc79845817c02db7332', N'4e5fe11879054404a53fd2265a14ae3a', null, null, N'查看全部', null, N'timeEfficiency/patrolRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5bddd873d2b848d2afaa863d5335dc36', N'5308297074f940bdb56bf7b5cd25c87d', null, null, N'消息类型查看全部', null, N'msg/getMsgType.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5bee87d91acb4b5d9c3450a733e95ab0', N'6175563fe13040f9905425212576a0da', null, null, N'设备资产总览', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5c2e5bc670a348bb9a3479b4091962c5', N'd1a5b76608044ad1bf651ea44d1c01eb', null, null, N'查看全部', null, N'document/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5d4c737b7f2345ba9d2196aa6bba10dc', N'3ac47c2edde244fda38aad5e6afa2881', null, null, N'维修工单', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5f408a168e434f74b5b7203161849b01', N'f517c03375854ea38feb88f641552061', null, null, N'违规记录', null, N'timeEfficiency/patrolRecordViolationRecord/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5f7c1539059f4752a117a01f01583060', N'80100b1506fe499fb6ee99d305e70bc7', null, null, N'保养记录', null, N'equipment/equipmentMaintain/showEquipmentMaintainList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'5f8ae80566734643b845c8235735ee55', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'测量点配置', null, N'', null, null, null, null, N'fa-industry', null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6025f4bd37e345719aa929068c8a17f1', N'9991bfba111d48ce9c26d490645dde9e', null, null, N'布局配置', null, N'layout/showLayoutList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'603a4df097084f28808cab3f9068e289', N'f7fe337d5d29480f8d475e6e0fd8c53e', null, null, N'查看全部', null, N'timeEfficiency/patrolPlan/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'605ef8b59bc140f4947e3dc6e85a1ae2', N'a02f2a4c5cba48a68802b9fec6a6459a', null, null, N'查看全部', null, N'timeEfficiency/patrolRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6100a46494ba4ce3aa726522c02731ec', N'9991bfba111d48ce9c26d490645dde9e', null, null, N'方案配置', null, N'plan/showPlanTree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6175563fe13040f9905425212576a0da', N'-1', null, null, N'设备管理', null, N'', null, null, null, null, N'fa-tv', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'62d7b00d8f724812a740571a606a4b61', N'a824c974a173430bb806e4824a0aec85', null, null, N'新增', null, N'equipment/EquipmentTransfersApply/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'63166fa0f73b4207a6126cdf45cab820', N'b9ce31b99099435483e297520c3bf8b3', null, null, N'查看全部', null, N'activiti/workflow/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6370b0a09f4e41a594209c24c76dcba6', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'已用年限', null, N'equipment/equipmentUseAge/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6379eaa71f6e451d81f69226fcbf7c1a', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'交接班管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'6', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'63ca1d62eb554f568e4ee255820b4f6d', N'8c4658ea41b149df8f04d361f459da7c', null, null, N'查看全部', null, N'equipment/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'63d1b2b641944fec8daa7a37d937c810', N'e36faedda4cd450d8296a90bd8ff2d7f', null, null, N'内部作业管理', null, N'safety/SafetyJobInside/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6429a9ede0da4f3ebbc3eef43e169300', N'd1a5b76608044ad1bf651ea44d1c01eb', null, null, N'查看', null, N'document/viewData.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'648b60fed1de4a5bb846aa7c45f62f2f', N'6175563fe13040f9905425212576a0da', null, null, N'PSMS预览', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6493f854f53e4a6484d31f4d5f6d5e9a', N'059ef59f26dd478383e1e72c7e5cd286', null, null, N'数据源管理', null, N'xServer/xServer/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'64d1c56bd87241c390d9153dff0de154', N'6370b0a09f4e41a594209c24c76dcba6', null, null, N'新增', null, N'equipment/equipmentUseAge/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'65097354ee534a20abee39a14cfe01fa', N'7a1c6680cdb54c66acd6fcd56158f676', null, null, N'查看全部', null, N'report/customReport/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'65de9f38af334900b607f79114035fba', N'd6ac34698a744765825568eee0b538e3', null, null, N'缺陷记录', null, N'maintenance/showDefectEndList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'65ea953f008a4b268165434db5333435', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'查看部门', null, N'equipment/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'668360ab400f451ab7877c6f64147d5a', N'742cb94b264347d09faf4a46f595546e', null, null, N'删除', null, N'document/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'66b5568be6cc4ef98d623843150a6d66', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'资产类型', null, N'equipment/assetClass/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'6', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'66cfd4a4f69547209c003dc2b8c5ac32', N'8dae77819adc426f897afdb8e9c265fe', null, null, N'保养计划', null, N'equipment/maintenancePlan/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'67887e9023554d409e66cffbf008d7ea', N'8e4f02e6d3e142fe9fcf4d238e1c42c1', null, null, N'新增', null, N'maintenance/abnormity/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6790aa68f33a4bf7b6556bbc4f89bdfd', N'8e4f02e6d3e142fe9fcf4d238e1c42c1', null, null, N'查看全部', null, N'maintenance/abnormity/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'67bbca2584ea44769878a472546fc8a4', N'161da4887d7a42468c96b46ac1b85b84', null, null, N'总览展示', null, N'efficiency/efficiencyOverview/showView.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'681f407407f042e49940510b7225b1f2', N'007b3b51c25742c5b6621e440414bbb3', null, null, N'修改', null, N'equipment/equipmentAccident/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'68420f89146445f8ba1d876aa72c9ce5', N'170d72f3ad4d4dc6a7fd60e52e8f515e', null, null, N'工艺调整工单', null, N'process/processAdjustment/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'68486a28ff644c26b0087e58cb3972a4', N'f517c03375854ea38feb88f641552061', null, null, N'巡检总览', null, N'timeEfficiency/patrolRecord/showOverview.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6893a77f0a8b42dc9a2b9e73cc3b3e8f', N'49b94cac6edf4a6b9bc1d5c76379431b', null, null, N'内部人员教育', null, N'safety/SafetyEducationInsider/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'690df684ad5e40dbb7936cfe6704db77', N'754245d088d24883a09e662e3e10d6bd', null, null, N'维修计划', null, N'equipment/equipmentRepairPlan/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6952409341524111bf21c44a7bcd08be', N'1cbf77c623f24046b9b42d80dc853445', null, null, N'修改', null, N'equipment/EquipmentLoseApply/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6a170f67817f48d09e5f615460301872', N'a02f2a4c5cba48a68802b9fec6a6459a', null, null, N'新增', null, N'timeEfficiency/patrolRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6a2a119b0e414573b72399813413a263', N'd34047cfa77347769ed13959bf9a4a12', null, null, N'新增', null, N'sparepart/subscribe/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6a4551b812db476984da2f9b2248dfda', N'e13bd14427464225b701a7c1f3654336', null, null, N'管网排污分析', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6a7053a8acb4473f868b16e122220a25', N'2592b4093fd3462ab8f3da855591ddad', null, null, N'新增', null, N'timeEfficiency/patrolPoint/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6ad3ce81c82c4f3389ffad7c29de971e', N'd38607ef9b02472388a333ceb982621d', null, null, N'设备折旧管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6af634f6190144f8933d0f4ab88b206a', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'删除', null, N'equipment/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6b6bf8ea3f124c3db32624ebfb7e9975', N'5bee87d91acb4b5d9c3450a733e95ab0', null, null, N'设备资产总览', null, N'equipment/showEquipmentStatisticalChart.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6c314b9cfc1a42349209628d78b5351b', N'47b56b85be394d6196be99f972c4876c', null, null, N'查看部门', null, N'timeEfficiency/patrolContents/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6cdab3cd89ec40fbb5c8b28895b9c4c7', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'上传设备资料', null, N'equipment/addEquipmentFile.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6d2a956ceff340c2b1859214d15c409c', N'ee28e21d0b7c48a7830238217b66cf60', null, null, N'统计分析', null, N'equipment/showEquipmentStatisticalChart.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, null, null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6d390808e3d345799f24d7f49e6e1c49', N'990101', null, null, N'删除', null, N'user/deleteUser.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6ddcca60bc274df08518dd54eb84532a', N'af118a74bff547a3a088427be912d8bd', null, null, N'新增', null, N'equipment/equipmentCodeRule/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6de9d30809b04cca94d4515f3b40c43e', N'2e4e28c52a9b4558afc02585f82a8ac6', null, null, N'修改', null, N'sparepart/outStockRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6e4705afdbcf44c0933afebf64d4bf10', N'8dcc788ded394af9b59a2d2f3f081845', null, null, N'查看部门', null, N'sparepart/stockCheck/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6ee50003306846448984c35408994ec4', N'd35bbec545024394a62dd1e31d49db6b', null, null, N'查看全部', null, N'equipment/equipmentSpecification/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6f6c464d730f42cdab365887cb654228', N'1f2c1b654f5d4872a872d73de1e26df8', null, null, N'设备计划', null, N'maintenance/equipmentPlan/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6f7e4e2a77834a7eaae90345461a5117', N'7f7d31d88658414caa1a0db1e70747cb', null, null, N'设备报废申请单', null, N'equipment/EquipmentScrapApply/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'6f9859237354446c97ce09726cf2058a', N'395d4639580548bd8f5495ad098cefc8', null, null, N'维修统计', null, N'maintenance/repairStatistics.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7030f4803aec472ebb2b0dfb30ca7d7b', N'584e304b1e5743bd96300559f9f63073', null, null, N'修改', null, N'timeEfficiency/patrolRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'704a21d8fb5d4cc188007b5a36083308', N'e51e3828488a4e37af7c8ea066d37e91', null, null, N'查看部门', null, N'sparepart/goods/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'707ba0f4f8c64e108302b0f79637c078', N'9d37440fb0e54131bf01caede4a19015', null, null, N'处财务设备导入导出', null, N'finance/placeClass/showEquipmentCard.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'707c59efd2af4ee3a587777dc3e3b24b', N'd34047cfa77347769ed13959bf9a4a12', null, null, N'删除', null, N'sparepart/subscribe/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'70c738e27f82432d8a7848e69039f3fc', N'a824c974a173430bb806e4824a0aec85', null, null, N'删除', null, N'equipment/EquipmentTransfersApply/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7107a3e1291343fb9a858aaf4eb7b42b', N'8dcc788ded394af9b59a2d2f3f081845', null, null, N'修改', null, N'sparepart/stockCheck/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'71641a088ea54bc5abc4b1deb348bc1d', N'742cb94b264347d09faf4a46f595546e', null, null, N'查看部门', null, N'document/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'71a0d0ff24434884b0dc9054fe889b0a', N'89dc2f184cbb44e98c019775b04a6b30', null, null, N'新增', null, N'maintenance/faultLibrary/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7249ac21b3894a4591964ac6939b6ae5', N'a2fd82344d064519bbc992d1dbbb3015', null, null, N'查看全部', null, N'base/mainPage/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'725b36ffda96492c83338b01ed45d5ae', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'word分析报告', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'72f98b7f2437405b97e478acec1a8f1a', N'68486a28ff644c26b0087e58cb3972a4', null, null, N'修改', null, N'timeEfficiency/patrolPlan/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'72fd4439f8ad41eab7b765fd66052135', N'7b7cce355fcf4653b9ea536ff3aeb88e', null, null, N'运行巡检计划', null, N'timeEfficiency/patrolPlan/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7405b9ad351442d889f36b7052ad9cef', N'b9ce31b99099435483e297520c3bf8b3', null, null, N'修改', null, N'activiti/workflow/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'742cb94b264347d09faf4a46f595546e', N'0b74aa2537bd4b63a581d3f96fac70f4', null, null, N'资料列表', null, N'document/showDataTree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'744bc9745f9c406988779d8508e6289f', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'新增附属设备', null, N'equipment/addMpoint.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'74a7eb51b67f4043aec405f2ea3a5a2d', N'b420be5945554b4ab7879a2cbc87b5ca', null, null, N'设备模型参数设置', null, N'valueEngineering/equipmentModel/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'754245d088d24883a09e662e3e10d6bd', N'9fb5c73a4bd04498963fa50019dc94b9', null, null, N'维保计划', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'75eee9f205744f0881649b0eb8d849d8', N'212bd407ac404b32afbe7885e492e4a3', null, null, N'查看部门', null, N'sparepart/warehouse/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'761c18ef3fe34e919cb21e86d824bf87', N'1cbf77c623f24046b9b42d80dc853445', null, null, N'删除', null, N'equipment/EquipmentLoseApply/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'767789945d9b438aadbd0d387a759d4a', N'0201', null, null, N'已删除（收消息）', null, N'msg/showMsgrecvdeleted.do', null, null, null, null, null, null, null, null, null, null, null, null, N'message/message-receive-delete', N'5', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'76934583f952469bb9e949a6130ec0f5', N'7a1c6680cdb54c66acd6fcd56158f676', null, null, N'新增', null, N'report/customReport/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'76ab748ebc2841c6bb355dc4835e1312', N'2592b4093fd3462ab8f3da855591ddad', null, null, N'修改', null, N'timeEfficiency/patrolPoint/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'775c1766725247fa87c8bddae86c5c7f', N'020102', null, null, N'发消息删除', null, N'msg/deleteMsg.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'77c91677f9554e5e87f9dc771b377afb', N'02', null, null, N'公告管理', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'77da6fe89c96456396555e5071d4e465', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'状态管理', null, N'equipment/equipmentStatusManagement/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7861bdd7939547a1ad60e0b9fc17b5ee', N'-1', null, null, N'运行管理', null, N'', null, null, null, null, N'fa-street-view', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'786520396dcb419d9536938ca9cd5105', N'77c91677f9554e5e87f9dc771b377afb', null, null, N'公告浏览', null, N'info/showViewList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'789aa765e0ef43e7b2a229c0a52645f4', N'020102', null, null, N'发消息查看个人', null, N'msg/getMsgsend.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'793942876ba4474e924889e20cd8928a', N'6921534080ef4507bc99002e98e13190', null, null, N'查看部门', null, N'equipment/specialEquipment/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'79d841eaff014324a7ab2641ae5c3b1c', N'472e54139d1947d9ae32d248852d9630', null, null, N'新增', null, N'timeEfficiency/patrolRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7a1c6680cdb54c66acd6fcd56158f676', N'f12089505a904215aef43f145c9dba2c', null, null, N'报表配置', null, N'report/customReport/showManageList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7ac7ba3a92d342acbc62f7e5b9d6b935', N'9a3e395c63d24f54a418cad104374e66', null, null, N'新增', null, N'timeEfficiency/patrolContents/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7b1dc89b15f8420bae3676b9e6fccf06', N'6175563fe13040f9905425212576a0da', null, null, N'专家故障库', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7b478532eb8e42e39f047e493a566e37', N'bb6a24baf8294550869124abd6d96821', null, null, N'纳管企业在线数据', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7b6e07753dee4693b115c3a1eb4f8549', N'311f49be82d64a0e9f33695ab3e5d65d', null, null, N'新增', null, N'equipment/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7b7cce355fcf4653b9ea536ff3aeb88e', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'巡检计划', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7cc9e11c634e4f09a1ac0c4fecd28619', N'2e4e28c52a9b4558afc02585f82a8ac6', null, null, N'删除', null, N'sparepart/outStockRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7d03ada544d0415d9ef2e652e560334d', N'72fd4439f8ad41eab7b765fd66052135', null, null, N'查看全部', null, N'timeEfficiency/patrolPlan/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7d31bcbf31b34ab5b0cd52218294680f', N'9a3e395c63d24f54a418cad104374e66', null, null, N'查看部门', null, N'timeEfficiency/patrolContents/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7dae91db64cb428ea66b9fa5514de25b', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7e3f1f5cd89f4f67abf37fca218107b0', N'233fc7b79dd94772b6b3165ada647a90', null, null, N'巡检楼层', null, N'timeEfficiency/patrolArea/showList4Floor.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7e40547fdfc34a8c8b47137f17603734', N'6379eaa71f6e451d81f69226fcbf7c1a', null, null, N'班组类型', null, N'work/groupType/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7ed12d77875841c3a4244262d78ef1bb', N'42881246cc584821829f9a9228d1e535', null, null, N'过程控制管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7efa4ad4afa047bfb56ce55a958bdc0a', N'311f49be82d64a0e9f33695ab3e5d65d', null, null, N'查看全部', null, N'equipment/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7f16396668bf4bc59f91ac96ce4bfb24', N'e0d1bd2b49d747209f194b865914e1d6', null, null, N'设备保养库', null, N'maintenance/libraryMaintenanceCommon/showList4Tree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7f369933a15644e9a2d1f758c0d3d942', N'5f7c1539059f4752a117a01f01583060', null, null, N'删除', null, N'equipment/equipmentMaintain/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7f4a59b57c234c15b648adc453d8e961', N'9a3e395c63d24f54a418cad104374e66', null, null, N'查看全部', null, N'timeEfficiency/patrolContents/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7f6dd24a15d54c10b33f913d6fda8619', N'2ef90da016114578ae28f4a927980efe', null, null, N'报警订阅', null, N'alarm/alarmPoint/showistForSubscribe.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7f7d31d88658414caa1a0db1e70747cb', N'f93dfbe1cdea49b2b6b05095c86d7849', null, null, N'设备报废管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'6', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'7fde78680f244db0a116ac9ef29add56', N'b9ce31b99099435483e297520c3bf8b3', null, null, N'新增', null, N'activiti/workflow/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'80100b1506fe499fb6ee99d305e70bc7', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'维保记录', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'80a9346edfb14643a092a027d22dec1c', N'1fb187dc74d043b3861c01be7be4c78e', null, null, N'巡检点', null, N'timeEfficiency/patrolPoint/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'80cb4c3aef4345b4ab61187bc7996fc0', N'72fd4439f8ad41eab7b765fd66052135', null, null, N'查看部门', null, N'timeEfficiency/patrolPlan/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'81af8690f35c44ca9defb47881ac701e', N'311f49be82d64a0e9f33695ab3e5d65d', null, null, N'修改', null, N'equipment/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'81b8cc0d07d6430387cb04bb28cf78e8', N'464965e3c6c147b4823b4611eaf63416', null, null, N'修改', null, N'sparepart/supplierClass/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'81d9f85274074effaea729f03bdf0c0a', N'b62e2bfaba5c4d2f853363af201bece8', null, null, N'新增', null, N'valueEngineering/equipmentDepreciation/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8269a12a432c439bb32138732006845f', N'6370b0a09f4e41a594209c24c76dcba6', null, null, N'修改', null, N'equipment/equipmentUseAge/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'829707103d5b4e8ebd88fe2ef7d27927', N'9ee4e517487448b097c809bd7c66db35', null, null, N'新增', null, N'sparepart/supplier/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'82ba20cfc3d4421ca9fe71bc6dcb9c87', N'9c1ef139ba934c9e941edd034abbc886', null, null, N'设备验收申请单', null, N'equipment/equipmentAcceptanceApply/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'82bb629e4cb847deacc0cd21b5fdd818', N'b9ce31b99099435483e297520c3bf8b3', null, null, N'删除', null, N'activiti/workflow/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'82bbbca6dfff4f01be0f60596fd7d42c', N'6379eaa71f6e451d81f69226fcbf7c1a', null, null, N'交接班记录', null, N'work/scheduling/showHandoverRecord.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'834658d9fabd49dc913bfee50cafb663', N'767789945d9b438aadbd0d387a759d4a', null, null, N'收消息查看', null, N'msg/getMsgrecv.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'83b8bdc4ea374e47a13f97728807aabb', N'0c042acc603a4f1aac876b9d2669f2ab', null, null, N'模型基础配置', null, N'achievement/acceptanceModel/showAcceptanceModelManage.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'83e402387af64e299dd04e6ef2957bcb', N'bf93d57b291440b988f88cdc4d48fc15', null, null, N'维修记录', null, N'maintenance/showMaintenanceDetailList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'840cc5fa8c704657ba877efd5bb5f886', N'728f3968261540a29e87662f722bcb3f', null, null, N'验收模型', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'84d4b320eb31423591abfb9535eaa727', N'-1', null, null, N'库存管理', null, N'', null, null, null, null, N'fa-cubes', null, null, null, null, null, null, null, null, N'13', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'85e28135e8334940937821d8ba1be0c2', N'4e5fe11879054404a53fd2265a14ae3a', null, null, N'查看部门', null, N'timeEfficiency/patrolRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'85f0e816492640f98772633523a547ae', N'990101', null, null, N'查看全部', null, N'user/getUsers.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'11', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'86ab6f3d81bf4c00a4b986b5b8510d7a', N'14ecd1cb233f453e92771729f81c24e3', null, null, N'能效总览', null, N'efficiency/efficiencyOverview/showView.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'86cf1f7b80794e00a16711d96bfa6fa9', N'72fd4439f8ad41eab7b765fd66052135', null, null, N'新增', null, N'timeEfficiency/patrolPlan/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'86f1b89dd19f45948ba627959283d8ba', N'80100b1506fe499fb6ee99d305e70bc7', null, null, N'维修记录', null, N'maintenance/showMaintenanceDetailList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'86f448ea052748ba9e6b866bc2ff6808', N'5d4c737b7f2345ba9d2196aa6bba10dc', null, null, N'维修工单', null, N'workorder/workorderDetail/showRepairList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8703338b95bc4721a48cdbe53f70d8c6', N'66b5568be6cc4ef98d623843150a6d66', null, null, N'新增', null, N'equipment/assetClass/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'878d35e992954e7d8b4ecfb41f1708a3', N'11cf8b766cd74b938295f34fc0051754', null, null, N'内部人员证书管理', null, N'safety/internalCertificate/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'88475cc82ca64e09912bf7af83a385dc', N'89dc2f184cbb44e98c019775b04a6b30', null, null, N'修改', null, N'maintenance/faultLibrary/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'886d2ae66b1440efb131cef95717d555', N'a65bc2df01cc4c2f984b40b284396f87', null, null, N'数据录入', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'88b91a6aec9041438369bb95e84f2c4a', N'08c0df457cc24bb0843c0266ac5a14f5', null, null, N'工艺调整库', null, N'process/libraryProcessAdjustment/showList4Tree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'88db87613baf4418a4a1c42a0b65bc32', N'fd2737d3131c4974a3da03265802973c', null, null, N'设备采购管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'88e0c1c8cb06490dbfd48c57907337b1', N'311f49be82d64a0e9f33695ab3e5d65d', null, null, N'查看部门', null, N'equipment/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'890ceee92d44413391be9e7abd2c2c65', N'9cca0129abb84323a6994d60981722ae', null, null, N'合同类别', null, N'sparepart/contractClass/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8913eba52f99477bb2385f2d28b35906', N'007b3b51c25742c5b6621e440414bbb3', null, null, N'查看部门', null, N'equipment/equipmentAccident/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'89dc2f184cbb44e98c019775b04a6b30', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备维修库', null, N'maintenance/faultLibrary/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'89fc3ff5f7614782923ed80d3e5fc354', N'c963df9afc1d46e4b632a4c9f8266491', null, null, N'删除', null, N'activiti/leavew/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8a2c9772459a49ef8e966f61e419719a', N'6f7e4e2a77834a7eaae90345461a5117', null, null, N'新增', null, N'equipment/EquipmentScrapApply/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8a6d919f0291478aa0c63e81ac01ad2c', N'06ea5ba3dd2f46e387dd4b9d91297ff8', null, null, N'新增', null, N'timeEfficiency/violationRecordCount/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8aec08b0368a43b9b0bd80338df903c1', N'7f7d31d88658414caa1a0db1e70747cb', null, null, N'报废信息汇总', null, N'equipment/equipmentScrapApplyCollect/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8af14f2874bd478ab9c042fc68b1993a', N'84d4b320eb31423591abfb9535eaa727', null, null, N'基础信息', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8b150f1b8c784e4d937c539ed8ffba1c', N'7b1dc89b15f8420bae3676b9e6fccf06', null, null, N'设备维修库', null, N'maintenance/libraryFaultBloc/showList4TreeBiz.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8b31ae96f99d4723a7e0fc3b331b04d4', N'464965e3c6c147b4823b4611eaf63416', null, null, N'查看全部', null, N'sparepart/supplierClass/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8b42dcd719c14b78a633fe368c402f7c', N'c6516395208242f08ee612f6a9bb1661', null, null, N'新增', null, N'equipment/equipmentTypeNumber/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8b90b27ba4a7401c8bab0e0ad02d675d', N'6175563fe13040f9905425212576a0da', null, null, N'设备丢失管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8c06139450914bde9f88b2d6774dc738', N'020101', null, null, N'收消息查看', null, N'msg/getMsgrecv.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8c0a2a8c23ee433683bc16b37647f53c', N'a02f2a4c5cba48a68802b9fec6a6459a', null, null, N'修改', null, N'timeEfficiency/patrolRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8c1c5584ff6e4ca58d01a929f45777bc', N'7b478532eb8e42e39f047e493a566e37', null, null, N'化验任务实施', null, N'process/testTask/showListForTask.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8c4658ea41b149df8f04d361f459da7c', N'8c4658ea41b149df8f04d361f459da7c', null, null, N'统计分析', null, N'equipment/showEquipmentStatisticalChart.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, null, null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8c52bed7f913459eb996930618779a28', N'04cc222437aa4df8bb4d609cda370eb2', null, null, N'删除', null, N'sparepart/stock/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8c551746fbd945cc97e9dcf0f74b9c95', N'fd2737d3131c4974a3da03265802973c', null, null, N'供应商管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8dae77819adc426f897afdb8e9c265fe', N'6175563fe13040f9905425212576a0da', null, null, N'维保计划', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8dcc788ded394af9b59a2d2f3f081845', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'库存盘点', null, N'sparepart/stockCheck/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'6', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8e47b05a337346fa89ca68d9f71a18f8', N'47b56b85be394d6196be99f972c4876c', null, null, N'修改', null, N'timeEfficiency/patrolContents/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8e4f02e6d3e142fe9fcf4d238e1c42c1', N'201a0e49a69d433a9aa8f202381514c1', null, null, N'异常上报', null, N'maintenance/abnormity/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8ea9c784795a4d638a1a8fcdc5239af5', N'b97e06a17e64481bae7bb0bdbd18b130', null, null, N'删除', null, N'equipment/equipmentBelong/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8ef19069d74541f2a9edd266eb6d4a4d', N'6f7e4e2a77834a7eaae90345461a5117', null, null, N'查看部门', null, N'equipment/EquipmentScrapApply/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8ef475c578d94d229d40f802bde9cc49', N'020101', null, null, N'收消息删除', null, N'msg/deleteMsgRecv.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8f3b5170e9e84d409842e9980646f6b7', N'd1a5b76608044ad1bf651ea44d1c01eb', null, null, N'编辑', null, N'document/editData.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8f6a2ba2e92647139d740a0bd674e88f', N'aeb7dfcb642d403c82404a8db7e07f02', null, null, N'大修工单', null, N'workorder/overhaul/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8fb345eee7b74391a31166b4ba03d81d', N'de11e520ea344d0883eec9d7138cb025', null, null, N'外包单位类型', null, N'sparepart/supplierClass_copy/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8fc7bd01810549479889b90d4cd1414e', N'214691b5cd5c4aceb97929bfc71812d8', null, null, N'保养记录', null, N'workorder/workorderDetail/showEndMaintainList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'8ff19a25749344109b2662551cd487b3', N'754245d088d24883a09e662e3e10d6bd', null, null, N'保养计划', null, N'equipment/maintenancePlan/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9006cd02677b4768a4439d60351b61a5', N'1dd8c6bd71c74eb4bc2fbb6722d9c1b8', null, null, N'待办事项维护', null, N'activiti/workflow/taskList.do?delinput=1', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'90355e0a36f04d1d9dc4883347360dcc', N'68486a28ff644c26b0087e58cb3972a4', null, null, N'删除', null, N'timeEfficiency/patrolPlan/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9095a70c03e74fa3a7e5154b96fc7e8b', N'2ef90da016114578ae28f4a927980efe', null, null, N'报警信息', null, N'alarm/proAlarm/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9171ac58926e46f282427a6f04a22ab9', N'88db87613baf4418a4a1c42a0b65bc32', null, null, N'设备采购计划', null, N'sparepart/purchasePlan/showPurchasePlanList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'92913e48969f4ae3bcaf6c1e0fdb7704', N'e6e12648bda14bc6b4f29a174f2268b6', null, null, N'排污源信息', null, N'sparepart/sewage/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'92d53be627e94bcf8f45f3e8670b14f8', N'2592b4093fd3462ab8f3da855591ddad', null, null, N'查看部门', null, N'timeEfficiency/patrolPoint/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'92ddda8ec9a74f75a3ba489dcaa95dba', N'4f6f2a45e14a43b5ae298ea3367acf29', null, null, N'查看部门', null, N'timeEfficiency/patrolPlan/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'934cf8a9e21b48169426e2498eedc16c', N'aedcbd64d54e4d429c5d26e6377c129a', null, null, N'周期常规库', null, N'process/libraryRoutineWork/showList.do?typestr=manage', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'939264878ee845dd8ae8c55cf0756751', N'd6ac34698a744765825568eee0b538e3', null, null, N'缺陷工单', null, N'maintenance/showDefectList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9395254fb6fb49d1a234b92ae0bf5d71', N'07e360dc38334d60a39a533a80e33b3e', null, null, N'合同汇总', null, N'sparepart/contract/summary.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'93ca53574e324d6eb532409f60728b8b', N'39d685bf48244ca7be4070170a85233d', null, null, N'设备寿命', null, N'equipment/showEquipmentAge.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'94dcd340946f4f3fa14d47ebf1ae9147', N'54ce95b20de7459ea0e77abca515e6d2', null, null, N'修改', null, N'sparepart/purchaseRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'94dd4b901df74c958f1b770b8d3353a2', N'8dcc788ded394af9b59a2d2f3f081845', null, null, N'查看全部', null, N'sparepart/stockCheck/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'95715dbd36074d3cb7776d13992a450b', N'e0d1bd2b49d747209f194b865914e1d6', null, null, N'设备润滑库', null, N'maintenance/libraryMaintenanceLubrication/showList4Tree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'95d61c2ccf50401b95c235f984b59bd4', N'4d4f49d6dff74f0b862eb0590de32652', null, null, N'查看全部', null, N'equipment/maintenancePlan/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9609d91ed7d14b7b8e89e92b96a3c633', N'53775666599549b39dd101b26cbbe824', null, null, N'保养记录', null, N'equipment/equipmentMaintain/showEquipmentMaintainList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9619bf86164646a992111e98232ea571', N'82ba20cfc3d4421ca9fe71bc6dcb9c87', null, null, N'修改', null, N'equipment/equipmentAcceptanceApply/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'961a6a200b154f7f878cd22727b91d35', N'9c0e68e4dd3c469eb542fa3d9b72e885', null, null, N'画面维护', null, N'process/dataVisualFrame/frameConfigure.do?menuType=proVisual', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'968d8301c50a4225ad7299057f77a486', N'3ac47c2edde244fda38aad5e6afa2881', null, null, N'异常上报', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'971343cb0b1448dba17c43d0ebc41237', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'97af6f2c99174b4ca1f5974ade4cc28c', N'd8187348d2fc4a1995c5135dacdef69f', null, null, N'修改', null, N'sparepart/outStockRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'97bc1e14fdee4075ab749b359c7cacad', N'e36faedda4cd450d8296a90bd8ff2d7f', null, null, N'相关单位作业管理', null, N'safety/SafetyJobOutside/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'97c8872e79e74d1aa43701968f9ff1e4', N'e586112b94b44bd0a78b71fb9bc1cca0', null, null, N'业务流程类别', null, N'business/businessunit/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'97eebb96c0f0424385bd4ec95f045fc3', N'4bef25f247aa4838b397aa4c5cab9b6a', null, null, N'修改', null, N'valueEngineering/equipmentEvaluate/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'981d54e74a284a9db59d9df47bc7ff0f', N'6379eaa71f6e451d81f69226fcbf7c1a', null, null, N'交班', null, N'work/scheduling/showHandover.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'983f72fd7e7f4713970b42d5bd9500f6', N'1c2def07ba704688b0166a38384b3f08', null, null, N'查看部门', null, N'timeEfficiency/patrolPlan/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'985dba4e9341454fb2f250483e0ef290', N'ba988e6b6eaf482a9f24651d717917cb', null, null, N'水厂设置', null, N'bizaction.do?method=doshowlist', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'98a2def40a4f4ff8b0667e828300e99d', N'd38607ef9b02472388a333ceb982621d', null, null, N'运营成本分析', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'98cf7313fe5344b9b6fb9af3aec54917', N'3ad55b78720d4329b2af759943bf90d0', null, null, N'查看部门', null, N'maintenance/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'99', N'-1', N'99', N'系统管理', N'系统管理', null, null, N'mainframe', null, null, null, N'fa-cogs', null, null, null, null, null, null, null, null, N'99', N'1', N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9901', N'99', N'9901', N'系统管理>>用户管理', N'用户管理', null, null, N'mainframe', null, null, null, null, null, null, null, null, null, null, null, null, N'1', N'2', N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'990101', N'9901', N'990101', N'系统管理>>用户管理>>部门与员工', N'员工维护', null, N'user/showUsers.do', N'mainframe', null, null, null, null, null, null, null, null, null, null, null, N'system/employeemaintenance', N'1', N'3', N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'990102', N'9901', null, null, N'部门设置', null, N'user/showUnitTree.do', null, null, null, null, null, null, null, null, null, null, null, null, N'system/department-setting', N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'990103', N'9901', null, null, N'职位设置', null, N'user/showListJob.do', null, null, null, null, null, null, null, null, null, null, null, null, N'system/position-setting', N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9902', N'99', N'9902', N'系统管理>>权限管理', N'菜单及权限管理', null, null, N'mainframe', null, null, null, null, null, null, null, null, null, null, null, null, N'2', N'2', N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'990202', N'9902', null, null, N'权限配置', null, N'user/showListRole.do', null, null, null, null, null, null, null, null, null, null, null, null, N'system/permission-configuration', N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'990203', N'9902', N'990203', N'系统管理>>权限管理>>菜单管理', N'菜单管理', null, N'user/showMenuTree.do', N'mainframe', null, null, null, null, null, null, null, null, null, null, null, N'system/menu-management', N'1', N'3', N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'991b8248ab78444e9a83b4b59db4406e', N'7ed12d77875841c3a4244262d78ef1bb', null, null, N'过程控制库', null, N'process/libraryProcessManage/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'992b5bd200f34edb8625abeb40153064', N'6370b0a09f4e41a594209c24c76dcba6', null, null, N'查看全部', null, N'equipment/equipmentUseAge/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'995db575f875473cbe00187b9d13da32', N'80a9346edfb14643a092a027d22dec1c', null, null, N'查看全部', null, N'timeEfficiency/patrolPoint/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9985c47f143f44fdb868731aff3e6300', N'9d37440fb0e54131bf01caede4a19015', null, null, N'公司财务设备导入导出', null, N'finance/placeClass//showEquipmentCompanyCard.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'998d3f1587234f919248c15453875338', N'adae2d280cb247bd9325548b2a4eb60e', null, null, N'生产指标控制', null, N'work/productionIndexPlanNameData/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9991bfba111d48ce9c26d490645dde9e', N'e05b2560b1e34d509a68b3e3313ed530', null, null, N'基础配置', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'99b0498d1237410080af75dad61d2fe9', N'89dc2f184cbb44e98c019775b04a6b30', null, null, N'删除', null, N'maintenance/faultLibrary/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'99ef042f78b44a74ab9a973ec1ed3a21', N'2592b4093fd3462ab8f3da855591ddad', null, null, N'查看全部', null, N'timeEfficiency/patrolPoint/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9a3e395c63d24f54a418cad104374e66', N'1fb187dc74d043b3861c01be7be4c78e', null, null, N'巡检内容', null, N'timeEfficiency/patrolContents/showPatrolPointEquipmentTree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9a501122503a436cb39aee8e1c761135', N'66b5568be6cc4ef98d623843150a6d66', null, null, N'修改', null, N'equipment/assetClass/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9ae36f570c3c42c88d8a0a742028472a', N'77c91677f9554e5e87f9dc771b377afb', null, null, N'公告发布', null, N'info/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9b01157c274b4b34a1df7e0f8b5ec549', N'584e304b1e5743bd96300559f9f63073', null, null, N'删除', null, N'timeEfficiency/patrolRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9b629bdc547c4440916ff71c610d8527', N'f12089505a904215aef43f145c9dba2c', null, null, N'设备指标报表配置', null, N'report/drainageDataomprehensiveTableMainconfigure/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9b9c310bd13648db97ddd1b67edea7ff', N'23a58522288b4c8da1e7b8eba07b1f77', null, null, N'新增', null, N'equipment/equipmentDialin/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9c04865f4f72455cb6309dcc029ad3be', N'd8187348d2fc4a1995c5135dacdef69f', null, null, N'查看全部', null, N'sparepart/outStockRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9c0e68e4dd3c469eb542fa3d9b72e885', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'工艺可视化', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9c1ef139ba934c9e941edd034abbc886', N'6175563fe13040f9905425212576a0da', null, null, N'设备验收管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9c2db454926d43a8a7549130002002fd', N'47b56b85be394d6196be99f972c4876c', null, null, N'新增', null, N'timeEfficiency/patrolContents/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9c702e1cb18f4305bbc2f087613d10c9', N'54ce95b20de7459ea0e77abca515e6d2', null, null, N'查看全部', null, N'sparepart/purchaseRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9cca0129abb84323a6994d60981722ae', N'fd2737d3131c4974a3da03265802973c', null, null, N'基础信息', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9d02e8ddd34f4e3eaf5eaf35665befc9', N'04463a8e128a4d1b82eeed40f3f56e25', null, null, N'自定义报表配置', null, N'report/customReport/showManageList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9d181cef5efa45638b954fd9eb8991fc', N'cc60f8b816f845c29e8bd880d8ca671e', null, null, N'设备拨入管理', null, N'equipment/equipmentDialin/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9d37440fb0e54131bf01caede4a19015', N'6175563fe13040f9905425212576a0da', null, null, N'财务设备导入导出', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9d5a75b9230d4fd1b875b5582e0740fc', N'66b5568be6cc4ef98d623843150a6d66', null, null, N'删除', null, N'equipment/assetClass/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9dd0323d6ed34b0ba5f0311cca790f91', N'9991bfba111d48ce9c26d490645dde9e', null, null, N'JSP管理', null, N'visualjsp/showJspList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9e3b3828c552446bbba631ffef5b4b50', N'54ce95b20de7459ea0e77abca515e6d2', null, null, N'删除', null, N'sparepart/purchaseRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9e7ab87dea6843d5b22da1de86e2eb7f', N'233fc7b79dd94772b6b3165ada647a90', null, null, N'巡检模式', null, N'timeEfficiency/patrolModel/showPatrolModellist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9eae0d93db864c1cb72669c955f0a3b6', N'd34047cfa77347769ed13959bf9a4a12', null, null, N'查看部门', null, N'sparepart/subscribe/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9ee4e517487448b097c809bd7c66db35', N'8c551746fbd945cc97e9dcf0f74b9c95', null, null, N'供应商信息', null, N'sparepart/supplier/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9eef771a99f14569a704b82b1c5ab8cc', N'4d4f49d6dff74f0b862eb0590de32652', null, null, N'查看部门', null, N'equipment/maintenancePlan/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9f08dbd5f01c41a599c9a8b4586fa12b', N'8e4f02e6d3e142fe9fcf4d238e1c42c1', null, null, N'查看部门', null, N'maintenance/abnormity/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9f22658abfe247e1890137630c8192f2', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'处级物资领用', null, N'sparepart/outStocksectionRecord/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9fb5c73a4bd04498963fa50019dc94b9', N'-1', null, null, N'维保管理（旧）', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9fcc736ee05f40f0b58aac6bb23c0e36', N'170d72f3ad4d4dc6a7fd60e52e8f515e', null, null, N'工艺调整类型', null, N'process/processAdjustmentType/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9fd08ff32a02442799e6398e26ca30f5', N'e51e3828488a4e37af7c8ea066d37e91', null, null, N'修改', null, N'sparepart/goods/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'9fdfc5fc067349f3abe3b4235469e5fb', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备类别', null, N'equipment/equipmentClass/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'10', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a0212a5c452642ae89e27590dec80857', N'a824c974a173430bb806e4824a0aec85', null, null, N'查看部门', null, N'equipment/EquipmentTransfersApply/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a02f2a4c5cba48a68802b9fec6a6459a', N'f517c03375854ea38feb88f641552061', null, null, N'运行巡检日历', null, N'timeEfficiency/patrolRecord/showCalendar.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'90', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a0742605774a421c8ff911e30844d707', N'e6e12648bda14bc6b4f29a174f2268b6', null, null, N'纳管企业数据录入', null, N'sparepart/sewageInput/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a17968fbb1c54d2690dd37b7e1581225', N'-1', null, null, N'行政标准化工单', null, N'', null, null, null, null, N'fa-star-o', null, null, null, null, null, null, null, null, N'12', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a1cd3c5a08984218b4061fb5cf3a9b5a', N'9609d91ed7d14b7b8e89e92b96a3c633', null, null, N'查看全部', null, N'equipment/equipmentMaintain/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a2538b0dd44d44fdacb00fa0d10516a8', N'5f7c1539059f4752a117a01f01583060', null, null, N'新增', null, N'equipment/equipmentMaintain/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a2b34e964b9846f7be41120a7b5d7d6a', N'9ee4e517487448b097c809bd7c66db35', null, null, N'修改', null, N'sparepart/supplier/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a2e63be01ea84a52afb65f7e52537fa8', N'abccd10565a24bf981feeb2d94d61e7d', null, null, N'预案演练', null, N'command/emergencyConfigure/showlistDrill4NS.do?bizid=c2c0eac85a144d5fadf870aab62fa477', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a2fd82344d064519bbc992d1dbbb3015', N'4e484664c5f94d6d862f7a9928a8f986', null, null, N'首页配置', null, N'base/mainPage/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a37e43eefa7846658b66d65afe7e5df8', N'6379eaa71f6e451d81f69226fcbf7c1a', null, null, N'交接班排班', null, N'work/scheduling/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a3a28a0ce1eb49f99a7d213ece0d57b4', N'23a58522288b4c8da1e7b8eba07b1f77', null, null, N'查看部门', null, N'equipment/equipmentDialin/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a4033f13e2db47fb86510b2cd298fc15', N'648b60fed1de4a5bb846aa7c45f62f2f', null, null, N'PSMS预览', null, N'equipment/viewPSMS.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a5695dc87b3e4574ab3b44e35fed4180', N'80a9346edfb14643a092a027d22dec1c', null, null, N'查看部门', null, N'timeEfficiency/patrolPoint/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a574e091f7d640e8baab60aa47f2aebc', N'08c0df457cc24bb0843c0266ac5a14f5', null, null, N'工艺调整工单', null, N'process/processAdjustment/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a5ea389d12384b7587f41a40a4df83db', N'66b5568be6cc4ef98d623843150a6d66', null, null, N'查看全部', null, N'equipment/assetClass/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a65bc2df01cc4c2f984b40b284396f87', N'-1', null, null, N'报表管理', null, N'', null, null, null, null, N' fa-industry', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a65d7e6c9c014c8095820501a6215586', N'99', null, null, N'定时器管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a67addea16054c34bdcd9b987d9d63a7', N'226f8cb8df9c4279a7b2e45fc33fdbe5', null, null, N'设备维修库', null, N'maintenance/libraryFaultBloc/showList4TreeBloc.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a6c88e7334ef4a688d4c2fe556d1f3d4', N'3ad55b78720d4329b2af759943bf90d0', null, null, N'新增', null, N'maintenance/addDefect.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a74ab7e9286d488db8b239e234b869e0', N'04cc222437aa4df8bb4d609cda370eb2', null, null, N'修改', null, N'sparepart/stock/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a779b8b1a9754283903bd9509d436a4b', N'472e54139d1947d9ae32d248852d9630', null, null, N'查看部门', null, N'timeEfficiency/patrolRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a824c974a173430bb806e4824a0aec85', N'bb7fcb43f9c3431fa774915770f6e5d2', null, null, N'设备调拨申请单', null, N'equipment/EquipmentTransfersApply/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a913390b98a34684ab583f52fc019f47', N'226f8cb8df9c4279a7b2e45fc33fdbe5', null, null, N'设备大修库', null, N'maintenance/libraryOverhaulProjectBloc/showList4TreeBloc.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'a9504f9ac353476a82ff52a570ecbe05', N'92913e48969f4ae3bcaf6c1e0fdb7704', null, null, N'修改', null, N'sparepart/sewage/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'aa4236f112664ea893d9d9cb93be8aa8', N'd9acffba9b594b31a5682135678c1f23', null, null, N'总运维统计', null, N'maintenance/showMaintainerMaintenanceResultChart.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'aa780e1540eb45b69c10f619049a6e58', N'6175563fe13040f9905425212576a0da', null, null, N'设备台账管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'aabf43ebe7f74ecbac6aebf6f00b2a6b', N'82ba20cfc3d4421ca9fe71bc6dcb9c87', null, null, N'查看全部', null, N'equipment/equipmentAcceptanceApply/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ab89bb74e1ef4309ae93ae95b2333a99', N'49b94cac6edf4a6b9bc1d5c76379431b', null, null, N'外来访客教育', null, N'safety/SafetyEducationVisitor/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'abc372aada6c427c90c36b44cf9a401b', N'20038371000c40bbbb3485ed900b2593', null, null, N'查看全部', null, N'equipment/equipmentClass/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'abccd10565a24bf981feeb2d94d61e7d', N'b852bd16ec794222b6f250416b7a9e12', null, null, N'应急预案管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ac35bc7bd58a4dfab74fabadf64eb029', N'42881246cc584821829f9a9228d1e535', null, null, N'常规工单管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ac36778b5c374306a498e8e8372aa45d', N'25166f0c28534da582b079cb165fe34d', null, null, N'综合安全检查', null, N'safety/SafetyCheckComprehensive/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'acb52b8ce55a405399476996dee4de9a', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ace483331ffb47be86a8fec3561f604d', N'990101', null, null, N'新增', null, N'user/addUser.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ad52daa8c63142b8bd5b45953032d13e', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'库存报警', null, N'sparepart/stock/showStockAlarmList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'7', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ad59e3d4d5d9428da84cd31507daaa4a', N'f07312a9aada4547ac986a3f5249144d', null, null, N'删除', null, N'report/customReport/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'adae2d280cb247bd9325548b2a4eb60e', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'生产指标', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'adf35aab2f554fea9e4bc4edcd8463e1', N'20038371000c40bbbb3485ed900b2593', null, null, N'查看部门', null, N'equipment/equipmentClass/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ae44def945d64c57a65ae2698ae3b9e9', N'742cb94b264347d09faf4a46f595546e', null, null, N'修改', null, N'document/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ae7196a9edeb4c62a7d45fbeade3432f', N'06ea5ba3dd2f46e387dd4b9d91297ff8', null, null, N'修改', null, N'timeEfficiency/violationRecordCount/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'aeb7dfcb642d403c82404a8db7e07f02', N'3ac47c2edde244fda38aad5e6afa2881', null, null, N'大修工单', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'aedcbd64d54e4d429c5d26e6377c129a', N'a17968fbb1c54d2690dd37b7e1581225', null, null, N'常规工单管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'af118a74bff547a3a088427be912d8bd', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备编码规则', null, N'equipment/equipmentCodeRule/showEquipmentCodeRule.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'12', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'af12a6f3ddaa474eb23bab3cc88420be', N'5308297074f940bdb56bf7b5cd25c87d', null, null, N'消息报警级别列表', null, N'msg/getMsgAlarmlevel.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'afa8b288b4ad4bc9a9ade276becc5451', N'b7e0b73b44d449fe92b9e7807c9adc15', null, null, N'设备大修库(厂级)', null, N'maintenance/libraryOverhaulProjectBiz/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'afff6d5874cf4c3281a5106cff9a5b01', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'工单管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b070ace60dff4d93a78ee67b1f3f25f6', N'd35bbec545024394a62dd1e31d49db6b', null, null, N'修改', null, N'equipment/equipmentSpecification/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b0db1636ec964674b083914909d78526', N'2e536132a05548df95037c3f3a6a779e', null, null, N'事故应急预案', null, N'document/showContingencyPlanTree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b15d12cc232a43bbb85058f9dadd5dc4', N'cff2e5b9d88940aab23941d450bbd39a', null, null, N'设备评价', null, N'valueEngineering/equipmentEvaluate/showList.do', null, null, null, null, N'fa-database', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b26f335bc2604b1ca197e31ce214d10a', N'2d43030c17234666873d1462b6f2071c', null, null, N'修改', null, N'sparepart/inStockRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b292968c3a3b401eb1e3a471c5395704', N'472e54139d1947d9ae32d248852d9630', null, null, N'查看全部', null, N'timeEfficiency/patrolRecord/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b2ec2d585a624ff597190e6fe1441308', N'4e5fe11879054404a53fd2265a14ae3a', null, null, N'修改', null, N'timeEfficiency/patrolRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b332bf7996104e3a9408666a356b6e3f', N'-1', null, null, N'巡检管理', null, N'', null, null, null, null, N'fa-calendar', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b36b3766c40148d7a5fbdbc66d27d1b9', N'adae2d280cb247bd9325548b2a4eb60e', null, null, N'控制指标库', null, N'work/productionIndexPlanNameConfigure/showManage.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b378db75097548fba91a15709be65a10', N'41e5b59b1e15453b91307dfbeb9fe77c', null, null, N'搜索工具栏', null, N'activiti/workflow/searchForm', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b378ef63ff854daab84551c166a4425a', N'8e4f02e6d3e142fe9fcf4d238e1c42c1', null, null, N'修改', null, N'maintenance/abnormity/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b390861a49b54ccc8ccae7a341d0b59b', N'4fb60db825724c7f87a115794614e774', null, null, N'物品类别', null, N'sparepart/goodsClass/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b410071aea764c4391b4637938df6b98', N'9901', null, null, N'移动设备管理', null, N'user/mobileManagement/showMobileManagementList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b420be5945554b4ab7879a2cbc87b5ca', N'd38607ef9b02472388a333ceb982621d', null, null, N'数学模型参数设置', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b4444cbd50654df8ac03c15d6a291192', N'd34047cfa77347769ed13959bf9a4a12', null, null, N'修改', null, N'sparepart/subscribe/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b4ff0ef2a83d40639d56a422721fddcb', N'abccd10565a24bf981feeb2d94d61e7d', null, null, N'预案记录', null, N'command/emergencyRecords/showlistDrill.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b547569d70c84d119b0c82144b7d8b0c', N'9991bfba111d48ce9c26d490645dde9e', null, null, N'内容配置', null, N'process/dataVisualFrame/configureList.do?menuType=largeScreen', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b54b5d90dfce428eae1bdcd302610126', N'bf93d57b291440b988f88cdc4d48fc15', null, null, N'保养记录', null, N'equipment/equipmentMaintain/showEquipmentMaintainList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b5ddd8460cb94f029def0cf4bb1104d0', N'9ae36f570c3c42c88d8a0a742028472a', null, null, N'新增', null, N'info/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b6213fd06ca04388a93a7f034085c15f', N'6921534080ef4507bc99002e98e13190', null, null, N'修改', null, N'equipment/specialEquipment/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b62e2bfaba5c4d2f853363af201bece8', N'6ad3ce81c82c4f3389ffad7c29de971e', null, null, N'设备折旧', null, N'valueEngineering/equipmentDepreciation/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b6620b67f2bb4672a2fabfd69d3f045f', N'212bd407ac404b32afbe7885e492e4a3', null, null, N'查看全部', null, N'sparepart/warehouse/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b6bbf98cc58c4ffe902ad22b20efb442', N'8c4658ea41b149df8f04d361f459da7c', null, null, N'查看部门', null, N'equipment/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b6ce3815ae5c429c91c377e4f8ebaeca', N'7a1c6680cdb54c66acd6fcd56158f676', null, null, N'删除', null, N'report/customReport/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b6d748e2df3d4aecacfec3689c6557a8', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'巡检总览', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b7632dec079e4f9a8a3f8b10d7075130', N'2ac6352f279c48cd820911e0ed0a3419', null, null, N'修改', null, N'activiti/workflow/model/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b7892e5abd644aac85443d4b950de809', N'007b3b51c25742c5b6621e440414bbb3', null, null, N'新增', null, N'equipment/equipmentAccident/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b7ae143ede0741319f75462394016090', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b7d43d6404e0496c9015b2ef02484b2c', N'6a4551b812db476984da2f9b2248dfda', null, null, N'排污数据分析', null, N'efficiency/waterSpreadData/showView.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b7e0b73b44d449fe92b9e7807c9adc15', N'6175563fe13040f9905425212576a0da', null, null, N'设备大修库', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'88', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b802416921fd41e18a91e4f6bb7797d7', N'9ae36f570c3c42c88d8a0a742028472a', null, null, N'编辑', null, N'info/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b852bd16ec794222b6f250416b7a9e12', N'-1', null, null, N'应急预案', null, N'', null, null, null, null, N'fa-star-o', null, null, null, null, null, null, null, null, N'13', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b8e336ed01e24459b9b94db3ca797736', N'68486a28ff644c26b0087e58cb3972a4', null, null, N'查看全部', null, N'timeEfficiency/patrolPlan/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b8f0ea69e9f2463792a92a8f4689c201', N'9902', null, null, N'KPI配置', null, N'work/kpipoint/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b97dc6c0a3e348c89bc8af328ae450a4', N'725b36ffda96492c83338b01ed45d5ae', null, null, N'报告配置', null, N'work/wordAnalysisReportStructure/showManage.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b97e06a17e64481bae7bb0bdbd18b130', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备归属', null, N'equipment/equipmentBelong/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'11', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b9ce31b99099435483e297520c3bf8b3', N'e586112b94b44bd0a78b71fb9bc1cca0', null, null, N'流程路线', null, N'activiti/workflow/showProcessList.do', null, null, null, null, null, null, null, null, null, null, null, null, N'process/processline', N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b9d6f21034c04b6589c27c886ff8112c', N'd9acffba9b594b31a5682135678c1f23', null, null, N'运维排行榜', null, N'maintenance/showUserRankingList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'b9f3c939bc554f698edd10ba4bbeb3e2', N'06ea5ba3dd2f46e387dd4b9d91297ff8', null, null, N'删除', null, N'timeEfficiency/violationRecordCount/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ba7a77f0b4e845e3a424574cd4379880', N'23a58522288b4c8da1e7b8eba07b1f77', null, null, N'查看全部', null, N'equipment/equipmentDialin/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ba988e6b6eaf482a9f24651d717917cb', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'基础信息', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'7', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bb6a24baf8294550869124abd6d96821', N'-1', null, null, N'源头污染源管理', null, N'', null, null, null, null, N' fa-industry', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bb6ece7039ca4314afdd2ca453a33f24', N'36411bf73cf34cdd84e30909f7d78ead', null, null, N'删除', null, N'maintenance/abnormity/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bb7fcb43f9c3431fa774915770f6e5d2', N'f93dfbe1cdea49b2b6b05095c86d7849', null, null, N'设备调拨管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bbe50d4ae43c4ca49a53fe30148b1066', N'2f112408265c45ac9a9a89538b0236f6', null, null, N'工艺可视化', null, N'process/dataVisualFrame/viewList.do?menuType=proVisual', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bc3a8b40d9f14cca9d44abc5a6a2e5a5', N'ffde2acbc2aa4d5ea423342bd510e57f', null, null, N'报表查阅', null, N'report/rptCreate/showTree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bc9adce180664af29f93bd5691843f0f', N'09a0b257886d4f5cac74e0b990317a87', null, null, N'设备效能分析', null, N'efficiency/constitute/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bd7459c440314b72a82bf247e595b1d6', N'04463a8e128a4d1b82eeed40f3f56e25', null, null, N'报表配置', null, N'report/rptInfoSet/showTree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bd77ab447bdb48d7b8179d190f7f6ffc', N'464965e3c6c147b4823b4611eaf63416', null, null, N'查看部门', null, N'sparepart/supplierClass/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'be02685e04d04ec8bd01f51140e5a7ee', N'e0d1bd2b49d747209f194b865914e1d6', null, null, N'设备大修库', null, N'maintenance/libraryOverhaulProjectBloc/showList4TreeBiz.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'be03b811aa50400595b8eca3a82decff', N'b7e0b73b44d449fe92b9e7807c9adc15', null, null, N'设备大修库(集团)', null, N'maintenance/libraryOverhaulProjectBloc/showList4Tree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'be32b2f1ea9b4361bffe8d4379bd1a12', N'06ea5ba3dd2f46e387dd4b9d91297ff8', null, null, N'查看全部', null, N'timeEfficiency/violationRecordCount/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'be7fb2e5b78b4fb9bb5a3b05e42410ea', N'fa5cf17f6bd847af956c229ab3567852', null, null, N'删除', null, N'equipment/equipmentLevel/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bf148c8acaf74d488f6c3bef0b849460', N'2ac6352f279c48cd820911e0ed0a3419', null, null, N'新增', null, N'activiti/workflow/model/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bf93d57b291440b988f88cdc4d48fc15', N'9fb5c73a4bd04498963fa50019dc94b9', null, null, N'维保记录', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bf9b90f8e58e4b5c868b0058856d058b', N'2ac6352f279c48cd820911e0ed0a3419', null, null, N'删除', null, N'activiti/workflow/model/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'bfe87ba6442d410d99d218d61cc6b293', N'6379eaa71f6e451d81f69226fcbf7c1a', null, null, N'交接班内容配置', null, N'work/groupContent/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'7', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c009b33a09fa4e149c75415e7a0690df', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'物资总览', null, N'work/mpoint/showthelistOverview.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c035a8f1e458452bad464878554007e4', N'99', null, null, N'APP生产监测', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'13', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c049cf1f630940e3ae295fb80f925bbf', N'd35bbec545024394a62dd1e31d49db6b', null, null, N'新增', null, N'equipment/equipmentSpecification/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c0597983d30143d58a6d98d1436e905c', N'6175563fe13040f9905425212576a0da', null, null, N'设备出售管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c077f8def34b4f398b88bba9a2422ec5', N'311f49be82d64a0e9f33695ab3e5d65d', null, null, N'新增附属设备', null, N'equipment/addMpoint.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c09f6f64b54745a88d56479c9d828c19', N'c963df9afc1d46e4b632a4c9f8266491', null, null, N'查看全部', null, N'activiti/leavew/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c0d6e2da08b04c89b2a4c2ee455e4a1c', N'2d743c9d33914c8e8b865cb03c50b317', null, null, N'在线时间统计', null, N'user/showTotalTimeList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c0da22df959b48738a1da7b97b894774', N'5308297074f940bdb56bf7b5cd25c87d', null, null, N'消息报警级别新增', null, N'msg/addMsgAlarmlevel.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c0f06bc1a4e3466d819b60034106fb17', N'584e304b1e5743bd96300559f9f63073', null, null, N'查看部门', null, N'timeEfficiency/patrolRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c141c9e853ec4c0faa0ab9032e06e043', N'464965e3c6c147b4823b4611eaf63416', null, null, N'删除', null, N'sparepart/supplierClass/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c25904da6a06457f8df98012a5364f96', N'6175563fe13040f9905425212576a0da', null, null, N'设备过保查询', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c2c7f9320ef24909b0c29eeeef7f0335', N'007b3b51c25742c5b6621e440414bbb3', null, null, N'查看全部', null, N'equipment/equipmentAccident/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c3435e1777284c0297df7d8a4c4b8005', N'f3ead4a71df24345800ffc0609315dbd', null, null, N'查看全部', null, N'timeEfficiency/patrolPlan/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c39994f3d1c846348d0fae18008166c4', N'f7fe337d5d29480f8d475e6e0fd8c53e', null, null, N'查看部门', null, N'timeEfficiency/patrolPlan/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c471554f498a43f1847de9cf69c887d2', N'72fd4439f8ad41eab7b765fd66052135', null, null, N'删除', null, N'timeEfficiency/patrolPlan/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c4908faf19104ef09f6f64e4db02bc68', N'1a89a3eb45644e3fb54fdda0a6c47177', null, null, N'泵单耗分析', null, N'equipment/pumpAnalysisModel.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c49f8034a44a4ee287f0dd36324ffd9d', N'6175563fe13040f9905425212576a0da', null, null, N'设备资料管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c4d667a42baa42a99c817254bd7faae8', N'd8187348d2fc4a1995c5135dacdef69f', null, null, N'新增', null, N'sparepart/outStockRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c53553d84cb54da7ac253c320bfcb1ac', N'4bef25f247aa4838b397aa4c5cab9b6a', null, null, N'新增', null, N'valueEngineering/equipmentEvaluate/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c5c31b3fb9cf48659c87b198b0046ad3', N'14ecd1cb233f453e92771729f81c24e3', null, null, N'总览配置', null, N'efficiency/efficiencyOverviewConfigure/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c5d816e847084c188b03fe396836d472', N'fa5cf17f6bd847af956c229ab3567852', null, null, N'新增', null, N'equipment/equipmentLevel/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c614a908cc534411a52e2458140e0693', N'6b20763937fc4d3fa7de595bd2f86875', null, null, N'修改', null, N'equipment/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c6516395208242f08ee612f6a9bb1661', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备型号', null, N'equipment/equipmentTypeNumber/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c69f9df6eaa141aab868567b041db2e9', N'9901', null, null, N'财务设备部门信息', null, N'finance/financeEquipmentDeptInfo/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c74797a885544342ab24b49acbec9e4e', N'f3c15bf456124ee1905696e474e5a1b2', null, null, N'查看部门', null, N'equipment/equipmentStopRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c7faa054997d4f4aab2dd3a0473a2320', N'ba988e6b6eaf482a9f24651d717917cb', null, null, N'移动端监视配置', null, N'navigatepro.do?method=appshowlist', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c87a5ded5d13491c9c8f2a7b01af7d45', N'd60fa9155c11491094ccc4b2f22bd36f', null, null, N'库存管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c89f3efd41274584906f0890a67e5df2', N'6175563fe13040f9905425212576a0da', null, null, N'设备制度管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c963df9afc1d46e4b632a4c9f8266491', N'e90bce8b678946dca131f855d6c532e8', null, null, N'Activiti案例', null, N'activiti/leavew/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, N'process/activiticase', N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c99293e0f5734a94bf58ecd861ff1b53', N'5f408a168e434f74b5b7203161849b01', null, null, N'查看部门', null, N'timeEfficiency/patrolRecordViolationRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'c99986551b4f4a6eba546528c4d4e597', N'fa5cf17f6bd847af956c229ab3567852', null, null, N'查看部门', null, N'equipment/equipmentLevel/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cbeafe2e3a124d32a5288ab3d947c1db', N'a65d7e6c9c014c8095820501a6215586', null, null, N'定时类型管理', null, N'schedule/scheduleJobType/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cc43fcfc859a4918b7837dc21c1c489d', N'5308297074f940bdb56bf7b5cd25c87d', null, null, N'消息报警级别查看', null, N'msg/viewAlarmlevel.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cc4763a0eaf5421fb995e0f530374424', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'盘点历史表', null, N'sparepart/stockCheck/showHistoryList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'8', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cc60f8b816f845c29e8bd880d8ca671e', N'6175563fe13040f9905425212576a0da', null, null, N'设备拨入管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'99', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cc81ad0b6fa347feac6f40ac183c1516', N'212bd407ac404b32afbe7885e492e4a3', null, null, N'新增', null, N'sparepart/warehouse/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cc93a2856279489595e86293a5920a31', N'1f9a9aeeb22f413ba710da87e33fc986', null, null, N'工作类型配置', null, N'administration/organizationClass/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cd19db8d0f4a4fd1b6526466833ce891', N'40c24596ff954e3fb67b703e2c42178a', null, null, N'新增', null, N'work/mpoint/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cd2af712e09a4cf594e77047a1a72012', N'1f2c1b654f5d4872a872d73de1e26df8', null, null, N'类型维护', null, N'maintenance/equipmentPlanType/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cdf8a181f4e4496ca0585c5428a5d7a4', N'9609d91ed7d14b7b8e89e92b96a3c633', null, null, N'查看部门', null, N'equipment/equipmentMaintain/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ce82a31e30a24f7eb385a7c74d7d9d22', N'04cc222437aa4df8bb4d609cda370eb2', null, null, N'查看部门', null, N'sparepart/stock/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cf5687670a59414eaeeb5c7f727e5c00', N'2ef90da016114578ae28f4a927980efe', null, null, N'报警类型配置', null, N'alarm/alarmMold/showist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cf9b2035813846e391a433b93ca7f93b', N'311f49be82d64a0e9f33695ab3e5d65d', null, null, N'设备价值增加', null, N'equipment/addIncreaseValue.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cfc7121e0e6b4fee86aa104e41e3086e', N'ee6a7d65c50f4645beb3ae846d45e582', null, null, N'事故分类', null, N'accident/accidentType/showAccidentTypeTree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'cff2e5b9d88940aab23941d450bbd39a', N'd38607ef9b02472388a333ceb982621d', null, null, N'设备评价管理', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd00e519577b34a458e70a7e7f567101d', N'00230aefbdc4455ea0fffca8904c0639', null, null, N'设备效能分析', null, N'efficiency/constitute/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd0524db3ceb44988bc9a7faa02cff8db', N'36411bf73cf34cdd84e30909f7d78ead', null, null, N'查看部门', null, N'maintenance/abnormity/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd098a0cb3faa4f9ca0ecfc78792fcd52', N'4bef25f247aa4838b397aa4c5cab9b6a', null, null, N'删除', null, N'valueEngineering/equipmentEvaluate/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd16539dbd9734d6393a53f589636638a', N'af118a74bff547a3a088427be912d8bd', null, null, N'删除', null, N'equipment/equipmentCodeRule/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd1a5b76608044ad1bf651ea44d1c01eb', N'c49f8034a44a4ee287f0dd36324ffd9d', null, null, N'设备技术档案', null, N'document/showDataTree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd2a1b7f93b8349a6a11bb775f320746e', N'-1', null, null, N'资料管理', null, N'', null, null, null, null, N'fa-superpowers', null, null, null, null, null, null, null, null, N'15', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd34047cfa77347769ed13959bf9a4a12', N'88db87613baf4418a4a1c42a0b65bc32', null, null, N'部门申购', null, N'sparepart/subscribe/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd35bbec545024394a62dd1e31d49db6b', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'考核维度配置', null, N'equipment/equipmentSpecification/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'7', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd3968b11b3764f848c41b638b2c101db', N'2d743c9d33914c8e8b865cb03c50b317', null, null, N'模块使用率统计', null, N'fwk/Menunumber/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd3ea8977c9fd4167b9a6396c7ac7c3fc', N'968d8301c50a4225ad7299057f77a486', null, null, N'异常上报', null, N'maintenance/abnormity/showList_new.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd428c926cb6c45b09bc0ff6806104b60', N'170d72f3ad4d4dc6a7fd60e52e8f515e', null, null, N'工艺调整库', null, N'process/libraryProcessAdjustment/showList4Tree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd469d344b8714232b52821b0fc1d400d', N'd35bbec545024394a62dd1e31d49db6b', null, null, N'查看部门', null, N'equipment/equipmentSpecification/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd55b19ed83fb4d4bbf59502200463cd8', N'36486dccbff948c08700684e46793c90', null, null, N'删除', null, N'timeEfficiency/patrolModel/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd6266d2f3bf64ea3a4d20dcaeec8d36a', N'98a2def40a4f4ff8b0667e828300e99d', null, null, N'运营成本分析', null, N'report/operatingCostAnalysis/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd6ac34698a744765825568eee0b538e3', N'3ac47c2edde244fda38aad5e6afa2881', null, null, N'缺陷工单', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd7118dde05d240d6ac78874469d742dd', N'9901', null, null, N'厂区管理', null, N'user/showCompany.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'99', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd772e74339dd4d1dadb2216b6ff89f21', N'e0d1bd2b49d747209f194b865914e1d6', null, null, N'新增重置库', null, N'maintenance/libraryAddResetProject/showList4TreeBiz.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd7ec79d9514c446c859b5580a0804942', N'0a3dc7f7919040f2872e61b2156af009', null, null, N'删除', null, N'user/extsystem/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd8187348d2fc4a1995c5135dacdef69f', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'物资领用', null, N'sparepart/outStockRecord/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd81e9fa757294289b35722f5926ea32c', N'82ba20cfc3d4421ca9fe71bc6dcb9c87', null, null, N'删除', null, N'equipment/equipmentAcceptanceApply/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd824262aa4ec4d399cc7c5ee40a63d87', N'c6516395208242f08ee612f6a9bb1661', null, null, N'查看部门', null, N'equipment/equipmentTypeNumber/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd83332cf58764502869cade69e234d69', N'b97e06a17e64481bae7bb0bdbd18b130', null, null, N'查看全部', null, N'equipment/equipmentBelong/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd89221a8e18e423f943a589737a88fde', N'f517c03375854ea38feb88f641552061', null, null, N'巡检定位', null, N'timeEfficiency/workerPosition/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'4', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd9acffba9b594b31a5682135678c1f23', N'd9acffba9b594b31a5682135678c1f23', null, null, N'运维公司运维统计', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd9b213165f854c4197f4924da6f82817', N'7f7d31d88658414caa1a0db1e70747cb', null, null, N'设备报废提醒', null, N'equipment/showScrapList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'd9d7ed43fb334ce3873c6b12283a3bd3', N'1fb187dc74d043b3861c01be7be4c78e', null, null, N'巡检楼层', null, N'timeEfficiency/patrolArea/showList4Floor.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'db00b1a21bf546aab21ad9c0d6ce7013', N'54ce95b20de7459ea0e77abca515e6d2', null, null, N'查看部门', null, N'sparepart/purchaseRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'db0310d8f01c4fd2a981224706b53380', N'0c042acc603a4f1aac876b9d2669f2ab', null, null, N'验收模型生成', null, N'achievement/acceptanceModelCreate/showManage.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'db058810190e407389bea7c9993a89e3', N'9cca0129abb84323a6994d60981722ae', null, null, N'采购形式', null, N'sparepart/purchaseMethods/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'db416c43f58a4549a9de4312ef3de8b7', N'b62e2bfaba5c4d2f853363af201bece8', null, null, N'查看部门', null, N'valueEngineering/equipmentDepreciation/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'dbfe7046be4742e4aa010c70544a5648', N'c87a5ded5d13491c9c8f2a7b01af7d45', null, null, N'退回登记', null, N'sparepart/returnStockRecord/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'dc719360cba3406e935b077c711c33e9', N'a2fd82344d064519bbc992d1dbbb3015', null, null, N'查看部门', null, N'base/mainPage/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'de11e520ea344d0883eec9d7138cb025', N'fd2737d3131c4974a3da03265802973c', null, null, N'外包单位管理', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'de3933bd7c3744f7a394317ae3407f9e', N'464965e3c6c147b4823b4611eaf63416', null, null, N'新增', null, N'sparepart/supplierClass/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'de7f033f07f14022ab9b482fc1cbe978', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备维修库浏览', null, N'maintenance/faultLibrary/showList4TreeView.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'6', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'dfb3cf9083dd4917a2295a68bce0a188', N'0a3dc7f7919040f2872e61b2156af009', null, null, N'修改', null, N'user/extsystem/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e01acf52fd4b435daa29afe7b4e25b7a', N'3ad55b78720d4329b2af759943bf90d0', null, null, N'删除', null, N'maintenance/removeDefect.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e05b2560b1e34d509a68b3e3313ed530', N'-1', null, null, N'数据可视化', null, N'', null, null, null, null, N'fa-eye', null, null, null, null, null, null, null, null, N'4', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e0afd471380a40c0a282dfb33a4e10ff', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e0d1bd2b49d747209f194b865914e1d6', N'2c0f6327ad1b41079831be8b431963c4', null, null, N'厂级基础库', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e11c7f168b174b2b8cb23ad4b8dfa95c', N'0a3dc7f7919040f2872e61b2156af009', null, null, N'查看全部', null, N'user/extsystem/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e13bd14427464225b701a7c1f3654336', N'-1', null, null, N'能效管理', null, N'', null, null, null, null, N'fa-battery-full', null, null, null, null, null, null, null, null, N'5', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e168ba92939647cda9cbe989251ccd4a', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'-1', N'menu,3131313', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e17b50c4417f41c38049d4052905e941', N'bf93d57b291440b988f88cdc4d48fc15', null, null, N'缺陷记录', null, N'maintenance/showDefectList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e2758f6ca8ea492bbe8a8109db54089d', N'e05b2560b1e34d509a68b3e3313ed530', null, null, N'大屏展示', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e31550fffe8c41e28bb279b7049c2782', N'bb7fcb43f9c3431fa774915770f6e5d2', null, null, N'调拨信息汇总', null, N'equipment/equipmentTransfersApplyCollect/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e36faedda4cd450d8296a90bd8ff2d7f', N'0d9bccde397f481abb366d14b20215ab', null, null, N'安全作业管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e38b3ac04da748f8bd4bba3da5ffe791', N'6f7e4e2a77834a7eaae90345461a5117', null, null, N'查看全部', null, N'equipment/EquipmentScrapApply/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e3a5f6cec2d94355876dc7e8220301d4', N'afff6d5874cf4c3281a5106cff9a5b01', null, null, N'生产报警', null, N'work/scadaAlarm/mpointAlarm.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e3b39d3bfb9f469cb4695497c4295fb9', N'6370b0a09f4e41a594209c24c76dcba6', null, null, N'查看部门', null, N'equipment/equipmentUseAge/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e422e46deab548d9ab15455ed38d3cf2', N'e0d1bd2b49d747209f194b865914e1d6', null, null, N'设备运行参数', null, N'equipment/equipmentParamSet/showList4TreeFactory.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'7', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e44f3578ce7c44869bdf033d140ede50', N'ee6a7d65c50f4645beb3ae846d45e582', null, null, N'事故管理', null, N'accident/accident/showlist.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e4a16d23cf8340468a0341d3fd273e56', N'c963df9afc1d46e4b632a4c9f8266491', null, null, N'查看部门', null, N'activiti/leavew/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e4e819cd15cd492586ce417e1c3bc57e', N'f3c15bf456124ee1905696e474e5a1b2', null, null, N'修改', null, N'equipment/equipmentStopRecord/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e4f4c58fd110484f87c9324b659a935f', N'b852bd16ec794222b6f250416b7a9e12', null, null, N'应急预案配置', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'9', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e51e3828488a4e37af7c8ea066d37e91', N'4fb60db825724c7f87a115794614e774', null, null, N'物品信息', null, N'sparepart/goods/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e557e9b7232b43be9a5ad43a159e41a1', N'6175563fe13040f9905425212576a0da', null, null, N'设备维保库', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'88', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e57a11937ddf47049df4bb9492a4006c', N'4f6f2a45e14a43b5ae298ea3367acf29', null, null, N'查看全部', null, N'timeEfficiency/patrolPlan/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e586112b94b44bd0a78b71fb9bc1cca0', N'edcb3b014f2347efac1ada835c5d947e', null, null, N'流程配置', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e591df4a1e014e4292be416f41a7a2ec', N'5f7c1539059f4752a117a01f01583060', null, null, N'查看全部', null, N'equipment/equipmentMaintain/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e5dd97e092364946b6209a15681411e4', N'1562a3c7f58140d9b0b45c73a9bbe713', null, null, N'分析配置', null, N'efficiency/constituteConfigure/showManage.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e5f36570516343ad8925e37dd97844f0', N'49b94cac6edf4a6b9bc1d5c76379431b', null, null, N'实习人员教育', null, N'safety/SafetyEducationTrainee/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e65848ef695c4a37bb821dd547aee6f5', N'80a9346edfb14643a092a027d22dec1c', null, null, N'删除', null, N'timeEfficiency/patrolPoint/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e6e12648bda14bc6b4f29a174f2268b6', N'bb6a24baf8294550869124abd6d96821', null, null, N'纳管企业清单', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e7090c50c7e64114aced3728fcfc515d', N'3d2302e3ebf647d8977c55c2ac3ffb66', null, null, N'水质化验工单', null, N'process/waterTest/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e7692c9c0e934deeb204bba13a157e07', N'4d4f49d6dff74f0b862eb0590de32652', null, null, N'删除', null, N'equipment/maintenancePlan/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e787250c6eed43b0bf0e1be7f381955e', N'd1a5b76608044ad1bf651ea44d1c01eb', null, null, N'删除', null, N'document/deleteData.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e83eafc213d3470e9b546269b93af076', N'20038371000c40bbbb3485ed900b2593', null, null, N'修改', null, N'equipment/equipmentClass/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e90bce8b678946dca131f855d6c532e8', N'edcb3b014f2347efac1ada835c5d947e', null, null, N'工艺流程', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e95d2102d5f949a290c1679f06569262', N'40c24596ff954e3fb67b703e2c42178a', null, null, N'查看全部', null, N'work/mpoint/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e98c8dafd0be4c149cdde712bcc01a98', N'c6516395208242f08ee612f6a9bb1661', null, null, N'修改', null, N'equipment/equipmentTypeNumber/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'e9aa37bf0fed42c9bac14c5666a4e488', N'd1a5b76608044ad1bf651ea44d1c01eb', null, null, N'新增', null, N'document/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'eadef1fa460d4b8fb6909845f73a174c', N'd8187348d2fc4a1995c5135dacdef69f', null, null, N'查看部门', null, N'sparepart/outStockRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'eb064c2dab024330bc55e13c6c32571c', N'9991bfba111d48ce9c26d490645dde9e', null, null, N'画面维护', null, N'process/dataVisualFrame/frameConfigure.do?menuType=largeScreen', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'eb9645dde7804008b098c5478009dd01', N'6370b0a09f4e41a594209c24c76dcba6', null, null, N'删除', null, N'equipment/equipmentUseAge/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'eca18a92c90c41afa20910a933b701cb', N'840cc5fa8c704657ba877efd5bb5f886', null, null, N'模型配置', null, N'achievement/acceptanceModel/showAcceptanceModelManage.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ed1f2eb3f2d2474089fedd7d97c1acd9', N'b7e0b73b44d449fe92b9e7807c9adc15', null, null, N'新增重置库(公司)', null, N'maintenance/newAndResetLibrary/showList4Tree.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ed675c5862774427b36db4e067c47b1d', N'-1', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'dadad', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'edc39ceac40545ad9ccb35c9daf6d6a5', N'f3c15bf456124ee1905696e474e5a1b2', null, null, N'删除', null, N'equipment/equipmentStopRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'edcb3b014f2347efac1ada835c5d947e', N'-1', null, null, N'流程管理', null, N'', null, null, null, null, N'fa-sitemap', null, null, null, null, null, null, null, null, N'91', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ee2015cf7b864e4fbfec99854de77162', N'2dca16c113834005893f9d7d23482588', null, null, N'报废查询', null, N'equipment/showScrapList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ee28e21d0b7c48a7830238217b66cf60', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'设备KPI', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'12', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ee6166f4d70244f6bdd346b41120c965', N'e2758f6ca8ea492bbe8a8109db54089d', null, null, N'大屏展示', null, N'plan/showPlanSwitch.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ee6a7d65c50f4645beb3ae846d45e582', N'6175563fe13040f9905425212576a0da', null, null, N'事故管理', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ee97799645ae48258a611b63ffcb9434', N'f7fe337d5d29480f8d475e6e0fd8c53e', null, null, N'修改', null, N'timeEfficiency/patrolPlan/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ee9fcebb1b6c4880b9413bd0d9af7493', N'5308297074f940bdb56bf7b5cd25c87d', null, null, N'消息报警级别选择', null, N'msg/alarmlevelForSelect.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ef48cee257f84bd5bc5e6fc1cfc238c1', N'80a9346edfb14643a092a027d22dec1c', null, null, N'新增', null, N'timeEfficiency/patrolPoint/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ef5766c93a6c4beaba37d8c3777502e8', N'886d2ae66b1440efb131cef95717d555', null, null, N'数据填报录入', null, N'report/rptDeptSet/showRptDayLogTree1.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ef74a06341ba4557afcc91ae4fd9ba50', N'bbe50d4ae43c4ca49a53fe30148b1066', null, null, N'新增', null, N'work/scadaPic/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'efbd4e8160044d0a8e02e446311febc2', N'9cca0129abb84323a6994d60981722ae', null, null, N'税率', null, N'sparepart/contractTaxRate/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'efc3aca8802a4871bb2b541750f9e284', N'36486dccbff948c08700684e46793c90', null, null, N'查看全部', null, N'timeEfficiency/patrolModel/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'efefb535df92457380540f02deb041b1', N'11cf8b766cd74b938295f34fc0051754', null, null, N'人员档案管理', null, N'safety/staffArchives/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'eff5e2d88af94fef9f45476288740939', N'c25904da6a06457f8df98012a5364f96', null, null, N'设备过保查询', null, N'equipment/showOverdueList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f0717c53777e447ea359179957bd9498', N'c89f3efd41274584906f0890a67e5df2', null, null, N'设备管理制度', null, N'document/showManageDataTree.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f07312a9aada4547ac986a3f5249144d', N'f12089505a904215aef43f145c9dba2c', null, null, N'报表展示', null, N'report/customReport/manageView.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f0e939c2a7f54e519ee457c85c97eab0', N'4e5fe11879054404a53fd2265a14ae3a', null, null, N'新增', null, N'timeEfficiency/patrolRecord/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f12089505a904215aef43f145c9dba2c', N'7861bdd7939547a1ad60e0b9fc17b5ee', null, null, N'设备运行报表', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'12', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f12e20e36ff246faa26c7be425c9b1c9', N'6175563fe13040f9905425212576a0da', null, null, N'设备运行参数', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'16', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f1c773fe6c1141f0be1391d228751400', N'9ae36f570c3c42c88d8a0a742028472a', null, null, N'删除', null, N'info/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f2324c2b2411498ebcd0f74247b4ffc4', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f2cb159c98d74202adb706465dca5a7c', N'f517c03375854ea38feb88f641552061', null, null, N'设备巡检记录', null, N'timeEfficiency/patrolRecord/showList_Equipment.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f30bffa2926947649eca800c7e722612', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'工艺位置', null, N'user/processSection/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, N'produce/workshop-management', N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f316e7d9060a484a97a71b8a1601691c', N'89dc2f184cbb44e98c019775b04a6b30', null, null, N'查看全部', null, N'maintenance/faultLibrary/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f32f7f033de94886ab70b55c66d98784', N'1dd8c6bd71c74eb4bc2fbb6722d9c1b8', null, null, N'已办事项', null, N'activiti/workflow/donetaskList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f36252d28f804c4c81b8e9f492e406ae', N'8dcc788ded394af9b59a2d2f3f081845', null, null, N'删除', null, N'sparepart/stockCheck/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f36d4201ce4e40ec80cd309052f47caa', N'2e4e28c52a9b4558afc02585f82a8ac6', null, null, N'查看部门', null, N'sparepart/outStockRecord/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f3ead4a71df24345800ffc0609315dbd', N'7b7cce355fcf4653b9ea536ff3aeb88e', null, null, N'设备巡检计划', null, N'timeEfficiency/patrolPlan/showList_Equipment.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f40e02240f7b44da852db6521848f957', N'af118a74bff547a3a088427be912d8bd', null, null, N'查看部门', null, N'equipment/equipmentCodeRule/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f470c0a5c07948528d9ddc1905732051', N'2ef90da016114578ae28f4a927980efe', null, null, N'报警点配置', null, N'alarm/alarmPoint/showist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'7', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f497c64f409c42029bca3ab3a85dcc16', N'598d7c675e2c4db7a1c6494de211d6e0', null, null, N'大屏测试视频', null, N'work/camera/OneCameraForDP.do?name=3楼', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'3', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f4c63ea4bb314cfabc01b75acfcb893b', N'0c35b5a46a2940d1b71ad2a9a401b021', null, null, N'修改', null, N'equipment/EquipmentSaleApply/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f4fed3250abe4b0f9ebdf0947d558d50', N'0705e3be74c549759405a1e7367dab3e', null, null, N'巡检人员打卡', null, N'timeEfficiency/clockinRecord/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f5075d9afbec4d9d8805f422530b110d', N'ee6a7d65c50f4645beb3ae846d45e582', null, null, N'事故浏览', null, N'accident/accident/browseList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f517c03375854ea38feb88f641552061', N'612c9f4d641341288cfb248de5f06ac3', null, null, N'巡检记录', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f550577c41584c6cac3a06ee62a04b64', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备库定额等级', null, N'maintenance/libraryQuotaLevel/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'12', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f63e1ad675634c8fa9d37021c93d107c', N'a65d7e6c9c014c8095820501a6215586', null, null, N'定时任务管理', null, N'schedule/scheduleJob/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f6a3d7af555e433e9a547569ddb5c771', N'bbe50d4ae43c4ca49a53fe30148b1066', null, null, N'查看全部', null, N'work/scadaPic/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f6af881355694ecf8b11c4825ffa6d26', null, null, null, N'维护服务', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f73cb9d51b2a4885904224da4b7f955b', N'161da4887d7a42468c96b46ac1b85b84', null, null, N'总览配置', null, N'efficiency/efficiencyOverviewConfigure/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f7429e3278614d91bd4d3fb7b3a9e00e', N'20038371000c40bbbb3485ed900b2593', null, null, N'新增', null, N'equipment/equipmentClass/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f765aa27ec7149fe8a4ee97afa2626bb', N'9ee4e517487448b097c809bd7c66db35', null, null, N'删除', null, N'sparepart/supplier/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f77f3ef7723d42f093be97757b8ad226', N'ffde2acbc2aa4d5ea423342bd510e57f', null, null, N'自定义报表展示', null, N'report/customReport/manageView.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'禁用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f79ed6ae19644f1287d43fceaf335bd9', N'0c35b5a46a2940d1b71ad2a9a401b021', null, null, N'查看全部', null, N'equipment/EquipmentSaleApply/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f7fe337d5d29480f8d475e6e0fd8c53e', N'26c59bdfca8449588bbd38ab60b4ea1a', null, null, N'运行巡检计划', null, N'timeEfficiency/patrolPlan/showlist.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f87b2576a92243d39746d66c49cf0a48', N'82ba20cfc3d4421ca9fe71bc6dcb9c87', null, null, N'查看部门', null, N'equipment/equipmentAcceptanceApply/showlist.do?scope=dept', null, null, null, null, null, null, null, null, null, null, null, null, null, N'3', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f90c9ac7ec2e4a71ad63a38baf3ca63f', N'427a84637b354cefb1d077971495744b', null, null, N'委外工单', null, N'workorder/workorderDetail/showMaintainListOut.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f949cd1e883d4a9d9863e20bc28ad178', N'9609d91ed7d14b7b8e89e92b96a3c633', null, null, N'修改', null, N'equipment/equipmentMaintain/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'f97a4a9ffb6b440bb739067f7a0f0239', N'6379eaa71f6e451d81f69226fcbf7c1a', null, null, N'接班', null, N'work/scheduling/showSucceed.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fa5cf17f6bd847af956c229ab3567852', N'0fe0337f4b3748a7858f3dd6e4df7c4e', null, null, N'设备等级', null, N'equipment/equipmentLevel/showList.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fab287ee9eef4ee4953c2bb37cc856f6', N'598d7c675e2c4db7a1c6494de211d6e0', null, null, N'视频', null, N'work/camera/showVideos.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fac4bb088d764a74a09dc4cdc5921047', N'd38607ef9b02472388a333ceb982621d', null, null, N'故障缺陷分析', null, N'', null, null, null, null, null, null, null, null, null, null, null, null, null, N'6', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fae41c1c80e04279b30325387e4a0032', N'a2fd82344d064519bbc992d1dbbb3015', null, null, N'修改', null, N'base/mainPage/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fb359e3954bd47f2879d414ead28b66a', N'36411bf73cf34cdd84e30909f7d78ead', null, null, N'新增', null, N'maintenance/abnormity/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fb9b0f98ba8c4ab494d7ba5b852d98e5', N'de11e520ea344d0883eec9d7138cb025', null, null, N'外包单位资质', null, N'sparepart/qualificationType_copy/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'5', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fcf2b3567c1b4b62b3773707528fca13', N'a2fd82344d064519bbc992d1dbbb3015', null, null, N'新增', null, N'base/mainPage/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fd03f99a6f754dd89806eba131c1d034', N'e0d1bd2b49d747209f194b865914e1d6', null, null, N'设备维修库', null, N'maintenance/libraryFaultBloc/showList4TreeBiz.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fd3e1678b98f4c0b8d43c7e6d18c5216', N'2d43030c17234666873d1462b6f2071c', null, null, N'删除', null, N'sparepart/inStockRecord/delete.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'1', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fd72ed2f16e64ad393999f2ef63074c3', N'd9acffba9b594b31a5682135678c1f23', null, null, N'客户公司运维统计', null, N'maintenance/showBizStatisticalChart.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fdb6de1ab07f433693d3257e7b692de0', N'742cb94b264347d09faf4a46f595546e', null, null, N'新增', null, N'document/add.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fdd022319da242b590315fedf8f2f43a', N'9ee4e517487448b097c809bd7c66db35', null, null, N'查看全部', null, N'sparepart/supplier/showlist.do?scope=all', null, null, null, null, null, null, null, null, null, null, null, null, null, N'4', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'fef6b9618ff949cc972e1ca2d1030738', N'adae2d280cb247bd9325548b2a4eb60e', null, null, N'指标填报工单', null, N'work/productionIndexWorkOrder/showList.do', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'2', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ff10e3dc7d2d4ef499dc664bfc390efb', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ff74a468c0fc4b1fa4d4bc85b036e390', N'b97e06a17e64481bae7bb0bdbd18b130', null, null, N'修改', null, N'equipment/equipmentBelong/edit.do', null, null, null, null, null, null, null, null, null, null, null, null, null, N'2', null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ffc02f67d3034453b3d293258eaddcbc', N'311f49be82d64a0e9f33695ab3e5d65d', null, null, N'上传设备资料', null, N'equipment/addEquipmentFile.do', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N'启用', N'func', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ffc1ac10bbd044f2803fb298fb4b9451', N'ac35bc7bd58a4dfab74fabadf64eb029', null, null, N'周期常规工单', null, N'process/routineWork/showList.do?typestr=run', null, null, null, null, null, null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO
INSERT INTO [dbo].[tb_menuitem] ([id], [pid], [PowerID], [caption], [name], [description], [location], [target], [onclick], [onmouseover], [onmouseout], [image], [altImage], [tooltip], [roles], [page], [width], [height], [forward], [action], [morder], [lvl], [active], [type], [mainpage], [count], [engkey]) VALUES (N'ffde2acbc2aa4d5ea423342bd510e57f', N'a65bc2df01cc4c2f984b40b284396f87', null, null, N'报表查阅', null, N'', null, null, null, null, N'', null, null, null, null, null, null, null, null, N'0', null, N'启用', N'menu', null, null, null)
GO
GO

-- ----------------------------
-- Table structure for TB_MESSAGE
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE]
GO
CREATE TABLE [dbo].[TB_MESSAGE] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[suserid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sdt] datetime NULL ,
[url] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[readflag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[backid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[typeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plansdt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plansdate] datetime NULL ,
[sendflag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[delflag] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[alerturl] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[issms] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sendview] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[redflag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MESSAGE', 
'COLUMN', N'sendview')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'0发送者删除（从列表删除，数据库没删）1发送者正常查看'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MESSAGE'
, @level2type = 'COLUMN', @level2name = N'sendview'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'0发送者删除（从列表删除，数据库没删）1发送者正常查看'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MESSAGE'
, @level2type = 'COLUMN', @level2name = N'sendview'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MESSAGE', 
'COLUMN', N'redflag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'红旗重要'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MESSAGE'
, @level2type = 'COLUMN', @level2name = N'redflag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'红旗重要'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MESSAGE'
, @level2type = 'COLUMN', @level2name = N'redflag'
GO

-- ----------------------------
-- Records of TB_MESSAGE
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_FILE
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_FILE]
GO
CREATE TABLE [dbo].[TB_MESSAGE_FILE] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_FILE
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_RECV
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_RECV]
GO
CREATE TABLE [dbo].[TB_MESSAGE_RECV] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[readtime] datetime NULL ,
[delflag] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[redflag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MESSAGE_RECV', 
'COLUMN', N'redflag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'红旗标识重要，0无，1有'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MESSAGE_RECV'
, @level2type = 'COLUMN', @level2name = N'redflag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'红旗标识重要，0无，1有'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MESSAGE_RECV'
, @level2type = 'COLUMN', @level2name = N'redflag'
GO

-- ----------------------------
-- Records of TB_MESSAGE_RECV
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_RECV_RU
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_RECV_RU]
GO
CREATE TABLE [dbo].[TB_MESSAGE_RECV_RU] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[readtime] datetime NULL ,
[delflag] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[redflag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_RECV_RU
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_RU
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_RU]
GO
CREATE TABLE [dbo].[TB_MESSAGE_RU] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[suserid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sdt] datetime NULL ,
[url] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[readflag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[backid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[typeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plansdt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plansdate] datetime NULL ,
[sendflag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[delflag] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[alerturl] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[issms] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sendview] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[redflag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_RU
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_TYPE
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_TYPE]
GO
CREATE TABLE [dbo].[TB_MESSAGE_TYPE] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sendway] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_TYPE
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_TYPE_alarmlevel
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_TYPE_alarmlevel]
GO
CREATE TABLE [dbo].[TB_MESSAGE_TYPE_alarmlevel] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[alarm_level] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[msgsend] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[smssend] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sendway] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[state] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[msgrole] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_TYPE_alarmlevel
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_TYPE_getpeople
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_TYPE_getpeople]
GO
CREATE TABLE [dbo].[TB_MESSAGE_TYPE_getpeople] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[peopleid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_TYPE_getpeople
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_TYPE_msguser
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_TYPE_msguser]
GO
CREATE TABLE [dbo].[TB_MESSAGE_TYPE_msguser] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_TYPE_msguser
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_TYPE_role
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_TYPE_role]
GO
CREATE TABLE [dbo].[TB_MESSAGE_TYPE_role] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[roleid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_TYPE_role
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MESSAGE_TYPE_smsuser
-- ----------------------------
DROP TABLE [dbo].[TB_MESSAGE_TYPE_smsuser]
GO
CREATE TABLE [dbo].[TB_MESSAGE_TYPE_smsuser] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_MESSAGE_TYPE_smsuser
-- ----------------------------

-- ----------------------------
-- Table structure for tb_mobile_validation
-- ----------------------------
DROP TABLE [dbo].[tb_mobile_validation]
GO
CREATE TABLE [dbo].[tb_mobile_validation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[mobile] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[verificationcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[senddate] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_mobile_validation', 
'COLUMN', N'verificationcode')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验证码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_mobile_validation'
, @level2type = 'COLUMN', @level2name = N'verificationcode'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验证码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_mobile_validation'
, @level2type = 'COLUMN', @level2name = N'verificationcode'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_mobile_validation', 
'COLUMN', N'senddate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发送时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_mobile_validation'
, @level2type = 'COLUMN', @level2name = N'senddate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发送时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_mobile_validation'
, @level2type = 'COLUMN', @level2name = N'senddate'
GO

-- ----------------------------
-- Records of tb_mobile_validation
-- ----------------------------

-- ----------------------------
-- Table structure for tb_model_cal_log
-- ----------------------------
DROP TABLE [dbo].[tb_model_cal_log]
GO
CREATE TABLE [dbo].[tb_model_cal_log] (
[id] bigint NOT NULL IDENTITY(1,1) ,
[insdt] datetime NULL ,
[desc_info] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[model_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[model_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[method_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[model_planname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[publish_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[execute_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[run_mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[if_run] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_model_cal_log
-- ----------------------------
SET IDENTITY_INSERT [dbo].[tb_model_cal_log] ON
GO
SET IDENTITY_INSERT [dbo].[tb_model_cal_log] OFF
GO

-- ----------------------------
-- Table structure for tb_model_node_job
-- ----------------------------
DROP TABLE [dbo].[tb_model_node_job]
GO
CREATE TABLE [dbo].[tb_model_node_job] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[resource_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[carbon_copy] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_model_node_job', 
'COLUMN', N'resource_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程模板节点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_model_node_job'
, @level2type = 'COLUMN', @level2name = N'resource_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程模板节点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_model_node_job'
, @level2type = 'COLUMN', @level2name = N'resource_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_model_node_job', 
'COLUMN', N'job_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'职位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_model_node_job'
, @level2type = 'COLUMN', @level2name = N'job_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'职位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_model_node_job'
, @level2type = 'COLUMN', @level2name = N'job_id'
GO

-- ----------------------------
-- Records of tb_model_node_job
-- ----------------------------

-- ----------------------------
-- Table structure for tb_mp_JLYC_JD
-- ----------------------------
DROP TABLE [dbo].[tb_mp_JLYC_JD]
GO
CREATE TABLE [dbo].[tb_mp_JLYC_JD] (
[id] int NOT NULL ,
[parmname] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[measuredt] datetime NULL ,
[insdt] datetime NULL ,
[memo] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_mp_JLYC_JD', 
'COLUMN', N'measuredt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'4个小时  每10分钟一条数据  每次24条'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_mp_JLYC_JD'
, @level2type = 'COLUMN', @level2name = N'measuredt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'4个小时  每10分钟一条数据  每次24条'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_mp_JLYC_JD'
, @level2type = 'COLUMN', @level2name = N'measuredt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_mp_JLYC_JD', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'24条数据用一样的'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_mp_JLYC_JD'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'24条数据用一样的'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_mp_JLYC_JD'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO

-- ----------------------------
-- Records of tb_mp_JLYC_JD
-- ----------------------------

-- ----------------------------
-- Table structure for TB_MPoint_Interface
-- ----------------------------
DROP TABLE [dbo].[TB_MPoint_Interface]
GO
CREATE TABLE [dbo].[TB_MPoint_Interface] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] date NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(150) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_code] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[parameter] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[interface_url] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[interface_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[state] bit NULL ,
[memo] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'点位和接口参数对应表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'点位和接口参数对应表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'mpoint_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'测量点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'mpoint_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'测量点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'mpoint_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'parameter')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接口参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'parameter'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接口参数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'parameter'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'interface_url')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接口地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'interface_url'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接口地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'interface_url'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'interface_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接口类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'interface_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接口类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'interface_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'state')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'state'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'state'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'memo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'memo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'memo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_MPoint_Interface', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上级id，用于层级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上级id，用于层级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_MPoint_Interface'
, @level2type = 'COLUMN', @level2name = N'pid'
GO

-- ----------------------------
-- Records of TB_MPoint_Interface
-- ----------------------------

-- ----------------------------
-- Table structure for tb_mqtt_config
-- ----------------------------
DROP TABLE [dbo].[tb_mqtt_config]
GO
CREATE TABLE [dbo].[tb_mqtt_config] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[client_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[client_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[broker_ip] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tomcat_port] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[username] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[password] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_mqtt_config
-- ----------------------------

-- ----------------------------
-- Table structure for tb_mqtt_config_topic
-- ----------------------------
DROP TABLE [dbo].[tb_mqtt_config_topic]
GO
CREATE TABLE [dbo].[tb_mqtt_config_topic] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[topic] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_mqtt_config_topic
-- ----------------------------

-- ----------------------------
-- Table structure for tb_overhaul_statistics
-- ----------------------------
DROP TABLE [dbo].[tb_overhaul_statistics]
GO
CREATE TABLE [dbo].[tb_overhaul_statistics] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[overhaul_id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sub_order_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[award_punishment_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[worker_num] int NULL ,
[self_repair_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[material_cost] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[total_overhaul_cost] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[out_repair_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_self_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_material_cost] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_out_hour_cost] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_total_cost] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[is_normal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[difference_des] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[cheak_point] decimal(30) NULL ,
[quality_cheak_weight] tinyint NULL ,
[satisfaction_point] decimal(30) NULL ,
[coordination_weight] tinyint NULL ,
[total_point] decimal(30) NULL ,
[pro_total_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[level] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[total_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[description] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[total_quota_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[sub_actual_hours] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NULL ,
[update_time] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_overhaul_statistics
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Overhaul_UploadFile
-- ----------------------------
DROP TABLE [dbo].[TB_Overhaul_UploadFile]
GO
CREATE TABLE [dbo].[TB_Overhaul_UploadFile] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Overhaul_UploadFile
-- ----------------------------

-- ----------------------------
-- Table structure for tb_PersonalMpCollection
-- ----------------------------
DROP TABLE [dbo].[tb_PersonalMpCollection]
GO
CREATE TABLE [dbo].[tb_PersonalMpCollection] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpids] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_PersonalMpCollection
-- ----------------------------

-- ----------------------------
-- Table structure for tb_plan
-- ----------------------------
DROP TABLE [dbo].[tb_plan]
GO
CREATE TABLE [dbo].[tb_plan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[PowerID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[caption] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[description] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[location] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[target] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[onclick] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[onmouseover] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[onmouseout] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[image] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[altImage] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tooltip] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[roles] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[page] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[layout_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[lvl] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[mainpage] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[count] int NULL ,
[forward] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[action] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_plan
-- ----------------------------

-- ----------------------------
-- Table structure for tb_plan_layout
-- ----------------------------
DROP TABLE [dbo].[tb_plan_layout]
GO
CREATE TABLE [dbo].[tb_plan_layout] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[jsp_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[layout_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[data_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[camera_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_plan_layout
-- ----------------------------

-- ----------------------------
-- Table structure for tb_plan_record_abnormity
-- ----------------------------
DROP TABLE [dbo].[tb_plan_record_abnormity]
GO
CREATE TABLE [dbo].[tb_plan_record_abnormity] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[father_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[son_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_plan_record_abnormity
-- ----------------------------

-- ----------------------------
-- Table structure for TB_PRO_ALARM
-- ----------------------------
DROP TABLE [dbo].[TB_PRO_ALARM]
GO
CREATE TABLE [dbo].[TB_PRO_ALARM] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('N') ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[parmvalue] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[alarmlvl] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarmtime] datetime NOT NULL ,
[alarmtype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarmvalue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[recovervalue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[recovertime] datetime NULL ,
[confirmerid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[confmtime] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL DEFAULT (getdate()) ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL DEFAULT ('system') ,
[msgtype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[areaid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equcardid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workOrderId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[point_code] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_time] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_PRO_ALARM
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_barChart
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_barChart]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_barChart] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[colors] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_text] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[title_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisData] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisLineShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisLineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisaxisTickShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisSplitLineShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[dataZoomSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisAxisLabelShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisAxisLabelColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisAxisLabelFontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xSubstring] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_text_fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[direction] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisSplitLineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisSplitLineType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xaxisLabel_margin] float(53) NULL ,
[xaxisLabe_rotate] float(53) NULL ,
[grid_top] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grid_left] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grid_right] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grid_bottom] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tooltipShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_barChart
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_barChart_series
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_barChart_series]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_barChart_series] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[yAxisIndex] int NULL ,
[stackSt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[fixedValue] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[maxShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[minShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[avgShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[isHistoryData] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[timeRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[markerLine] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[barWidth] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[borderRadius] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bkStyleColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bkStyleborderRadius] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[labelPosition] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[labelPositionUnit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[labelPositionColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[labelPositionFontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[barGap] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[selectSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[urlData] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[d3st] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[d3_colors_1] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[d3_colors_2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[d3_colors_3] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[d3_colors_4] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[d3_colors_5] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[symbolOffset_1] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[gradient_start] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[gradient_end] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_barChart_series
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_barChart_yAxis
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_barChart_yAxis]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_barChart_yAxis] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lineShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[lineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisTickShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[scale] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLineShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[position] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[max] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[min] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabelShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabelColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabelFontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLineType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_barChart_yAxis
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_camera
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_camera]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_camera] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cameraid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mq_theme] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_camera
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_content
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_content]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_content] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[postX] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[postY] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[isFull] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[refreshTime] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[z_index] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[src] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[isTab] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[tabType] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[isVoiceKnow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[voiceText] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[voiceMethod] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[isFixed] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[roundTimeContent] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[deputy_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[opacitySt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_content
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_date
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_date]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_date] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[types] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[styleType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text_align] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_date
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_date_select
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_date_select]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_date_select] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_date_select
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_form
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_form]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_form] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insertRow] int NULL ,
[insertColumn] int NULL ,
[columns] int NULL ,
[rows] int NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[frameId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[textContent] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[textAlign] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[verticalAlign] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[border] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[padding] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[borderRadius] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rate] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[timeFrame] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[urlData] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[numTail] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[timeSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[timeStNum] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[deputy_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sqlSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[sqlContent] nvarchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[rowSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_form
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_frame
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_frame]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_frame] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[menuType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[rolePeople] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_frame
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_frame_container
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_frame_container]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_frame_container] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insertRow] int NULL ,
[insertColumn] int NULL ,
[columns] int NULL ,
[rows] int NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[frameId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_frame_container
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_frame_file
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_frame_file]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_frame_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_frame_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_gaugeChart
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_gaugeChart]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_gaugeChart] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[max] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[min] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fixedValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[titleSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[title_text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_x_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_y_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dataSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[data_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[data_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[data_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[data_x_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[data_y_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startAngle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[endAngle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[radius] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pointerSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[pointer_length] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pointer_width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pointer_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLineSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLine_length] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLine_distance] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLine_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLine_width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLineSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLine_width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLine_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisTickSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[axisTick_splitNumber] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisTick_distance] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisTick_length] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisTick_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisTick_width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabelSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabel_distance] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabel_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabel_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabel_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_gaugeChart
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_lineChart
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_lineChart]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_lineChart] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[colors] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_text] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[title_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisData] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisLineShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisLineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisaxisTickShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisSplitLineShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[dataZoomSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisAxisLabelShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisAxisLabelColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisAxisLabelFontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_text_fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xSubstring] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisSplitLineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xAxisSplitLineType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grid_top] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grid_left] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grid_right] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grid_bottom] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_lineChart
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_lineChart_series
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_lineChart_series]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_lineChart_series] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[yAxisIndex] int NULL ,
[stackSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[fixedValue] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[maxShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[minShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[avgShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[areaStyle] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[symbolSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[isHistoryData] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[timeRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[markerLine] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[selectSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[urlData] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[step] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[lineWidth] float(53) NULL ,
[isNowTimeLineSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_lineChart_series
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_lineChart_yAxis
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_lineChart_yAxis]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_lineChart_yAxis] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lineShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[lineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisTickShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[scale] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLineShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[position] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[max] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[min] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabelShow] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabelColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLabelFontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLineType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_lineChart_yAxis
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_mPoint
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_mPoint]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_mPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] int NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] int NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[show_style] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_switch] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_switch] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_mPoint
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_mPoint_warehouse
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_mPoint_warehouse]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_mPoint_warehouse] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] int NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] int NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_mPoint_warehouse
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_mpView
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_mpView]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_mpView] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[jsValue] float(53) NULL ,
[jsMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[textShow] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text_align] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[jsMpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fileSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[opacity] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[out_value_type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[auto_bk_st] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[auto_bk_text_st] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[auto_bk_text_wz] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[auto_bk_st_maxValue] float(53) NULL ,
[auto_bk_text_type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[auto_bk_background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_mpView
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_percentChart
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_percentChart]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_percentChart] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_left_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_top_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unittitle_text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unittitle_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unittitle_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unittitle_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitIsNeedBr] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[clockwise] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[radius] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[scoreRingWidth] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[scoreRingColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bgRingWidth] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bgRingColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bgRingPosition] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[angleAxisMax] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startAngle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[urlData] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[numTail] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rate] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_percentChart
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_picture_file
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_picture_file]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_picture_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_picture_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_pieChart
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_pieChart]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_pieChart] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[colors] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_text] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[title_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_position_x] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_position_y] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subtitle_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lable_show] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lable_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lable_fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lable_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lable_fontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[radius] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[borderRadius] int NULL ,
[url] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_pieChart
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_pieChart_series
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_pieChart_series]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_pieChart_series] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[fixedValue] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rate] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[numTail] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_pieChart_series
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_polarCoordinates
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_polarCoordinates]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_polarCoordinates] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[colors] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[max] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[radius] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[backgroundSt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[backgroundColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[roundCapSt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[barWidth] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_polarCoordinates
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_polarCoordinates_series
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_polarCoordinates_series]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_polarCoordinates_series] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fixedValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_polarCoordinates_series
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_progressBarChart
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_progressBarChart]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_progressBarChart] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dataColors] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dataRadius] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dataBarWidth] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text_fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text_fontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bkText] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bkMpText] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bkcolors] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bkRadius] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bkBarWidth] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_progressBarChart
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_radarChart
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_radarChart]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_radarChart] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[colors] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_text] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[title_color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_font_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[legend_position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[radius] int NULL ,
[splitNumber] int NULL ,
[shape] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisNameFormatter] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisNameColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitAreaColors] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[axisLineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[splitLineColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisNameFont_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisNameFont_weight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_radarChart
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_radarChart_axis
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_radarChart_axis]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_radarChart_axis] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[max] int NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_radarChart_axis
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_radarChart_series
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_radarChart_series]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_radarChart_series] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[fixedValue] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[areaStyle] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[areaStyleColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_radarChart_series
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_SuspensionFrame
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_SuspensionFrame]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_SuspensionFrame] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[textContent] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] int NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] int NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[textHeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[textAlign] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[display] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_SuspensionFrame
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_tab
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_tab]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_tab] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ckbackground] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[ckfontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ckfontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ckfontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cktext_align] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ckstyle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unckbackground] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unckfontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unckfontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unckfontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[uncktext_align] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unckstyle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[firstCk] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[radio_background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[radio_ck_background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[radio_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[radio_ck_size] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_tab
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_text
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_text]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_text] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[textContent] nvarchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] int NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] int NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[clickName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[clickParameter] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[textHeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[textAlign] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rate] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[urlData] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[numTail] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[chartMpids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[roundtimeId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[urlString] varchar(200) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_text
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_text_warehouse
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_text_warehouse]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_text_warehouse] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] int NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] int NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_text_warehouse
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_dataVisual_weather
-- ----------------------------
DROP TABLE [dbo].[tb_pro_dataVisual_weather]
GO
CREATE TABLE [dbo].[tb_pro_dataVisual_weather] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[background] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[styleType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text_align] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_dataVisual_weather
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_decisionExpertBase
-- ----------------------------
DROP TABLE [dbo].[tb_pro_decisionExpertBase]
GO
CREATE TABLE [dbo].[tb_pro_decisionExpertBase] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mainRole] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_decisionExpertBase
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_decisionExpertBase_text
-- ----------------------------
DROP TABLE [dbo].[tb_pro_decisionExpertBase_text]
GO
CREATE TABLE [dbo].[tb_pro_decisionExpertBase_text] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[text] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_decisionExpertBase_text
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_productionIndexData
-- ----------------------------
DROP TABLE [dbo].[tb_pro_productionIndexData]
GO
CREATE TABLE [dbo].[tb_pro_productionIndexData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[configureId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[planDate] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_productionIndexData
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_productionIndexPlanNameConfigure
-- ----------------------------
DROP TABLE [dbo].[tb_pro_productionIndexPlanNameConfigure]
GO
CREATE TABLE [dbo].[tb_pro_productionIndexPlanNameConfigure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid_plan] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[day_value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_pro_productionIndexPlanNameConfigure', 
'COLUMN', N'day_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'日值类型 （0月值  1均分）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_pro_productionIndexPlanNameConfigure'
, @level2type = 'COLUMN', @level2name = N'day_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'日值类型 （0月值  1均分）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_pro_productionIndexPlanNameConfigure'
, @level2type = 'COLUMN', @level2name = N'day_value'
GO

-- ----------------------------
-- Records of tb_pro_productionIndexPlanNameConfigure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_productionIndexPlanNameData
-- ----------------------------
DROP TABLE [dbo].[tb_pro_productionIndexPlanNameData]
GO
CREATE TABLE [dbo].[tb_pro_productionIndexPlanNameData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[configureId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[planDate] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_productionIndexPlanNameData
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_productionIndexPlanNameDataHis
-- ----------------------------
DROP TABLE [dbo].[tb_pro_productionIndexPlanNameDataHis]
GO
CREATE TABLE [dbo].[tb_pro_productionIndexPlanNameDataHis] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_productionIndexPlanNameDataHis
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_productionIndexWorkOrder
-- ----------------------------
DROP TABLE [dbo].[tb_pro_productionIndexWorkOrder]
GO
CREATE TABLE [dbo].[tb_pro_productionIndexWorkOrder] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[writePerson] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dataContent] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[writeDate] datetime NULL ,
[submitDate] datetime NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_productionIndexWorkOrder
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_testIndexManage
-- ----------------------------
DROP TABLE [dbo].[tb_pro_testIndexManage]
GO
CREATE TABLE [dbo].[tb_pro_testIndexManage] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updt] datetime NULL ,
[upuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] int NULL ,
[cycleType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[method] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[instrument] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[medicament] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[matters] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[referenceRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_testIndexManage
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_testMethods
-- ----------------------------
DROP TABLE [dbo].[tb_pro_testMethods]
GO
CREATE TABLE [dbo].[tb_pro_testMethods] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[indexItem] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[steps] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[matters] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updt] datetime NULL ,
[upuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_testMethods
-- ----------------------------

-- ----------------------------
-- Table structure for tb_pro_testTask
-- ----------------------------
DROP TABLE [dbo].[tb_pro_testTask]
GO
CREATE TABLE [dbo].[tb_pro_testTask] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[planType] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[sender] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[senddt] datetime NULL ,
[receiver] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receivdt] datetime NULL ,
[reviewer] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reviewedt] datetime NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[testIndexManageId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[resultValue] float(53) NULL ,
[resultRemarks] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_pro_testTask
-- ----------------------------

-- ----------------------------
-- Table structure for TB_PRO_XSERVER
-- ----------------------------
DROP TABLE [dbo].[TB_PRO_XSERVER]
GO
CREATE TABLE [dbo].[TB_PRO_XSERVER] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ipaddress] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[loginname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[password] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[domain] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[typeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dbname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dbtype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[port] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[clsid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startup] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[driver] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lastdate] datetime NULL ,
[enddate] datetime NULL ,
[flag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[timespan] int NULL ,
[connection_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'ipaddress')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'服务器地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'ipaddress'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'服务器地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'ipaddress'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'loginname')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'loginname'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'loginname'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'password')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'密码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'password'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'密码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'password'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'typeid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'服务器类型（数据库/OPC/ModBus）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'typeid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'服务器类型（数据库/OPC/ModBus）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'typeid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'dbname')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据库名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'dbname'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据库名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'dbname'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'dbtype')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据库类型（MSSQL/mongoDB）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'dbtype'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据库类型（MSSQL/mongoDB）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'dbtype'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'port')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'端口'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'port'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'端口'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'port'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'bizid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属单位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'bizid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属单位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'bizid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'启用状态（启用/禁用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'启用状态（启用/禁用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'lastdate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'最近成功连接时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'lastdate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'最近成功连接时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'lastdate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'flag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否定时扫描连接（是/否）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'flag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否定时扫描连接（是/否）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'flag'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'timespan')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'定时扫描时间间隔（分钟）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'timespan'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'定时扫描时间间隔（分钟）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'timespan'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_PRO_XSERVER', 
'COLUMN', N'connection_status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'连接状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'connection_status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'连接状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_PRO_XSERVER'
, @level2type = 'COLUMN', @level2name = N'connection_status'
GO

-- ----------------------------
-- Records of TB_PRO_XSERVER
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_adjustment
-- ----------------------------
DROP TABLE [dbo].[tb_process_adjustment]
GO
CREATE TABLE [dbo].[tb_process_adjustment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[job_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_analysis] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[target_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[target_user_ids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluate_score] money NULL ,
[evaluate_weight] money NULL ,
[coordination_score] money NULL ,
[coordination_weight] money NULL ,
[total_score] money NULL ,
[base_hours] money NULL ,
[working_hours] money NULL ,
[check_explain] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_adjustment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_adjustment_content
-- ----------------------------
DROP TABLE [dbo].[tb_process_adjustment_content]
GO
CREATE TABLE [dbo].[tb_process_adjustment_content] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[library_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormal_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pro_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pro_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pro_measures] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_rated_time] money NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联主表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联主表id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'library_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺调整库id（如手动添加则无库id）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'library_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺调整库id（如手动添加则无库id）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'library_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'abnormal_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'abnormal_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'abnormal_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'abnormal_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'异常名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'abnormal_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'异常名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'abnormal_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'pro_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺调整编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'pro_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺调整编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'pro_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'pro_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺调整名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'pro_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺调整名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'pro_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'pro_measures')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺调整措施'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'pro_measures'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺调整措施'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'pro_measures'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'receive_rated_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'定额工时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'receive_rated_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'定额工时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'receive_rated_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_adjustment_content', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_adjustment_content'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of tb_process_adjustment_content
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_adjustment_type
-- ----------------------------
DROP TABLE [dbo].[tb_process_adjustment_type]
GO
CREATE TABLE [dbo].[tb_process_adjustment_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[uptuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[uptdt] datetime NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_process_adjustment_type
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_equipment_adjustment
-- ----------------------------
DROP TABLE [dbo].[tb_process_equipment_adjustment]
GO
CREATE TABLE [dbo].[tb_process_equipment_adjustment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_user] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[apply_time] datetime NULL ,
[apply_content] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[feedback_user] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[feedback_time] datetime NULL ,
[feedback_content] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment', 
'COLUMN', N'apply_user')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请人Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'apply_user'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请人Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'apply_user'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment', 
'COLUMN', N'apply_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'apply_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'apply_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment', 
'COLUMN', N'apply_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'apply_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'apply_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment', 
'COLUMN', N'feedback_user')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'反馈人Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'feedback_user'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'反馈人Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'feedback_user'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment', 
'COLUMN', N'feedback_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'反馈时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'feedback_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'反馈时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'feedback_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment', 
'COLUMN', N'feedback_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'反馈内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'feedback_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'反馈内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'feedback_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment'
, @level2type = 'COLUMN', @level2name = N'status'
GO

-- ----------------------------
-- Records of tb_process_equipment_adjustment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_equipment_adjustment_detail
-- ----------------------------
DROP TABLE [dbo].[tb_process_equipment_adjustment_detail]
GO
CREATE TABLE [dbo].[tb_process_equipment_adjustment_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[adjust_mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[adjust_value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment_detail', 
'COLUMN', N'equipment_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment_detail'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment_detail'
, @level2type = 'COLUMN', @level2name = N'equipment_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment_detail', 
'COLUMN', N'adjust_mode')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'调节方式                   

弄个枚举，后面再调整
1.开设备
2.关设备
3.调开度
4.调频率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment_detail'
, @level2type = 'COLUMN', @level2name = N'adjust_mode'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'调节方式                   

弄个枚举，后面再调整
1.开设备
2.关设备
3.调开度
4.调频率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment_detail'
, @level2type = 'COLUMN', @level2name = N'adjust_mode'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment_detail', 
'COLUMN', N'adjust_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'调整值，用字符类型  防止汉字'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment_detail'
, @level2type = 'COLUMN', @level2name = N'adjust_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'调整值，用字符类型  防止汉字'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment_detail'
, @level2type = 'COLUMN', @level2name = N'adjust_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_equipment_adjustment_detail', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态（暂时没用到，备用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment_detail'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态（暂时没用到，备用）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_equipment_adjustment_detail'
, @level2type = 'COLUMN', @level2name = N'status'
GO

-- ----------------------------
-- Records of tb_process_equipment_adjustment_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_meterCheck
-- ----------------------------
DROP TABLE [dbo].[tb_process_meterCheck]
GO
CREATE TABLE [dbo].[tb_process_meterCheck] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[library_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[xj_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[input_user] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[input_value] float(53) NULL ,
[input_time] datetime NULL ,
[mp_value] float(53) NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_meterCheck
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_meterCheck_library
-- ----------------------------
DROP TABLE [dbo].[tb_process_meterCheck_library]
GO
CREATE TABLE [dbo].[tb_process_meterCheck_library] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[mpid_rg] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[targetValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[targetValue2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[targetValueType] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_meterCheck_library
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_modelplan_compute
-- ----------------------------
DROP TABLE [dbo].[tb_process_modelplan_compute]
GO
CREATE TABLE [dbo].[tb_process_modelplan_compute] (
[id] bigint NOT NULL IDENTITY(1,1) ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[planname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpvalue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[starttime] int NULL ,
[endtime] int NULL ,
[timelength] int NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL DEFAULT (getdate()) ,
[cid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_modelplan_compute
-- ----------------------------
SET IDENTITY_INSERT [dbo].[tb_process_modelplan_compute] ON
GO
SET IDENTITY_INSERT [dbo].[tb_process_modelplan_compute] OFF
GO

-- ----------------------------
-- Table structure for tb_process_routine_work
-- ----------------------------
DROP TABLE [dbo].[tb_process_routine_work]
GO
CREATE TABLE [dbo].[tb_process_routine_work] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[library_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_start_date] datetime NULL ,
[actual_cost] money NULL ,
[send_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_ids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_time] money NULL ,
[reward_time] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[working_hours] money NULL ,
[comments] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[check_time] datetime NULL ,
[remarks] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_routine_work
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_section
-- ----------------------------
DROP TABLE [dbo].[tb_process_section]
GO
CREATE TABLE [dbo].[tb_process_section] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (newid()) ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[sname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] bit NULL ,
[process_section_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[area_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section', 
'COLUMN', N'process_section_type_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section'
, @level2type = 'COLUMN', @level2name = N'process_section_type_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section'
, @level2type = 'COLUMN', @level2name = N'process_section_type_id'
GO

-- ----------------------------
-- Records of tb_process_section
-- ----------------------------
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'05EA0ECC-C216-4C14-A190-082C0D424EAA', N'2026-01-27 01:59:53.000', null, N'浓缩机房', null, null, null, N'浓缩机房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'0E8E4FE7-777F-4F5E-A39A-7C3D65A19485', N'2026-01-27 01:59:53.000', null, N'臭氧接触稳定池', null, null, null, N'臭氧稳定池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'0E91C3F2-2232-4E1F-9F49-D1F1D6214D02', N'2026-01-27 01:59:53.000', null, N'二期鼓风机房', null, null, null, N'鼓风机房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'1516182B-C861-4667-A90B-3552995ACD16', N'2026-01-27 01:59:53.000', null, N'工业进水泵房', null, null, null, N'进水泵房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'24384AD5-40A3-4DD7-8B87-F1663FE8BAC5', N'2026-01-27 01:59:53.000', null, N'一期鼓风机房', null, null, null, N'鼓风机房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'25585EF0-F2E8-4F7F-BBEE-ECD35E6FF9E0', N'2026-01-27 01:59:53.000', null, N'2号除臭系统', null, null, null, N'调节池除臭', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'278638BB-3B0D-4F6C-AFBD-AF78F408FBC5', N'2026-01-27 01:59:53.000', null, N'MBR反应池B', null, null, null, N'反应池B', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'2ACE0376-7547-487D-B4F2-90A1F353A4ED', N'2026-01-27 01:59:53.000', null, N'加药间', null, null, null, N'加药间', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'2D84D13F-7A50-46F2-A3DC-817B9D80BE03', N'2026-01-27 01:59:53.000', null, N'兼氧酸化池A', null, null, null, N'酸化池A', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'34D2CAEE-2EDA-4183-97A2-B7B81482D5E0', N'2026-01-27 01:59:53.000', null, N'兼氧沉淀池A', null, null, null, N'沉淀池A', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'355CE301-3720-4E9E-89BC-96CAB0BF7344', N'2026-01-27 01:59:53.000', null, N'总出水在线房', null, null, null, N'总出水在线房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'39DC8B31-CF79-4E13-B7F0-4A74B044BE0C', N'2026-01-27 01:59:53.000', null, N'1号除臭系统', null, null, null, N'酸化池除臭', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'3A7849F3-24B5-4552-8E84-6300CB7FD54B', N'2026-01-27 01:59:53.000', null, N'产水泵房', null, null, null, N'产水泵房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'3C638110-55B6-42A0-BF7C-615E6E0DA5CA', N'2026-01-27 01:59:53.000', null, N'工业和生活出水在线房', null, null, null, N'分排在线房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'43563460-6583-4C81-B396-76FDC57B7E1D', N'2026-01-27 01:59:53.000', null, N'生活进水泵房', null, null, null, N'进水泵房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'43794AA2-5586-4D8F-8470-14E492D649A5', N'2026-01-27 01:59:53.000', null, N'二沉池A', null, null, null, N'二沉池A', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'5F96F737-FA6D-43E4-BF9D-5E8CAA7F3EB0', N'2026-01-27 01:59:53.000', null, N'氧化沟回流井', null, null, null, N'回流井', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'6246AF81-6221-456C-81D7-D09A153F94CB', N'2026-01-27 01:59:53.000', null, N'BAF接触稳定池', null, null, null, N'BAF池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'63E6DBFE-EB40-4421-814A-2C36E7ADF231', N'2026-01-27 01:59:53.000', null, N'沉砂池', null, null, null, N'沉砂池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'66243983-37AB-4A47-AC97-E1C7EC0C20A2', N'2026-01-27 01:59:53.000', null, N'兼氧酸化池B', null, null, null, N'酸化池B', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'6771370F-C825-48E5-9488-6E3CFCB5F9DC', N'2026-01-27 01:59:53.000', null, N'事故池', null, null, null, N'事故池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'67E0A1F7-275A-4670-8ECD-D0774B494117', N'2026-01-27 01:59:53.000', null, N'兼氧沉淀池B', null, null, null, N'沉淀池B', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'7944BB9B-74DB-448C-A678-7F8F806E2D13', N'2026-01-27 01:59:53.000', null, N'初沉池', null, null, null, N'初沉池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'83CCFF8C-9378-4769-9033-8BF7C60149D2', N'2026-01-27 01:59:53.000', null, N'MBR反应池A', null, null, null, N'反应池A', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'96981668-FC3F-486C-89CE-945441F7AB4D', N'2026-01-27 01:59:53.000', null, N'3号除臭系统', null, null, null, N'污泥间除臭', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'991D6CAF-C0DF-4433-949A-9132E6AF0E51', N'2026-01-27 01:59:53.000', null, N'MBR膜分离池工业段', null, null, null, N'分离池工业段', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'9E6607D6-7F9D-4BAF-A535-E7EC8E57AD32', N'2026-01-27 01:59:53.000', null, N'氧化沟A', null, null, null, N'氧化沟A', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'A6370132-A808-4006-B436-3C6753A90EEE', N'2026-01-27 01:59:53.000', null, N'工业和生活进水在线房', null, null, null, N'进水在线房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'A6994B9A-F6CD-48E0-93FE-23ADE9D20449', N'2026-01-27 01:59:53.000', null, N'消毒池', null, null, null, N'消毒池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'AF58FFAC-6BDE-40CB-85F5-007C8A077391', N'2026-01-27 01:59:53.000', null, N'浓缩池', null, null, null, N'浓缩池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'AFBD6A38-1CD2-4199-8EF9-7066225B6C26', N'2026-01-27 01:59:53.000', null, N'二沉池B', null, null, null, N'二沉池B', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'BA27F2B4-6752-4714-B610-EBB6DE169163', N'2026-01-27 01:59:53.000', null, N'配水井', null, null, null, N'配水井', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'C87BC563-9531-4824-8166-5975292E7ECE', N'2026-01-27 01:59:53.000', null, N'调节池', null, null, null, N'调节池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'D583F739-E922-4C18-AFED-474E6AECA24E', N'2026-01-27 01:59:53.000', null, N'氧化沟B', null, null, null, N'氧化沟B', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'E6354EF6-7C99-4290-B8EA-C5B61F694687', N'2026-01-27 01:59:53.000', null, N'脱泥机房', null, null, null, N'脱泥机房', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'ECEC206C-F331-43F0-8F57-99352FA380DD', N'2026-01-27 01:59:53.000', null, N'MBR膜分离池生活段', null, null, null, N'分离池生活段', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'EDA11E99-4C4D-4DFD-9D13-F8BE0AA578A4', N'2026-01-27 01:59:53.000', null, N'兼氧回流井', null, null, null, N'回流井', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO
INSERT INTO [dbo].[tb_process_section] ([id], [insdt], [insuser], [name], [code], [pid], [morder], [sname], [active], [process_section_type_id], [unit_id], [area_id]) VALUES (N'F166BE9D-F31F-4A3B-B5DC-91BB760B6E5E', N'2026-01-27 01:59:53.000', null, N'均质池', null, null, null, N'均质池', N'1', null, N'e77a9f7bd00b4d229056c1a57ad22589', null)
GO
GO

-- ----------------------------
-- Table structure for tb_process_section_information
-- ----------------------------
DROP TABLE [dbo].[tb_process_section_information]
GO
CREATE TABLE [dbo].[tb_process_section_information] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[audio_path] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[state] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段介绍信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段介绍信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'process_section_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'介绍信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'介绍信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'bizid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'bizid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'bizid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'audio_path')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'音频文件地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'audio_path'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'音频文件地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'audio_path'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_process_section_information', 
'COLUMN', N'state')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'state'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_process_section_information'
, @level2type = 'COLUMN', @level2name = N'state'
GO

-- ----------------------------
-- Records of tb_process_section_information
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_section_score
-- ----------------------------
DROP TABLE [dbo].[tb_process_section_score]
GO
CREATE TABLE [dbo].[tb_process_section_score] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarmcontent] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[lower] int NULL ,
[upper] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_section_score
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_section_type
-- ----------------------------
DROP TABLE [dbo].[tb_process_section_type]
GO
CREATE TABLE [dbo].[tb_process_section_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_section_type
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Process_UploadFile
-- ----------------------------
DROP TABLE [dbo].[TB_Process_UploadFile]
GO
CREATE TABLE [dbo].[TB_Process_UploadFile] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Process_UploadFile
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_water_test
-- ----------------------------
DROP TABLE [dbo].[tb_process_water_test]
GO
CREATE TABLE [dbo].[tb_process_water_test] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[job_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[send_time] datetime NULL ,
[receive_user_ids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_dt] datetime NULL ,
[actual_time] datetime NULL ,
[actual_cost] money NULL ,
[working_hours] money NULL ,
[processDefId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_water_test
-- ----------------------------

-- ----------------------------
-- Table structure for tb_process_water_test_detail
-- ----------------------------
DROP TABLE [dbo].[tb_process_water_test_detail]
GO
CREATE TABLE [dbo].[tb_process_water_test_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[library_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_time] money NULL ,
[actual_cost] money NULL ,
[implement_user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_process_water_test_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_reasonable_advice
-- ----------------------------
DROP TABLE [dbo].[tb_reasonable_advice]
GO
CREATE TABLE [dbo].[tb_reasonable_advice] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[user_lead] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[users_help] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[take_flag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[advice_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_reasonable_advice
-- ----------------------------

-- ----------------------------
-- Table structure for tb_reasonable_advice_file
-- ----------------------------
DROP TABLE [dbo].[tb_reasonable_advice_file]
GO
CREATE TABLE [dbo].[tb_reasonable_advice_file] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_reasonable_advice_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_Repair_EmergencyConfigure
-- ----------------------------
DROP TABLE [dbo].[tb_Repair_EmergencyConfigure]
GO
CREATE TABLE [dbo].[tb_Repair_EmergencyConfigure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pname] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[st] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ord] int NULL ,
[memo] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[num] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grade] int NULL ,
[firstperson] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[firstpersonid] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[startingcondition] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[description] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[mpointcodes] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[nodes] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_st] int NULL ,
[actual] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_Repair_EmergencyConfigure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_Repair_EmergencyConfigure_file
-- ----------------------------
DROP TABLE [dbo].[tb_Repair_EmergencyConfigure_file]
GO
CREATE TABLE [dbo].[tb_Repair_EmergencyConfigure_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[size] float(53) NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_Repair_EmergencyConfigure_file
-- ----------------------------

-- ----------------------------
-- Table structure for tb_Repair_EmergencyConfigureDetail
-- ----------------------------
DROP TABLE [dbo].[tb_Repair_EmergencyConfigureDetail]
GO
CREATE TABLE [dbo].[tb_Repair_EmergencyConfigureDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[triggerType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[triggerNumber] money NULL ,
[mpid] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[mpname] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_Repair_EmergencyConfigureDetail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_Repair_EmergencyConfigureInfo
-- ----------------------------
DROP TABLE [dbo].[tb_Repair_EmergencyConfigureInfo]
GO
CREATE TABLE [dbo].[tb_Repair_EmergencyConfigureInfo] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[st] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ord] int NULL ,
[memo] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[grade] int NULL ,
[roles] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[personLiableid] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[personLiablename] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[contentsdetail] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[itemnumber] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startupcondition] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[corresponding] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[issuer] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[rank] int NULL ,
[planTime] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[visualization] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_Repair_EmergencyConfigureInfo
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Repair_EmergencyConfigureWorkOrder
-- ----------------------------
DROP TABLE [dbo].[TB_Repair_EmergencyConfigureWorkOrder]
GO
CREATE TABLE [dbo].[TB_Repair_EmergencyConfigureWorkOrder] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worksenduser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workreceiveuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workcontent] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[worksenddt] datetime NULL ,
[workfinishdt] datetime NULL ,
[status] int NULL ,
[nodeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[recordid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workreceivedt] datetime NULL ,
[workreceivecontent] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Repair_EmergencyConfigureWorkOrder
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Repair_EmergencyPlan
-- ----------------------------
DROP TABLE [dbo].[TB_Repair_EmergencyPlan]
GO
CREATE TABLE [dbo].[TB_Repair_EmergencyPlan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_date] datetime NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[emergency_configure_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[emergency_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Repair_EmergencyPlan', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Repair_EmergencyPlan', 
'COLUMN', N'plan_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'plan_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'plan_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Repair_EmergencyPlan', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Repair_EmergencyPlan', 
'COLUMN', N'emergency_configure_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'配置id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'emergency_configure_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'配置id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'emergency_configure_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Repair_EmergencyPlan', 
'COLUMN', N'emergency_record_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'记录id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'emergency_record_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'记录id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Repair_EmergencyPlan'
, @level2type = 'COLUMN', @level2name = N'emergency_record_id'
GO

-- ----------------------------
-- Records of TB_Repair_EmergencyPlan
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Repair_EmergencyRecords
-- ----------------------------
DROP TABLE [dbo].[TB_Repair_EmergencyRecords]
GO
CREATE TABLE [dbo].[TB_Repair_EmergencyRecords] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[starter] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[starttime] datetime NULL ,
[endtime] datetime NULL ,
[urgentreason] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[personLiableid] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[personLiablename] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[grade] int NULL ,
[firstmenu] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[secondmenu] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[thirdmenu] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reportperson] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[firstPerson] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reporttime] datetime NULL ,
[type] int NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ender] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biztype] int NULL ,
[memo] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[startingcondition] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[emergencytype] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[status_plan] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpointcodes] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[nodes] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Repair_EmergencyRecords
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Repair_EmergencyRecordsDetail
-- ----------------------------
DROP TABLE [dbo].[TB_Repair_EmergencyRecordsDetail]
GO
CREATE TABLE [dbo].[TB_Repair_EmergencyRecordsDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ord] int NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ecDetailId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rank] int NULL ,
[personLiableid] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[personLiablename] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[contentDetail] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[itemNumber] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startupCondition] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[corresponding] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[issuer] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[starter] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startdt] datetime NULL ,
[submitter] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[submitdt] datetime NULL ,
[closer] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[closedt] datetime NULL ,
[planTime] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[visualization] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] nvarchar(MAX) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Repair_EmergencyRecordsDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Repair_EmergencyRecordsWorkOrder
-- ----------------------------
DROP TABLE [dbo].[TB_Repair_EmergencyRecordsWorkOrder]
GO
CREATE TABLE [dbo].[TB_Repair_EmergencyRecordsWorkOrder] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worksenduser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workreceiveuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workcontent] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[worksenddt] datetime NULL ,
[workfinishdt] datetime NULL ,
[status] int NULL ,
[nodeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[recordid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workreceiveuserid] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[workreceivedt] datetime NULL ,
[workreceivecontent] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[worksendusername] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workreceiveusername] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Repair_EmergencyRecordsWorkOrder
-- ----------------------------

-- ----------------------------
-- Table structure for tb_Report_customReport
-- ----------------------------
DROP TABLE [dbo].[tb_Report_customReport]
GO
CREATE TABLE [dbo].[tb_Report_customReport] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[frequency] int NULL ,
[frequencytype] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[calculation] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_Report_customReport
-- ----------------------------

-- ----------------------------
-- Table structure for tb_Report_customReport_mPoint
-- ----------------------------
DROP TABLE [dbo].[tb_Report_customReport_mPoint]
GO
CREATE TABLE [dbo].[tb_Report_customReport_mPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpoint_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[e_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_Report_customReport_mPoint', 
'COLUMN', N'e_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'别名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_Report_customReport_mPoint'
, @level2type = 'COLUMN', @level2name = N'e_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'别名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_Report_customReport_mPoint'
, @level2type = 'COLUMN', @level2name = N'e_name'
GO

-- ----------------------------
-- Records of tb_Report_customReport_mPoint
-- ----------------------------

-- ----------------------------
-- Table structure for tb_report_drainageDataomprehensiveTable
-- ----------------------------
DROP TABLE [dbo].[tb_report_drainageDataomprehensiveTable]
GO
CREATE TABLE [dbo].[tb_report_drainageDataomprehensiveTable] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tureValue] float(53) NULL ,
[lastYearValue] float(53) NULL ,
[lastYearDiffValue] float(53) NULL ,
[targetDiffValue] float(53) NULL 
)


GO

-- ----------------------------
-- Records of tb_report_drainageDataomprehensiveTable
-- ----------------------------

-- ----------------------------
-- Table structure for tb_report_drainageDataomprehensiveTable_configure
-- ----------------------------
DROP TABLE [dbo].[tb_report_drainageDataomprehensiveTable_configure]
GO
CREATE TABLE [dbo].[tb_report_drainageDataomprehensiveTable_configure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_report_drainageDataomprehensiveTable_configure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_report_drainageDataomprehensiveTable_mainconfigure
-- ----------------------------
DROP TABLE [dbo].[tb_report_drainageDataomprehensiveTable_mainconfigure]
GO
CREATE TABLE [dbo].[tb_report_drainageDataomprehensiveTable_mainconfigure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_report_drainageDataomprehensiveTable_mainconfigure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_report_drainageDataomprehensiveTable_mainconfigure_detail
-- ----------------------------
DROP TABLE [dbo].[tb_report_drainageDataomprehensiveTable_mainconfigure_detail]
GO
CREATE TABLE [dbo].[tb_report_drainageDataomprehensiveTable_mainconfigure_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[targetValue] float(53) NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_report_drainageDataomprehensiveTable_mainconfigure_detail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptCollectMode
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptCollectMode]
GO
CREATE TABLE [dbo].[TB_Report_RptCollectMode] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] bigint NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptCollectMode
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptCreate
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptCreate]
GO
CREATE TABLE [dbo].[TB_Report_RptCreate] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[rptset_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rptname] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[rptdt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inputuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[checkuser] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[checkdt] datetime NULL ,
[processDefId] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptCreate
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptCreateFile
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptCreateFile]
GO
CREATE TABLE [dbo].[TB_Report_RptCreateFile] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptCreateFile
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptDayLog
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptDayLog]
GO
CREATE TABLE [dbo].[TB_Report_RptDayLog] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[rptdept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rptdt] datetime NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[checkuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[checkdt] datetime NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[review_comments] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[others] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptDayLog
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptDayValSet
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptDayValSet]
GO
CREATE TABLE [dbo].[TB_Report_RptDayValSet] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL ,
[mpid2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[time_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[offset] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptDayValSet', 
'COLUMN', N'time_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'时间类型，day/hour'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptDayValSet'
, @level2type = 'COLUMN', @level2name = N'time_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'时间类型，day/hour'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptDayValSet'
, @level2type = 'COLUMN', @level2name = N'time_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptDayValSet', 
'COLUMN', N'offset')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'偏移量-正负整数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptDayValSet'
, @level2type = 'COLUMN', @level2name = N'offset'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'偏移量-正负整数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptDayValSet'
, @level2type = 'COLUMN', @level2name = N'offset'
GO

-- ----------------------------
-- Records of TB_Report_RptDayValSet
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptDeptSet
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptDeptSet]
GO
CREATE TABLE [dbo].[TB_Report_RptDeptSet] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[date_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remind_time] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[inputuser] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[viewuser] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[checkuser] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[checkst] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remind_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[last_rptdt] datetime NULL ,
[message_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[role_type] int NULL ,
[inputjob] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptDeptSet
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptInfoSet
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptInfoSet]
GO
CREATE TABLE [dbo].[TB_Report_RptInfoSet] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[version] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rpttype_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rpttype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[modelname] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[repname] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[dtposx] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dtposy] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inputposx] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inputposy] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[checkposx] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[checkposy] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remkposx] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remkposy] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[checkst] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[autost] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cyclest] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[timest] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[morder] int NULL ,
[daystartdt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mthstartdt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[createauto] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[createusers] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[checkuser] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[browseusers] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[generate_jurisdiction] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[browse_jurisdiction] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[generate_position] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[browse_position] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptInfoSet
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptInfoSet_Sheet
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptInfoSet_Sheet]
GO
CREATE TABLE [dbo].[TB_Report_RptInfoSet_Sheet] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sheet_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[rptInfoSet_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptInfoSet_Sheet
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptInfoSetFile
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptInfoSetFile]
GO
CREATE TABLE [dbo].[TB_Report_RptInfoSetFile] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptInfoSetFile
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptLog
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptLog]
GO
CREATE TABLE [dbo].[TB_Report_RptLog] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posy] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] int NULL ,
[creat_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sheet] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[before_value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[after_value] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx_e] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posy_e] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'posx')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'在table中的位置-x'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'posx'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'在table中的位置-x'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'posx'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'posy')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'在table中的位置-y'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'posy'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'在table中的位置-y'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'posy'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'creat_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'报表生成id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'creat_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'报表生成id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'creat_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'sheet')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'sheet名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'sheet'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'sheet名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'sheet'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'类型 如 数据修订、数据确认'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'类型 如 数据修订、数据确认'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'before_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'修改前值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'before_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'修改前值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'before_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'after_value')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'修改后值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'after_value'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'修改后值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'after_value'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'posx_e')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'在excel中的位置-x'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'posx_e'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'在excel中的位置-x'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'posx_e'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptLog', 
'COLUMN', N'posy_e')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'在excel中的位置-y'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'posy_e'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'在excel中的位置-y'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptLog'
, @level2type = 'COLUMN', @level2name = N'posy_e'
GO

-- ----------------------------
-- Records of TB_Report_RptLog
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptMpSet
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptMpSet]
GO
CREATE TABLE [dbo].[TB_Report_RptMpSet] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[datatype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[collectmode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptMpSet
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptSpSet
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptSpSet]
GO
CREATE TABLE [dbo].[TB_Report_RptSpSet] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[spname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rownum] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[colnum] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sheet] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posy] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[intv] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[starthour] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[endhour] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[morder] int NULL ,
[rptsdt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rptedt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[writermode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[business] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grouptype_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grouptime_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[intv_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptSpSet', 
'COLUMN', N'grouptype_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'班组类型id    如：运行班、集控班'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptSpSet'
, @level2type = 'COLUMN', @level2name = N'grouptype_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'班组类型id    如：运行班、集控班'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptSpSet'
, @level2type = 'COLUMN', @level2name = N'grouptype_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_RptSpSet', 
'COLUMN', N'grouptime_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'班次类型id    如：早班、中班'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptSpSet'
, @level2type = 'COLUMN', @level2name = N'grouptime_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'班次类型id    如：早班、中班'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_RptSpSet'
, @level2type = 'COLUMN', @level2name = N'grouptime_id'
GO

-- ----------------------------
-- Records of TB_Report_RptSpSet
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_RptTypeSet
-- ----------------------------
DROP TABLE [dbo].[TB_Report_RptTypeSet]
GO
CREATE TABLE [dbo].[TB_Report_RptTypeSet] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_RptTypeSet
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_Template
-- ----------------------------
DROP TABLE [dbo].[TB_Report_Template]
GO
CREATE TABLE [dbo].[TB_Report_Template] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_Template', 
'COLUMN', N'type_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'模板类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_Template'
, @level2type = 'COLUMN', @level2name = N'type_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'模板类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_Template'
, @level2type = 'COLUMN', @level2name = N'type_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_Report_Template', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'模板名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_Template'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'模板名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_Report_Template'
, @level2type = 'COLUMN', @level2name = N'name'
GO

-- ----------------------------
-- Records of TB_Report_Template
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_TemplateFile
-- ----------------------------
DROP TABLE [dbo].[TB_Report_TemplateFile]
GO
CREATE TABLE [dbo].[TB_Report_TemplateFile] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_TemplateFile
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Report_TemplateType
-- ----------------------------
DROP TABLE [dbo].[TB_Report_TemplateType]
GO
CREATE TABLE [dbo].[TB_Report_TemplateType] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[service_name] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Report_TemplateType
-- ----------------------------

-- ----------------------------
-- Table structure for tb_role
-- ----------------------------
DROP TABLE [dbo].[tb_role]
GO
CREATE TABLE [dbo].[tb_role] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[serial] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[description] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_role
-- ----------------------------
INSERT INTO [dbo].[tb_role] ([id], [name], [serial], [description], [morder], [bizid]) VALUES (N'6c6ab286f106415382a735607fa73459', N'超级管理员', N'', N'最大权限', N'1', N'021SHWSC')
GO
GO
INSERT INTO [dbo].[tb_role] ([id], [name], [serial], [description], [morder], [bizid]) VALUES (N'c437bb0599664d9dac64d299042b2a3e', N'NFC管理', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_role] ([id], [name], [serial], [description], [morder], [bizid]) VALUES (N'rol0000', N'基本权限', null, N'基本权限', N'3', N'021SHWSC')
GO
GO
INSERT INTO [dbo].[tb_role] ([id], [name], [serial], [description], [morder], [bizid]) VALUES (N'rol0001', N'系统管理员', null, N'所有权限', N'2', N'021SHWSC')
GO
GO
INSERT INTO [dbo].[tb_role] ([id], [name], [serial], [description], [morder], [bizid]) VALUES (N'rol0005', N'管理权限', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_role] ([id], [name], [serial], [description], [morder], [bizid]) VALUES (N'rol0006', N'安全权限', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_role] ([id], [name], [serial], [description], [morder], [bizid]) VALUES (N'rol0007', N'运行权限', N'', N'', null, null)
GO
GO

-- ----------------------------
-- Table structure for tb_role_menu
-- ----------------------------
DROP TABLE [dbo].[tb_role_menu]
GO
CREATE TABLE [dbo].[tb_role_menu] (
[roleID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[menuID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_role_menu
-- ----------------------------
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6d40d072d0614a4ca757b84f34b2d2b8', N'd1b3de09bca74de9913b71f69ef4387b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b5ddd8460cb94f029def0cf4bb1104d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f57e8696452d4c65a13683b34c856232', N'88db87613baf4418a4a1c42a0b65bc32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0afd236ebbf54221b494e1948df8d0a2', N'8f7915080f894cf589ed894cae3c1d0d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7d31bcbf31b34ab5b0cd52218294680f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'3d5abff5f60c425480373fcedac60554')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'd55b19ed83fb4d4bbf59502200463cd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'30592992e44f4e31ada05466750a1c54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'21f27e39064442f682320b517139c8be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'efc3aca8802a4871bb2b541750f9e284')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'ef48cee257f84bd5bc5e6fc1cfc238c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'e65848ef695c4a37bb821dd547aee6f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'28778a5d8ab945be85f8936b3b09815a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'a5695dc87b3e4574ab3b44e35fed4180')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'995db575f875473cbe00187b9d13da32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'429e7458aa5b413681c06236d34bc3d5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'f3fc02bb5fba4f5fbc99cb09fbcb6b3a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'0e4c303ac5ce4fe3bb245b72b2cd90ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'2ad0c1c8525a476ea903cd2c1676ab31')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'481154cb554a42a2a0785177053c4077')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'98e802f81cd644d4aaf370cbfeaa9407')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'7e260eb04b104bde841ea321c481008d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'386b7b1e8332408fbb00ce001cd69d38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'2285735dc7634b3ea1913988f114a6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'80a8dd2648d349e4a87917a3e5327ed1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'7ac7ba3a92d342acbc62f7e5b9d6b935')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'392d93709b9e4e40bff4e87f02d65c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'297f4c3329274d64bdd4c6258561a0f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'7d31bcbf31b34ab5b0cd52218294680f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'7f4a59b57c234c15b648adc453d8e961')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'1fb187dc74d043b3861c01be7be4c78e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'36486dccbff948c08700684e46793c90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'80a9346edfb14643a092a027d22dec1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04d802072a93498881b2abfb6e63fa61', N'9a3e395c63d24f54a418cad104374e66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'c87a5ded5d13491c9c8f2a7b01af7d45')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a2538b0dd44d44fdacb00fa0d10516a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7f369933a15644e9a2d1f758c0d3d942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'42aebe9301a049209977a3642798b718')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e591df4a1e014e4292be416f41a7a2ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'36486dccbff948c08700684e46793c90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'80a9346edfb14643a092a027d22dec1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9a3e395c63d24f54a418cad104374e66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4ac05cf1b56a41d885a31e7fd452d0d5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f93dfbe1cdea49b2b6b05095c86d7849')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2293ab50f5db4eddb59e43b92d5c8c27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'23a58522288b4c8da1e7b8eba07b1f77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'bb7fcb43f9c3431fa774915770f6e5d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'a824c974a173430bb806e4824a0aec85')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e31550fffe8c41e28bb279b7049c2782')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7f7d31d88658414caa1a0db1e70747cb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6f7e4e2a77834a7eaae90345461a5117')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8aec08b0368a43b9b0bd80338df903c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'd9b213165f854c4197f4924da6f82817')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'd39d85110d4144f0a21b2757d342ee45')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'eafebfcf1b144ac38c82c08371181b72')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2ef90da016114578ae28f4a927980efe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b420be5945554b4ab7879a2cbc87b5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'74a7eb51b67f4043aec405f2ea3a5a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'cff2e5b9d88940aab23941d450bbd39a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b15d12cc232a43bbb85058f9dadd5dc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4bef25f247aa4838b397aa4c5cab9b6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'39d685bf48244ca7be4070170a85233d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'93ca53574e324d6eb532409f60728b8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6ad3ce81c82c4f3389ffad7c29de971e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b62e2bfaba5c4d2f853363af201bece8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'd00e519577b34a458e70a7e7f567101d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'98a2def40a4f4ff8b0667e828300e99d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'd6266d2f3bf64ea3a4d20dcaeec8d36a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'fac4bb088d764a74a09dc4cdc5921047')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'583213aa1b854bb6a22d8341ebd298d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'3d5abff5f60c425480373fcedac60554')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd55b19ed83fb4d4bbf59502200463cd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'30592992e44f4e31ada05466750a1c54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'21f27e39064442f682320b517139c8be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'efc3aca8802a4871bb2b541750f9e284')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'ef48cee257f84bd5bc5e6fc1cfc238c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e65848ef695c4a37bb821dd547aee6f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'28778a5d8ab945be85f8936b3b09815a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a5695dc87b3e4574ab3b44e35fed4180')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'995db575f875473cbe00187b9d13da32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7ac7ba3a92d342acbc62f7e5b9d6b935')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'392d93709b9e4e40bff4e87f02d65c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'297f4c3329274d64bdd4c6258561a0f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7d31bcbf31b34ab5b0cd52218294680f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7f4a59b57c234c15b648adc453d8e961')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'09e049fa8305465ebf6b2044322d0589')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f36252d28f804c4c81b8e9f492e406ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7107a3e1291343fb9a858aaf4eb7b42b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6e4705afdbcf44c0933afebf64d4bf10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'94dd4b901df74c958f1b770b8d3353a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0007', N'1f8ffdd596c143ff965a54e214a35094')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'0d9debe02623454dbd2b5999f1977d7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0007', N'e4c2292c3ecb4a329a25a714280edfbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0007', N'5a45d6659ef242e9b0e0a842a6ba2a60')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'86f448ea052748ba9e6b866bc2ff6808')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'd9f0gaw8a8120213kakgn')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'1d5b8ca1bd8246688073d0ae5fe9256d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'91903hd9saefj01ks0kfas')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'8f6a2ba2e92647139d740a0bd674e88f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'994b08ff89cf4b77831cffdc2492e717')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'dc22fa7094cf4de29387d31bbd2881aa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'2ac6352f279c48cd820911e0ed0a3419')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'b9ce31b99099435483e297520c3bf8b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'97c8872e79e74d1aa43701968f9ff1e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'c963df9afc1d46e4b632a4c9f8266491')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'1bf3d7ea753d447e82bf990684b6f4a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'f63e1ad675634c8fa9d37021c93d107c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'cbeafe2e3a124d32a5288ab3d947c1db')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'b410071aea764c4391b4637938df6b98')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'36a798a6edbb49eea0085fb8de82a484')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'990101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'990103')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'd7118dde05d240d6ac78874469d742dd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'990203')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6ddcca60bc274df08518dd54eb84532a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd16539dbd9734d6393a53f589636638a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'53ce8eab53024b29be7f4cc1bc564b38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f40e02240f7b44da852db6521848f957')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'1305ff98a4fe49419eb25e6d853c2725')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'990202')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'4fcaafb5d4844e92a3238a9d96079f63')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7f4a59b57c234c15b648adc453d8e961')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'f93dfbe1cdea49b2b6b05095c86d7849')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'09e049fa8305465ebf6b2044322d0589')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'f36252d28f804c4c81b8e9f492e406ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'7107a3e1291343fb9a858aaf4eb7b42b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6e4705afdbcf44c0933afebf64d4bf10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'94dd4b901df74c958f1b770b8d3353a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'a2538b0dd44d44fdacb00fa0d10516a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'7f369933a15644e9a2d1f758c0d3d942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'42aebe9301a049209977a3642798b718')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'e591df4a1e014e4292be416f41a7a2ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6a170f67817f48d09e5f615460301872')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'4b6bfe48bcc04261894c35aa26be9743')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'8c0a2a8c23ee433683bc16b37647f53c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'417d91d35d3145ea97d808a462a966ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'605ef8b59bc140f4947e3dc6e85a1ae2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'3b008360790c4a6491df786023cdf413')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9b01157c274b4b34a1df7e0f8b5ec549')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'7030f4803aec472ebb2b0dfb30ca7d7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'c0f06bc1a4e3466d819b60034106fb17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'2d2f054248f24311be5d0e69f0bde6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'e01acf52fd4b435daa29afe7b4e25b7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'a6c88e7334ef4a688d4c2fe556d1f3d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'4339a3371c3a4ead9140ec010767e20c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'98cf7313fe5344b9b6fb9af3aec54917')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'0f03786758654d2e96c772c9dc9be297')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'473bb7a3f7a64fdd88db6ed4ea639d6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'6288c45e1cfd4c59ae249df79e98f2e7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ace483331ffb47be86a8fec3561f604d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'46fb6653024e48a8b8f042d4689f0085')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'09319cc9fe0c4cbeadd9dd86fb8031a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f5d8ec1519e84608908b529b68298f33')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ef74a06341ba4557afcc91ae4fd9ba50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5b5ba58897c04d2997e3468af0722c67')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'27b805e442f54352a7bf8556c0fe0ed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4b973b77922c44f392516c1596b1f5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f6a3d7af555e433e9a547569ddb5c771')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f7fe337d5d29480f8d475e6e0fd8c53e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1c2def07ba704688b0166a38384b3f08')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9e7ab87dea6843d5b22da1de86e2eb7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e31b970b0d2244dcabc00fe37435180a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'814e1746ef9b4259b24173a4af980261')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'605adf90a22942f5baa97338f300c1a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e4c2292c3ecb4a329a25a714280edfbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e531bc24bd68484a9c14fce5d74c5b9f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'53fe52decbaa43c8a32db40285111ac7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'424fa4fd5edb492a8477651d121fce58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'265dd7ac9bf344e1885072e16f0ffafc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ad59e3d4d5d9428da84cd31507daaa4a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'40989b20120e4e159a3ee7c6a29881ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'13f14f79019a4103ba1cc7651288613c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'25484fd2aeba415e9ec93bf2eba02b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'76934583f952469bb9e949a6130ec0f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b6ce3815ae5c429c91c377e4f8ebaeca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2ed1e1e96f224902baa68727fc05ce31')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0666b40029d2497f96e06a581f9db193')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'65097354ee534a20abee39a14cfe01fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'eb0bd2b6571f4001b50bf706bd40ec25')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'22cc31bb3fec47e8895e17287c6b5364')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f054214ad7fa44bca300499d389f0ca7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'08cc0b8f066e4324921f519d49a68545')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6f8d352e3d8b44828de36baf83e7efe6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd2d66fdeeecb460dbc36344e8c62b2b8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7b1876f393af4444aa10b785a7cb70f3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'03217dd1a5d940178464a499c4593c9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd34d928235614a7b94563451eb691e08')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'165028498c4f417288d58f06cca1ac5e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ecd1c76d3cb149b9a419876c716259e9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'57eb4dad1a7340848ac805391b27909e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'a03fbb1fa2ea4bc4b695f11ecb3feb32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'5d78fb6a359a40878007c4571670feb3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'878d35e992954e7d8b4ecfb41f1708a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'fbbf7824e64443fd9db7c33caf6e923d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'990202')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd177aed7ae654daea817e6494318c2b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'fbbf7824e64443fd9db7c33caf6e923d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'bc3a8b40d9f14cca9d44abc5a6a2e5a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'68382bfc719d4cc0a63af6875581a094')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b5873a8a36c04b7a82bdf5187b03e4ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f8732654d4b84e968b02e226a9e8a1c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'eceaf2ca3a5f4f27a69a6184184e7dcd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'143060d1e8a247cd97bd26650149fb7e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'152e4e22f242409bad2921575613d1d6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd81e9fa757294289b35722f5926ea32c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9619bf86164646a992111e98232ea571')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f87b2576a92243d39746d66c49cf0a48')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'aabf43ebe7f74ecbac6aebf6f00b2a6b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2226260a505e490e8954ca019af861fe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'15f34324e8a34dc3b3c583b656a4514a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'22fc0b1b16634ac680ae039954a73619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1f8acae743404455ac642b897b359383')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4c527ae9009d4d6dbfbe01544667a08a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'71a0d0ff24434884b0dc9054fe889b0a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'99b0498d1237410080af75dad61d2fe9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'88475cc82ca64e09912bf7af83a385dc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'05d05c5d63d14c83965e96f90b953540')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f316e7d9060a484a97a71b8a1601691c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6ddcca60bc274df08518dd54eb84532a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd16539dbd9734d6393a53f589636638a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'53ce8eab53024b29be7f4cc1bc564b38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f40e02240f7b44da852db6521848f957')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1305ff98a4fe49419eb25e6d853c2725')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b7892e5abd644aac85443d4b950de809')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4089cf14e4d242ffb5fdfb54e8cadbea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'681f407407f042e49940510b7225b1f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8913eba52f99477bb2385f2d28b35906')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c2c7f9320ef24909b0c29eeeef7f0335')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5a45d6659ef242e9b0e0a842a6ba2a60')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6288c45e1cfd4c59ae249df79e98f2e7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'09319cc9fe0c4cbeadd9dd86fb8031a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5ac81ca99a2a435ebf3c9e139ad0f974')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'965e835fc47e4beebb8e618b221e89cf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6ddcca60bc274df08518dd54eb84532a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd16539dbd9734d6393a53f589636638a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'53ce8eab53024b29be7f4cc1bc564b38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f40e02240f7b44da852db6521848f957')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1305ff98a4fe49419eb25e6d853c2725')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'b6d748e2df3d4aecacfec3689c6557a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'45d06566906a47a39f6c8f9916703665')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'80100b1506fe499fb6ee99d305e70bc7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd6a8fa6879e0494d97c7982b0094e5c3', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'b6d748e2df3d4aecacfec3689c6557a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'45d06566906a47a39f6c8f9916703665')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'80100b1506fe499fb6ee99d305e70bc7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'04ae1591b15f451c924e3e1a318ca9a3', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ac64cd8eefdf4a49b593f30fbb5367a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'36a798a6edbb49eea0085fb8de82a484')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1c2def07ba704688b0166a38384b3f08')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0d9debe02623454dbd2b5999f1977d7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'53fe52decbaa43c8a32db40285111ac7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'eb0bd2b6571f4001b50bf706bd40ec25')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f054214ad7fa44bca300499d389f0ca7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e31b970b0d2244dcabc00fe37435180a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6f8d352e3d8b44828de36baf83e7efe6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd2d66fdeeecb460dbc36344e8c62b2b8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7b1876f393af4444aa10b785a7cb70f3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'03217dd1a5d940178464a499c4593c9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f4b71eb28a2043b6b1ebe7a7d98c5127')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4b68e6874c8f4bac9ce5cd69491a7dd5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2f395371ffc54990b333441da53f130e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'767789945d9b438aadbd0d387a759d4a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ac64cd8eefdf4a49b593f30fbb5367a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9fcc736ee05f40f0b58aac6bb23c0e36')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a2538b0dd44d44fdacb00fa0d10516a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7f369933a15644e9a2d1f758c0d3d942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'42aebe9301a049209977a3642798b718')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e591df4a1e014e4292be416f41a7a2ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'67887e9023554d409e66cffbf008d7ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'020d737457684aae8583b4355181dafa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b378ef63ff854daab84551c166a4425a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9f08dbd5f01c41a599c9a8b4586fa12b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6790aa68f33a4bf7b6556bbc4f89bdfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c53553d84cb54da7ac253c320bfcb1ac')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd098a0cb3faa4f9ca0ecfc78792fcd52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'97eebb96c0f0424385bd4ec95f045fc3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'45a46dd5f5dd44b9a8f48c5df691cd4f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0fddb4c66e554f4c9d2418e1b8682d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'aa780e1540eb45b69c10f619049a6e58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'002b1723b2244817ae2b40f27ebfa43b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9c1ef139ba934c9e941edd034abbc886')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'cc60f8b816f845c29e8bd880d8ca671e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c49f8034a44a4ee287f0dd36324ffd9d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c89f3efd41274584906f0890a67e5df2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c0597983d30143d58a6d98d1436e905c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0c35b5a46a2940d1b71ad2a9a401b021')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8b90b27ba4a7401c8bab0e0ad02d675d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1cbf77c623f24046b9b42d80dc853445')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7b1dc89b15f8420bae3676b9e6fccf06')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c25904da6a06457f8df98012a5364f96')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'eff5e2d88af94fef9f45476288740939')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f12e20e36ff246faa26c7be425c9b1c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1c0e81a621224495aac5191347ddb70e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'2dca16c113834005893f9d7d23482588')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'ee2015cf7b864e4fbfec99854de77162')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'88db87613baf4418a4a1c42a0b65bc32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'54ce95b20de7459ea0e77abca515e6d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'07e360dc38334d60a39a533a80e33b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0aee45e6a06b43f3851835e12842d9b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'32beeda4eada462ab05d97c82b6efdeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9395254fb6fb49d1a234b92ae0bf5d71')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'de11e520ea344d0883eec9d7138cb025')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0958a69df2384742aeccf53f8bc707bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'239925a9ef34450b8af03769c911e7b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8fb345eee7b74391a31166b4ba03d81d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'fb9b0f98ba8c4ab494d7ba5b852d98e5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0e17802860554094a64065e84ce0dab5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1fb5e29f86f24bd3b3f8ae48db08f438')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0005', N'8f7915080f894cf589ed894cae3c1d0d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'c3f91bec8ab744ce8fe0f7db9d8e65c7', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0005', N'b82c7680d4ec4656adc44f5487412ced')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0005', N'e4c2292c3ecb4a329a25a714280edfbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'c3f91bec8ab744ce8fe0f7db9d8e65c7', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'c3f91bec8ab744ce8fe0f7db9d8e65c7', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'c3f91bec8ab744ce8fe0f7db9d8e65c7', N'0aee45e6a06b43f3851835e12842d9b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'c3f91bec8ab744ce8fe0f7db9d8e65c7', N'0e17802860554094a64065e84ce0dab5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'c3f91bec8ab744ce8fe0f7db9d8e65c7', N'1fb5e29f86f24bd3b3f8ae48db08f438')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'c3f91bec8ab744ce8fe0f7db9d8e65c7', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd428c926cb6c45b09bc0ff6806104b60')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'736d405c49304214a60349474c81a687')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'1f8ffdd596c143ff965a54e214a35094')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'2592b4093fd3462ab8f3da855591ddad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'efdd37b1edc8424c9104a47ec53ce04a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'a468f94da60e49228ebf30e206ce75ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'd7118dde05d240d6ac78874469d742dd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'990101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'990103')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0007', N'0b59b67588444b30beb83e3612e2dff1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4e7ccb0615964ec1b83719c16f684d13')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0a688dfd99934c3b8a1c77dce1401a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f414f1f2f1364a7681e7d2ebf444fafe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f785647a563c4b9caeb74432ebda27bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5a42c60646c3424ebd321a3e78a52806')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0a99532b78c84a24806805fecbe21315')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'433f0e3d89b147c79f11df6739fbb4eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b5d834e2283440b69b080ef788e96cbc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f4b71eb28a2043b6b1ebe7a7d98c5127')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4b68e6874c8f4bac9ce5cd69491a7dd5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c7422f89c5d840098a67dae6b549dfd9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'258870a72fc94433a02c27a08c947483')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'27916f5778b44bf097ef094bfec2c282', N'b410071aea764c4391b4637938df6b98')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3b008360790c4a6491df786023cdf413')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9b01157c274b4b34a1df7e0f8b5ec549')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7030f4803aec472ebb2b0dfb30ca7d7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c0f06bc1a4e3466d819b60034106fb17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'2d2f054248f24311be5d0e69f0bde6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'ef74a06341ba4557afcc91ae4fd9ba50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'5b5ba58897c04d2997e3468af0722c67')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'27b805e442f54352a7bf8556c0fe0ed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4b973b77922c44f392516c1596b1f5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f6a3d7af555e433e9a547569ddb5c771')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'cd19db8d0f4a4fd1b6526466833ce891')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'59ca91ebe24140749c73eca19e971737')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0d119048bfc34f559ba4d34207a6ea77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1d815a8b4c3d4639b1c0189580ceea52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e95d2102d5f949a290c1679f06569262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e01acf52fd4b435daa29afe7b4e25b7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a6c88e7334ef4a688d4c2fe556d1f3d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4339a3371c3a4ead9140ec010767e20c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'98cf7313fe5344b9b6fb9af3aec54917')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0f03786758654d2e96c772c9dc9be297')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'67887e9023554d409e66cffbf008d7ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'020d737457684aae8583b4355181dafa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b378ef63ff854daab84551c166a4425a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9f08dbd5f01c41a599c9a8b4586fa12b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6790aa68f33a4bf7b6556bbc4f89bdfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3d5abff5f60c425480373fcedac60554')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd55b19ed83fb4d4bbf59502200463cd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'30592992e44f4e31ada05466750a1c54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'21f27e39064442f682320b517139c8be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'efc3aca8802a4871bb2b541750f9e284')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'ef48cee257f84bd5bc5e6fc1cfc238c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e65848ef695c4a37bb821dd547aee6f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'28778a5d8ab945be85f8936b3b09815a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a5695dc87b3e4574ab3b44e35fed4180')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'995db575f875473cbe00187b9d13da32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7ac7ba3a92d342acbc62f7e5b9d6b935')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'392d93709b9e4e40bff4e87f02d65c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'297f4c3329274d64bdd4c6258561a0f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7d31bcbf31b34ab5b0cd52218294680f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7f4a59b57c234c15b648adc453d8e961')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'aa780e1540eb45b69c10f619049a6e58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'002b1723b2244817ae2b40f27ebfa43b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9c1ef139ba934c9e941edd034abbc886')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'cc60f8b816f845c29e8bd880d8ca671e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c49f8034a44a4ee287f0dd36324ffd9d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c89f3efd41274584906f0890a67e5df2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'88db87613baf4418a4a1c42a0b65bc32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'54ce95b20de7459ea0e77abca515e6d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'2e536132a05548df95037c3f3a6a779e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b0db1636ec964674b083914909d78526')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'007b3b51c25742c5b6621e440414bbb3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'07e360dc38334d60a39a533a80e33b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'0aee45e6a06b43f3851835e12842d9b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'32beeda4eada462ab05d97c82b6efdeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9395254fb6fb49d1a234b92ae0bf5d71')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'de11e520ea344d0883eec9d7138cb025')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'0958a69df2384742aeccf53f8bc707bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'239925a9ef34450b8af03769c911e7b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8fb345eee7b74391a31166b4ba03d81d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'fb9b0f98ba8c4ab494d7ba5b852d98e5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'0e17802860554094a64065e84ce0dab5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'1fb5e29f86f24bd3b3f8ae48db08f438')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'890ceee92d44413391be9e7abd2c2c65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'3b186959a5a74fb593c252765fa0e729')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'dbfe7046be4742e4aa010c70544a5648')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9f22658abfe247e1890137630c8192f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9cca0129abb84323a6994d60981722ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'09e049fa8305465ebf6b2044322d0589')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f36252d28f804c4c81b8e9f492e406ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7107a3e1291343fb9a858aaf4eb7b42b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6e4705afdbcf44c0933afebf64d4bf10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'94dd4b901df74c958f1b770b8d3353a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'09e049fa8305465ebf6b2044322d0589')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f36252d28f804c4c81b8e9f492e406ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'7107a3e1291343fb9a858aaf4eb7b42b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6e4705afdbcf44c0933afebf64d4bf10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'94dd4b901df74c958f1b770b8d3353a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0afd236ebbf54221b494e1948df8d0a2', N'1f8ffdd596c143ff965a54e214a35094')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0afd236ebbf54221b494e1948df8d0a2', N'3b228fd52ce540ec80172eb93fc6cd12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0afd236ebbf54221b494e1948df8d0a2', N'bf10a517039e42828d51cf44c7298c93')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'84af2cad2be74f45b0e581d5e36ba8eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0afd236ebbf54221b494e1948df8d0a2', N'39dbc092b7f74a6fbda1e1af9f30c03e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0afd236ebbf54221b494e1948df8d0a2', N'3f356886b39e4ea5b2326e3c90bcf1a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0afd236ebbf54221b494e1948df8d0a2', N'e4c2292c3ecb4a329a25a714280edfbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5a8701feb5fb410c9ff88f034bee6b24')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3f356886b39e4ea5b2326e3c90bcf1a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c463787bd25542349354108dd33c4f8e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0d119048bfc34f559ba4d34207a6ea77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'efdd37b1edc8424c9104a47ec53ce04a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4da9e7b7f3d948d5835ce316ffb50311')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a468f94da60e49228ebf30e206ce75ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'48ee19b753ff4f8aa79ed483bf05580c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5b22da61bb344a538319bd3b2a0212ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c6c320466ca243808b3b48f1748ca9a9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4449818f07314aaa837f01572d14f53f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5fe756688f9440148dde81e2250cf9b1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'554be06fddf64deb863eba87a79636c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c30ae7d4133149afbbe677a7f8a4901e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a5b670412d4a4971838c1bf029ad3920')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3a192a48962c47f9ad8b900f1234bef7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3dad659f0d1b4e6e80de23881545291d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c79434687d2d4a77935f75f9688135c6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a544d62d130445728687f541d245580b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7661bcdbe11340a296f0eaa27977170d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c11c8e6c9fb3463fac8bae9a7a1a58bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'56d984384021450587b7932f1931d366')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5ebd999dbdf14eeea4fc1d2a2f76f3e3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9820090033f54302837e2aff185bbe20')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e2a4064067a446138863962a58ce57f0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'86618a494d1c4d76a8b750e2452d23f9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'15c7a137efe644a28696f32e8738878c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'15e3181d648c49d59f1da7088e3d6cbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'775c1766725247fa87c8bddae86c5c7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'789aa765e0ef43e7b2a229c0a52645f4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8c06139450914bde9f88b2d6774dc738')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8ef475c578d94d229d40f802bde9cc49')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'091655f6f7864960803f279ceb8c5255')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0de142b8a2ae47199136f5bc358719a0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'04ae77c0353d4c10813c04d8f6e7ea50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'8c06139450914bde9f88b2d6774dc738')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'775c1766725247fa87c8bddae86c5c7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'834658d9fabd49dc913bfee50cafb663')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'53b52ddc4db44244b62a9c2a22cdce52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'5ebd999dbdf14eeea4fc1d2a2f76f3e3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ed12ef9ffe2c4c42989d02e05654b384')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7fe534ff99754b71aefc263d87ca4da3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'15af327860534025b65f8fa95b2c66fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'899136c465c84beaa4bc992777f36214')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'150877a394a64840a5f16651bef8236f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'54964abd808847ab8a2a96a12ac5e0dc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e6b76039ecf6435f9fdb4d151b67212e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'163001892a8443e49a68aa8c970868bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'502a684372b846c8b8f9d51dcba983cf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7405b9ad351442d889f36b7052ad9cef')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'51f3770d1ad248b8a340deca37a62996')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e61a8831b6394a8eaa81e054d6c31b65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'90836ca889914124a6f7e21ea355759f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e2e78c0da60646bf96e7290897e36009')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'51d87566abc140c29c11554baad44919')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9f2b4be0731e4f3ba964fae2e8bb1aff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c6982ea845c94f7083b25c63b8d29dd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'221fbfbd7dca42378a42535010a6c83b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5628b3510b1946c2986befb569f52fe5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'63166fa0f73b4207a6126cdf45cab820')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8d6817c1154c4dd39dc79df193aa2b00')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ad3f38e0851845c3b33dfdc85bf05af0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1de6b23aba99405f88c1443ead6501c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f69b9a4475e14398a1f31972accd5926')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f6238880f402429bbaa4f07a65bf1bc3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f75ea0c502a443eeb28281bf20fe01fd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f8950066e64549d289d059b088bca6a0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e6719df444a5471fa7081bcd52226c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7f17c69af91d4523a37997449e3636b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1a6da5c7796b44b1aea561ca1ea7202e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a94165e597b54b0db1923eb84887c947')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1ec3444cb73c4b8789900291f515dd14')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c2bb49190638412cb986f028fd8a56aa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'89a96401655a46959664cca0a101a530')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'10ae0905781945538e9f39dc56eb80d1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5826ec97ffad4ccdaa73b06d064e4499')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'b5882185c71240ff81a232f3d93db43a', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'64c2d16bc743490b9740b49bba2177eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9a8a486c1d3c46c6a2ae9d54e224a9e2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c5e80d08e24049debbadc7a72a146b92')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'283a52e4865f4cfbb828436edc090e7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e56c9eab97ac43aca202bbb220aeac5a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a176e1102ee14ea4ad6f39d9bf91f314')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'11bcd81697994c5d8c27fea34628e512')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4ef6fd7bf6d74304b6b91164decb5f97')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'73d6a8c691404b4c81642a8308ae9ed9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b44b83b61f3d402798e92a565b80eb4f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'36100cc69a0d4cfcb5550547a6e0ed30')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'27a2cdc0e7b04ad883c2a88b1f9cd4c3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ee97b45f332749ab9bcf0937036a0221')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e83204359f1844bea69d85366cea73ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'40a748cec7e94a34a452dd89f6b0aa70')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cc6ea3b518374061bcf08e22d23a62d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'dce8ce5138344613a7d05c7a24471bc3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b38e3a0d014e46bbaab5a46b77366f8c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'af26a0a17d9043b7bad6907d4484cfbb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'17a96bfbfd05479794f80f952d7f5ac0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b83c92281a634673bc139014896c0672')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'20b46e1fbfb44da491bd2e93a46fde6b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a599c4b869fe4cd3b5130e0bc6a26f35')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b43a8e76cb544548a82f8f577fcb78c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'66b5b5a3ce314056ac15f30438462f14')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b2b75092b0694e239393c0045f3ceddc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'37560852d15142a683dc6b7df8df43cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ef3658b1921844d090f29cf8ad68124a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'46d1b0425fb44be8b90f66679d4226a6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ec1445c428784b269f0447666bbfa5c3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4008aefc49ee4a0c98d30dcda311f9bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'4c238abe4eec44fe94fe997efe6d9349')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'dc336b21877d475dad9f751ed6ba8ea2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'c45441c7e393450b9c76c322b726cc67')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c7c623e34c1b48639ed848fa202fc8ad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'26dd5520dc58443492077828ade31dc1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e4a16d23cf8340468a0341d3fd273e56')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cc8951bf26c34ed4bbe922270e945263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cf02b18b0c5c495ea1d594758b6b93bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'53967c49ea9447d9a83aa4b09776d7b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'19be7b8adda94e2e956d6e53c937e67e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'66b5b5a3ce314056ac15f30438462f14')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a4e3abcaaaff43a7a70eddcfc0a3435a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b0effef8898d41f082508ff39a15529b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd42a3446c2da4802a39d6a9a9f9e0866')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'42923562567c4afd9fb9a13ae68186c2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4b58b0b42d284f0f9694357c632ea6cd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f0270ae1f8f1404aac675a2de639fedb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ba9bee9b48eb47cabb561ef374b94079')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'dc6229c6de6d4b1eb26c9968e8ffe043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'61d5422d07fe4a26812d98b57d596f17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ad4495e92619477abcb19efa91fbccf4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ceab0d28d9794d2e9d798eef9aa39c31')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'96a7c88c3b78426681911628063ff8b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'daabd4e66c764472a1f69f78773ba3a9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a312eb4c3e6140ae8468a2fcaf07d698')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2db3976fa5734846b64cf9179055c3ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b27efd05a46f4e7ab86d62e020f3f9f9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'a3f54df86adb4a1ba6dca1e4769bd92e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'ac0a7f8cee9f4f298659270eb5281762')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'5731a9998c604259beb704a22c4838ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'daae2215d0824c18a4645f6fc92d13b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'87008a13868f45fca03494e71c9c66f0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3b3c86894a5a4e9b9e4f7eb5a17b8d03')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'26dd5520dc58443492077828ade31dc1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a3f54df86adb4a1ba6dca1e4769bd92e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b5644a4f6d0b4852a2133eaa799d0a84')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5731a9998c604259beb704a22c4838ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2174f4f8c3a44ffa9051805735c88014')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'890ceee92d44413391be9e7abd2c2c65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7239e03dba5640afb2f0b01aa502b94b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'db058810190e407389bea7c9993a89e3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'3b186959a5a74fb593c252765fa0e729')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'efbd4e8160044d0a8e02e446311febc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8947a63f26604b789a08275c246e4610')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'b5644a4f6d0b4852a2133eaa799d0a84')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'dbfe7046be4742e4aa010c70544a5648')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9f22658abfe247e1890137630c8192f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c8a45c07be3d49dd843394194c0d1e58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'66c634baa3bb4e7f984aa1982a105b9c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9e3a3fa90fa645bda1d6d4dbadc4c744')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'68c655924a55490982f0ea58417f9143')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4a6ee0c983324eab974663db2798d8fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b6d748e2df3d4aecacfec3689c6557a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'45d06566906a47a39f6c8f9916703665')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1d815a8b4c3d4639b1c0189580ceea52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e95d2102d5f949a290c1679f06569262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1fb187dc74d043b3861c01be7be4c78e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'36486dccbff948c08700684e46793c90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'87031895950f4c1da30e48ac301e1a51')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'80a9346edfb14643a092a027d22dec1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd9d7ed43fb334ce3873c6b12283a3bd3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9a3e395c63d24f54a418cad104374e66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4ac05cf1b56a41d885a31e7fd452d0d5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ee9fcebb1b6c4880b9413bd0d9af7493')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'daa5bf3a50aa455bb571e9723b2ad472')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bc53154cf508408badec22a39bf21bae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1dd23ce565214a548f898ef86aafb8ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f93dfbe1cdea49b2b6b05095c86d7849')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'2293ab50f5db4eddb59e43b92d5c8c27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'23a58522288b4c8da1e7b8eba07b1f77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'bb7fcb43f9c3431fa774915770f6e5d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a824c974a173430bb806e4824a0aec85')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e31550fffe8c41e28bb279b7049c2782')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7f7d31d88658414caa1a0db1e70747cb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6f7e4e2a77834a7eaae90345461a5117')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8aec08b0368a43b9b0bd80338df903c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd9b213165f854c4197f4924da6f82817')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'2ef90da016114578ae28f4a927980efe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'60433a5010e445f1927ef21e6cec3968')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6d40d072d0614a4ca757b84f34b2d2b8', N'fae958210a40477cac2b31b5a6a45631')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9ea0edf0d5e94e81bc35f758a17b24e6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7d9c689c3bf14fd49203f95978d7ce3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9f836c375c4a462f8544e6220c38c63e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a1fad71d3f154a228ca8a6cfdd66d12c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a8a7a27f6c374b709103a352b2bfb647')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'dcc7e1c438a84c0fb6ca24cd771368e1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5592381f373249bbbd5d74ed7c0fbdb4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f8862de2126549868bcb09c6b8371b77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'efa3133005e14727a6f67f7e6de21faf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'348efd979ca54be4beda98a4a25cfacb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'85462a65033d46e191e365f2725dae48')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'fc9fd3250d46491d8b7799e3756ba46e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd746ff75a4d849b8b8b02eb7da108d8e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ecda4d1cf69e431b85406b413f5f151e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'18fa71863ac24c018157a0bd10aa20dd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2373609ff4554038aadac1968e3d9128')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0db237ff96ea4807acfb63d38aa3b8ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3c8d7d96dd724949aa7257cd7ee18652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd0449cb9d37b40a3a5391bda60e791ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a69f8114ac5249d09988760e2e532065')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'eec51d55c8374b7cbf265fab9f9197d3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f15c37f6667347639e5bf2f355fa459f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'89f3ac7c9ab44450bf98aa8f412c8ffb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4323588f04d341289a9b68ff9f3febde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f7754691ed4e4752a3b4a14fc8730156')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'de7c6142e47143e290e7bac3709918a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'481c642c2d2a411a978498acf54bc430')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'e4a16d23cf8340468a0341d3fd273e56')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'19be7b8adda94e2e956d6e53c937e67e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'85a1bcd03edb406cbe94b22e905e9ab7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a711596d1a404e81923166219a6ed6ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a5d6e19e620c4ec280ce349fd40cdc78')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'28446fe973114f348571fe0d0e7fac97')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'19adc2aa70d44d2388747baf99055143')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'daae2215d0824c18a4645f6fc92d13b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'26fb6bbfdb724621bbbac44dbe457ca0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b8eed2bee8b44c02982b505fe07f5e83')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e410acf6ffc04d5ba7d1d929ea77f9cb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'96a7c88c3b78426681911628063ff8b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'fb3d86a804624e5c9429d8accf4d4a5b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2743ff7ed48e4b9ca66a44ac49d52a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1a9ec528d61045c488d9a095fb533d10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b66fcfe4ae0d487b802bfb91005a4b53')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd61aa902a01f4531a760a27dd5fe7892')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd27cd8c6251143c992a861ade5dc0ef5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'338bb7d54cfc4fa0ae2f58bea41662c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'82bb629e4cb847deacc0cd21b5fdd818')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cf67fa21395c477fa08c5f4d4906f21a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'681c9060c687436197c30dd3f6fdef2a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cb02aa7ff0084be3948530f7fe1ca25a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'370059878eac4b0d88238cd6d2ff9094')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cc43c07d80a244d6ae02719f22004a3c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'338bb7d54cfc4fa0ae2f58bea41662c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a1c618840c834e528750057d85e0c89c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'16b10704b22c4e6d81803bb45e3b5365')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5c86fb542ace459cbd91e9d0b1100e80')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'b790af78960046bd962ada4739c2481c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd9e089a3a68b4c14acad1f78c55e6337')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd2061cdbc2bb430c811d65842eeb3343')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6ebb6bc433b242528c9f41271f1a317c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'1fb6767d6cf04c1089dcb0258ba41886')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'ef74a06341ba4557afcc91ae4fd9ba50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'5b5ba58897c04d2997e3468af0722c67')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'255bcea072084f129d5cbe6d0e176ad8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e5751d399cdb46028c6daef4b94b529f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'27b805e442f54352a7bf8556c0fe0ed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'221fbfbd7dca42378a42535010a6c83b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'228335e0da7744009792bf271b57ee8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4b973b77922c44f392516c1596b1f5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f6a3d7af555e433e9a547569ddb5c771')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'2359b91d439642f0a64fa84ddd30819b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f93f6208ea7d48a2af243f4637c102ce')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'3747f3ca9d7b4149993de20c54bbd287')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'481c642c2d2a411a978498acf54bc430')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'118196f106bf4aa99303ea1dc49a0712')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'79d841eaff014324a7ab2641ae5c3b1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'58cde407d2fb479a8349d092a53a398c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a1a27570a2a14fea8c0b5330e8c274bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'aa1f6093829541e39f309a7ae9ecf1e3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'06fa15a044854d92a94929ab8ff3df30')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'06fa15a044854d92a94929ab8ff3df30')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'01b0a338de7046df8fc15a3585681165')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'641f80b41b4248e4be8dfb9d922c45fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1fb6767d6cf04c1089dcb0258ba41886')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'1fb92110f4ed4ecdb071544a40fd1e44')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'39dbc092b7f74a6fbda1e1af9f30c03e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'641f80b41b4248e4be8dfb9d922c45fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'41a14eee166846cb8cd3425d8bc781f4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'3f356886b39e4ea5b2326e3c90bcf1a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a779b8b1a9754283903bd9509d436a4b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'041987bfdf49486e90901a65c1506249')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1342d76ba40a4f0c946dcb7eefc23353')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b292968c3a3b401eb1e3a471c5395704')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'e4c2292c3ecb4a329a25a714280edfbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'e3cff3e0700d438e8fa7417dc60501d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'ead17664055a4cee98ae3aca639bc196')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'42ac36a84be744e89e823637b9f4f252')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'75d18df8e83a4d09a24d13ca0c03bee1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'598b8f06a93e4535aa6484b6c52edf90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'eafebfcf1b144ac38c82c08371181b72')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'b378db75097548fba91a15709be65a10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5c72dcd5175541ac8e1e7e4098091fdb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'226c799e35314170a2fa0a6f7cfc334e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6955def7e95447659b845d7e5432449d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'e5d4d0abfe9b4b9cb8b74cfb8cb30d99')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'554be7924d354b6fa912aa334173b12c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'5041f532e43c48a6a434b34f19f9b93c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'a41588d696c140f9817c0502fb75fe41')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'78bdbc6020734a13bbfaacb161a72ef5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'92841e8c3cd84986a2b85be8458c9f3a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6ff0752679a1448a94ee3f0831989309')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'61b444bde95047b1a8fb6983182e7f1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'aa780e1540eb45b69c10f619049a6e58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'853ee3c97ba54edaa9bbcf8bfdf12157')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4c8eeead033f4a9898ae7de176c54835')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'93000428a13347bca74976d9d545af96')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'e2a4064067a446138863962a58ce57f0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'9820090033f54302837e2aff185bbe20')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b9191817ed98449f821b12e31c214b96')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd4a332a51ab241b2a9eaa307fe03fa06')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7fde78680f244db0a116ac9ef29add56')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'83e5f61c3dcf4fa18bfc5800dde61725')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'42f5ccd6b45047aa9e446fa424065428')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2c32abc898274ef9a8109c8aecdef37d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f8437253140e40c0b0b838a1157a4845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f22c504ad47a4ae6b1b5ca8ecdad6064')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'09386ccdf92147e99680a030a1b254a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4de317b49c124c3aa2f7c81096487132')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'002b1723b2244817ae2b40f27ebfa43b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'34791ee646f640688b3b432d3faa1973')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3afaf23773634707bae5bba11cf1db80')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4295b7c0a4d146ed8f49a9b294163147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'60c49bb9fadb4677b03e6a949ececb7d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bdd7bb58edf442a0afebffbd418b8dc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'da2abc04f05a4d3f8ed1212e16629875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9c1ef139ba934c9e941edd034abbc886')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'cc60f8b816f845c29e8bd880d8ca671e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'60433a5010e445f1927ef21e6cec3968')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ac0a7f8cee9f4f298659270eb5281762')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'daabd4e66c764472a1f69f78773ba3a9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'de7c6142e47143e290e7bac3709918a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c49f8034a44a4ee287f0dd36324ffd9d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1f00139934354f79a4ebae0cd67acaad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0281b2fbcb614e39b34ab9f827acdb97')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c89f3efd41274584906f0890a67e5df2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'21212b3d98c24f2dbdcc8cc69dfc3cdf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'aa39667fd8d14351a96a7dc041529b38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'019385bc3d7944bb8a0b11098c1d131c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c25904da6a06457f8df98012a5364f96')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'79e2e96c9bf8408c871b568d010bc93b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'80d245360a3448d59f577b10980f4a67')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bb4e5a2f9af84898a342d3be20017c30')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'eff5e2d88af94fef9f45476288740939')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f12e20e36ff246faa26c7be425c9b1c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1c0e81a621224495aac5191347ddb70e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c9acfbcb1dc24bf99b9c95fa5c305651')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2dca16c113834005893f9d7d23482588')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'ee2015cf7b864e4fbfec99854de77162')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'50de8785d15a4378896ca72812aa6563')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd9afcdd2eb8e4d2ea99a70e653bcb3dc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f44da72ed3a942158287170f405e31cb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'88db87613baf4418a4a1c42a0b65bc32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'54ce95b20de7459ea0e77abca515e6d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'007b3b51c25742c5b6621e440414bbb3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'07e360dc38334d60a39a533a80e33b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0aee45e6a06b43f3851835e12842d9b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'32beeda4eada462ab05d97c82b6efdeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9395254fb6fb49d1a234b92ae0bf5d71')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'de11e520ea344d0883eec9d7138cb025')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0958a69df2384742aeccf53f8bc707bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'239925a9ef34450b8af03769c911e7b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cc43fcfc859a4918b7837dc21c1c489d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8fb345eee7b74391a31166b4ba03d81d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'fb9b0f98ba8c4ab494d7ba5b852d98e5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0e17802860554094a64065e84ce0dab5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'65c2233ecb7a4c4aa8aa14a64c00d00e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6db8b331bedb45bd95b458c5c42391c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'af12a6f3ddaa474eb23bab3cc88420be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1fb5e29f86f24bd3b3f8ae48db08f438')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'b43a8e76cb544548a82f8f577fcb78c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1f4972acb984489387a52e84b7734a97')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0b925d7dda154eaf98e4e81ef6798e26')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'836da88e283047009ba93939e2dd6b49')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f3738429c72e45d5a4028dbd70574cf1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'1145e31edf8e4458b2c9746cd78c11d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'cc43c07d80a244d6ae02719f22004a3c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0e4a12da1121419f9397ef05858380b1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'3b228fd52ce540ec80172eb93fc6cd12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'326b2cba539e4257b1e7d13066fda653')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'c463787bd25542349354108dd33c4f8e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3a669dbd59364d7f97b186b112ba99dc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'695aa002616b46cb80ef0b5916baa712')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd4f46021bcf648bba9b5ea28b65ddfcb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'd34d928235614a7b94563451eb691e08')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'17999de10e924e70b0eac0ab009a1502')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b420be5945554b4ab7879a2cbc87b5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1145e31edf8e4458b2c9746cd78c11d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ab1c67e534e44adf876ca541200ba545')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8aedb4fdeb0442d99dd7b56980bd7d95')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'74a7eb51b67f4043aec405f2ea3a5a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'cff2e5b9d88940aab23941d450bbd39a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b15d12cc232a43bbb85058f9dadd5dc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4bef25f247aa4838b397aa4c5cab9b6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'39d685bf48244ca7be4070170a85233d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'93ca53574e324d6eb532409f60728b8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6ad3ce81c82c4f3389ffad7c29de971e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b62e2bfaba5c4d2f853363af201bece8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ac114ee3a2b644528f86f2684fd385a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd00e519577b34a458e70a7e7f567101d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'98a2def40a4f4ff8b0667e828300e99d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e2242187f0f343d9a3c846a296e7c376')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e6e7c7f4aa404908b81dbf7a2c3ad48b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'57fdb484d54a4e58946fc0fef7b1075d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd0a7c6a4edc541d8aff309be214652cf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'40deaa2178634b55a36e37e399b2b31a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a74b63b96a7a4435b4a1dff37ce7e1e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c305efef3ddb447f9ac2fe3185c692f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b867bd1b675b4aa3ac7db709ad748dd2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'd6266d2f3bf64ea3a4d20dcaeec8d36a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'fac4bb088d764a74a09dc4cdc5921047')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'583213aa1b854bb6a22d8341ebd298d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'ce83bb491a994ad5b13a3ac81b90b4ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'5a45d6659ef242e9b0e0a842a6ba2a60')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'a38b4045668746418f23f0f80cba3aeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1d0d2bb2ff6f447e865f5790300e2c49')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0a78ace33fb5448789b7b921226fc3f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e456b0e4cf9947f2b55892866803adad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3704c61c0cec4230b911b09079671533')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e78c3bf038774c8f855a3bd6e12a820c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5392cdb7e5da4d9597646c94cde30870')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'33cd5f56127a43659afae3843b35c63a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3a2251e225424e65a7d6e27ee3fa7394')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6fb6ac4743864cdab5d49ffd79408a59')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f949cd1e883d4a9d9863e20bc28ad178')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cdf8a181f4e4496ca0585c5428a5d7a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'88e01a3aedee411ca1645ace01eb80b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a1cd3c5a08984218b4061fb5cf3a9b5a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7c73adf7fb2f488e810af8bfc8b43c25')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'0b59b67588444b30beb83e3612e2dff1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'61850298b8654df3bdf2e22b1830c851')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c290c95b9fc14ac587d13bba9b033a5e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c5d169730e7f49d39656e2f583200421')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5cdf113607994521ac4f41e7f27d3eb6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3307affc005045f3ad63c6a188a2b87d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2233856d408b4419af75a1eb3f6b29c3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'554be06fddf64deb863eba87a79636c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'eceaf2ca3a5f4f27a69a6184184e7dcd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'523551cff46241d891c307417407b18c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b95c4a68b93f4ea8b89d5030b9ef40be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd1b3de09bca74de9913b71f69ef4387b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd46fdb246dfd4489b5014b21650c6fb6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c28db5d708c149baad3196199385a31c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4c9c99d73de14169ad3b6818107a3d74')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'fae958210a40477cac2b31b5a6a45631')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f59beb6548114bf895d31534ccc1a58a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6bb30f0c8aff4860af493a10be3f2889')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7cc16b341d124e5382e340be4f134d74')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd6b9d09be9c145fab96c2bfebe49065b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ece05ac46d70415e9d11e067c9ef84d5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3432d003a6194eaa93bb9f54d08d0fad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7caa0225dce7483894f24574d2d95f97')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd7ec79d9514c446c859b5580a0804942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'dfb3cf9083dd4917a2295a68bce0a188')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4e18b363a6794042aedb33b7f8302fc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8941e3807c88400683da7a61c15e0383')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'298f3dc86b74428f9d3bc3fd13b3ebd6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cc0de54d88b54212af18cc523676956d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'44244dc55a524fbc96590239d84f4f99')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'8ef475c578d94d229d40f802bde9cc49')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'789aa765e0ef43e7b2a229c0a52645f4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd5ad1d75999c485aa5c05c4720b93bbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ddb0ee04776e4a7b918147c3dbe5e6b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f43d408104ac44979f98f30b1b83aab2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'91ee3ed7e94e461ca5103a1d1e2d81fe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'25af2cbdc66a45e99b0ddfa08971b572')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1d5497548be84eafaed4c229c32cecf1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3747f3ca9d7b4149993de20c54bbd287')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b790af78960046bd962ada4739c2481c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2303e4dd67d4401cbfc151139dcc7a0a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'11d70715ece949a58595f0401808600e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'786443025eb2433d8f95adfc30b252a9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2b5475f6b758449eb3c7df4563276d6f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ede93a5d908940119becea455b9161ce')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a00d7c66bd234a959178c20aab103099')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c303e763e5104b7b937e719eb09f20db')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6e834ac174244245af9686b856cf5fcc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a7dc9a93a0604ccf81c3c8517fce807b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a94b8231df9a42a89a1a21b6860610d6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cffd821d23ee40fab60f9026831bb231')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b7ff232e821149b88eac464485ce66e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5ca187dd4cd1429ea9e710a28d10aeaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'579665d56ffe417fbb0be2dd7f48ada1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a6a5b4fdb3c74bf7aeb91e1083ad2f3a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'34f9daa755ff42e5b52ea4f6d87df83e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f13af1f3fa0c4c09bbee694d54b74279')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd60f5b7e49224e93965441443564f5fd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2da9e7deedeb49e8806cf12ed190d650')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6931330e94344b7b830ab4dcc535ec47')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f57e8696452d4c65a13683b34c856232', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3929a21f95ba412bbbeabd6a22dd3af9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'94cea45fb5ec4c23928b5255b660bdfe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f57e8696452d4c65a13683b34c856232', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f57e8696452d4c65a13683b34c856232', N'54ce95b20de7459ea0e77abca515e6d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f57e8696452d4c65a13683b34c856232', N'b410071aea764c4391b4637938df6b98')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2f6702672db24d3b863ebc3e20f8c1ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'8f7915080f894cf589ed894cae3c1d0d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'736d405c49304214a60349474c81a687')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'3b228fd52ce540ec80172eb93fc6cd12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'bf10a517039e42828d51cf44c7298c93')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'39dbc092b7f74a6fbda1e1af9f30c03e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'3f356886b39e4ea5b2326e3c90bcf1a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'e4c2292c3ecb4a329a25a714280edfbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'08cc0b8f066e4324921f519d49a68545')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'2592b4093fd3462ab8f3da855591ddad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8f9c55f3ec6f46a99d18617d05de513d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9247cce905e3467892400d947b81b2ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'c463787bd25542349354108dd33c4f8e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'9e7ab87dea6843d5b22da1de86e2eb7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'd177aed7ae654daea817e6494318c2b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c76347f94621479a80d9ee1baf66061b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7f0e26b9f0b64b88a21bd176ea13f6fe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'3f86f9d81f984b5490982477efa21acd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'3bf45494e4c045619c638fff47a356fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'fbbf7824e64443fd9db7c33caf6e923d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'598b8f06a93e4535aa6484b6c52edf90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'013c32b8d2ed4e65b0c3b1f2b5fdaf4c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e1f0226b61c7416db658f85e476ba6c5', N'cf5687670a59414eaeeb5c7f727e5c00')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'8f7915080f894cf589ed894cae3c1d0d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'1f8ffdd596c143ff965a54e214a35094')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'3b228fd52ce540ec80172eb93fc6cd12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'bf10a517039e42828d51cf44c7298c93')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'39dbc092b7f74a6fbda1e1af9f30c03e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'3f356886b39e4ea5b2326e3c90bcf1a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'e4c2292c3ecb4a329a25a714280edfbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'08cc0b8f066e4324921f519d49a68545')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'2592b4093fd3462ab8f3da855591ddad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'c463787bd25542349354108dd33c4f8e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'9e7ab87dea6843d5b22da1de86e2eb7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'd177aed7ae654daea817e6494318c2b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'3f86f9d81f984b5490982477efa21acd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'3bf45494e4c045619c638fff47a356fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f06a1819954d4c2a8a9f572702b2ca52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1fe56f328d93483e88f6524b6ed6822c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bc9d1e4071be4962b7751f8d9de5da69')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1e117f5817f74efca65891766b391546')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3cb42f2b0ed74bdabaedb3ad5c9a0e15')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9513b310a2414af78f872691ddc5c8c8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'59a39b62355d4e46ab8a2f8f26f6bd87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'928ff7562e31458294c1328c380375e3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b7bf67ed3e024208953e7269d77344e9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5452e6ef5ee74c3986adcd45fc17ae27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'fbbf7824e64443fd9db7c33caf6e923d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'013c32b8d2ed4e65b0c3b1f2b5fdaf4c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'cf5687670a59414eaeeb5c7f727e5c00')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'd7118dde05d240d6ac78874469d742dd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'990101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'884db30ce71a4c04aad9c8a3799f1709', N'990103')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'89fc3ff5f7614782923ed80d3e5fc354')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'814ed088cb864d528e936a9771b96f98')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c5b66a42443e4d26955a821783b367d1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'89fc3ff5f7614782923ed80d3e5fc354')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c2201efa37984b8e84bbb9279383b675')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'da44f9b24186420eb2e406ed8370af67')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'3dad659f0d1b4e6e80de23881545291d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'dc47a3604f1d4402924c0e9349af7219')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'c00d8e3f68ac4df1a80b29de2096555f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'62f27c2edc534f369574d8bb65c96090')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b40251f1a13a49da9a32cff40cdcdf9f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6e1c8c8af9324b23ae3279c0c12489ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'dd7cd62404ae43a480d21e19b18bd73b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c0da22df959b48738a1da7b97b894774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'15c7a137efe644a28696f32e8738878c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'16b97b0cdcba4cb0a15b039c4685deed')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'07de8c538fa541da82171d1c0538f20e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7e4db36cc91c478baa6836c8b8a68e3c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'722e6741efcf4547921435c547f0564b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b802416921fd41e18a91e4f6bb7797d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f1c773fe6c1141f0be1391d228751400')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5bddd873d2b848d2afaa863d5335dc36')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'8f7915080f894cf589ed894cae3c1d0d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'd098a83d0a154511b7e082055f355d32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'69d326aa8dcb4937ab095be487e1a805')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'5cb9d607bdb54eeea89a0b59f7d71d24')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'b75bf949ca0041a2bd2139d26b372e46')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'bf10a517039e42828d51cf44c7298c93')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'a79f1f78498e45af9676d6e1f767f0c2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'ecd1c76d3cb149b9a419876c716259e9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'd177aed7ae654daea817e6494318c2b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8f7915080f894cf589ed894cae3c1d0d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b82c7680d4ec4656adc44f5487412ced')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'326b2cba539e4257b1e7d13066fda653')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cdbc3ef99a47445d90075bacad9a01b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'bf10a517039e42828d51cf44c7298c93')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'605adf90a22942f5baa97338f300c1a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3622cb8e7bfa480c95116f86812d4ea0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'57eb4dad1a7340848ac805391b27909e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a13832a9974b4172991d03d44f4b5f22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a03fbb1fa2ea4bc4b695f11ecb3feb32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3f86f9d81f984b5490982477efa21acd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3bf45494e4c045619c638fff47a356fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2f73c3eaa1a540999a844a7ca4f5c16b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cd19db8d0f4a4fd1b6526466833ce891')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2210ecdba24148dea8fe2087d184544d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'59ca91ebe24140749c73eca19e971737')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3381d1f3d567417f86434f43617e2561')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e2b091a76e114b00b2366307fb39f378')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'22bc39d738d54febb90aadc6d6b911a0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'c09f6f64b54745a88d56479c9d828c19')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bdc717e5637347609b11d5a2fd23f125')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'68e4efa85eda4890b073e5c3f04bddac')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'890ceee92d44413391be9e7abd2c2c65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c09f6f64b54745a88d56479c9d828c19')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'327fb6949a27402b9009f6277f1a2cd6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5aa1dd119a86416a83d1cd01d9516824')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9df0096551364a9e9416968e17d33194')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e85d3516c57a4ec9b0b73df5c5039cb6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5705229b7fcd4976918ece7746c81b08')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'25adcb6ead824d408378862d527ef9db')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'aa29da05f11c456389ae5ac462be115b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'42ac36a84be744e89e823637b9f4f252')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0749926991374e779496b37b7a94415e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'0e5494afe04d4ed7a4a7158f7205ebbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'61a6884fa61c4ed8b4cd5416750c54f1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'cb8a0f56ddff469c829afd4540e5e4be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5845ceb238764a3b8056739ad5bceffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cd1211eaea054ed6a28959a5f0a334cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e9d163e10d8446b889ae48f7c8682e7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'553a38bb679e47709eadc6c0a2ad0b35')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'06f02d57bdce45369c43cfc89c759691')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'29d9b71d02fa4bca869e06e889db1ff3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'cb5238aa94394dd3a126e746f6349816')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bd9376b289b2496d949e498402cf9812')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bbc3e2831cb448878626782dadd14d8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'71a0d0ff24434884b0dc9054fe889b0a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'99b0498d1237410080af75dad61d2fe9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'88475cc82ca64e09912bf7af83a385dc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'05d05c5d63d14c83965e96f90b953540')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f316e7d9060a484a97a71b8a1601691c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'07887e0905994827b2ee20f83b6008f4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'36486dccbff948c08700684e46793c90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'80a9346edfb14643a092a027d22dec1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ea96ff93a3964ab3a053a98a5205894f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9a3e395c63d24f54a418cad104374e66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9f9e010ea4444c3b981f9cb90d258b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f8901f58603c4a83b88b637cb6bedd5a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'76563c159f3b4da2acd6510527703351')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2293ab50f5db4eddb59e43b92d5c8c27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'46315569cf39403b8bd317c01ad066e2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'23a58522288b4c8da1e7b8eba07b1f77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f15b6ea4e1734fa68a53e76becd34091')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a824c974a173430bb806e4824a0aec85')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6f7e4e2a77834a7eaae90345461a5117')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'79512f55052b45c19d6eae3aaf602d53')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2ef90da016114578ae28f4a927980efe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'fd2737d3131c4974a3da03265802973c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b420be5945554b4ab7879a2cbc87b5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'74a7eb51b67f4043aec405f2ea3a5a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'cff2e5b9d88940aab23941d450bbd39a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b15d12cc232a43bbb85058f9dadd5dc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4bef25f247aa4838b397aa4c5cab9b6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'39d685bf48244ca7be4070170a85233d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'93ca53574e324d6eb532409f60728b8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6ad3ce81c82c4f3389ffad7c29de971e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b62e2bfaba5c4d2f853363af201bece8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd00e519577b34a458e70a7e7f567101d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'98a2def40a4f4ff8b0667e828300e99d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd6266d2f3bf64ea3a4d20dcaeec8d36a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'fac4bb088d764a74a09dc4cdc5921047')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'583213aa1b854bb6a22d8341ebd298d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a65bc2df01cc4c2f984b40b284396f87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'ffde2acbc2aa4d5ea423342bd510e57f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a2538b0dd44d44fdacb00fa0d10516a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7f369933a15644e9a2d1f758c0d3d942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'42aebe9301a049209977a3642798b718')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e591df4a1e014e4292be416f41a7a2ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'05c1fbc731fb471f88b6f9caca7294a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'90355e0a36f04d1d9dc4883347360dcc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'72f98b7f2437405b97e478acec1a8f1a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'590d8c4b5ef74b0a96fb878231fa67c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b8e336ed01e24459b9b94db3ca797736')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8a6d919f0291478aa0c63e81ac01ad2c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b9f3c939bc554f698edd10ba4bbeb3e2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'ae7196a9edeb4c62a7d45fbeade3432f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'24b125cff0bc4cf3b2b0b5f921923d45')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'be32b2f1ea9b4361bffe8d4379bd1a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0ceedca59c5f416a93cd3a97aa809097')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ef1214a78ce044ad92b9d3cd9937a53e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0ee41ee043e74041844ef2398bfe98c2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'57c47c3699c7432aaf3bc0febe809e93')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'450d68180b144c4e84e6f1e02304f476')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3b186959a5a74fb593c252765fa0e729')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'dbfe7046be4742e4aa010c70544a5648')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b6d748e2df3d4aecacfec3689c6557a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'45d06566906a47a39f6c8f9916703665')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'36486dccbff948c08700684e46793c90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'80a9346edfb14643a092a027d22dec1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9a3e395c63d24f54a418cad104374e66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f93dfbe1cdea49b2b6b05095c86d7849')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2293ab50f5db4eddb59e43b92d5c8c27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'23a58522288b4c8da1e7b8eba07b1f77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'bb7fcb43f9c3431fa774915770f6e5d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a824c974a173430bb806e4824a0aec85')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e31550fffe8c41e28bb279b7049c2782')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7f7d31d88658414caa1a0db1e70747cb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6f7e4e2a77834a7eaae90345461a5117')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8aec08b0368a43b9b0bd80338df903c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd9b213165f854c4197f4924da6f82817')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2ef90da016114578ae28f4a927980efe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd38607ef9b02472388a333ceb982621d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b420be5945554b4ab7879a2cbc87b5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'74a7eb51b67f4043aec405f2ea3a5a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'cff2e5b9d88940aab23941d450bbd39a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b15d12cc232a43bbb85058f9dadd5dc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'641bdcb4f4e64cf2b9de21a1eaa1692a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e22fe0e3d89a4183b96047c6632b754c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'dfaedb5ba59d4146b082cc87241f956b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3c7e7e9ca9f941b8bcae76bbd3ceecfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'874ea5e2cd764d989fb81d7f8f979974')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'49cc6e17879545a9b206e5ad154a981a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'361704c1142f429a923189e2f9ac3de5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'80f1ec7a7d2b4e7380154c03fd40d4a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5a3e1f6ba3334bda9ccbe8c7cd821adc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'39159f9cd1e647a8ae6f44738f07a759')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'cd19db8d0f4a4fd1b6526466833ce891')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'59ca91ebe24140749c73eca19e971737')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0d119048bfc34f559ba4d34207a6ea77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'1d815a8b4c3d4639b1c0189580ceea52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e95d2102d5f949a290c1679f06569262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'aa780e1540eb45b69c10f619049a6e58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e11c7f168b174b2b8cb23ad4b8dfa95c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'002b1723b2244817ae2b40f27ebfa43b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9c1ef139ba934c9e941edd034abbc886')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'cc60f8b816f845c29e8bd880d8ca671e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c49f8034a44a4ee287f0dd36324ffd9d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c89f3efd41274584906f0890a67e5df2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c25904da6a06457f8df98012a5364f96')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'eff5e2d88af94fef9f45476288740939')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f12e20e36ff246faa26c7be425c9b1c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'1c0e81a621224495aac5191347ddb70e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'2dca16c113834005893f9d7d23482588')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'ee2015cf7b864e4fbfec99854de77162')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'88db87613baf4418a4a1c42a0b65bc32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'54ce95b20de7459ea0e77abca515e6d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'007b3b51c25742c5b6621e440414bbb3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'07e360dc38334d60a39a533a80e33b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0aee45e6a06b43f3851835e12842d9b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'32beeda4eada462ab05d97c82b6efdeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9395254fb6fb49d1a234b92ae0bf5d71')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'de11e520ea344d0883eec9d7138cb025')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0958a69df2384742aeccf53f8bc707bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'239925a9ef34450b8af03769c911e7b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8fb345eee7b74391a31166b4ba03d81d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'fb9b0f98ba8c4ab494d7ba5b852d98e5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0e17802860554094a64065e84ce0dab5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'1fb5e29f86f24bd3b3f8ae48db08f438')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9cca0129abb84323a6994d60981722ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'890ceee92d44413391be9e7abd2c2c65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'db058810190e407389bea7c9993a89e3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3b186959a5a74fb593c252765fa0e729')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'efbd4e8160044d0a8e02e446311febc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd39d85110d4144f0a21b2757d342ee45')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2359b91d439642f0a64fa84ddd30819b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'01b0a338de7046df8fc15a3585681165')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1fb92110f4ed4ecdb071544a40fd1e44')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'185ac3913a1841129b255d1e42f52a3a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2a2342f97a124242b0224104b2641593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0006', N'165028498c4f417288d58f06cca1ac5e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'736d405c49304214a60349474c81a687')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1f8ffdd596c143ff965a54e214a35094')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3b228fd52ce540ec80172eb93fc6cd12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2592b4093fd3462ab8f3da855591ddad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5d78fb6a359a40878007c4571670feb3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0007', N'8f7915080f894cf589ed894cae3c1d0d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e3cff3e0700d438e8fa7417dc60501d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a79f1f78498e45af9676d6e1f767f0c2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ead17664055a4cee98ae3aca639bc196')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'75d18df8e83a4d09a24d13ca0c03bee1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'78c3df06ba16420a88d25d6a8475b837')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'724778a4df7445b6814dc444a52981f8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4fcaafb5d4844e92a3238a9d96079f63')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'fb359e3954bd47f2879d414ead28b66a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bb6ece7039ca4314afdd2ca453a33f24')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5b4a0df2fe8046f5a6c7f782dd1d2698')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd0524db3ceb44988bc9a7faa02cff8db')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4ffb7473644a445ea43737bff4ee9a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b5ddd8460cb94f029def0cf4bb1104d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b802416921fd41e18a91e4f6bb7797d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f1c773fe6c1141f0be1391d228751400')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'297f4c3329274d64bdd4c6258561a0f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e064f677b5f543828f8b112a59318ee7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'68420f89146445f8ba1d876aa72c9ce5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5b5cdac7e19646f59daeede9f1534de0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'998d3f1587234f919248c15453875338')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'fef6b9618ff949cc972e1ca2d1030738')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'33d5b49e6f9e40cabd46bd1c77e1e0d3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b36b3766c40148d7a5fbdbc66d27d1b9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'83b8bdc4ea374e47a13f97728807aabb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'23b9db729ec34cc2b9369fa5fff5e242')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'10df3a7c322146ab92f39421bee8e2df')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7efd8583a2ea4a768fc783a8c653f5d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1a24ac24da764982b2ba7c0b1d23d681')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6b6bf8ea3f124c3db32624ebfb7e9975')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'250e158407984b9ab34ffc8284df2dec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'311f49be82d64a0e9f33695ab3e5d65d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8f6a2ba2e92647139d740a0bd674e88f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'994b08ff89cf4b77831cffdc2492e717')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'dc22fa7094cf4de29387d31bbd2881aa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1c0e81a621224495aac5191347ddb70e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f5d8ec1519e84608908b529b68298f33')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'eff5e2d88af94fef9f45476288740939')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1cbf77c623f24046b9b42d80dc853445')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'0c35b5a46a2940d1b71ad2a9a401b021')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f77f3ef7723d42f093be97757b8ad226')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bc3a8b40d9f14cca9d44abc5a6a2e5a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'143060d1e8a247cd97bd26650149fb7e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9d02e8ddd34f4e3eaf5eaf35665befc9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bd7459c440314b72a82bf247e595b1d6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'fe34ac762c7848d1802688f10a893e6c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f6a1251998574f0c872f668bf21b7ce8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'84c6e42a0f7b449bbfd2a116868c7eda')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'33ef91829a3c491883c9d51c11a7b9fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2422d212ee514ea7be87314ef5adb095')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4498940e0e4d45efa6e1173c57e269c6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ed603bc03a614452bc0056b40169e8a7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'690388d7b3314dfca80af2c778626649')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'68b2febe63274df0b84c1b2069281c20')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4b76b96eac8a4778a36e08a69da071dc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'85f31e11812a4598bba559b77d5157c8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7b1b0d4bd31f48eda0fe02245633c4d1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ba393c0e5ae548019c35a9a4c7795142')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9e16b548cf6243c196423547ba282100')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'23e4aec8e23d46f99046120ac6967838')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'37d65b1d5e834a459cca481791fbe3e7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'317f5d82ed2841099f2c312d4b6fdb52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a74c5309e96641b2ac87d70baeb7fbba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'912bb048ee5445dcad07ea803ca4c31f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c9a641584e7948229b692205cd96b905')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f69761bf654f415ea506e9dea7761657')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8cf35a376f7a4f2a91e1ae82809c53df')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7bf12b14cae445d488e60aa2d6287c35')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e2d6b2d8113c4edf9a1b1c3eb8e4509c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'59e387e71dc84aca87c93a05f423753e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7fe116956919404099fe2a967433f914')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'27c2717f8c724e6ab895515c8f532794')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9e11d792ad6e4740814b1783468af4db')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'489519038d4f46119db5e109bd1b0058')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9ce5cd36b9774f6b9deedb0c638fdc7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'606bd3337048458f96f64a3d3579b894')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4d91f53ff98143fda4a325f0a4fea34f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4c5099f3ec4c4dcfa9b0fd447715e270')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'db51ae22c66648d181f9f290480e65fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'02be658acfe64b31889a36fcbe174f04')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ddbbfb4988e543428ee1a88f6211cae1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'fa460d532efd45f9bf29d6e2301799a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a13ab2520521435497f2815197ff24fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3aa1814a1f594bc5a6a856c36314412d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8e82cec6b65740b6a795952442ddd2fe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2944a302392348328cee3eaf7b94985b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'90cb44c1a4834135a0d2b4c69245d245')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'08e7468391ee41668cd978e15437f61d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2ac95bf87d0f4b5cb7d3ba52120b6ba8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cb646b9253fa4d60ac11b0741a631895')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'01b7cb89fc8745d1bdfccd37fd6e4e2e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0fbb3fd4c27340f5a319e6d15c14ddac')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'944bbaee9ef84dd7b7502c20fda72ddc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b24cfcb327674e5693a7bc3c97c66402')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'fb5f9484f4f74208b54c106a3434b09d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'459e66deab3c40b2829b47791e8643c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'693d0ea116b34f53a6e7e4d167c86c50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b156143e6695496cb3b939e9b2556289')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e56c06a764134f948a22a963aab440f4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e4206a5ca914493fb0e0f52a7dd29131')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'36240293879348a3a1b2f01882dfdcb0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'afaa9d48df07410d9826e5c1a95ffdd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'20ab47220e7d48ccbc47fbb040e8f9d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c07c423018cc40bd9b5982fbccfaf837')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'94dd4b901df74c958f1b770b8d3353a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'38ded6f367c94d89b1dc67bd95afbd97')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c5384801232141129064b68679c3cb25')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'370b906b9e314e249d131a423665debc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2ac86e25aa864869807c5e8bf225c1ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e8d25d107c064a2c89ee621618bde248')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'71d2ea06a8b340a19a946da9fc7823d1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'2549a47116b245f7b121403bd74d909a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8d157a377fd641caadf156c60dbdd024')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5254a8a63a2b46fb9e6687c7182282a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd8b3c712a50f4c2a866e910ed3ecd540')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd098a83d0a154511b7e082055f355d32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'814e1746ef9b4259b24173a4af980261')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'09e049fa8305465ebf6b2044322d0589')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f36252d28f804c4c81b8e9f492e406ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7107a3e1291343fb9a858aaf4eb7b42b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6e4705afdbcf44c0933afebf64d4bf10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'67887e9023554d409e66cffbf008d7ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'020d737457684aae8583b4355181dafa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b378ef63ff854daab84551c166a4425a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9f08dbd5f01c41a599c9a8b4586fa12b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6790aa68f33a4bf7b6556bbc4f89bdfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0b9e7859ac1048bbac5e869557e320bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c049cf1f630940e3ae295fb80f925bbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'1366c5d4e43243de94ca53dc0cb2989c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'b070ace60dff4d93a78ee67b1f3f25f6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd469d344b8714232b52821b0fc1d400d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6ee50003306846448984c35408994ec4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0007', N'a38b4045668746418f23f0f80cba3aeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5cb9d607bdb54eeea89a0b59f7d71d24')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b75bf949ca0041a2bd2139d26b372e46')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'39dbc092b7f74a6fbda1e1af9f30c03e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f95b1c9ca3bc4f68bad0f8e3118848e5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'17999de10e924e70b0eac0ab009a1502')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7f7055aff85e4023b043bd2abed1ff54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0df0f7b8968c417bbcae17476ead2dfc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ce83bb491a994ad5b13a3ac81b90b4ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a38b4045668746418f23f0f80cba3aeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0b59b67588444b30beb83e3612e2dff1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'05c1fbc731fb471f88b6f9caca7294a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'90355e0a36f04d1d9dc4883347360dcc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'72f98b7f2437405b97e478acec1a8f1a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'590d8c4b5ef74b0a96fb878231fa67c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b8e336ed01e24459b9b94db3ca797736')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6a170f67817f48d09e5f615460301872')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4b6bfe48bcc04261894c35aa26be9743')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8c0a2a8c23ee433683bc16b37647f53c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'417d91d35d3145ea97d808a462a966ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'605ef8b59bc140f4947e3dc6e85a1ae2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'a2538b0dd44d44fdacb00fa0d10516a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'7f369933a15644e9a2d1f758c0d3d942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'42aebe9301a049209977a3642798b718')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e591df4a1e014e4292be416f41a7a2ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6a170f67817f48d09e5f615460301872')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4b6bfe48bcc04261894c35aa26be9743')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8c0a2a8c23ee433683bc16b37647f53c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'417d91d35d3145ea97d808a462a966ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'605ef8b59bc140f4947e3dc6e85a1ae2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'3b008360790c4a6491df786023cdf413')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9b01157c274b4b34a1df7e0f8b5ec549')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'7030f4803aec472ebb2b0dfb30ca7d7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c0f06bc1a4e3466d819b60034106fb17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'2d2f054248f24311be5d0e69f0bde6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'79d841eaff014324a7ab2641ae5c3b1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'a824c974a173430bb806e4824a0aec85')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4bef25f247aa4838b397aa4c5cab9b6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f77f3ef7723d42f093be97757b8ad226')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4a6ee0c983324eab974663db2798d8fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b6d748e2df3d4aecacfec3689c6557a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'45d06566906a47a39f6c8f9916703665')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'a2538b0dd44d44fdacb00fa0d10516a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7f369933a15644e9a2d1f758c0d3d942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'42aebe9301a049209977a3642798b718')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e591df4a1e014e4292be416f41a7a2ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'3d5abff5f60c425480373fcedac60554')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'd55b19ed83fb4d4bbf59502200463cd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'30592992e44f4e31ada05466750a1c54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'21f27e39064442f682320b517139c8be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'efc3aca8802a4871bb2b541750f9e284')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'ef48cee257f84bd5bc5e6fc1cfc238c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e65848ef695c4a37bb821dd547aee6f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'28778a5d8ab945be85f8936b3b09815a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'a5695dc87b3e4574ab3b44e35fed4180')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'995db575f875473cbe00187b9d13da32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'429e7458aa5b413681c06236d34bc3d5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f3fc02bb5fba4f5fbc99cb09fbcb6b3a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0e4c303ac5ce4fe3bb245b72b2cd90ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2ad0c1c8525a476ea903cd2c1676ab31')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'481154cb554a42a2a0785177053c4077')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'98e802f81cd644d4aaf370cbfeaa9407')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7e260eb04b104bde841ea321c481008d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'386b7b1e8332408fbb00ce001cd69d38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2285735dc7634b3ea1913988f114a6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'80a8dd2648d349e4a87917a3e5327ed1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7ac7ba3a92d342acbc62f7e5b9d6b935')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'392d93709b9e4e40bff4e87f02d65c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'297f4c3329274d64bdd4c6258561a0f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7d31bcbf31b34ab5b0cd52218294680f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7f4a59b57c234c15b648adc453d8e961')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'67887e9023554d409e66cffbf008d7ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'020d737457684aae8583b4355181dafa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b378ef63ff854daab84551c166a4425a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9f08dbd5f01c41a599c9a8b4586fa12b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6790aa68f33a4bf7b6556bbc4f89bdfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'58cde407d2fb479a8349d092a53a398c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'41a14eee166846cb8cd3425d8bc781f4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a779b8b1a9754283903bd9509d436a4b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b292968c3a3b401eb1e3a471c5395704')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'078e6f10a90a48c0931c9e6941d57ec7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1704073953694da6a69d2b96de7a6118')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2eb3fb5033ee42f9bade06c210d60762')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c99293e0f5734a94bf58ecd861ff1b53')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2766d240cc2d47abaf3c9236c401e24e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'dbfe7046be4742e4aa010c70544a5648')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'd60fa9155c11491094ccc4b2f22bd36f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'c87a5ded5d13491c9c8f2a7b01af7d45')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'dbfe7046be4742e4aa010c70544a5648')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'9f22658abfe247e1890137630c8192f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'd2b3467320c64f1db7d74e33872cabbd', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9f22658abfe247e1890137630c8192f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4a6ee0c983324eab974663db2798d8fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b6d748e2df3d4aecacfec3689c6557a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'45d06566906a47a39f6c8f9916703665')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'36486dccbff948c08700684e46793c90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'80a9346edfb14643a092a027d22dec1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd9d7ed43fb334ce3873c6b12283a3bd3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9a3e395c63d24f54a418cad104374e66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a2538b0dd44d44fdacb00fa0d10516a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'39d685bf48244ca7be4070170a85233d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'93ca53574e324d6eb532409f60728b8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6ad3ce81c82c4f3389ffad7c29de971e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b62e2bfaba5c4d2f853363af201bece8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'00230aefbdc4455ea0fffca8904c0639')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd00e519577b34a458e70a7e7f567101d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4d0e44a52765484d993435cfa1299508')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'98a2def40a4f4ff8b0667e828300e99d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd6266d2f3bf64ea3a4d20dcaeec8d36a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'fac4bb088d764a74a09dc4cdc5921047')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'583213aa1b854bb6a22d8341ebd298d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a65bc2df01cc4c2f984b40b284396f87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'ffde2acbc2aa4d5ea423342bd510e57f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f77f3ef7723d42f093be97757b8ad226')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'04463a8e128a4d1b82eeed40f3f56e25')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9d02e8ddd34f4e3eaf5eaf35665befc9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'1c0e81a621224495aac5191347ddb70e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'ee2015cf7b864e4fbfec99854de77162')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'eff5e2d88af94fef9f45476288740939')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'f77f3ef7723d42f093be97757b8ad226')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9d02e8ddd34f4e3eaf5eaf35665befc9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'c49f8034a44a4ee287f0dd36324ffd9d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'a69066e4ea3f4084bfcd00a776d82356', N'bb7fcb43f9c3431fa774915770f6e5d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'04463a8e128a4d1b82eeed40f3f56e25')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9d02e8ddd34f4e3eaf5eaf35665befc9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5a372ca21cbf4276b791386c27c3a341')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a5dc1e108360449493e13d56281f5ebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'93ef37ef4ab14bc7a7619a5da92ebfc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'877e92dc61e64c4f9293c446e07ce2da')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'981ee8c274d940298097df591852c2ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2f6a2e734afd42a282726606a5f16975')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4c532c1a0a80418cb964a935abbea6b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4f76211de4134677b71656a6408fb0b0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a0844668fa6d48aeb5a3e326ffdb3a05')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'dab49739ac9a42b1b21be26bdb63916e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'caff54f589264a6f8d241268ae9815a0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9fa4d43bf52c4f9da5f0c8b8cdd50963')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd8b0a15687354c0a849e107b97137b27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cd692a95b7aa4559bb4aceb41cf987d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1075aa9762754806adf73cd5029fea4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0000', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f93dfbe1cdea49b2b6b05095c86d7849')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'2293ab50f5db4eddb59e43b92d5c8c27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'23a58522288b4c8da1e7b8eba07b1f77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'bb7fcb43f9c3431fa774915770f6e5d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a824c974a173430bb806e4824a0aec85')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e31550fffe8c41e28bb279b7049c2782')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7f7d31d88658414caa1a0db1e70747cb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6f7e4e2a77834a7eaae90345461a5117')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8aec08b0368a43b9b0bd80338df903c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd9b213165f854c4197f4924da6f82817')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'2ef90da016114578ae28f4a927980efe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b420be5945554b4ab7879a2cbc87b5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'74a7eb51b67f4043aec405f2ea3a5a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'cff2e5b9d88940aab23941d450bbd39a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b15d12cc232a43bbb85058f9dadd5dc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4bef25f247aa4838b397aa4c5cab9b6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'39d685bf48244ca7be4070170a85233d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'93ca53574e324d6eb532409f60728b8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6ad3ce81c82c4f3389ffad7c29de971e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b62e2bfaba5c4d2f853363af201bece8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd00e519577b34a458e70a7e7f567101d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'98a2def40a4f4ff8b0667e828300e99d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'd6266d2f3bf64ea3a4d20dcaeec8d36a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'fac4bb088d764a74a09dc4cdc5921047')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'583213aa1b854bb6a22d8341ebd298d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a65bc2df01cc4c2f984b40b284396f87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'ffde2acbc2aa4d5ea423342bd510e57f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f77f3ef7723d42f093be97757b8ad226')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'04463a8e128a4d1b82eeed40f3f56e25')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9d02e8ddd34f4e3eaf5eaf35665befc9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'36486dccbff948c08700684e46793c90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'80a9346edfb14643a092a027d22dec1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9a3e395c63d24f54a418cad104374e66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4ac05cf1b56a41d885a31e7fd452d0d5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'f93dfbe1cdea49b2b6b05095c86d7849')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'2293ab50f5db4eddb59e43b92d5c8c27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'23a58522288b4c8da1e7b8eba07b1f77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'bb7fcb43f9c3431fa774915770f6e5d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'a824c974a173430bb806e4824a0aec85')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e31550fffe8c41e28bb279b7049c2782')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'7f7d31d88658414caa1a0db1e70747cb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6f7e4e2a77834a7eaae90345461a5117')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'8aec08b0368a43b9b0bd80338df903c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'd9b213165f854c4197f4924da6f82817')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'2ef90da016114578ae28f4a927980efe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b420be5945554b4ab7879a2cbc87b5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'74a7eb51b67f4043aec405f2ea3a5a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'cff2e5b9d88940aab23941d450bbd39a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b15d12cc232a43bbb85058f9dadd5dc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'4bef25f247aa4838b397aa4c5cab9b6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'39d685bf48244ca7be4070170a85233d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'93ca53574e324d6eb532409f60728b8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6ad3ce81c82c4f3389ffad7c29de971e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b62e2bfaba5c4d2f853363af201bece8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'd00e519577b34a458e70a7e7f567101d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'98a2def40a4f4ff8b0667e828300e99d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'd6266d2f3bf64ea3a4d20dcaeec8d36a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'fac4bb088d764a74a09dc4cdc5921047')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'583213aa1b854bb6a22d8341ebd298d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e01acf52fd4b435daa29afe7b4e25b7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6a170f67817f48d09e5f615460301872')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4b6bfe48bcc04261894c35aa26be9743')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8c0a2a8c23ee433683bc16b37647f53c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'417d91d35d3145ea97d808a462a966ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'605ef8b59bc140f4947e3dc6e85a1ae2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3b008360790c4a6491df786023cdf413')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9b01157c274b4b34a1df7e0f8b5ec549')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7030f4803aec472ebb2b0dfb30ca7d7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c0f06bc1a4e3466d819b60034106fb17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2d2f054248f24311be5d0e69f0bde6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a6c88e7334ef4a688d4c2fe556d1f3d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4339a3371c3a4ead9140ec010767e20c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'98cf7313fe5344b9b6fb9af3aec54917')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0f03786758654d2e96c772c9dc9be297')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'aa780e1540eb45b69c10f619049a6e58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'002b1723b2244817ae2b40f27ebfa43b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c49f8034a44a4ee287f0dd36324ffd9d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c25904da6a06457f8df98012a5364f96')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'eff5e2d88af94fef9f45476288740939')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'2dca16c113834005893f9d7d23482588')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'ee2015cf7b864e4fbfec99854de77162')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'77da6fe89c96456396555e5071d4e465')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'88db87613baf4418a4a1c42a0b65bc32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'54ce95b20de7459ea0e77abca515e6d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'07e360dc38334d60a39a533a80e33b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0aee45e6a06b43f3851835e12842d9b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'32beeda4eada462ab05d97c82b6efdeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9395254fb6fb49d1a234b92ae0bf5d71')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'de11e520ea344d0883eec9d7138cb025')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0958a69df2384742aeccf53f8bc707bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'239925a9ef34450b8af03769c911e7b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8fb345eee7b74391a31166b4ba03d81d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'fb9b0f98ba8c4ab494d7ba5b852d98e5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0e17802860554094a64065e84ce0dab5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'1fb5e29f86f24bd3b3f8ae48db08f438')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9cca0129abb84323a6994d60981722ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'890ceee92d44413391be9e7abd2c2c65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'db058810190e407389bea7c9993a89e3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'3b186959a5a74fb593c252765fa0e729')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'efbd4e8160044d0a8e02e446311febc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9e1671ae0a1045558e05326428d920fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0443ccde0d1b4cd49fe0107dc2fe25f8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7f76407dc8234751971e4ea954563483')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8f359e48352547d0b85852176b37707a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ab8c32dd27784529a117a464a2cf0a22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'420898bdcf214381b2697dd9d6eae933')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f44995783a284fb3aba4f5413c0f5103')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1a08df73ac344b4aa907cce7e7a672ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0106c6b87aec4d01ae6409bb4f9c3e2f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9094d352ac3042ffb5b790fb9cf7e92b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a0404b743d764c4abf18583147abc105')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'315162dfb326423eaf6a628fedfe4df3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'eae5d3e9b1744df8bdffc97917a229c2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e65f7212101e404b8b489585b383ec50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c875f1f74e8f4895ad53a2c3f8930a69')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'26a4f8058e9344b0af16a30c83041f4a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6d390808e3d345799f24d7f49e6e1c49')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'583cb25e3ee2477e8f2da5d22ff16cac')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'85f0e816492640f98772633523a547ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5b5cdac7e19646f59daeede9f1534de0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'10df3a7c322146ab92f39421bee8e2df')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7efd8583a2ea4a768fc783a8c653f5d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1a24ac24da764982b2ba7c0b1d23d681')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'250e158407984b9ab34ffc8284df2dec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd9f0gaw8a8120213kakgn')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'91903hd9saefj01ks0kfas')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'994b08ff89cf4b77831cffdc2492e717')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'dc22fa7094cf4de29387d31bbd2881aa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f6d1385457874318b68b565af02502f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'997fc1f12bbb40c693ad95452e116efd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'48cca999c643496f9fb2e191edddd3d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'178a921a30ed43e38340d27c9425eb5b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5bffa6f90e1d464ebc781231d266f67b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'90d10ae8bfca4552bbf722d89548c8ed')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e9182c7592354e20a3146ddc855ae29c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'aa780e1540eb45b69c10f619049a6e58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'002b1723b2244817ae2b40f27ebfa43b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9c1ef139ba934c9e941edd034abbc886')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'cc60f8b816f845c29e8bd880d8ca671e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c49f8034a44a4ee287f0dd36324ffd9d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c89f3efd41274584906f0890a67e5df2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f12e20e36ff246faa26c7be425c9b1c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1c0e81a621224495aac5191347ddb70e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'88db87613baf4418a4a1c42a0b65bc32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'54ce95b20de7459ea0e77abca515e6d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'007b3b51c25742c5b6621e440414bbb3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'07e360dc38334d60a39a533a80e33b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0aee45e6a06b43f3851835e12842d9b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'32beeda4eada462ab05d97c82b6efdeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9395254fb6fb49d1a234b92ae0bf5d71')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'de11e520ea344d0883eec9d7138cb025')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0958a69df2384742aeccf53f8bc707bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'239925a9ef34450b8af03769c911e7b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8fb345eee7b74391a31166b4ba03d81d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'fb9b0f98ba8c4ab494d7ba5b852d98e5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0e17802860554094a64065e84ce0dab5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1fb5e29f86f24bd3b3f8ae48db08f438')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'890ceee92d44413391be9e7abd2c2c65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3b186959a5a74fb593c252765fa0e729')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'dbfe7046be4742e4aa010c70544a5648')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b6d748e2df3d4aecacfec3689c6557a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'45d06566906a47a39f6c8f9916703665')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'80100b1506fe499fb6ee99d305e70bc7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'05c1fbc731fb471f88b6f9caca7294a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'90355e0a36f04d1d9dc4883347360dcc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'72f98b7f2437405b97e478acec1a8f1a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'590d8c4b5ef74b0a96fb878231fa67c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'b8e336ed01e24459b9b94db3ca797736')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'67887e9023554d409e66cffbf008d7ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'020d737457684aae8583b4355181dafa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'b378ef63ff854daab84551c166a4425a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9f08dbd5f01c41a599c9a8b4586fa12b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6790aa68f33a4bf7b6556bbc4f89bdfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'3d5abff5f60c425480373fcedac60554')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'd55b19ed83fb4d4bbf59502200463cd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'30592992e44f4e31ada05466750a1c54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'21f27e39064442f682320b517139c8be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'efc3aca8802a4871bb2b541750f9e284')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'ef48cee257f84bd5bc5e6fc1cfc238c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'e65848ef695c4a37bb821dd547aee6f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'28778a5d8ab945be85f8936b3b09815a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'a5695dc87b3e4574ab3b44e35fed4180')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'995db575f875473cbe00187b9d13da32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'7ac7ba3a92d342acbc62f7e5b9d6b935')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'392d93709b9e4e40bff4e87f02d65c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'297f4c3329274d64bdd4c6258561a0f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'7d31bcbf31b34ab5b0cd52218294680f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'7f4a59b57c234c15b648adc453d8e961')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'6a2a119b0e414573b72399813413a263')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'707c59efd2af4ee3a587777dc3e3b24b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'b4444cbd50654df8ac03c15d6a291192')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9eae0d93db864c1cb72669c955f0a3b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'1f31427521de467eb3f8f62dcaf36205')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'1f0cfbd7dcc340ddbbd7f0b80f164539')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9e3b3828c552446bbba631ffef5b4b50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'94dcd340946f4f3fa14d47ebf1ae9147')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'db00b1a21bf546aab21ad9c0d6ce7013')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9c702e1cb18f4305bbc2f087613d10c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a2b34e964b9846f7be41120a7b5d7d6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'2be3a8d47fd3459486b727aa6ca47a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'fdd022319da242b590315fedf8f2f43a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'56acde9c45b1466d97756598ca75dc2b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'df7872005174458cbddd6d1adef8d001')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'be8f9de179264aaeb2c4c39b9ab752b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'babe27bcf39d4887949eaecf97587519')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'7c573bee3a2c4b3db109507cc3fd7444')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'dbfe7046be4742e4aa010c70544a5648')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9f22658abfe247e1890137630c8192f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'28a9123ce41a4422bde733cb750064d9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f517c03375854ea38feb88f641552061')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'68486a28ff644c26b0087e58cb3972a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'06ea5ba3dd2f46e387dd4b9d91297ff8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'472e54139d1947d9ae32d248852d9630')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'5f408a168e434f74b5b7203161849b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f2cb159c98d74202adb706465dca5a7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd89221a8e18e423f943a589737a88fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a02f2a4c5cba48a68802b9fec6a6459a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'584e304b1e5743bd96300559f9f63073')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'201a0e49a69d433a9aa8f202381514c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'3ad55b78720d4329b2af759943bf90d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8e4f02e6d3e142fe9fcf4d238e1c42c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0705e3be74c549759405a1e7367dab3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f4fed3250abe4b0f9ebdf0947d558d50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'36486dccbff948c08700684e46793c90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'80a9346edfb14643a092a027d22dec1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9a3e395c63d24f54a418cad104374e66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'395d4639580548bd8f5495ad098cefc8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6f9859237354446c97ce09726cf2058a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f93dfbe1cdea49b2b6b05095c86d7849')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'2293ab50f5db4eddb59e43b92d5c8c27')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'23a58522288b4c8da1e7b8eba07b1f77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'bb7fcb43f9c3431fa774915770f6e5d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a824c974a173430bb806e4824a0aec85')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e31550fffe8c41e28bb279b7049c2782')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7f7d31d88658414caa1a0db1e70747cb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6f7e4e2a77834a7eaae90345461a5117')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'8aec08b0368a43b9b0bd80338df903c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd9b213165f854c4197f4924da6f82817')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'2ef90da016114578ae28f4a927980efe')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b420be5945554b4ab7879a2cbc87b5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'74a7eb51b67f4043aec405f2ea3a5a2d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'cff2e5b9d88940aab23941d450bbd39a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b15d12cc232a43bbb85058f9dadd5dc4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4bef25f247aa4838b397aa4c5cab9b6a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'39d685bf48244ca7be4070170a85233d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'93ca53574e324d6eb532409f60728b8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6ad3ce81c82c4f3389ffad7c29de971e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b62e2bfaba5c4d2f853363af201bece8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd00e519577b34a458e70a7e7f567101d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'98a2def40a4f4ff8b0667e828300e99d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd6266d2f3bf64ea3a4d20dcaeec8d36a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'fac4bb088d764a74a09dc4cdc5921047')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'583213aa1b854bb6a22d8341ebd298d7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a65bc2df01cc4c2f984b40b284396f87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'ffde2acbc2aa4d5ea423342bd510e57f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f77f3ef7723d42f093be97757b8ad226')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'04463a8e128a4d1b82eeed40f3f56e25')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9d02e8ddd34f4e3eaf5eaf35665befc9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'61962a49ae44439b9707ec894e7a08eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'67c47974cfdc4f97b549ad70dc866b75')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f695b4e016124f56b1f834fcda056dc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'dd2129dcef704568912eaeea38272ce1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'760df1db609b4225997076b9876135d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2660b8dce61940f2a702e617aacda325')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'ef74a06341ba4557afcc91ae4fd9ba50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'5b5ba58897c04d2997e3468af0722c67')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'27b805e442f54352a7bf8556c0fe0ed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4b973b77922c44f392516c1596b1f5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f6a3d7af555e433e9a547569ddb5c771')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'68420f89146445f8ba1d876aa72c9ce5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'd428c926cb6c45b09bc0ff6806104b60')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'9fcc736ee05f40f0b58aac6bb23c0e36')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'998d3f1587234f919248c15453875338')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'fef6b9618ff949cc972e1ca2d1030738')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'33d5b49e6f9e40cabd46bd1c77e1e0d3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'b36b3766c40148d7a5fbdbc66d27d1b9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'013c32b8d2ed4e65b0c3b1f2b5fdaf4c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'cf5687670a59414eaeeb5c7f727e5c00')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'f470c0a5c07948528d9ddc1905732051')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'598b8f06a93e4535aa6484b6c52edf90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'7e40547fdfc34a8c8b47137f17603734')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'10df3a7c322146ab92f39421bee8e2df')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'7efd8583a2ea4a768fc783a8c653f5d0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'1a24ac24da764982b2ba7c0b1d23d681')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'6b6bf8ea3f124c3db32624ebfb7e9975')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'ecff29a562924815aef8d5aab45a1f65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'6f6c464d730f42cdab365887cb654228')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'2f2280b8e67246fb8163fb247dae7684')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'5870a76a7e4242388a107aa56558ed36')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'250e158407984b9ab34ffc8284df2dec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'311f49be82d64a0e9f33695ab3e5d65d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'ee2015cf7b864e4fbfec99854de77162')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'c4908faf19104ef09f6f64e4db02bc68')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'f5d8ec1519e84608908b529b68298f33')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'77da6fe89c96456396555e5071d4e465')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'f77f3ef7723d42f093be97757b8ad226')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'bc3a8b40d9f14cca9d44abc5a6a2e5a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'143060d1e8a247cd97bd26650149fb7e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'9d02e8ddd34f4e3eaf5eaf35665befc9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'bd7459c440314b72a82bf247e595b1d6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'ef5766c93a6c4beaba37d8c3777502e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'48f69d7660804ec891b2649da32f0d97')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'46fb6653024e48a8b8f042d4689f0085')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'1c2def07ba704688b0166a38384b3f08')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'9e7ab87dea6843d5b22da1de86e2eb7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'80e3c5b08e9d40c09d7535fc2e5b82dd', N'2592b4093fd3462ab8f3da855591ddad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'01bfc4e0c29f49b1b7939851f8447e6c', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'6a170f67817f48d09e5f615460301872')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4b6bfe48bcc04261894c35aa26be9743')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'8c0a2a8c23ee433683bc16b37647f53c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'417d91d35d3145ea97d808a462a966ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'605ef8b59bc140f4947e3dc6e85a1ae2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'e01acf52fd4b435daa29afe7b4e25b7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'a6c88e7334ef4a688d4c2fe556d1f3d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'4339a3371c3a4ead9140ec010767e20c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'98cf7313fe5344b9b6fb9af3aec54917')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0f03786758654d2e96c772c9dc9be297')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'09e049fa8305465ebf6b2044322d0589')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'f36252d28f804c4c81b8e9f492e406ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7107a3e1291343fb9a858aaf4eb7b42b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'6e4705afdbcf44c0933afebf64d4bf10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'94dd4b901df74c958f1b770b8d3353a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'0210bd4ecf3a458ebed24535f98df0c6', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'de3933bd7c3744f7a394317ae3407f9e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c141c9e853ec4c0faa0ab9032e06e043')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'81b8cc0d07d6430387cb04bb28cf78e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'bd77ab447bdb48d7b8179d190f7f6ffc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8b31ae96f99d4723a7e0fc3b331b04d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'48a5c2931bf7422d840cef4cadbbbc8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4ce1a7811d08457883187d25c4c606e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9fd08ff32a02442799e6398e26ca30f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'704a21d8fb5d4cc188007b5a36083308')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'155a8eae742045ca8e94de5f6b879031')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'cc81ad0b6fa347feac6f40ac183c1516')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4ae06b60d5e4432f9d369dfb92597aaa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'56f9f1ac425f4c59a204de41b41bdc7c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'75eee9f205744f0881649b0eb8d849d8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b6620b67f2bb4672a2fabfd69d3f045f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'09e049fa8305465ebf6b2044322d0589')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f36252d28f804c4c81b8e9f492e406ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7107a3e1291343fb9a858aaf4eb7b42b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6e4705afdbcf44c0933afebf64d4bf10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'94dd4b901df74c958f1b770b8d3353a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'371079d703fd4a61afad0ed03ae6c262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9eef771a99f14569a704b82b1c5ab8cc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'95d61c2ccf50401b95c235f984b59bd4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a2538b0dd44d44fdacb00fa0d10516a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7f369933a15644e9a2d1f758c0d3d942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'42aebe9301a049209977a3642798b718')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e591df4a1e014e4292be416f41a7a2ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'05c1fbc731fb471f88b6f9caca7294a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'90355e0a36f04d1d9dc4883347360dcc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'72f98b7f2437405b97e478acec1a8f1a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'590d8c4b5ef74b0a96fb878231fa67c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b8e336ed01e24459b9b94db3ca797736')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8a6d919f0291478aa0c63e81ac01ad2c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b9f3c939bc554f698edd10ba4bbeb3e2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'ae7196a9edeb4c62a7d45fbeade3432f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'24b125cff0bc4cf3b2b0b5f921923d45')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'be32b2f1ea9b4361bffe8d4379bd1a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'81d9f85274074effaea729f03bdf0c0a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3a9fcfced0d3455f86a6d6202d00825f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'39470caf60614d559aae3dc80f99b148')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'db416c43f58a4549a9de4312ef3de8b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'03358fbdd95e4a19a5e2c8f9768929b9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c53553d84cb54da7ac253c320bfcb1ac')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd098a0cb3faa4f9ca0ecfc78792fcd52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'97eebb96c0f0424385bd4ec95f045fc3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'45a46dd5f5dd44b9a8f48c5df691cd4f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0fddb4c66e554f4c9d2418e1b8682d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd60fa9155c11491094ccc4b2f22bd36f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'612c9f4d641341288cfb248de5f06ac3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'f93dfbe1cdea49b2b6b05095c86d7849')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'd38607ef9b02472388a333ceb982621d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'aa780e1540eb45b69c10f619049a6e58')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6b20763937fc4d3fa7de595bd2f86875')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b86c094bfcbb4257a877b75f015ff172')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f3c15bf456124ee1905696e474e5a1b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'002b1723b2244817ae2b40f27ebfa43b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6921534080ef4507bc99002e98e13190')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9c1ef139ba934c9e941edd034abbc886')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'cc60f8b816f845c29e8bd880d8ca671e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c49f8034a44a4ee287f0dd36324ffd9d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c89f3efd41274584906f0890a67e5df2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c25904da6a06457f8df98012a5364f96')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'eff5e2d88af94fef9f45476288740939')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2dca16c113834005893f9d7d23482588')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'ee2015cf7b864e4fbfec99854de77162')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'fd2737d3131c4974a3da03265802973c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'88db87613baf4418a4a1c42a0b65bc32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'd34047cfa77347769ed13959bf9a4a12')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9171ac58926e46f282427a6f04a22ab9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'54ce95b20de7459ea0e77abca515e6d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2e536132a05548df95037c3f3a6a779e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b0db1636ec964674b083914909d78526')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'007b3b51c25742c5b6621e440414bbb3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'07e360dc38334d60a39a533a80e33b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0aee45e6a06b43f3851835e12842d9b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'32beeda4eada462ab05d97c82b6efdeb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9395254fb6fb49d1a234b92ae0bf5d71')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'de11e520ea344d0883eec9d7138cb025')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0958a69df2384742aeccf53f8bc707bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'239925a9ef34450b8af03769c911e7b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8fb345eee7b74391a31166b4ba03d81d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'fb9b0f98ba8c4ab494d7ba5b852d98e5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0e17802860554094a64065e84ce0dab5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'1fb5e29f86f24bd3b3f8ae48db08f438')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9cca0129abb84323a6994d60981722ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'890ceee92d44413391be9e7abd2c2c65')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'db058810190e407389bea7c9993a89e3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'3b186959a5a74fb593c252765fa0e729')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'efbd4e8160044d0a8e02e446311febc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4fb60db825724c7f87a115794614e774')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e51e3828488a4e37af7c8ea066d37e91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b390861a49b54ccc8ccae7a341d0b59b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'212bd407ac404b32afbe7885e492e4a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'04cc222437aa4df8bb4d609cda370eb2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2d43030c17234666873d1462b6f2071c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'd8187348d2fc4a1995c5135dacdef69f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'dbfe7046be4742e4aa010c70544a5648')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'2e4e28c52a9b4558afc02585f82a8ac6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'9f22658abfe247e1890137630c8192f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'8dcc788ded394af9b59a2d2f3f081845')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'ad52daa8c63142b8bd5b45953032d13e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'cc4763a0eaf5421fb995e0f530374424')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4a6ee0c983324eab974663db2798d8fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b6d748e2df3d4aecacfec3689c6557a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'45d06566906a47a39f6c8f9916703665')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'afff6d5874cf4c3281a5106cff9a5b01')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'41e5b59b1e15453b91307dfbeb9fe77c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'e3a5f6cec2d94355876dc7e8220301d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'7b7cce355fcf4653b9ea536ff3aeb88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'72fd4439f8ad41eab7b765fd66052135')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'f3ead4a71df24345800ffc0609315dbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'212211a6cafb44eeaab97ff10ff255ab')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4d4f49d6dff74f0b862eb0590de32652')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'16d8048f047f49fa9a512f3401c97c7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'5f7c1539059f4752a117a01f01583060')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4644d34f9c444637953f68d014505cc2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'86f1b89dd19f45948ba627959283d8ba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'cd19db8d0f4a4fd1b6526466833ce891')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'59ca91ebe24140749c73eca19e971737')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0d119048bfc34f559ba4d34207a6ea77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1d815a8b4c3d4639b1c0189580ceea52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e95d2102d5f949a290c1679f06569262')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'76934583f952469bb9e949a6130ec0f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b6ce3815ae5c429c91c377e4f8ebaeca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2ed1e1e96f224902baa68727fc05ce31')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0666b40029d2497f96e06a581f9db193')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'65097354ee534a20abee39a14cfe01fa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'265dd7ac9bf344e1885072e16f0ffafc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'ad59e3d4d5d9428da84cd31507daaa4a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'40989b20120e4e159a3ee7c6a29881ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'13f14f79019a4103ba1cc7651288613c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'25484fd2aeba415e9ec93bf2eba02b3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'ef74a06341ba4557afcc91ae4fd9ba50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'5b5ba58897c04d2997e3468af0722c67')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'27b805e442f54352a7bf8556c0fe0ed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4b973b77922c44f392516c1596b1f5ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f6a3d7af555e433e9a547569ddb5c771')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8a2c9772459a49ef8e966f61e419719a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'311b2aaaa98449349ec1f61c08fd51a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'414c4f8eeb124187933c7f1de416057b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8ef19069d74541f2a9edd266eb6d4a4d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e38b3ac04da748f8bd4bba3da5ffe791')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'62d7b00d8f724812a740571a606a4b61')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'70c738e27f82432d8a7848e69039f3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'204ab6c92c534d5681bb62929a86eed6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a0212a5c452642ae89e27590dec80857')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'429879a1f31248de9f5a4e348224bd3b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9b9c310bd13648db97ddd1b67edea7ff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'464f354e8e4d431ea5e8fd59f55f31bf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'320941fc1fd44ca3aeabecd80af38a17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a3a28a0ce1eb49f99a7d213ece0d57b4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'ba7a77f0b4e845e3a424574cd4379880')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'67887e9023554d409e66cffbf008d7ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'020d737457684aae8583b4355181dafa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b378ef63ff854daab84551c166a4425a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9f08dbd5f01c41a599c9a8b4586fa12b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6790aa68f33a4bf7b6556bbc4f89bdfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e01acf52fd4b435daa29afe7b4e25b7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a6c88e7334ef4a688d4c2fe556d1f3d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4339a3371c3a4ead9140ec010767e20c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'98cf7313fe5344b9b6fb9af3aec54917')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0f03786758654d2e96c772c9dc9be297')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7ac7ba3a92d342acbc62f7e5b9d6b935')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'392d93709b9e4e40bff4e87f02d65c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'297f4c3329274d64bdd4c6258561a0f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7d31bcbf31b34ab5b0cd52218294680f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7f4a59b57c234c15b648adc453d8e961')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'429e7458aa5b413681c06236d34bc3d5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'f3fc02bb5fba4f5fbc99cb09fbcb6b3a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'0e4c303ac5ce4fe3bb245b72b2cd90ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2ad0c1c8525a476ea903cd2c1676ab31')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'481154cb554a42a2a0785177053c4077')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'98e802f81cd644d4aaf370cbfeaa9407')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7e260eb04b104bde841ea321c481008d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'386b7b1e8332408fbb00ce001cd69d38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2285735dc7634b3ea1913988f114a6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'80a8dd2648d349e4a87917a3e5327ed1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'ef48cee257f84bd5bc5e6fc1cfc238c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'e65848ef695c4a37bb821dd547aee6f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'28778a5d8ab945be85f8936b3b09815a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a5695dc87b3e4574ab3b44e35fed4180')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'995db575f875473cbe00187b9d13da32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3d5abff5f60c425480373fcedac60554')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'd55b19ed83fb4d4bbf59502200463cd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'30592992e44f4e31ada05466750a1c54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'21f27e39064442f682320b517139c8be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'efc3aca8802a4871bb2b541750f9e284')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'79d841eaff014324a7ab2641ae5c3b1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'58cde407d2fb479a8349d092a53a398c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'41a14eee166846cb8cd3425d8bc781f4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'a779b8b1a9754283903bd9509d436a4b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'b292968c3a3b401eb1e3a471c5395704')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'078e6f10a90a48c0931c9e6941d57ec7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'1704073953694da6a69d2b96de7a6118')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2eb3fb5033ee42f9bade06c210d60762')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c99293e0f5734a94bf58ecd861ff1b53')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2766d240cc2d47abaf3c9236c401e24e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'6a170f67817f48d09e5f615460301872')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'4b6bfe48bcc04261894c35aa26be9743')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'8c0a2a8c23ee433683bc16b37647f53c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'417d91d35d3145ea97d808a462a966ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7f369933a15644e9a2d1f758c0d3d942')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'3ccf9b5caf7f43c9bd1e0ca5a14ceebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'42aebe9301a049209977a3642798b718')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e591df4a1e014e4292be416f41a7a2ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'3d5abff5f60c425480373fcedac60554')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'd55b19ed83fb4d4bbf59502200463cd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'30592992e44f4e31ada05466750a1c54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'21f27e39064442f682320b517139c8be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'efc3aca8802a4871bb2b541750f9e284')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'ef48cee257f84bd5bc5e6fc1cfc238c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'e65848ef695c4a37bb821dd547aee6f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'28778a5d8ab945be85f8936b3b09815a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'a5695dc87b3e4574ab3b44e35fed4180')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'995db575f875473cbe00187b9d13da32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'429e7458aa5b413681c06236d34bc3d5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'01be14dbeab347418f1a0c8cc327157d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'21abd1a915ee4958b73411ed6896fbbd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6cdab3cd89ec40fbb5c8b28895b9c4c7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'744bc9745f9c406988779d8508e6289f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4132721e6b414c738b3ec2ed584e0c6e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'6af634f6190144f8933d0f4ab88b206a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'c614a908cc534411a52e2458140e0693')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'65ea953f008a4b268165434db5333435')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'4e514d286c09438d8ea989e27d26b5b5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'f3fc02bb5fba4f5fbc99cb09fbcb6b3a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'0e4c303ac5ce4fe3bb245b72b2cd90ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'2ad0c1c8525a476ea903cd2c1676ab31')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'481154cb554a42a2a0785177053c4077')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'98e802f81cd644d4aaf370cbfeaa9407')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7e260eb04b104bde841ea321c481008d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'386b7b1e8332408fbb00ce001cd69d38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'2285735dc7634b3ea1913988f114a6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'80a8dd2648d349e4a87917a3e5327ed1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7ac7ba3a92d342acbc62f7e5b9d6b935')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'392d93709b9e4e40bff4e87f02d65c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'297f4c3329274d64bdd4c6258561a0f2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7d31bcbf31b34ab5b0cd52218294680f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'7f4a59b57c234c15b648adc453d8e961')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'67887e9023554d409e66cffbf008d7ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'020d737457684aae8583b4355181dafa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'b378ef63ff854daab84551c166a4425a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'9f08dbd5f01c41a599c9a8b4586fa12b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'f1df616deca14939978db0aa185b0c5a', N'6790aa68f33a4bf7b6556bbc4f89bdfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'19fbdb5636b347a6afe5c64c1f75da0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'0c568215f2e7479282e32ddd7467ca7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'b6213fd06ca04388a93a7f034085c15f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'793942876ba4474e924889e20cd8928a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'be80a327c4ec4f3197e6b43b9efbf1c0', N'14df5ad3efd547edb462bcde89894568')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'829707103d5b4e8ebd88fe2ef7d27927')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'21b475801c97411f8477f501d04e615e', N'f765aa27ec7149fe8a4ee97afa2626bb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c049cf1f630940e3ae295fb80f925bbf')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1366c5d4e43243de94ca53dc0cb2989c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b070ace60dff4d93a78ee67b1f3f25f6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd469d344b8714232b52821b0fc1d400d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6ee50003306846448984c35408994ec4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6ddcca60bc274df08518dd54eb84532a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd16539dbd9734d6393a53f589636638a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'53ce8eab53024b29be7f4cc1bc564b38')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f40e02240f7b44da852db6521848f957')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1305ff98a4fe49419eb25e6d853c2725')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e01acf52fd4b435daa29afe7b4e25b7a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a6c88e7334ef4a688d4c2fe556d1f3d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4339a3371c3a4ead9140ec010767e20c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'98cf7313fe5344b9b6fb9af3aec54917')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'0f03786758654d2e96c772c9dc9be297')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'67887e9023554d409e66cffbf008d7ea')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'020d737457684aae8583b4355181dafa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b378ef63ff854daab84551c166a4425a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9f08dbd5f01c41a599c9a8b4586fa12b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6790aa68f33a4bf7b6556bbc4f89bdfd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3d5abff5f60c425480373fcedac60554')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'd55b19ed83fb4d4bbf59502200463cd8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'30592992e44f4e31ada05466750a1c54')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'21f27e39064442f682320b517139c8be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'efc3aca8802a4871bb2b541750f9e284')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'ef48cee257f84bd5bc5e6fc1cfc238c1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'e65848ef695c4a37bb821dd547aee6f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'28778a5d8ab945be85f8936b3b09815a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a5695dc87b3e4574ab3b44e35fed4180')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'995db575f875473cbe00187b9d13da32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7ac7ba3a92d342acbc62f7e5b9d6b935')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'392d93709b9e4e40bff4e87f02d65c8d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'1da28e22272e4acb927687935611e9af')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'edc39ceac40545ad9ccb35c9daf6d6a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'e4e819cd15cd492586ce417e1c3bc57e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'c74797a885544342ab24b49acbec9e4e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'e94268bb7e404488aa0d1f16b73ccab9', N'0a335cedda5749eeb42d2848e07869c0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'1c9b759a3bbe49188a7b249e555db931')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'8c52bed7f913459eb996930618779a28')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'a74ab7e9286d488db8b239e234b869e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'ce82a31e30a24f7eb385a7c74d7d9d22')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3605b1962076488598f48d74bf74406b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'232d5e0f8cbc4720987713cb5de6e88e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'fd3e1678b98f4c0b8d43c7e6d18c5216')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'b26f335bc2604b1ca197e31ce214d10a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'00015c1b16fe44269f2f29d346127ba4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'4c2b903a8ddd4747819338806c6c438d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'c4d667a42baa42a99c817254bd7faae8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'3210cdc34df541229e4fe2f688bf74ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'97af6f2c99174b4ca1f5974ade4cc28c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'eadef1fa460d4b8fb6909845f73a174c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'9c04865f4f72455cb6309dcc029ad3be')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'00ce6922b9d0452bb9a5ca8eea78493c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7cc9e11c634e4f09a1ac0c4fecd28619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6de9d30809b04cca94d4515f3b40c43e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f36d4201ce4e40ec80cd309052f47caa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'50f647dcc6344d3e9d25c58529c941b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'09e049fa8305465ebf6b2044322d0589')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'f36252d28f804c4c81b8e9f492e406ae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'7107a3e1291343fb9a858aaf4eb7b42b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'6e4705afdbcf44c0933afebf64d4bf10')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'1afa126d43b84f6d8547e17e8041d64c', N'94dd4b901df74c958f1b770b8d3353a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'26a42f9e856f4ea1a11ecf9565d68835')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'61962a49ae44439b9707ec894e7a08eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7b6e07753dee4693b115c3a1eb4f8549')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7efa4ad4afa047bfb56ce55a958bdc0a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'81af8690f35c44ca9defb47881ac701e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'88e0c1c8cb06490dbfd48c57907337b1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c077f8def34b4f398b88bba9a2422ec5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cf9b2035813846e391a433b93ca7f93b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ffc02f67d3034453b3d293258eaddcbc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'6429a9ede0da4f3ebbc3eef43e169300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e9aa37bf0fed42c9bac14c5666a4e488')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'8f3b5170e9e84d409842e9980646f6b7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'e787250c6eed43b0bf0e1be7f381955e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'092baf56ba9d47b8b0c49aa4bf27d3ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'rol0001', N'5c2e5bc670a348bb9a3479b4091962c5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'605ef8b59bc140f4947e3dc6e85a1ae2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'3b008360790c4a6491df786023cdf413')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'9b01157c274b4b34a1df7e0f8b5ec549')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'7030f4803aec472ebb2b0dfb30ca7d7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'c0f06bc1a4e3466d819b60034106fb17')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'55df7b9b343e44d7abfe9634b86135c4', N'2d2f054248f24311be5d0e69f0bde6e0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'86cf1f7b80794e00a16711d96bfa6fa9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c471554f498a43f1847de9cf69c887d2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0c39c190e9a445fab0053802577759b2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'80cb4c3aef4345b4ab61187bc7996fc0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'7d03ada544d0415d9ef2e652e560334d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'14fb8c33e9d247febc35be5433f2aaf9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'1edf8786513745619dddabfa5a4aea3e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3322f5a2629b49a4af5832b95040dd02')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'0a0cc81463624d8a943990ede82736f7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'c3435e1777284c0297df7d8a4c4b8005')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'3993aa6d25d94806adb5d89f678a4efb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'793722dff1d94a8b8931e89950517ee5', N'e7692c9c0e934deeb204bba13a157e07')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9d02e8ddd34f4e3eaf5eaf35665befc9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'bd7459c440314b72a82bf247e595b1d6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ef5766c93a6c4beaba37d8c3777502e8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'48f69d7660804ec891b2649da32f0d97')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0c35b5a46a2940d1b71ad2a9a401b021')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'eff5e2d88af94fef9f45476288740939')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f0717c53777e447ea359179957bd9498')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f77f3ef7723d42f093be97757b8ad226')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'bbe50d4ae43c4ca49a53fe30148b1066')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'68420f89146445f8ba1d876aa72c9ce5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd428c926cb6c45b09bc0ff6806104b60')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9fcc736ee05f40f0b58aac6bb23c0e36')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'998d3f1587234f919248c15453875338')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'fef6b9618ff949cc972e1ca2d1030738')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'33d5b49e6f9e40cabd46bd1c77e1e0d3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b36b3766c40148d7a5fbdbc66d27d1b9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9095a70c03e74fa3a7e5154b96fc7e8b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'013c32b8d2ed4e65b0c3b1f2b5fdaf4c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cf5687670a59414eaeeb5c7f727e5c00')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f470c0a5c07948528d9ddc1905732051')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7f6dd24a15d54c10b33f913d6fda8619')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'440a335a8491456e853ba26bdce0a748')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b97dc6c0a3e348c89bc8af328ae450a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1cba06ca3f884fdd8dace2ca9d649339')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'378c6ad7561a42a0b720916fb327bbcd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f97a4a9ffb6b440bb739067f7a0f0239')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'981d54e74a284a9db59d9df47bc7ff0f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a37e43eefa7846658b66d65afe7e5df8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'82bbbca6dfff4f01be0f60596fd7d42c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7e40547fdfc34a8c8b47137f17603734')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'598b8f06a93e4535aa6484b6c52edf90')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5524c5259704441a981a987454755283')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'bfe87ba6442d410d99d218d61cc6b293')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'985dba4e9341454fb2f250483e0ef290')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c7faa054997d4f4aab2dd3a0473a2320')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'12dcec0d3b224779838fdb3c0f8677a8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'db0310d8f01c4fd2a981224706b53380')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'83b8bdc4ea374e47a13f97728807aabb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'23b9db729ec34cc2b9369fa5fff5e242')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'09d48c951f1c427db5c039e6cfc0e86a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'59794dd19044438b83d685e17bb44f7f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'961a6a200b154f7f878cd22727b91d35')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'40c24596ff954e3fb67b703e2c42178a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'595f1eecacbf4cf19128631ed32e347e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9b629bdc547c4440916ff71c610d8527')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f07312a9aada4547ac986a3f5249144d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7a1c6680cdb54c66acd6fcd56158f676')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6d2a956ceff340c2b1859214d15c409c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e44f3578ce7c44869bdf033d140ede50')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f5075d9afbec4d9d8805f422530b110d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cfc7121e0e6b4fee86aa104e41e3086e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'66cfd4a4f69547209c003dc2b8c5ac32')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a4033f13e2db47fb86510b2cd298fc15')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6b6bf8ea3f124c3db32624ebfb7e9975')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'423ecadeb5804c41aa0de74b8ff9588c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6f6c464d730f42cdab365887cb654228')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cd2af712e09a4cf594e77047a1a72012')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'311f49be82d64a0e9f33695ab3e5d65d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'46909e114a1444058f6fe67a3e6efe52')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8b150f1b8c784e4d937c539ed8ffba1c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9609d91ed7d14b7b8e89e92b96a3c633')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'36411bf73cf34cdd84e30909f7d78ead')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd1a5b76608044ad1bf651ea44d1c01eb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1c0e81a621224495aac5191347ddb70e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ee2015cf7b864e4fbfec99854de77162')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c4908faf19104ef09f6f64e4db02bc68')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2202080597a44dcdb27b18ce44e704f5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2e84e1225f1e46d9ab38822b6efdb7d4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'afa8b288b4ad4bc9a9ade276becc5451')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'be03b811aa50400595b8eca3a82decff')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ed1f2eb3f2d2474089fedd7d97c1acd9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f30bffa2926947649eca800c7e722612')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'fa5cf17f6bd847af956c229ab3567852')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'20038371000c40bbbb3485ed900b2593')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'89dc2f184cbb44e98c019775b04a6b30')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'de7f033f07f14022ab9b482fc1cbe978')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'66b5568be6cc4ef98d623843150a6d66')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd35bbec545024394a62dd1e31d49db6b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'77da6fe89c96456396555e5071d4e465')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6370b0a09f4e41a594209c24c76dcba6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c6516395208242f08ee612f6a9bb1661')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9fdfc5fc067349f3abe3b4235469e5fb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b97e06a17e64481bae7bb0bdbd18b130')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'af118a74bff547a3a088427be912d8bd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f550577c41584c6cac3a06ee62a04b64')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'707ba0f4f8c64e108302b0f79637c078')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9985c47f143f44fdb868731aff3e6300')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'82ba20cfc3d4421ca9fe71bc6dcb9c87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1cbf77c623f24046b9b42d80dc853445')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9d181cef5efa45638b954fd9eb8991fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'47b56b85be394d6196be99f972c4876c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7e3f1f5cd89f4f67abf37fca218107b0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4f6f2a45e14a43b5ae298ea3367acf29')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4e5fe11879054404a53fd2265a14ae3a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0d9debe02623454dbd2b5999f1977d7b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'92913e48969f4ae3bcaf6c1e0fdb7704')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'338360e331dc451895ffd60fa5aea5b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a0742605774a421c8ff911e30844d707')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8c1c5584ff6e4ca58d01a929f45777bc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'08f22cb587e5494da1eb487dd087aeac')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1ffacdc9f71b4cefb250e37588f8c7aa')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ee6166f4d70244f6bdd346b41120c965')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'14ef17c7e78f470aae1108d023ac78ca')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b547569d70c84d119b0c82144b7d8b0c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6100a46494ba4ce3aa726522c02731ec')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9dd0323d6ed34b0ba5f0311cca790f91')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'eb064c2dab024330bc55e13c6c32571c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6025f4bd37e345719aa929068c8a17f1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'67bbca2584ea44769878a472546fc8a4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f73cb9d51b2a4885904224da4b7f955b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'52903944b61c439d81834ae90c0c17b6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e5dd97e092364946b6209a15681411e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b7d43d6404e0496c9015b2ef02484b2c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'690df684ad5e40dbb7936cfe6704db77')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8ff19a25749344109b2662551cd487b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'83e402387af64e299dd04e6ef2957bcb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b54b5d90dfce428eae1bdcd302610126')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e17b50c4417f41c38049d4052905e941')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd3ea8977c9fd4167b9a6396c7ac7c3fc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'939264878ee845dd8ae8c55cf0756751')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'65de9f38af334900b607f79114035fba')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'86f448ea052748ba9e6b866bc2ff6808')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'11ecb72685584b11b3aad166312df054')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1d5b8ca1bd8246688073d0ae5fe9256d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8fc7bd01810549479889b90d4cd1414e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f90c9ac7ec2e4a71ad63a38baf3ca63f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0b36b89ddc2d4f81b8ca568f69336d74')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'8f6a2ba2e92647139d740a0bd674e88f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4241825c1479412395fff0a5356e8198')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1b65f085845b403e896c6d7b3d8d4537')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'064c9a068c724384994e38fc2de81580')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a67addea16054c34bdcd9b987d9d63a7')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a913390b98a34684ab583f52fc019f47')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0abe8266f77b4a20bff5ab271e7573ed')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3b717a8f260648f8bfe4dc189cc1512d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'fd03f99a6f754dd89806eba131c1d034')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'be02685e04d04ec8bd01f51140e5a7ee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd772e74339dd4d1dadb2216b6ff89f21')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'7f16396668bf4bc59f91ac96ce4bfb24')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'95715dbd36074d3cb7776d13992a450b')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'295b7fa0b73b4416a078879379be1fde')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3c8b81eddcd9400a9c67f63521ba6aee')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e422e46deab548d9ab15455ed38d3cf2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ffc1ac10bbd044f2803fb298fb4b9451')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'51b6110cdbd3486881aebc49f08b92c9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a574e091f7d640e8baab60aa47f2aebc')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'88b91a6aec9041438369bb95e84f2c4a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0119f4b25f7b4d6a967d17af5af4fef2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e7090c50c7e64114aced3728fcfc515d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'04a25a406690444a95d9168804e85392')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'226ac9dcb6fa4bffbe4c70bcee57408e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'13cc6479f8b9437c824690c722d2bee5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2a2f9cce89574cb3ac8f2b9ce76379f8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'991b8248ab78444e9a83b4b59db4406e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'01dbfd7817ae4c44804df7393346e9a2')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'4c1cbee2ca4e4012bf3f23c0f9f26395')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'934cf8a9e21b48169426e2498eedc16c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a2e63be01ea84a52afb65f7e52537fa8')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b4ff0ef2a83d40639d56a422721fddcb')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'019866e2b48c4bc692ed7f861bb15e30')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ab89bb74e1ef4309ae93ae95b2333a99')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1edd9fa2c6494bfcb50f3d99bab9876a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'e5f36570516343ad8925e37dd97844f0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6893a77f0a8b42dc9a2b9e73cc3b3e8f')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'63d1b2b641944fec8daa7a37d937c810')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'97bc1e14fdee4075ab749b359c7cacad')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'042478cc0ef8435b8fa131e3b09c7912')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'ac36778b5c374306a498e8e8372aa45d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3269c5cc738c4cfc94d37a813ce55b87')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'efefb535df92457380540f02deb041b1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'878d35e992954e7d8b4ecfb41f1708a3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2d8e1cdb55ea4a13b8339ac8726298b0')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'742cb94b264347d09faf4a46f595546e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2ac6352f279c48cd820911e0ed0a3419')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b9ce31b99099435483e297520c3bf8b3')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'97c8872e79e74d1aa43701968f9ff1e4')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c963df9afc1d46e4b632a4c9f8266491')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'1bf3d7ea753d447e82bf990684b6f4a1')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'020101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'020102')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'5308297074f940bdb56bf7b5cd25c87d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'2f395371ffc54990b333441da53f130e')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'767789945d9b438aadbd0d387a759d4a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9ae36f570c3c42c88d8a0a742028472a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'786520396dcb419d9536938ca9cd5105')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f32f7f033de94886ab70b55c66d98784')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'9006cd02677b4768a4439d60351b61a5')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f63e1ad675634c8fa9d37021c93d107c')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cbeafe2e3a124d32a5288ab3d947c1db')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'6493f854f53e4a6484d31f4d5f6d5e9a')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'cc93a2856279489595e86293a5920a31')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'fab287ee9eef4ee4953c2bb37cc856f6')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'f497c64f409c42029bca3ab3a85dcc16')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'3503dc28a0ff4831a6c7ea6e8fcb1a6d')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b410071aea764c4391b4637938df6b98')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'990101')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'990102')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'990103')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c69f9df6eaa141aab868567b041db2e9')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd7118dde05d240d6ac78874469d742dd')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'990203')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'b8f0ea69e9f2463792a92a8f4689c201')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'990202')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'a2fd82344d064519bbc992d1dbbb3015')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'0a3dc7f7919040f2872e61b2156af009')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'141f6b919ba940d5a8430214db41beae')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'd3968b11b3764f848c41b638b2c101db')
GO
GO
INSERT INTO [dbo].[tb_role_menu] ([roleID], [menuID]) VALUES (N'6c6ab286f106415382a735607fa73459', N'c0d6e2da08b04c89b2a4c2ee455e4a1c')
GO
GO

-- ----------------------------
-- Table structure for tb_safety_certificate
-- ----------------------------
DROP TABLE [dbo].[tb_safety_certificate]
GO
CREATE TABLE [dbo].[tb_safety_certificate] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[certificate_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[certificate_no] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[job_code] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[job_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[issuing_authority] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[issue_date] date NULL ,
[expiration_date] date NULL ,
[create_time] datetime NULL ,
[flag] varchar(2) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[review_date] datetime NULL ,
[alarm_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'人员(内部/外部)证书管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'人员(内部/外部)证书管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内部证书主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内部证书主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'userid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'userid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'userid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'certificate_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'证书名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'certificate_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'证书名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'certificate_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'certificate_no')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'证书编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'certificate_no'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'证书编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'certificate_no'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'job_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业代码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'job_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业代码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'job_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'job_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业种类'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'job_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业种类'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'job_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'issuing_authority')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发证机构'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'issuing_authority'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发证机构'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'issuing_authority'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'issue_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发证时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'issue_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发证时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'issue_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'expiration_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'有效期至'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'expiration_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'有效期至'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'expiration_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据插入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据插入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_certificate', 
'COLUMN', N'flag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据标志  1内部证书  2外部证书'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'flag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据标志  1内部证书  2外部证书'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_certificate'
, @level2type = 'COLUMN', @level2name = N'flag'
GO

-- ----------------------------
-- Records of tb_safety_certificate
-- ----------------------------
INSERT INTO [dbo].[tb_safety_certificate] ([id], [userid], [certificate_name], [certificate_no], [job_code], [job_type], [issuing_authority], [issue_date], [expiration_date], [create_time], [flag], [review_date], [alarm_id]) VALUES (N'06a447bd-8fa7-42df-8c39-ae53d4aee69b', N'13566F8B-38F2-4A84-A06C-DFF5B9FFD3CC', N'高压电工作业证', N'T310228198107152212', null, N'电工作业', N'上海市应急管理局', N'2010-07-01', N'2028-06-30', N'2026-01-27 01:53:43.897', N'1', null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_certificate] ([id], [userid], [certificate_name], [certificate_no], [job_code], [job_type], [issuing_authority], [issue_date], [expiration_date], [create_time], [flag], [review_date], [alarm_id]) VALUES (N'18b8b3c8-300e-4076-9bf6-bf6ddb00260f', N'19A6254B-F396-407A-8193-A27E65AC4805', N'高压电工作业证', N'T310228197701143816', null, N'电工作业', N'上海市应急管理局', N'2023-10-17', N'2029-10-16', N'2026-01-27 01:53:43.977', N'1', null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_certificate] ([id], [userid], [certificate_name], [certificate_no], [job_code], [job_type], [issuing_authority], [issue_date], [expiration_date], [create_time], [flag], [review_date], [alarm_id]) VALUES (N'5bf0b4aa-4f6c-4f2f-8182-2cab189eaebc', N'13566F8B-38F2-4A84-A06C-DFF5B9FFD3CC', N'低压电工作业证', N'T310228198107152212', null, N'电工作业', N'上海市应急管理局', N'2021-05-24', N'2027-05-23', N'2026-01-27 01:53:43.823', N'1', null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_certificate] ([id], [userid], [certificate_name], [certificate_no], [job_code], [job_type], [issuing_authority], [issue_date], [expiration_date], [create_time], [flag], [review_date], [alarm_id]) VALUES (N'74aaf58c-b9b5-43ba-8e81-7e27dffcd806', N'19A6254B-F396-407A-8193-A27E65AC4805', N'塔化焊接与热切副作业证', N'1310228197701143816', null, N'中接与热切测作', N'上海市应急管理局', N'2023-11-12', N'2028-11-05', N'2026-01-27 01:53:44.010', N'1', null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_certificate] ([id], [userid], [certificate_name], [certificate_no], [job_code], [job_type], [issuing_authority], [issue_date], [expiration_date], [create_time], [flag], [review_date], [alarm_id]) VALUES (N'96c602bd-2942-4d99-899b-14aadf5f00ea', N'19A6254B-F396-407A-8193-A27E65AC4805', N'低压电工作业证', N'T310228197701143816', null, N'电工作业', N'上海市应急管理局', N'2023-05-06', N'2029-05-05', N'2026-01-27 01:53:43.940', N'1', null, null)
GO
GO

-- ----------------------------
-- Table structure for tb_safety_check_comprehensive
-- ----------------------------
DROP TABLE [dbo].[tb_safety_check_comprehensive]
GO
CREATE TABLE [dbo].[tb_safety_check_comprehensive] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[check_code] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[check_type] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[check_date] datetime NULL ,
[check_place] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[checker_id] varchar(600) COLLATE Chinese_PRC_CI_AS NULL ,
[checker_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[recorder_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[recorder_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[check_result] tinyint NULL ,
[check_result_detail] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[check_remark] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_dept_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_dept_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[copy_user_id] varchar(600) COLLATE Chinese_PRC_CI_AS NULL ,
[create_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[create_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[copy_user_name] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[corrective_action] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[confirm_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[confirm_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[status] tinyint NOT NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'综合检查记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'综合检查记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'综合检查记录主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'综合检查记录主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'check_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全检查编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全检查编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'check_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'check_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'check_place')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_place'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_place'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'checker_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'checker_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'checker_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'checker_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'checker_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'checker_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'recorder_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'记录人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'recorder_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'记录人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'recorder_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'recorder_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'记录人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'recorder_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'记录人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'recorder_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'check_result')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_result'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_result'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'check_result_detail')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'不相符内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_result_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'不相符内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_result_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'check_remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'附加说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'附加说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'check_remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'duty_dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'duty_dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'duty_dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'duty_dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'duty_dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'duty_dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'duty_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'duty_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责人名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责人名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'copy_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'抄送人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'copy_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'抄送人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'copy_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'create_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'create_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'copy_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'抄送人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'copy_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'抄送人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'copy_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'corrective_action')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改措施'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'corrective_action'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改措施'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'corrective_action'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'confirm_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验证人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'confirm_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验证人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'confirm_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'confirm_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验证人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'confirm_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验证人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'confirm_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_comprehensive', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_comprehensive'
, @level2type = 'COLUMN', @level2name = N'status'
GO

-- ----------------------------
-- Records of tb_safety_check_comprehensive
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_check_dayly
-- ----------------------------
DROP TABLE [dbo].[tb_safety_check_dayly]
GO
CREATE TABLE [dbo].[tb_safety_check_dayly] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[check_code] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[check_date] datetime NULL ,
[checker_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[checker_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[check_result] tinyint NULL ,
[check_result_detail] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[check_remark] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_dept_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_dept_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[copy_user_id] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[corrective_action] varchar(300) COLLATE Chinese_PRC_CI_AS NULL DEFAULT '' ,
[confirm_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[confirm_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[status] tinyint NOT NULL ,
[create_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[create_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[copy_user_name] varchar(300) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'日常检查记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'日常检查记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'check_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全检查编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全检查编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'check_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'checker_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'checker_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'checker_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'checker_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检察人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'checker_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检察人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'checker_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'check_result')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_result'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_result'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'check_result_detail')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'不相符内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_result_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'不相符内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_result_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'check_remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'附加说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'附加说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'check_remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'duty_dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'duty_dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'duty_dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'duty_dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'duty_dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'duty_dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'duty_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'duty_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责人名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责人名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'copy_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'抄送人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'copy_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'抄送人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'copy_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'corrective_action')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改措施'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'corrective_action'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改措施'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'corrective_action'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'confirm_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验证人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'confirm_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验证人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'confirm_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'confirm_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验证人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'confirm_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验证人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'confirm_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'create_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'create_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_dayly', 
'COLUMN', N'copy_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'抄送人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'copy_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'抄送人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_dayly'
, @level2type = 'COLUMN', @level2name = N'copy_user_name'
GO

-- ----------------------------
-- Records of tb_safety_check_dayly
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_check_special
-- ----------------------------
DROP TABLE [dbo].[tb_safety_check_special]
GO
CREATE TABLE [dbo].[tb_safety_check_special] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[check_code] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[check_item] int NULL ,
[check_date] datetime NULL ,
[check_place] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[checker_id] varchar(600) COLLATE Chinese_PRC_CI_AS NULL ,
[checker_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[recorder_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[recorder_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[check_result] tinyint NULL ,
[check_result_detail] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[check_remark] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_dept_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_dept_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[copy_user_id] varchar(600) COLLATE Chinese_PRC_CI_AS NULL ,
[copy_user_name] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[create_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[create_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[corrective_action] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[confirm_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[confirm_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[status] tinyint NOT NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'专项检查记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'专项检查记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'专项检查记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'专项检查记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'check_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全检查编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全检查编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'check_item')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查项'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_item'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查项'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_item'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'check_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'check_place')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_place'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_place'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'checker_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'checker_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'checker_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'checker_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'checker_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'checker_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'recorder_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'记录人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'recorder_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'记录人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'recorder_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'recorder_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'记录人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'recorder_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'记录人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'recorder_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'check_result')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'检查结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_result'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'检查结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_result'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'check_result_detail')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'不相符内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_result_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'不相符内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_result_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'check_remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'附加说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'附加说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'check_remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'duty_dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'duty_dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'duty_dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'duty_dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'duty_dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责部门名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'duty_dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'duty_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'duty_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改负责人名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改负责人名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'copy_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'抄送人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'copy_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'抄送人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'copy_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'copy_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'抄送人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'copy_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'抄送人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'copy_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'create_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'create_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'corrective_action')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'整改措施'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'corrective_action'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'整改措施'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'corrective_action'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'confirm_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验证人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'confirm_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验证人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'confirm_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'confirm_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'验证人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'confirm_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'验证人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'confirm_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_check_special', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_check_special'
, @level2type = 'COLUMN', @level2name = N'status'
GO

-- ----------------------------
-- Records of tb_safety_check_special
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_education_builder
-- ----------------------------
DROP TABLE [dbo].[tb_safety_education_builder]
GO
CREATE TABLE [dbo].[tb_safety_education_builder] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[education_code] varchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[education_date] datetime NOT NULL ,
[gender] varchar(4) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[company] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[deadline] datetime NOT NULL ,
[file_id] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[safety_job_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'施工人员教育记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'施工人员教育记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'education_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训记录编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'education_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训记录编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'education_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'education_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'education_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'education_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'gender')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'施工人员性别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'gender'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'施工人员性别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'gender'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'施工人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'施工人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'施工单位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'施工单位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'deadline')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训有效期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'deadline'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训有效期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'deadline'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'file_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'附件id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'file_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'附件id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'file_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_builder', 
'COLUMN', N'safety_job_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全作业记录主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'safety_job_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全作业记录主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_builder'
, @level2type = 'COLUMN', @level2name = N'safety_job_id'
GO

-- ----------------------------
-- Records of tb_safety_education_builder
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_education_insider
-- ----------------------------
DROP TABLE [dbo].[tb_safety_education_insider]
GO
CREATE TABLE [dbo].[tb_safety_education_insider] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[education_type] tinyint NOT NULL ,
[education_code] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[idcard] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[birthday] date NOT NULL ,
[work_time] date NOT NULL ,
[hiredate] date NOT NULL ,
[post] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[duty] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_title] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[point] decimal(5,2) NULL ,
[gender] varchar(4) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[file_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[user_card_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[job_inside_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内部人员教育记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内部人员教育记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'education_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'education_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'education_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'education_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训记录编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'education_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训记录编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'education_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'userid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'user表ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'userid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'user表ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'userid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'idcard')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'身份证号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'idcard'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'身份证号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'idcard'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'birthday')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'出生日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'birthday'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'出生日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'birthday'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'work_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参加工作时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'work_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参加工作时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'work_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'hiredate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入职本司时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'hiredate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入职本司时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'hiredate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'post')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'从事岗位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'post'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'从事岗位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'post'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'duty')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'职务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'duty'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'职务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'duty'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'job_title')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'职称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'job_title'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'职称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'job_title'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'point')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'综合考试成绩'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'point'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'综合考试成绩'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'point'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'gender')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'性别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'gender'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'性别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'gender'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'file_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'文件id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'file_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'文件id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'file_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'user_card_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'user_card_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'user_card_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属部门'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属部门'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_insider', 
'COLUMN', N'job_inside_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内部作业记录主键（废弃）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'job_inside_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内部作业记录主键（废弃）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_insider'
, @level2type = 'COLUMN', @level2name = N'job_inside_id'
GO

-- ----------------------------
-- Records of tb_safety_education_insider
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_education_trainee
-- ----------------------------
DROP TABLE [dbo].[tb_safety_education_trainee]
GO
CREATE TABLE [dbo].[tb_safety_education_trainee] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[education_code] varchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[education_date] datetime NOT NULL ,
[gender] varchar(4) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[company] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dept_name] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[post] varchar(30) COLLATE Chinese_PRC_CI_AS NULL ,
[deadline] datetime NOT NULL ,
[file_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实习人员教育记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实习人员教育记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'education_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训记录编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'education_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训记录编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'education_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'education_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'education_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'education_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'gender')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实习人员性别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'gender'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实习人员性别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'gender'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实习人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实习人员姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实习单位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实习单位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属部门'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属部门'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'post')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'岗位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'post'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'岗位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'post'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'deadline')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训有效期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'deadline'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训有效期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'deadline'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'file_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'附件id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'file_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'附件id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'file_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_trainee', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_trainee'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO

-- ----------------------------
-- Records of tb_safety_education_trainee
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_education_visitor
-- ----------------------------
DROP TABLE [dbo].[tb_safety_education_visitor]
GO
CREATE TABLE [dbo].[tb_safety_education_visitor] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[education_code] varchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[education_date] datetime NOT NULL ,
[usher_id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[usher_name] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[visitor_company] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[vistor_num] int NOT NULL ,
[access_time] datetime NOT NULL ,
[leave_time] datetime NOT NULL ,
[file_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[contact] varchar(30) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'访客安全教育记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'访客安全教育记录'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'education_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训记录编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'education_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训记录编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'education_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'education_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'培训日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'education_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'培训日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'education_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'usher_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接洽人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'usher_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接洽人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'usher_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'usher_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接洽人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'usher_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接洽人姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'usher_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'visitor_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'访客单位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'visitor_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'访客单位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'visitor_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'vistor_num')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'访客数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'vistor_num'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'访客数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'vistor_num'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'access_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'来访时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'access_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'来访时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'access_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'leave_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'离开时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'leave_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'离开时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'leave_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'file_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'附件id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'file_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'附件id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'file_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_education_visitor', 
'COLUMN', N'contact')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'contact'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_education_visitor'
, @level2type = 'COLUMN', @level2name = N'contact'
GO

-- ----------------------------
-- Records of tb_safety_education_visitor
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_external_staff
-- ----------------------------
DROP TABLE [dbo].[tb_safety_external_staff]
GO
CREATE TABLE [dbo].[tb_safety_external_staff] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sex] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[company] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[birthday] date NULL ,
[usher_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[usher_dept] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[duty] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_title] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NULL ,
[idcard] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'外部人员信息表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'外部人员信息表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'外部人员信息表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'外部人员信息表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'姓名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'sex')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'性别  0女  1男'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'sex'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'性别  0女  1男'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'sex'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属公司单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属公司单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'birthday')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'出生日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'birthday'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'出生日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'birthday'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'usher_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接洽人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'usher_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接洽人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'usher_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'usher_dept')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接洽人所属部门'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'usher_dept'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接洽人所属部门'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'usher_dept'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'duty')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'职务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'duty'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'职务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'duty'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'job_title')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'职称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'job_title'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'职称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'job_title'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据插入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据插入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_external_staff', 
'COLUMN', N'idcard')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'身份证号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'idcard'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'身份证号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_external_staff'
, @level2type = 'COLUMN', @level2name = N'idcard'
GO

-- ----------------------------
-- Records of tb_safety_external_staff
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_files
-- ----------------------------
DROP TABLE [dbo].[tb_safety_files]
GO
CREATE TABLE [dbo].[tb_safety_files] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[file_name] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[original_file_name] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[upload_time] datetime NOT NULL ,
[absolute_path] varchar(300) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[access_url] varchar(300) COLLATE Chinese_PRC_CI_AS NULL ,
[function_code] tinyint NULL ,
[status_code] tinyint NULL ,
[biz_id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全管理模块文件管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全管理模块文件管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'file_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'保存文件名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'file_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'保存文件名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'file_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'original_file_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'原始文件名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'original_file_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'原始文件名'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'original_file_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'upload_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上传时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'upload_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上传时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'upload_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'absolute_path')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'保存路径'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'absolute_path'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'保存路径'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'absolute_path'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'access_url')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'网络访问路径'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'access_url'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'网络访问路径'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'access_url'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'function_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'功能分类'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'function_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'功能分类'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'function_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'status_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态分类'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'status_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态分类'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'status_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_files', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属业务主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属业务主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_files'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO

-- ----------------------------
-- Records of tb_safety_files
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_flow_task
-- ----------------------------
DROP TABLE [dbo].[tb_safety_flow_task]
GO
CREATE TABLE [dbo].[tb_safety_flow_task] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[biz_id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[task_name] varchar(500) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[is_done] bit NOT NULL ,
[done_time] datetime NULL ,
[auditor] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[copy] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全管理模块流程信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全管理模块流程信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'业务主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'业务主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
'COLUMN', N'task_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程节点名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'task_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程节点名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'task_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
'COLUMN', N'is_done')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否完成'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'is_done'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否完成'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'is_done'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
'COLUMN', N'done_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'done_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'done_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
'COLUMN', N'auditor')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审批人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'auditor'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审批人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'auditor'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
'COLUMN', N'copy')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'抄送人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'copy'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'抄送人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'copy'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO

-- ----------------------------
-- Records of tb_safety_flow_task
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_flow_task_detail
-- ----------------------------
DROP TABLE [dbo].[tb_safety_flow_task_detail]
GO
CREATE TABLE [dbo].[tb_safety_flow_task_detail] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[flow_task_id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[record] varchar(300) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[create_time] datetime NOT NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task_detail', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全管理模块流程详情信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全管理模块流程详情信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task_detail', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task_detail', 
'COLUMN', N'flow_task_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'task节点主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
, @level2type = 'COLUMN', @level2name = N'flow_task_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'task节点主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
, @level2type = 'COLUMN', @level2name = N'flow_task_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task_detail', 
'COLUMN', N'record')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
, @level2type = 'COLUMN', @level2name = N'record'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
, @level2type = 'COLUMN', @level2name = N'record'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_flow_task_detail', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_flow_task_detail'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO

-- ----------------------------
-- Records of tb_safety_flow_task_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_job_inside
-- ----------------------------
DROP TABLE [dbo].[tb_safety_job_inside]
GO
CREATE TABLE [dbo].[tb_safety_job_inside] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[create_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[create_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[job_code] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[job_type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[job_location] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[job_company] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[competent_dept_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[competent_dept_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[competent_advice] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[project_begin_date] datetime NULL ,
[project_end_date] datetime NULL ,
[duty_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[contact] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[job_content] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[countersign_user_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[countersign_user_name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[copy_user_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[copy_user_name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[countersign_status] int NULL ,
[countersign_detail] varchar(900) COLLATE Chinese_PRC_CI_AS NULL ,
[job_status] int NULL ,
[process_instance_id] varchar(60) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'内部作业管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'内部作业管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'create_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'create_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'job_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'job_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'job_location')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_location'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_location'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'job_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'competent_dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主管部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'competent_dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主管部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'competent_dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'competent_dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主管部门name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'competent_dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主管部门name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'competent_dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'competent_advice')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主管部门意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'competent_advice'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主管部门意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'competent_advice'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'project_begin_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'项目开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'project_begin_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'项目开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'project_begin_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'project_end_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'项目结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'project_end_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'项目结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'project_end_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'duty_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'duty_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业负责人name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业负责人name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'contact')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'contact'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'contact'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'job_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'countersign_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'相关部门会签人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'countersign_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'相关部门会签人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'countersign_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'countersign_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'相关部门会签人员name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'countersign_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'相关部门会签人员name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'countersign_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'copy_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分管领导id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'copy_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分管领导id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'copy_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'copy_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分管领导name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'copy_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分管领导name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'copy_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'countersign_status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'会签状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'countersign_status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'会签状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'countersign_status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'countersign_detail')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'会签详情'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'countersign_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'会签详情'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'countersign_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_inside', 
'COLUMN', N'job_status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_inside'
, @level2type = 'COLUMN', @level2name = N'job_status'
GO

-- ----------------------------
-- Records of tb_safety_job_inside
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_job_outside
-- ----------------------------
DROP TABLE [dbo].[tb_safety_job_outside]
GO
CREATE TABLE [dbo].[tb_safety_job_outside] (
[id] varchar(40) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[create_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[create_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[job_code] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[job_type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[job_location] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[job_company] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[competent_dept_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[competent_dept_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[competent_advice] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[project_begin_date] datetime NULL ,
[project_end_date] datetime NULL ,
[duty_user_id] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[duty_user_name] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[contact] varchar(40) COLLATE Chinese_PRC_CI_AS NULL ,
[job_content] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[job_status] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'外部作业管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'外部作业管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'create_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'create_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'create_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'发起人name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'发起人name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'create_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'job_code')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_code'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_code'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'job_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'job_location')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_location'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业地点'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_location'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'job_company')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_company'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_company'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'competent_dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主管部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'competent_dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主管部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'competent_dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'competent_dept_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主管部门name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'competent_dept_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主管部门name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'competent_dept_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'competent_advice')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主管部门意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'competent_advice'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主管部门意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'competent_advice'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'project_begin_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'项目开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'project_begin_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'项目开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'project_begin_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'project_end_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'项目结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'project_end_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'项目结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'project_end_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'duty_user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业负责人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'duty_user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'duty_user_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业负责人name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业负责人name'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'duty_user_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'contact')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'contact'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'contact'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'job_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'作业内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'作业内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_job_outside', 
'COLUMN', N'job_status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_job_outside'
, @level2type = 'COLUMN', @level2name = N'job_status'
GO

-- ----------------------------
-- Records of tb_safety_job_outside
-- ----------------------------

-- ----------------------------
-- Table structure for tb_safety_staff_archives
-- ----------------------------
DROP TABLE [dbo].[tb_safety_staff_archives]
GO
CREATE TABLE [dbo].[tb_safety_staff_archives] (
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[idcard] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[birthday] date NULL ,
[work_time] date NULL ,
[hiredate] date NULL ,
[post] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[duty] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_title] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[create_time] datetime NULL ,
[hometown] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[marry] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[qualification] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'人员档案管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'人员档案管理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'userid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'user表ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'userid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'user表ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'userid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'idcard')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'身份证号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'idcard'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'身份证号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'idcard'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'birthday')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'生日'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'birthday'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'生日'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'birthday'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'work_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参加工作时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'work_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参加工作时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'work_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'hiredate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入职时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'hiredate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入职时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'hiredate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'post')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'从事岗位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'post'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'从事岗位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'post'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'duty')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'职务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'duty'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'职务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'duty'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'job_title')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'职称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'job_title'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'职称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'job_title'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_safety_staff_archives', 
'COLUMN', N'create_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'新增时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'create_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'新增时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_safety_staff_archives'
, @level2type = 'COLUMN', @level2name = N'create_time'
GO

-- ----------------------------
-- Records of tb_safety_staff_archives
-- ----------------------------
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'0219AB41-ECFB-428F-B4E9-B3CC64ADAAFC', N'1029', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'087552C2-4316-435F-8A8B-55EC503C052A', N'1009', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'115BBD0D-2101-46B4-83FF-872BC4EA4F0A', N'1013', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'13566F8B-38F2-4A84-A06C-DFF5B9FFD3CC', N'1037', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'14B60AAA-817D-4738-8103-ECFBBF749EB0', N'1016', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'19A6254B-F396-407A-8193-A27E65AC4805', N'1038', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'1DC2E46F-3C26-4B69-88FB-AA9270717489', N'1025', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'36F95116-9432-47C0-B4E9-52F471D69CE9', N'1004', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'3FA277C7-AB01-4584-9A30-F591EBB677F7', N'1030', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'4996AE8F-2CDC-4D42-B968-2C71B2F25B0F', N'1008', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'4B3BAE09-456B-4112-8FDD-7211B9CAEFFD', N'1018', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'57E4F697-7C93-491E-A10F-A5CDF4FCB35D', N'1031', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'66DC1F65-4300-4BA7-8EED-CDED2BF61226', N'1033', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'75BC5ADD-E0EA-434A-A778-EB5B69C1CD99', N'1034', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'7F2CDC5B-9DF2-4AED-AF9A-CC0A262AE910', N'1015', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'876A51CD-5A5B-4D08-A77E-ABEF310D1859', N'1007', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'88FC14BE-E091-402D-BD81-E1A14AF0271D', N'1010', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'92893c2c12aa4d6680e2a489c3b51797', N'1001', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'A13BCBDF-A493-4449-B13E-500258151887', N'1014', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'A3A86299-8DC2-4AE7-985F-5BF8C2A705E1', N'1003', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'B76629DD-AF22-4C13-8AF4-097BD8500479', N'1024', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'C183978A-6ED4-4946-B5BF-4AF2A5EF68AF', N'1012', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'C73DA07E-3AA1-4833-925C-0C3AE4AAD24A', N'1035', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'D1FF2B59-A1DE-4F68-B75A-5477A1B497A6', N'1028', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'D394A806-FD85-41E2-9447-5A4F4091B27A', N'1011', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'D45BF577-E91D-4D3C-8848-E7A0FC4568EB', N'1006', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'D4F550B9-EE45-4FC8-95F0-2E7493F2324E', N'1026', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'D8437394-E501-4158-819D-3EE5A68827E8', N'1005', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'DA40BA0D-3143-4637-83CB-3DA45B67E12D', N'1017', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'DC044CC4-4ED8-4AFE-8A7C-9DA248EFB455', N'1022', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'DE6F833E-2C19-4C0F-87B1-33F7066EE51C', N'1023', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'EE54D37F-35A9-4F95-85BA-318FE315F3E1', N'1002', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'EE77C9DE-F315-40A5-AD47-AC70BC20D44D', N'1020', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'EF5F0AEF-D13A-48CB-99EA-F8099B3D024F', N'1021', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'emp01', N'0101', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'F83821BD-57A8-464E-9FCE-99CBF18EAA9D', N'1036', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'FA7B19F3-61DF-4FFC-9EC7-3619E03CBE28', N'1027', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'FAA20F94-AA39-45C9-8762-E2437A2C3610', N'1032', null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_safety_staff_archives] ([userid], [idcard], [birthday], [work_time], [hiredate], [post], [duty], [job_title], [create_time], [hometown], [marry], [qualification]) VALUES (N'FC6103DA-B5EB-44D7-AA8D-A6BD080F7DB5', N'1019', null, null, null, null, null, null, null, null, null, null)
GO
GO

-- ----------------------------
-- Table structure for TB_SCADAPIC
-- ----------------------------
DROP TABLE [dbo].[TB_SCADAPIC]
GO
CREATE TABLE [dbo].[TB_SCADAPIC] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[bizId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processSectionId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[text] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[picPath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_SCADAPIC
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SCADAPIC_EM
-- ----------------------------
DROP TABLE [dbo].[TB_SCADAPIC_EM]
GO
CREATE TABLE [dbo].[TB_SCADAPIC_EM] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipid] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] float(53) NULL ,
[posy] float(53) NULL ,
[containerWidth] float(53) NULL ,
[containerHeight] float(53) NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[ownerid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[txt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[width] float(53) NULL ,
[height] float(53) NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SCADAPIC_EM', 
'COLUMN', N'width')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备选框宽度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_EM'
, @level2type = 'COLUMN', @level2name = N'width'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备选框宽度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_EM'
, @level2type = 'COLUMN', @level2name = N'width'
GO

-- ----------------------------
-- Records of TB_SCADAPIC_EM
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SCADAPIC_FILE
-- ----------------------------
DROP TABLE [dbo].[TB_SCADAPIC_FILE]
GO
CREATE TABLE [dbo].[TB_SCADAPIC_FILE] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SCADAPIC_FILE
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SCADAPIC_MPoint
-- ----------------------------
DROP TABLE [dbo].[TB_SCADAPIC_MPoint]
GO
CREATE TABLE [dbo].[TB_SCADAPIC_MPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] float(53) NULL ,
[posy] float(53) NULL ,
[containerWidth] float(53) NULL ,
[containerHeight] float(53) NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[ownerid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[txt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fsize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[accuracy] int NULL ,
[expressionFlag] varchar(2) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SCADAPIC_MPoint', 
'COLUMN', N'expressionFlag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'启用表达式标识,启用为1，其它为未启用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_MPoint'
, @level2type = 'COLUMN', @level2name = N'expressionFlag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'启用表达式标识,启用为1，其它为未启用'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_MPoint'
, @level2type = 'COLUMN', @level2name = N'expressionFlag'
GO

-- ----------------------------
-- Records of TB_SCADAPIC_MPoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SCADAPIC_MPoint_Expression
-- ----------------------------
DROP TABLE [dbo].[TB_SCADAPIC_MPoint_Expression]
GO
CREATE TABLE [dbo].[TB_SCADAPIC_MPoint_Expression] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[expression] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[expressionWay] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SCADAPIC_MPoint_Expression', 
'COLUMN', N'mpid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'测量点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_MPoint_Expression'
, @level2type = 'COLUMN', @level2name = N'mpid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'测量点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_MPoint_Expression'
, @level2type = 'COLUMN', @level2name = N'mpid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SCADAPIC_MPoint_Expression', 
'COLUMN', N'expression')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'表达式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_MPoint_Expression'
, @level2type = 'COLUMN', @level2name = N'expression'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'表达式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_MPoint_Expression'
, @level2type = 'COLUMN', @level2name = N'expression'
GO

-- ----------------------------
-- Records of TB_SCADAPIC_MPoint_Expression
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SCADAPIC_ProcessSection
-- ----------------------------
DROP TABLE [dbo].[TB_SCADAPIC_ProcessSection]
GO
CREATE TABLE [dbo].[TB_SCADAPIC_ProcessSection] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processSectionId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] float(53) NULL ,
[posy] float(53) NULL ,
[containerWidth] float(53) NULL ,
[containerHeight] float(53) NULL ,
[width] float(53) NULL ,
[height] float(53) NULL ,
[picUrl] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[ownerid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[txt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_SCADAPIC_ProcessSection
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SCADAPIC_TXT
-- ----------------------------
DROP TABLE [dbo].[TB_SCADAPIC_TXT]
GO
CREATE TABLE [dbo].[TB_SCADAPIC_TXT] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] float(53) NULL ,
[posy] float(53) NULL ,
[containerWidth] float(53) NULL ,
[containerHeight] float(53) NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[content] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ownerid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fsize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SCADAPIC_TXT', 
'COLUMN', N'containerWidth')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'父窗体宽度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_TXT'
, @level2type = 'COLUMN', @level2name = N'containerWidth'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'父窗体宽度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_TXT'
, @level2type = 'COLUMN', @level2name = N'containerWidth'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SCADAPIC_TXT', 
'COLUMN', N'containerHeight')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'父窗体高度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_TXT'
, @level2type = 'COLUMN', @level2name = N'containerHeight'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'父窗体高度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SCADAPIC_TXT'
, @level2type = 'COLUMN', @level2name = N'containerHeight'
GO

-- ----------------------------
-- Records of TB_SCADAPIC_TXT
-- ----------------------------

-- ----------------------------
-- Table structure for tb_schedule_job
-- ----------------------------
DROP TABLE [dbo].[tb_schedule_job]
GO
CREATE TABLE [dbo].[tb_schedule_job] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[job_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[job_group] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[method_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[bean_class] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[status] int NULL ,
[cron_expression] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[params] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_schedule_job
-- ----------------------------
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'1', N'安全任务计划', null, N'fun1', N'com.sipai.quartz.job.PatrolPlanSafeJob', N'0', N'0 0 2 * * ?', N'', N'0 0 2 * * ?', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'10', N'报警数据推送（ 安全用具及消防器具）（分页）', null, N'fun7', N'com.sipai.quartz.job.HQAQAlarmJob', N'0', N'0/5 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'101', N'安全任务/隐患检查（超时报警）', null, N'fun1', N'com.sipai.quartz.job.PatrolRecordTimeoutAlarm', N'0', N'0 0 6 ? * *', N'', N'每天6点', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'102', N'安全任务/隐患检查（超时报警恢复）', null, N'fun2', N'com.sipai.quartz.job.PatrolRecordTimeoutAlarm', N'0', N'0/20 * *  * * ?', N'', N'每20秒', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'103', N'隐患整改（超时报警）', null, N'fun3', N'com.sipai.quartz.job.PatrolRecordTimeoutAlarm', N'0', N'0 0 6 ? * *', N'', N'每天6点', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'104', N'隐患整改（所有报警恢复）', null, N'fun4', N'com.sipai.quartz.job.PatrolRecordTimeoutAlarm', N'0', N'0/20 * *  * * ?', N'', N'每20秒', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'11', N'报警数据推送（数据及表格推送2）（分页）', null, N'fun8', N'com.sipai.quartz.job.HQAQAlarmJob', N'0', N'0/2 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'3', N'报警数据推送（报警数量）（首页）', null, N'fun1', N'com.sipai.quartz.job.HQAQAlarmJob', N'0', N'0/2 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'4', N'报警数据推送（周界报警）（首页）', null, N'fun2', N'com.sipai.quartz.job.HQAQAlarmJob', N'0', N'0/2 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'5', N'报警数据推送（区域报警）（首页）', null, N'fun3', N'com.sipai.quartz.job.HQAQAlarmJob', N'0', N'0/2 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'6', N'报警数据推送（区域报警）（分页）', null, N'fun4', N'com.sipai.quartz.job.HQAQAlarmJob', N'0', N'0/2 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'7', N'报警数据推送（数据及表格推送）（分页）', null, N'fun5', N'com.sipai.quartz.job.HQAQAlarmJob', N'0', N'0/2 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'8', N'报警数据推送（ 各类报警数据）（分页）', null, N'fun6', N'com.sipai.quartz.job.HQAQAlarmJob', N'0', N'0/2 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO
INSERT INTO [dbo].[tb_schedule_job] ([id], [job_name], [job_group], [method_name], [bean_class], [status], [cron_expression], [params], [remark], [insdt], [insuser], [upsdt], [upsuser], [unit_id]) VALUES (N'9', N'行车模型报警', null, N'fun1', N'com.sipai.quartz.job.HQAQModelAlarmJob', N'0', N'0/20 * *  * * ?', N'', N'', N'2022-05-27 20:15:18.000', N'emp01', N'2022-06-15 01:54:35.000', N'emp01', N'021HQWS')
GO
GO

-- ----------------------------
-- Table structure for tb_schedule_job_detail
-- ----------------------------
DROP TABLE [dbo].[tb_schedule_job_detail]
GO
CREATE TABLE [dbo].[tb_schedule_job_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[paramname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[paramvalue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ord] int NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_schedule_job_detail
-- ----------------------------
INSERT INTO [dbo].[tb_schedule_job_detail] ([id], [pid], [taskname], [taskid], [paramname], [paramvalue], [unitid], [ord], [memo], [insuser], [insdt], [upsuser], [upsdt]) VALUES (N'022f0bce6aa841a1b493afaa3335c462', N'424a8b9914274374b91755eafe7592e1', N'测试年报_增城', N'5e285297c6a6474fb4263c42f7401e0b', null, null, N'020ZCZX', null, null, N'emp01', N'2021-12-07 13:30:46.000', null, null)
GO
GO
INSERT INTO [dbo].[tb_schedule_job_detail] ([id], [pid], [taskname], [taskid], [paramname], [paramvalue], [unitid], [ord], [memo], [insuser], [insdt], [upsuser], [upsdt]) VALUES (N'de28de4a7c9e4c0a94f71c0332202d6d', N'fe1adfa393654f0f8c7a5d7d586f986a', N'测试年报_永和', N'a647bb5a6de04fc392e8831f560fc578', null, null, N'020ZCYH', null, null, N'emp01', N'2021-12-07 13:29:58.000', null, null)
GO
GO

-- ----------------------------
-- Table structure for tb_schedule_job_type
-- ----------------------------
DROP TABLE [dbo].[tb_schedule_job_type]
GO
CREATE TABLE [dbo].[tb_schedule_job_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[interfaceurl] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[ord] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_schedule_job_type
-- ----------------------------
INSERT INTO [dbo].[tb_schedule_job_type] ([id], [name], [interfaceurl], [unitid], [memo], [ord], [insuser], [insdt], [upsuser], [upsdt]) VALUES (N'b076af17e81645aeb76148e1cc1ad791', N'生产指标控制', N'/report/rptInfoSet/getList.do', null, N'', null, N'emp01', N'2021-09-28 15:08:37.000', N'emp01', N'2021-09-28 15:12:16.000')
GO
GO
INSERT INTO [dbo].[tb_schedule_job_type] ([id], [name], [interfaceurl], [unitid], [memo], [ord], [insuser], [insdt], [upsuser], [upsdt]) VALUES (N'df1de11c71a847ccbf74ca4bba6e4dc4', N'报表管理', N'/report/rptInfoSet/getList.do', null, N'', null, N'emp01', N'2021-05-02 09:55:02.000', null, null)
GO
GO

-- ----------------------------
-- Table structure for TB_Sewage_company_information
-- ----------------------------
DROP TABLE [dbo].[TB_Sewage_company_information]
GO
CREATE TABLE [dbo].[TB_Sewage_company_information] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lgtd] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lttd] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Sewage_company_information
-- ----------------------------
INSERT INTO [dbo].[TB_Sewage_company_information] ([id], [pname], [lgtd], [lttd]) VALUES (N'1', N'???', N'121.406196', N'30.796109')
GO
GO
INSERT INTO [dbo].[TB_Sewage_company_information] ([id], [pname], [lgtd], [lttd]) VALUES (N'2', N'?????', N'121.345408', N'30.805516')
GO
GO
INSERT INTO [dbo].[TB_Sewage_company_information] ([id], [pname], [lgtd], [lttd]) VALUES (N'3', N'????', N'121.313359', N'30.727125')
GO
GO
INSERT INTO [dbo].[TB_Sewage_company_information] ([id], [pname], [lgtd], [lttd]) VALUES (N'4', N'????', N'121.332251', N'30.727927')
GO
GO
INSERT INTO [dbo].[TB_Sewage_company_information] ([id], [pname], [lgtd], [lttd]) VALUES (N'5', N'???', N'121.351874', N'30.763835')
GO
GO
INSERT INTO [dbo].[TB_Sewage_company_information] ([id], [pname], [lgtd], [lttd]) VALUES (N'6', N'???', N'121.309099', N'30.884895')
GO
GO
INSERT INTO [dbo].[TB_Sewage_company_information] ([id], [pname], [lgtd], [lttd]) VALUES (N'7', N'???', N'121.293247', N'30.803368')
GO
GO

-- ----------------------------
-- Table structure for TB_Sewage_Input
-- ----------------------------
DROP TABLE [dbo].[TB_Sewage_Input]
GO
CREATE TABLE [dbo].[TB_Sewage_Input] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[sewage_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[input_cod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[input_ph] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[input_ammonia_nitrogen] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[input_phosphorus] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[input_nitrogen] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[input_dt] datetime NULL ,
[input_ss] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[input_bod] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[input_chroma] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[input_userid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Sewage_Input
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Sewage_pumpStation_information
-- ----------------------------
DROP TABLE [dbo].[TB_Sewage_pumpStation_information]
GO
CREATE TABLE [dbo].[TB_Sewage_pumpStation_information] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[level_mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[flow_mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[service_scope] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[operation_mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[state_mpids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[lgtd] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lttd] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[BZ_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[CJBZ_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Sewage_pumpStation_information
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Sewage_pumpStationAttributes
-- ----------------------------
DROP TABLE [dbo].[TB_Sewage_pumpStationAttributes]
GO
CREATE TABLE [dbo].[TB_Sewage_pumpStationAttributes] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[typeName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[colorSt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Sewage_pumpStationAttributes
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Sewage_Source
-- ----------------------------
DROP TABLE [dbo].[TB_Sewage_Source]
GO
CREATE TABLE [dbo].[TB_Sewage_Source] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[contract_number] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[contract_order] int NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[contract_date] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[username] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[phone] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[vent_num] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[permit_num] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[plane_num] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[environment_num] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[trade] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[permit] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[displacement] int NULL ,
[standard] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[city] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[society_number] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[longitude_latitude] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[attribute] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] date NULL ,
[insuser] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[account_number] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[account_name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abbreviation] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[area] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[important_level] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[isMainCompany] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Sewage_Source
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Sewage_Source1
-- ----------------------------
DROP TABLE [dbo].[TB_Sewage_Source1]
GO
CREATE TABLE [dbo].[TB_Sewage_Source1] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] date NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[account_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[account_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[abbreviation] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[area] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[important_level] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Sewage_Source1
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Sewage_workshop_pumpStation
-- ----------------------------
DROP TABLE [dbo].[TB_Sewage_workshop_pumpStation]
GO
CREATE TABLE [dbo].[TB_Sewage_workshop_pumpStation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lgtd] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lttd] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[level_mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[flow_mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[service_scope] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[operation_mode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[state_mpids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Sewage_workshop_pumpStation
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ApplyPurchasePlan
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ApplyPurchasePlan]
GO
CREATE TABLE [dbo].[TB_SparePart_ApplyPurchasePlan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[applicant] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_apply_purchase_startdate] int NULL ,
[plan_apply_purchase_enddate] int NULL ,
[department_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ApplyPurchasePlan', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'采购计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'采购计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ApplyPurchasePlan', 
'COLUMN', N'applicant')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'applicant'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'applicant'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ApplyPurchasePlan', 
'COLUMN', N'plan_apply_purchase_startdate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请采购开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'plan_apply_purchase_startdate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请采购开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'plan_apply_purchase_startdate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ApplyPurchasePlan', 
'COLUMN', N'plan_apply_purchase_enddate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申请采购结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'plan_apply_purchase_enddate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申请采购结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'plan_apply_purchase_enddate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ApplyPurchasePlan', 
'COLUMN', N'department_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'department_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'department_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ApplyPurchasePlan', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'类型（部门申购/采购计划）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'类型（部门申购/采购计划）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ApplyPurchasePlan', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ApplyPurchasePlan', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ApplyPurchasePlan'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_SparePart_ApplyPurchasePlan
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Channels
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Channels]
GO
CREATE TABLE [dbo].[TB_SparePart_Channels] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[source] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Channels', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Channels', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Channels', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Channels', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Channels', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Channels', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Channels', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Channels', 
'COLUMN', N'describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Channels'
, @level2type = 'COLUMN', @level2name = N'describe'
GO

-- ----------------------------
-- Records of TB_SparePart_Channels
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ConsumeDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ConsumeDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_ConsumeDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[outstock_record_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[consume_number] money NULL ,
[work_order_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_ConsumeDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Contract
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Contract]
GO
CREATE TABLE [dbo].[TB_SparePart_Contract] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contractNumber] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[contractName] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[contractClassId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contractTaxRateId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[purchaseMethodsId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[channelsId] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[supplierId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[agentId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contractAmount] money NULL ,
[qualityDeposit] money NULL ,
[warrantyPeriodId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contractStartDate] datetime NULL ,
[contractEndDate] datetime NULL ,
[PerformanceId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[purchaseId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contract_audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[countersign_audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[reject_reason] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[firstparty] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[helpers] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[helpers_log] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[performanceBond] money NULL ,
[supplyPlanStartDate] datetime NULL ,
[supplyPlanEndDate] datetime NULL ,
[supplyActualStartDate] datetime NULL ,
[supplyActualEndDate] datetime NULL ,
[warrantyDeposit] money NULL ,
[settlement_amount] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'contractNumber')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractNumber'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractNumber'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'contractName')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractName'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractName'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'contractClassId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同类型ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractClassId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同类型ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractClassId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'contractTaxRateId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同税率ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractTaxRateId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同税率ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractTaxRateId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'purchaseMethodsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'采购形式ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'purchaseMethodsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'采购形式ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'purchaseMethodsId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'channelsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'列资渠道ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'channelsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'列资渠道ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'channelsId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'supplierId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'supplierId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'supplierId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'agentId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'经办人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'agentId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'经办人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'agentId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'contractAmount')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractAmount'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractAmount'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'qualityDeposit')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'质保金'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'qualityDeposit'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'质保金'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'qualityDeposit'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'warrantyPeriodId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'质保期ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'warrantyPeriodId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'质保期ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'warrantyPeriodId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'contractStartDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractStartDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractStartDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'contractEndDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractEndDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contractEndDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'PerformanceId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同履行情况ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'PerformanceId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同履行情况ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'PerformanceId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'purchaseId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申购单ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'purchaseId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申购单ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'purchaseId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'contract_audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contract_audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'contract_audit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'countersign_audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'会签审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'countersign_audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'会签审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'countersign_audit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Contract', 
'COLUMN', N'reject_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'驳回原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'reject_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'驳回原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Contract'
, @level2type = 'COLUMN', @level2name = N'reject_reason'
GO

-- ----------------------------
-- Records of TB_SparePart_Contract
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Contract_file
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Contract_file]
GO
CREATE TABLE [dbo].[TB_SparePart_Contract_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_Contract_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ContractChange_file
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ContractChange_file]
GO
CREATE TABLE [dbo].[TB_SparePart_ContractChange_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_ContractChange_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ContractClass
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ContractClass]
GO
CREATE TABLE [dbo].[TB_SparePart_ContractClass] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractClass', 
'COLUMN', N'describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractClass'
, @level2type = 'COLUMN', @level2name = N'describe'
GO

-- ----------------------------
-- Records of TB_SparePart_ContractClass
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ContractDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ContractDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_ContractDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[supplier_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] money NULL ,
[price] money NULL ,
[total_money] money NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[purpose] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[contract_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subscribe_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail', 
'COLUMN', N'supplier_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'supplier_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'supplier_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail', 
'COLUMN', N'purpose')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用途'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'purpose'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用途'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'purpose'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail', 
'COLUMN', N'contract_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'contract_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'contract_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail', 
'COLUMN', N'subscribe_detail_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申购明细ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'subscribe_detail_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申购明细ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail'
, @level2type = 'COLUMN', @level2name = N'subscribe_detail_id'
GO

-- ----------------------------
-- Records of TB_SparePart_ContractDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ContractDetail_Invoice
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ContractDetail_Invoice]
GO
CREATE TABLE [dbo].[TB_SparePart_ContractDetail_Invoice] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[amountInvoice] money NULL ,
[invoiceDate] datetime NULL ,
[morder] int NULL ,
[contract_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[invoice_status] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Invoice', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Invoice', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Invoice', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Invoice', 
'COLUMN', N'amountInvoice')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开票金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'amountInvoice'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开票金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'amountInvoice'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Invoice', 
'COLUMN', N'invoiceDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开票日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'invoiceDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开票日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'invoiceDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Invoice', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Invoice', 
'COLUMN', N'contract_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'contract_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Invoice'
, @level2type = 'COLUMN', @level2name = N'contract_id'
GO

-- ----------------------------
-- Records of TB_SparePart_ContractDetail_Invoice
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ContractDetail_Invoice_file
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ContractDetail_Invoice_file]
GO
CREATE TABLE [dbo].[TB_SparePart_ContractDetail_Invoice_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_ContractDetail_Invoice_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ContractDetail_Payment
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ContractDetail_Payment]
GO
CREATE TABLE [dbo].[TB_SparePart_ContractDetail_Payment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[amountPaid] money NULL ,
[paymentDate] datetime NULL ,
[amountOutstanding] money NULL ,
[morder] int NULL ,
[contract_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[application_time] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[application_amount] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[payment_time] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[payment_amount] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[payment_status] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[invoice_ids] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Payment', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Payment', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Payment', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Payment', 
'COLUMN', N'amountPaid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'已付金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'amountPaid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'已付金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'amountPaid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Payment', 
'COLUMN', N'paymentDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'付款日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'paymentDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'付款日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'paymentDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Payment', 
'COLUMN', N'amountOutstanding')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'未付金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'amountOutstanding'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'未付金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'amountOutstanding'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Payment', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractDetail_Payment', 
'COLUMN', N'contract_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'合同ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'contract_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'合同ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractDetail_Payment'
, @level2type = 'COLUMN', @level2name = N'contract_id'
GO

-- ----------------------------
-- Records of TB_SparePart_ContractDetail_Payment
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ContractTaxRate
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ContractTaxRate]
GO
CREATE TABLE [dbo].[TB_SparePart_ContractTaxRate] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taxRate] float(53) NULL ,
[morder] int NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractTaxRate', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractTaxRate', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractTaxRate', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractTaxRate', 
'COLUMN', N'taxRate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'税率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'taxRate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'税率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'taxRate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractTaxRate', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractTaxRate', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractTaxRate', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ContractTaxRate', 
'COLUMN', N'describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ContractTaxRate'
, @level2type = 'COLUMN', @level2name = N'describe'
GO

-- ----------------------------
-- Records of TB_SparePart_ContractTaxRate
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Goods
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Goods]
GO
CREATE TABLE [dbo].[TB_SparePart_Goods] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[brand] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[model] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[max_reserve] float(53) NULL ,
[min_reserve] float(53) NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_ids] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[number] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[SignalTag] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'brand')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品品牌'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'brand'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品品牌'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'brand'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'model')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'规格型号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'model'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'规格型号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'model'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'class_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'class_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'class_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'unit')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品计量单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'unit'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品计量单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'unit'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'max_reserve')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'最大存储量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'max_reserve'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'最大存储量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'max_reserve'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'min_reserve')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'最小存储量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'min_reserve'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'最小存储量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'min_reserve'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods', 
'COLUMN', N'number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods'
, @level2type = 'COLUMN', @level2name = N'number'
GO

-- ----------------------------
-- Records of TB_SparePart_Goods
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Goods_AcceptanceApplyDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Goods_AcceptanceApplyDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_Goods_AcceptanceApplyDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[acceptance_apply_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_Goods_AcceptanceApplyDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Goods_Apply
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Goods_Apply]
GO
CREATE TABLE [dbo].[TB_SparePart_Goods_Apply] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[brand] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[model] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[examineId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[examineDt] datetime NULL ,
[examineExplain] datetime NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods_Apply', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods_Apply', 
'COLUMN', N'brand')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品品牌'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'brand'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品品牌'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'brand'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods_Apply', 
'COLUMN', N'model')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'规格型号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'model'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'规格型号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'model'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods_Apply', 
'COLUMN', N'class_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'class_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'class_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods_Apply', 
'COLUMN', N'unit')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品计量单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'unit'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品计量单位'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'unit'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Goods_Apply', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Goods_Apply'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_SparePart_Goods_Apply
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_GoodsClass
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_GoodsClass]
GO
CREATE TABLE [dbo].[TB_SparePart_GoodsClass] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[goods_class_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_GoodsClass
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_InStockRecord
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_InStockRecord]
GO
CREATE TABLE [dbo].[TB_SparePart_InStockRecord] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[instock_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[instock_date] datetime NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[taxrate] money NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[bill_number] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[invoice_number] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[purchaser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[check_purchaser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[special_ticket] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[channelsId] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[supplierId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fare_adjustment] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[vat_invoice] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入库编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入库编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'warehouse_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属仓库'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属仓库'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'goods_class_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品类别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'goods_class_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品类别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'goods_class_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'instock_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入库人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'instock_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入库人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'instock_man_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'audit_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'instock_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入库时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'instock_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入库时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'instock_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'total_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'total_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'total_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'taxrate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'税率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'taxrate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'税率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'taxrate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'channelsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'列资渠道ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'channelsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'列资渠道ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'channelsId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecord', 
'COLUMN', N'supplierId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'supplierId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecord'
, @level2type = 'COLUMN', @level2name = N'supplierId'
GO

-- ----------------------------
-- Records of TB_SparePart_InStockRecord
-- ----------------------------

-- ----------------------------
-- Table structure for tb_sparepart_instockRecord_updateMoney
-- ----------------------------
DROP TABLE [dbo].[tb_sparepart_instockRecord_updateMoney]
GO
CREATE TABLE [dbo].[tb_sparepart_instockRecord_updateMoney] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[in_detail_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[status] int NULL ,
[insdt] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_sparepart_instockRecord_updateMoney', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'1正在处理 2未处理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_sparepart_instockRecord_updateMoney'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'1正在处理 2未处理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_sparepart_instockRecord_updateMoney'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_sparepart_instockRecord_updateMoney', 
'COLUMN', N'in_detail_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入库明细id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_sparepart_instockRecord_updateMoney'
, @level2type = 'COLUMN', @level2name = N'in_detail_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入库明细id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_sparepart_instockRecord_updateMoney'
, @level2type = 'COLUMN', @level2name = N'in_detail_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_sparepart_instockRecord_updateMoney', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'1正在处理 2未处理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_sparepart_instockRecord_updateMoney'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'1正在处理 2未处理'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_sparepart_instockRecord_updateMoney'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_sparepart_instockRecord_updateMoney', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'插入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_sparepart_instockRecord_updateMoney'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'插入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_sparepart_instockRecord_updateMoney'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO

-- ----------------------------
-- Records of tb_sparepart_instockRecord_updateMoney
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_InStockRecordDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_InStockRecordDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_InStockRecordDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[instock_number] money NULL ,
[instock_record_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[price] money NULL ,
[supplier_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[include_taxrate_price] money NULL ,
[include_taxrate_total_money] money NULL ,
[purchase_record_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[subscription_date] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[location_details] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[tax_amount] money NULL ,
[channelsId] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[now_number] money NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_InStockRecordDetail', 
'COLUMN', N'channelsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'子项工程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecordDetail'
, @level2type = 'COLUMN', @level2name = N'channelsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'子项工程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_InStockRecordDetail'
, @level2type = 'COLUMN', @level2name = N'channelsId'
GO

-- ----------------------------
-- Records of TB_SparePart_InStockRecordDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_OutStockRecord
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_OutStockRecord]
GO
CREATE TABLE [dbo].[TB_SparePart_OutStockRecord] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[user_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[out_date] datetime NULL ,
[goods_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_keeper_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_opinion] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[stock_type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[inhouse_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[bill_number] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[channelsId] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[supplierId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bookkeep_date] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'warehouse_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所出仓库'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所出仓库'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'领用部门'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'领用部门'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'领用人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'领用人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'user_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'audit_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'total_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'total_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'total_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'out_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'出库时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'out_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'出库时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'out_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'goods_class_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'goods_class_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'goods_class_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'warehouse_keeper_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库管理员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'warehouse_keeper_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库管理员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'warehouse_keeper_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'audit_opinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'audit_opinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'audit_opinion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'channelsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'列资渠道ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'channelsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'列资渠道ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'channelsId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecord', 
'COLUMN', N'supplierId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'supplierId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecord'
, @level2type = 'COLUMN', @level2name = N'supplierId'
GO

-- ----------------------------
-- Records of TB_SparePart_OutStockRecord
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_OutStockRecordDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_OutStockRecordDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_OutStockRecordDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[outstock_record_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[out_number] money NULL ,
[price] money NULL ,
[total_money] money NULL ,
[purpose] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stock_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[consume_number] money NULL ,
[included_tax_cost_price] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[included_tax_total_money] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[tax_amount] money NULL ,
[channelsId] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecordDetail', 
'COLUMN', N'stock_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'库存物品id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecordDetail'
, @level2type = 'COLUMN', @level2name = N'stock_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'库存物品id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecordDetail'
, @level2type = 'COLUMN', @level2name = N'stock_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_OutStockRecordDetail', 
'COLUMN', N'channelsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'子项工程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecordDetail'
, @level2type = 'COLUMN', @level2name = N'channelsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'子项工程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_OutStockRecordDetail'
, @level2type = 'COLUMN', @level2name = N'channelsId'
GO

-- ----------------------------
-- Records of TB_SparePart_OutStockRecordDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_OutStockRecordDetail_Consume
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_OutStockRecordDetail_Consume]
GO
CREATE TABLE [dbo].[TB_SparePart_OutStockRecordDetail_Consume] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenance_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[outstock_record_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[consume_number] money NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_OutStockRecordDetail_Consume
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Performance
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Performance]
GO
CREATE TABLE [dbo].[TB_SparePart_Performance] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Performance', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Performance', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Performance', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Performance', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Performance', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Performance', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Performance', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Performance', 
'COLUMN', N'describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Performance'
, @level2type = 'COLUMN', @level2name = N'describe'
GO

-- ----------------------------
-- Records of TB_SparePart_Performance
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_PurchaseDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_PurchaseDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_PurchaseDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[supplier_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] money NULL ,
[price] money NULL ,
[total_money] money NULL ,
[department_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[purpose] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseDetail', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申购单id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseDetail'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申购单id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseDetail'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseDetail', 
'COLUMN', N'goods_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品名称id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseDetail'
, @level2type = 'COLUMN', @level2name = N'goods_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品名称id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseDetail'
, @level2type = 'COLUMN', @level2name = N'goods_id'
GO

-- ----------------------------
-- Records of TB_SparePart_PurchaseDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_PurchaseMethods
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_PurchaseMethods]
GO
CREATE TABLE [dbo].[TB_SparePart_PurchaseMethods] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseMethods', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseMethods', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseMethods', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseMethods', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseMethods', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseMethods', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseMethods', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseMethods', 
'COLUMN', N'describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseMethods'
, @level2type = 'COLUMN', @level2name = N'describe'
GO

-- ----------------------------
-- Records of TB_SparePart_PurchaseMethods
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_PurchasePlan
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_PurchasePlan]
GO
CREATE TABLE [dbo].[TB_SparePart_PurchasePlan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[applicant] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_purchase_date] datetime NULL ,
[department_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[check_man] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[check_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'采购计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'采购计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'applicant')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'applicant'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'applicant'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'plan_purchase_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划采购日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'plan_purchase_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划采购日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'plan_purchase_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'department_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'department_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'department_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'total_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'total_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'total_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'check_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'check_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'check_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'类型（部门申购/采购计划）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'类型（部门申购/采购计划）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'check_opinion')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'check_opinion'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核意见'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'check_opinion'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchasePlan', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchasePlan'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_SparePart_PurchasePlan
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_PurchaseRecord
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_PurchaseRecord]
GO
CREATE TABLE [dbo].[TB_SparePart_PurchaseRecord] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] date NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[purchase_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[purchase_date] datetime NULL ,
[total_money] money NULL ,
[audit_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[sUserId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[sendMessageType] int NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_PurchaseRecord
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_PurchaseRecordDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_PurchaseRecordDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_PurchaseRecordDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[supplier_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] money NULL ,
[price] money NULL ,
[total_money] money NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[purpose] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subscribe_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[stock_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[consume_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseRecordDetail', 
'COLUMN', N'supplier_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'supplier_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'supplier_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseRecordDetail', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseRecordDetail', 
'COLUMN', N'purpose')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用途'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'purpose'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用途'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'purpose'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseRecordDetail', 
'COLUMN', N'record_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'采购记录ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'record_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'采购记录ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'record_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_PurchaseRecordDetail', 
'COLUMN', N'subscribe_detail_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申购明细ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'subscribe_detail_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申购明细ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_PurchaseRecordDetail'
, @level2type = 'COLUMN', @level2name = N'subscribe_detail_id'
GO

-- ----------------------------
-- Records of TB_SparePart_PurchaseRecordDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Purpose
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Purpose]
GO
CREATE TABLE [dbo].[TB_SparePart_Purpose] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Purpose', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Purpose'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Purpose'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Purpose', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Purpose'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Purpose'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Purpose', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Purpose'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Purpose'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Purpose', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用途'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Purpose'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用途'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Purpose'
, @level2type = 'COLUMN', @level2name = N'name'
GO

-- ----------------------------
-- Records of TB_SparePart_Purpose
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_QualificationType
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_QualificationType]
GO
CREATE TABLE [dbo].[TB_SparePart_QualificationType] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_QualificationType
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_QualificationType_copy
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_QualificationType_copy]
GO
CREATE TABLE [dbo].[TB_SparePart_QualificationType_copy] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_QualificationType_copy
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_RawMaterial
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_RawMaterial]
GO
CREATE TABLE [dbo].[TB_SparePart_RawMaterial] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[register_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[register_date] datetime NULL ,
[acceptance_results] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[sampling] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_spot_check_complete_time] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_RawMaterial', 
'COLUMN', N'plan_spot_check_complete_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划抽检完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_RawMaterial'
, @level2type = 'COLUMN', @level2name = N'plan_spot_check_complete_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划抽检完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_RawMaterial'
, @level2type = 'COLUMN', @level2name = N'plan_spot_check_complete_time'
GO

-- ----------------------------
-- Records of TB_SparePart_RawMaterial
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_RawMaterialDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_RawMaterialDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_RawMaterialDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rawmaterial_number] money NULL ,
[rawmaterial_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[price] money NULL ,
[supplier_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[include_taxrate_price] money NULL ,
[include_taxrate_total_money] money NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tax_amount] money NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_RawMaterialDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ReturnStockRecord
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ReturnStockRecord]
GO
CREATE TABLE [dbo].[TB_SparePart_ReturnStockRecord] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[instock_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[instock_date] datetime NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_opinion] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[taxrate] money NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入库编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入库编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'warehouse_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属仓库'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属仓库'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'goods_class_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品类别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'goods_class_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品类别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'goods_class_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'instock_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入库人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'instock_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入库人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'instock_man_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'audit_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'instock_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入库时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'instock_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入库时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'instock_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'total_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'total_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'total_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_ReturnStockRecord', 
'COLUMN', N'taxrate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'税率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'taxrate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'税率'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_ReturnStockRecord'
, @level2type = 'COLUMN', @level2name = N'taxrate'
GO

-- ----------------------------
-- Records of TB_SparePart_ReturnStockRecord
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_ReturnStockRecordDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_ReturnStockRecordDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_ReturnStockRecordDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[instock_number] money NULL ,
[instock_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[price] money NULL ,
[supplier_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[include_taxrate_price] money NULL ,
[include_taxrate_total_money] money NULL ,
[purchase_record_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_ReturnStockRecordDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Score
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Score]
GO
CREATE TABLE [dbo].[TB_SparePart_Score] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[total] float(53) NULL ,
[user_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[price_score] float(53) NULL ,
[quality_score] float(53) NULL ,
[delivery_time_score] float(53) NULL ,
[service_level_score] float(53) NULL ,
[credit_score] float(53) NULL ,
[matching_score] float(53) NULL ,
[supplier_id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[creation_time] datetime NULL ,
[years] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_Score
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Score_copy
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Score_copy]
GO
CREATE TABLE [dbo].[TB_SparePart_Score_copy] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[total] float(53) NULL ,
[user_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[price_score] float(53) NULL ,
[quality_score] float(53) NULL ,
[delivery_time_score] float(53) NULL ,
[service_level_score] float(53) NULL ,
[credit_score] float(53) NULL ,
[matching_score] float(53) NULL ,
[supplier_id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[creation_time] datetime NULL ,
[years] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_Score_copy
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Stock
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Stock]
GO
CREATE TABLE [dbo].[TB_SparePart_Stock] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[account_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[init_number] money NULL ,
[in_number] money NULL ,
[out_number] money NULL ,
[cost_price] money NULL ,
[now_number] money NULL ,
[account_date] datetime NULL ,
[real_number] money NULL ,
[shift_number] money NULL ,
[shift_memo] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[alarm_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[included_tax_cost_price] money NULL ,
[included_tax_total_money] money NULL ,
[available_number] money NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'goods_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物品ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'goods_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物品ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'goods_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'warehouse_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'init_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'期初数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'init_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'期初数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'init_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'in_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'入库数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'in_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'入库数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'in_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'out_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'出库数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'out_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'出库数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'out_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'cost_price')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'成本价格'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'cost_price'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'成本价格'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'cost_price'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'now_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'当前数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'now_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'当前数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'now_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Stock', 
'COLUMN', N'shift_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'改变数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'shift_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'改变数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Stock'
, @level2type = 'COLUMN', @level2name = N'shift_number'
GO

-- ----------------------------
-- Records of TB_SparePart_Stock
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Stock_TransfersApplyDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Stock_TransfersApplyDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_Stock_TransfersApplyDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[number] money NULL ,
[unit] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[price] money NULL ,
[total_money] money NULL ,
[transfers_apply_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stock_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_Stock_TransfersApplyDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_StockCheck
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_StockCheck]
GO
CREATE TABLE [dbo].[TB_SparePart_StockCheck] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startdt] datetime NULL ,
[enddt] datetime NULL ,
[last_time] datetime NULL ,
[now_time] datetime NULL ,
[account_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[handler_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'warehouse_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'warehouse_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'startdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'startdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开始日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'startdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'enddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'enddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'结束日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'enddt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'last_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上次盘点月份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'last_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上次盘点月份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'last_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'now_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'本次盘点月份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'now_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'本次盘点月份'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'now_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'盘点状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'盘点状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'handler_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'盘点人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'handler_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'盘点人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'handler_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_StockCheck', 
'COLUMN', N'audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_StockCheck'
, @level2type = 'COLUMN', @level2name = N'audit_id'
GO

-- ----------------------------
-- Records of TB_SparePart_StockCheck
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_StockCheckDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_StockCheckDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_StockCheckDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[check_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[real_number] money NULL ,
[account_number] money NULL ,
[price] money NULL ,
[difference_number] money NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_StockCheckDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Subscribe
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Subscribe]
GO
CREATE TABLE [dbo].[TB_SparePart_Subscribe] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subscribe_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[subscribe_date] datetime NULL ,
[subscribe_audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[inquiry_audit_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[inquiry_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[total_money] money NULL ,
[reject_reason] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[purchaseMethodsId] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[channelsId] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'dept_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'dept_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'部门id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'dept_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'subscribe_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申购人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'subscribe_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申购人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'subscribe_man_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'subscribe_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申购日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'subscribe_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申购日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'subscribe_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'subscribe_audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申购审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'subscribe_audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申购审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'subscribe_audit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'inquiry_audit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'询价审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'inquiry_audit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'询价审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'inquiry_audit_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'inquiry_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'询价人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'inquiry_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'询价人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'inquiry_man_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'申购状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'申购状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'total_money')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'total_money'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'总金额'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'total_money'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'reject_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'驳回原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'reject_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'驳回原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'reject_reason'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'purchaseMethodsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'采购形式ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'purchaseMethodsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'采购形式ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'purchaseMethodsId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Subscribe', 
'COLUMN', N'channelsId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'列资渠道ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'channelsId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'列资渠道ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Subscribe'
, @level2type = 'COLUMN', @level2name = N'channelsId'
GO

-- ----------------------------
-- Records of TB_SparePart_Subscribe
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_SubscribeDetail
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_SubscribeDetail]
GO
CREATE TABLE [dbo].[TB_SparePart_SubscribeDetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[subscribe_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[supplier_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] money NULL ,
[price] money NULL ,
[total_money] money NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[purpose] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[channelsId] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[install] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[design] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[manufacturer] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[brand] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[contract_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[processSectionId] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_big_class_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentClassID] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_arrival_time] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_arrival_place] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[detail_goods_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[detail_goods_specifications] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[detail_goods_model] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_SubscribeDetail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Supplier
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Supplier]
GO
CREATE TABLE [dbo].[TB_SparePart_Supplier] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[link_man] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[telephone] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fax] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mobile] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[exist_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[main_business] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[website] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluate] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[type_status] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[abbreviation] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[legal_person] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[bank_information] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[user_telephone] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[user_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[tax_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[bank_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'link_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'link_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'link_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'telephone')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'telephone'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'telephone'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'fax')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'传真'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'fax'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'传真'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'fax'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'mobile')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'手机'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'mobile'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'手机'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'mobile'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'exist_status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'存续状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'exist_status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'存续状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'exist_status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'class_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'class_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'class_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'main_business')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主营业务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'main_business'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主营业务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'main_business'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'website')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'网址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'website'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'网址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'website'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'evaluate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'evaluate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'evaluate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'type_status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'数据状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'type_status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'数据状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'type_status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'潜在或登记'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'潜在或登记'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier'
, @level2type = 'COLUMN', @level2name = N'type'
GO

-- ----------------------------
-- Records of TB_SparePart_Supplier
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Supplier_copy
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Supplier_copy]
GO
CREATE TABLE [dbo].[TB_SparePart_Supplier_copy] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[link_man] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[telephone] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fax] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mobile] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[exist_status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[class_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[main_business] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[website] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[evaluate] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[abbreviation] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[legal_person] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[bank_information] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[user_telephone] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[user_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[tax_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[bank_number] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'link_man')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'link_man'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'link_man'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'telephone')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'telephone'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'telephone'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'fax')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'传真'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'fax'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'传真'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'fax'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'mobile')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'手机'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'mobile'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'手机'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'mobile'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'exist_status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'存续状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'exist_status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'存续状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'exist_status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'class_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'class_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'class_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'main_business')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主营业务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'main_business'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主营业务'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'main_business'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'website')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'网址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'website'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'网址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'website'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'evaluate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'供应商评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'evaluate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'供应商评价'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'evaluate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Supplier_copy', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Supplier_copy'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_SparePart_Supplier_copy
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_SupplierClass
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_SupplierClass]
GO
CREATE TABLE [dbo].[TB_SparePart_SupplierClass] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_SupplierClass
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_SupplierClass_copy
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_SupplierClass_copy]
GO
CREATE TABLE [dbo].[TB_SparePart_SupplierClass_copy] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_SupplierClass_copy
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_SupplierQualification
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_SupplierQualification]
GO
CREATE TABLE [dbo].[TB_SparePart_SupplierQualification] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[supplier_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[qualification_type] varchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[qualification_validity_time] datetime NULL ,
[qualification_state] varchar(60) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_SupplierQualification
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_SupplierQualification_copy
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_SupplierQualification_copy]
GO
CREATE TABLE [dbo].[TB_SparePart_SupplierQualification_copy] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[supplier_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[qualification_type] varchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[qualification_validity_time] datetime NULL ,
[qualification_state] varchar(60) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_SupplierQualification_copy
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_SupplierQualification_file
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_SupplierQualification_file]
GO
CREATE TABLE [dbo].[TB_SparePart_SupplierQualification_file] (
[id] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] date NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_SparePart_SupplierQualification_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_Warehouse
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_Warehouse]
GO
CREATE TABLE [dbo].[TB_SparePart_Warehouse] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[department] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[telephone] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[address] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[area] float(53) NULL ,
[use_date] datetime NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[warehouse_parent] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[outbound_type] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Warehouse', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Warehouse', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Warehouse', 
'COLUMN', N'telephone')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库联系电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'telephone'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库联系电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'telephone'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Warehouse', 
'COLUMN', N'address')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'address'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'address'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Warehouse', 
'COLUMN', N'area')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库面积'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'area'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库面积'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'area'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Warehouse', 
'COLUMN', N'use_date')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库启用日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'use_date'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库启用日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'use_date'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Warehouse', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'仓库的运行状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'仓库的运行状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_Warehouse', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_Warehouse'
, @level2type = 'COLUMN', @level2name = N'remark'
GO

-- ----------------------------
-- Records of TB_SparePart_Warehouse
-- ----------------------------

-- ----------------------------
-- Table structure for TB_SparePart_warrantyPeriod
-- ----------------------------
DROP TABLE [dbo].[TB_SparePart_warrantyPeriod]
GO
CREATE TABLE [dbo].[TB_SparePart_warrantyPeriod] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[period] int NULL ,
[morder] int NULL ,
[active] bit NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[describe] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_warrantyPeriod', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_warrantyPeriod', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_warrantyPeriod', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'写入人ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_warrantyPeriod', 
'COLUMN', N'period')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'质保期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'period'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'质保期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'period'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_warrantyPeriod', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_warrantyPeriod', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_warrantyPeriod', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上级ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_SparePart_warrantyPeriod', 
'COLUMN', N'describe')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'describe'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_SparePart_warrantyPeriod'
, @level2type = 'COLUMN', @level2name = N'describe'
GO

-- ----------------------------
-- Records of TB_SparePart_warrantyPeriod
-- ----------------------------

-- ----------------------------
-- Table structure for tb_special_equipment
-- ----------------------------
DROP TABLE [dbo].[tb_special_equipment]
GO
CREATE TABLE [dbo].[tb_special_equipment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[next_record_time] date NULL ,
[equipment_class] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[recent_time] date NULL ,
[deal_desc] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[act_finish_time] datetime NULL ,
[submission_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[verification_unit] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[verification_results] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_special_equipment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_SpeechRecognition
-- ----------------------------
DROP TABLE [dbo].[tb_SpeechRecognition]
GO
CREATE TABLE [dbo].[tb_SpeechRecognition] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[text] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sysType] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[method] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[respondVoice] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[textLength] int NULL 
)


GO

-- ----------------------------
-- Records of tb_SpeechRecognition
-- ----------------------------

-- ----------------------------
-- Table structure for tb_SpeechRecognition_MpRespond
-- ----------------------------
DROP TABLE [dbo].[tb_SpeechRecognition_MpRespond]
GO
CREATE TABLE [dbo].[tb_SpeechRecognition_MpRespond] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[jsValue] float(53) NULL ,
[jsMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[valueMethod] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[respondText_True] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[respondText_False] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_SpeechRecognition_MpRespond
-- ----------------------------

-- ----------------------------
-- Table structure for tb_teacher_coursewaretype
-- ----------------------------
DROP TABLE [dbo].[tb_teacher_coursewaretype]
GO
CREATE TABLE [dbo].[tb_teacher_coursewaretype] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[state] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ord] int NULL ,
[memo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_teacher_coursewaretype
-- ----------------------------

-- ----------------------------
-- Table structure for tb_teacher_file
-- ----------------------------
DROP TABLE [dbo].[tb_teacher_file]
GO
CREATE TABLE [dbo].[tb_teacher_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(3000) COLLATE Chinese_PRC_CI_AS NULL ,
[size] float(53) NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[type] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[ord] int NULL ,
[urlpath] varchar(3000) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filefolder] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_teacher_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficency_PatrolPoint
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficency_PatrolPoint]
GO
CREATE TABLE [dbo].[TB_TimeEfficency_PatrolPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (newid()) ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[modbus_fig_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[read_or_write] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[register] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_content] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[person_num] int NULL ,
[floor_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[point_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[area_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'水厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'水厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'process_section_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'process_section_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'latitude')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'纬度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'latitude'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'纬度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'latitude'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'longitude')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'经度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'longitude'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'经度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'longitude'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'active')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'active'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'启用状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'active'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'modbus_fig_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'modbus配置id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'modbus_fig_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'modbus配置id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'modbus_fig_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'read_or_write')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'读写方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'read_or_write'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'读写方式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'read_or_write'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'register')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'寄存器'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'register'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'寄存器'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'register'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检分类:生产/设备'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检分类:生产/设备'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficency_PatrolPoint', 
'COLUMN', N'patrol_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'patrol_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficency_PatrolPoint'
, @level2type = 'COLUMN', @level2name = N'patrol_content'
GO

-- ----------------------------
-- Records of TB_TimeEfficency_PatrolPoint
-- ----------------------------
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'08DF5BA9-0C2E-4497-8656-9E1FC8530CB7', null, null, null, N'浓缩池', null, null, null, null, null, null, null, null, null, N'P', N'检查刮泥机运行情况、出泥浓度、泥水分离是否正常。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'135E7192-EA86-4C9B-BFB8-A39FD345D231', null, null, null, N'BAF生物滤池', null, null, null, null, null, null, null, null, null, N'P', N'检查BAF曝气是否稳定，出水是否清澈。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'20A39A3A-5A55-4CF4-9A69-7FD3B35BD2EA', null, null, null, N'回流井', null, null, null, null, null, null, null, null, null, N'P', N'回流泵及排泥泵是否有异响。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'22888CCC-7F39-4E9B-9409-78780C137EA1', null, null, null, N'1号废气处理装置', null, null, null, null, null, null, null, null, null, N'P', N'检查废气处理生物滤池数据及设备运行是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'26011DF4-92D1-4B97-9A1E-BD3DE0C77494', null, null, null, N'3号废气处理装置', null, null, null, null, null, null, null, null, null, N'P', N'检查废气处理生物滤池数据及设备运行是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'56AC8F34-42AA-44FF-819A-40E7AE3A57E1', null, null, null, N'2号废气处理装置', null, null, null, null, null, null, null, null, null, N'P', N'检查废气处理生物滤池数据及设备运行是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'5CBB73B5-37AE-4AD8-9077-612F40249D17', null, null, null, N'二沉池', null, null, null, null, null, null, null, null, null, N'P', N'检查刮泥机运行是否正常，出水是否翻泥，浮渣槽是否堵塞，出水槽是否正常。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'5D388317-19F8-46C8-ABB3-F1485AA21E18', null, null, null, N'调节池', null, null, null, null, null, null, null, null, null, N'P', N'检查液位高低、提升泵是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'6F5B25F1-6A41-4157-8654-37A4096D4EC6', null, null, null, N'MBR反应池、膜池', null, null, null, null, null, null, null, null, null, N'P', N'检查膜曝气情况、液位是否正常、各设备运转是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'7E8E05F7-11E5-4DCE-AD57-12DD90020AFA', null, null, null, N'加药间', null, null, null, null, null, null, null, null, null, N'P', N'加药泵运行是否正常、储罐液位、加药量是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'84C74FD9-5FEE-4BB9-A0EA-D4AC6B2CA70D', null, null, null, N'臭氧发生器', null, null, null, null, null, null, null, null, null, N'P', N'检查臭氧设备运行是否稳定', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'94B7F3F1-6F81-4F12-9284-BCAE331A2BDC', null, null, null, N'进水泵房', null, null, null, null, null, null, null, null, null, N'P', N'检查液位、泵开关情况、泵是否异响、流量、初格栅', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'A5BEB15D-BFE9-4CB9-809C-2F8372954628', null, null, null, N'初沉池', null, null, null, null, null, null, null, null, null, N'P', N'检查刮泥机是否正常，出水是否翻泥、浮渣槽是否堵塞。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'B277D7CA-CF04-4731-889F-6228FE6835AD', null, null, null, N'鼓风机房', null, null, null, null, null, null, null, null, null, N'P', N'检查风机是否正常、声音是否异常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'BBE10AB4-52C9-4B17-96A3-AAF8AE65C130', null, null, null, N'兼氧沉淀池', null, null, null, null, null, null, null, null, null, N'P', N'刮泥机是否正常、出水槽是否正常。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'C1C85672-3C71-46E8-A21C-F9C44CB1AF1B', null, null, null, N'均质池', null, null, null, null, null, null, null, null, null, N'P', N'检查污泥情况，搅拌机运行是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'C5BA2693-128E-4104-8BEF-376426CC9D2F', null, null, null, N'消毒池', null, null, null, null, null, null, null, null, null, N'P', N'检查次氯酸钠加药是否正常，水质是否清澈。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'C6F4E59B-2B64-4782-A480-5FFCF03E4352', null, null, null, N'曝气沉砂池', null, null, null, null, null, null, null, null, null, N'P', N'检查格栅内外液位差，出渣口垃圾堆积情况、设备运行情况', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'C777A3F2-567A-41D7-928F-32D9DDFF3FE9', null, null, null, N'氧化沟', null, null, null, null, null, null, null, null, null, N'P', N'检查曝气机声音是否异响，推进器、搅拌机运行是否正常。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'E2837ACC-E367-47CE-AFE1-1FFFEE99AD78', null, null, null, N'臭氧接触稳定池', null, null, null, null, null, null, null, null, null, N'P', N'检查循环水及冷却塔运行是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'E3204641-6FE9-4DAB-B881-D5DAA103FEC0', null, null, null, N'兼氧酸化池', null, null, null, null, null, null, null, null, null, N'P', N'检查推进器运转是否正常，有无异味外泄。', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[TB_TimeEfficency_PatrolPoint] ([id], [insuser], [insdt], [remark], [name], [biz_id], [process_section_id], [latitude], [longitude], [active], [morder], [modbus_fig_id], [read_or_write], [register], [type], [patrol_content], [unit_id], [pid], [person_num], [floor_id], [point_code], [area_id]) VALUES (N'F4407FBA-EAA6-43CA-8FC0-7CE35FF03531', null, null, null, N'产水泵房', null, null, null, null, null, null, null, null, null, N'P', N'检查产水是否清澈、设备运行是否正常', N'e77a9f7bd00b4d229056c1a57ad22589', null, null, null, null, null)
GO
GO

-- ----------------------------
-- Table structure for TB_TimeEfficency_PatrolPoint_MeasurePoint
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficency_PatrolPoint_MeasurePoint]
GO
CREATE TABLE [dbo].[TB_TimeEfficency_PatrolPoint_MeasurePoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[measure_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficency_PatrolPoint_MeasurePoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_Clockin_Record
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_Clockin_Record]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_Clockin_Record] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[is_on_time] int NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[record_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[location] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_Clockin_Record
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolArea
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolArea]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolArea] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolArea
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolArea_Floor
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolArea_Floor]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolArea_Floor] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[patrol_area_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[floor] int NULL ,
[pic] varbinary(MAX) NULL ,
[morder] int NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolArea_Floor
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolArea_Floor_file
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolArea_Floor_file]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolArea_Floor_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolArea_Floor_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolArea_ProcessSection
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolArea_ProcessSection]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolArea_ProcessSection] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[process_section_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_area_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolArea_ProcessSection
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolArea_User
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolArea_User]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolArea_User] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[patrol_area_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolArea_User', 
'COLUMN', N'patrol_area_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检区域id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolArea_User'
, @level2type = 'COLUMN', @level2name = N'patrol_area_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检区域id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolArea_User'
, @level2type = 'COLUMN', @level2name = N'patrol_area_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolArea_User', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolArea_User'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'排序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolArea_User'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolArea_User', 
'COLUMN', N'user_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolArea_User'
, @level2type = 'COLUMN', @level2name = N'user_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolArea_User'
, @level2type = 'COLUMN', @level2name = N'user_id'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolArea_User
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolContents
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolContents]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolContents] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[contents] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[contentsDetail] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[rank] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[relation_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_contents_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_rank] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tool] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[method] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[safe_note] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolContents', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联 巡检点Id 或 设备Id等'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联 巡检点Id 或 设备Id等'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'pid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolContents', 
'COLUMN', N'memo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'memo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'memo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolContents', 
'COLUMN', N'rank')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检内容重要等级  分 1 2 3 级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'rank'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检内容重要等级  分 1 2 3 级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'rank'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolContents', 
'COLUMN', N'relation_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联类型   设备/巡检点 等'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'relation_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联类型   设备/巡检点 等'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'relation_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolContents', 
'COLUMN', N'patrol_contents_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检内容类型  运行/设备/集控  巡检等'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'patrol_contents_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检内容类型  运行/设备/集控  巡检等'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'patrol_contents_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolContents', 
'COLUMN', N'patrol_rank')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检等级 如 ：一级巡检  二级巡检  三级巡检'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'patrol_rank'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检等级 如 ：一级巡检  二级巡检  三级巡检'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'patrol_rank'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolContents
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolContents_Standard
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolContents_Standard]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolContents_Standard] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[contents] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[contentsDetail] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tool] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[method] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[safe_note] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_rank] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[memo] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[upduser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upddt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolContents_Standard
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolModel
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolModel]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolModel] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[default_flag] bit NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolModel
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlan
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlan]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlan] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_area_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_content] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sdt] datetime NULL ,
[edt] datetime NULL ,
[duration] int NULL ,
[time_interval] int NULL ,
[morder] int NULL ,
[active] bit NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[color] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[release_modal] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[week_register] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[week_interval] int NULL ,
[month_register] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[group_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[advance_day] int NULL ,
[is_holiday] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[is_pictures] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[month_interval] int NULL ,
[year_interval] int NULL ,
[year_register] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[task_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[last_issuance_date] datetime NULL ,
[plan_issuance_date] datetime NULL ,
[active_date] datetime NULL ,
[distributeType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlan
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlan_Dept
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_Dept]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_Dept] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlan_Dept
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlan_MeasurePoint
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_MeasurePoint]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_MeasurePoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[measure_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reservedfields2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reservedfields3] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolPlan_MeasurePoint', 
'COLUMN', N'measure_point_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'测量点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'measure_point_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'测量点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'measure_point_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolPlan_MeasurePoint', 
'COLUMN', N'patrol_point_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'patrol_point_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检点id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'patrol_point_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolPlan_MeasurePoint', 
'COLUMN', N'patrol_plan_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'patrol_plan_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'patrol_plan_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolPlan_MeasurePoint', 
'COLUMN', N'pid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检计划下 巡检点表的id（不是巡检点本身id）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'pid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检计划下 巡检点表的id（不是巡检点本身id）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'pid'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlan_MeasurePoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlan_PatrolCamera
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolCamera]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolCamera] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrolPointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cameraId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlan_PatrolCamera
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlan_PatrolContents
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolContents]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolContents] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_contents_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[contentsDetail] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolPlan_PatrolContents', 
'COLUMN', N'plan_point_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检任务下关联 巡检点的Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'plan_point_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检任务下关联 巡检点的Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolPlan_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'plan_point_id'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlan_PatrolContents
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlan_PatrolEquipment
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolEquipment]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolEquipment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlan_PatrolEquipment
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlan_PatrolPoint
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolPoint]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlan_PatrolPoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlan_PatrolRoute
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolRoute]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolRoute] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[floor_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[previous_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[next_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] decimal(6,2) NULL ,
[posy] decimal(6,2) NULL ,
[container_width] decimal(6,2) NULL ,
[container_height] decimal(6,2) NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlan_PatrolRoute
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPlanType
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPlanType]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPlanType] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[register] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_type_content] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[distributeType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPlanType
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPoint_Camera
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_Camera]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_Camera] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[camera_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPoint_Camera
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPoint_EquipmentCard
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_EquipmentCard]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_EquipmentCard] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[equipment_card_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPoint_EquipmentCard
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolPoint_File
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_File]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_File] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[file_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolPoint_File
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_area_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[start_time] datetime NULL ,
[end_time] datetime NULL ,
[act_finish_time] datetime NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_result] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[color] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[duration] int NULL ,
[point_num_all] int NULL ,
[point_num_finish] int NULL ,
[processDefId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[advance_day] int NULL ,
[task_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[release_modal] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[is_pictures] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[group_type_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[alarm_status] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[inspectUser] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[inspectTime] datetime NULL ,
[inspectedDpt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pitFallNum] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inspectedCompany] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[projectName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'patrol_area_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_area_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_area_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'start_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'start_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'start_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'act_finish_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'act_finish_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'act_finish_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'patrol_plan_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_plan_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_plan_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'worker_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'worker_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'worker_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'work_result')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'work_result'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'work_result'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'patrol_model_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检模式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_model_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检模式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_model_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'point_num_all')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'任务下_打卡点位总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'point_num_all'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'任务下_打卡点位总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'point_num_all'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord', 
'COLUMN', N'point_num_finish')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'任务下_打卡点位完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'point_num_finish'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'任务下_打卡点位完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord'
, @level2type = 'COLUMN', @level2name = N'point_num_finish'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_Dept
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_Dept]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_Dept] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_Dept
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_file
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_file]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_file] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[size] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_file
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_MeasurePoint
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_MeasurePoint]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_MeasurePoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[measure_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reservedfields3] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpvalue] money NULL ,
[morder] int NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_MeasurePoint', 
'COLUMN', N'mpvalue')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检中填写值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'mpvalue'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检中填写值'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_MeasurePoint'
, @level2type = 'COLUMN', @level2name = N'mpvalue'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_MeasurePoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_PatrolCamera
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolCamera]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolCamera] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrolRecordId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cameraId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updateuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatedt] datetime NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[allNumContent] int NULL ,
[allNumMeasurePoint] int NULL ,
[finishNumContent] int NULL ,
[finishNumMeasurePoint] int NULL ,
[abnormityNum] int NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_PatrolCamera
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_PatrolContents
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolContents]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolContents] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[completeuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[completedt] datetime NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contents] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[contentsDetail] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolContents', 
'COLUMN', N'contents')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备用字段1'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'contents'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备用字段1'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'contents'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolContents', 
'COLUMN', N'contentsDetail')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备用字段2'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'contentsDetail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备用字段2'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolContents'
, @level2type = 'COLUMN', @level2name = N'contentsDetail'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_PatrolContents
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_PatrolEquipment
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolEquipment]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolEquipment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updateuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatedt] datetime NULL ,
[status] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[running_status] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_status] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_PatrolEquipment
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_PatrolPoint
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolPoint]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolPoint] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[finishdt] datetime NULL ,
[status] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_PatrolPoint
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_PatrolRoute
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolRoute]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolRoute] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[floor_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_route_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[previous_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[next_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] decimal(6,2) NULL ,
[posy] decimal(6,2) NULL ,
[container_width] decimal(6,2) NULL ,
[container_height] decimal(6,2) NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[finishdt] datetime NULL ,
[status] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[morder] int NULL ,
[finish_num_content] int NULL ,
[all_num_content] int NULL ,
[finish_num_measurePoint] int NULL ,
[all_num_measurePoint] int NULL ,
[previous_id_actual] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[next_id_actual] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolRoute', 
'COLUMN', N'finish_num_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检内容完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute'
, @level2type = 'COLUMN', @level2name = N'finish_num_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检内容完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute'
, @level2type = 'COLUMN', @level2name = N'finish_num_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolRoute', 
'COLUMN', N'all_num_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检内容总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute'
, @level2type = 'COLUMN', @level2name = N'all_num_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检内容总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute'
, @level2type = 'COLUMN', @level2name = N'all_num_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolRoute', 
'COLUMN', N'finish_num_measurePoint')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'填报内容完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute'
, @level2type = 'COLUMN', @level2name = N'finish_num_measurePoint'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'填报内容完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute'
, @level2type = 'COLUMN', @level2name = N'finish_num_measurePoint'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolRoute', 
'COLUMN', N'all_num_measurePoint')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'填报内容总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute'
, @level2type = 'COLUMN', @level2name = N'all_num_measurePoint'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'填报内容总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute'
, @level2type = 'COLUMN', @level2name = N'all_num_measurePoint'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_PatrolRoute
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[floor_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_route_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[previous_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[next_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[posx] decimal(6,2) NULL ,
[posy] decimal(6,2) NULL ,
[container_width] decimal(6,2) NULL ,
[container_height] decimal(6,2) NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[finishdt] datetime NULL ,
[status] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[morder] int NULL ,
[finish_num_content] int NULL ,
[all_num_content] int NULL ,
[finish_num_measurePoint] int NULL ,
[all_num_measurePoint] int NULL ,
[previous_id_actual] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[next_id_actual] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD', 
'COLUMN', N'finish_num_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检内容完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD'
, @level2type = 'COLUMN', @level2name = N'finish_num_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检内容完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD'
, @level2type = 'COLUMN', @level2name = N'finish_num_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD', 
'COLUMN', N'all_num_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检内容总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD'
, @level2type = 'COLUMN', @level2name = N'all_num_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检内容总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD'
, @level2type = 'COLUMN', @level2name = N'all_num_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD', 
'COLUMN', N'finish_num_measurePoint')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'填报内容完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD'
, @level2type = 'COLUMN', @level2name = N'finish_num_measurePoint'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'填报内容完成数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD'
, @level2type = 'COLUMN', @level2name = N'finish_num_measurePoint'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD', 
'COLUMN', N'all_num_measurePoint')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'填报内容总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD'
, @level2type = 'COLUMN', @level2name = N'all_num_measurePoint'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'填报内容总数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD'
, @level2type = 'COLUMN', @level2name = N'all_num_measurePoint'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_PatrolRecord_ViolationRecord
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_ViolationRecord]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_ViolationRecord] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_area_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[content] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[start_time] datetime NULL ,
[end_time] datetime NULL ,
[act_finish_time] datetime NULL ,
[patrol_plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dept_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_result] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_model_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[color] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[reason] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'patrol_area_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_area_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_area_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'start_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'start_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'start_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'act_finish_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'act_finish_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际完成时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'act_finish_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'patrol_plan_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_plan_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_plan_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'worker_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'worker_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成人id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'worker_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'work_result')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'work_result'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成结果'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'work_result'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'完成状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'完成状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_PatrolRecord_ViolationRecord', 
'COLUMN', N'patrol_model_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检模式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_model_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检模式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_PatrolRecord_ViolationRecord'
, @level2type = 'COLUMN', @level2name = N'patrol_model_id'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_PatrolRecord_ViolationRecord
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_Work_Record
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_Work_Record]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_Work_Record] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] int NULL ,
[contents] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[reportperson] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reporttime] datetime NULL ,
[start_time] datetime NULL ,
[end_time] datetime NULL ,
[working_hours] float(53) NULL ,
[patrol_point_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workshop_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reservedfields1] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[reservedfields2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'contents')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工作内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'contents'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工作内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'contents'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'reportperson')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上报人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'reportperson'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上报人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'reportperson'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'reporttime')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'上报时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'reporttime'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'上报时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'reporttime'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'patrol_point_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检点Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'patrol_point_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检点Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'patrol_point_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'patrol_record_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检任务Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'patrol_record_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检任务Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'patrol_record_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'workshop_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'车间Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'workshop_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'车间Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'workshop_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'reservedfields1')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'预留字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'reservedfields1'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'预留字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'reservedfields1'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'TB_TimeEfficiency_Work_Record', 
'COLUMN', N'reservedfields2')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'预留字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'reservedfields2'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'预留字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'TB_TimeEfficiency_Work_Record'
, @level2type = 'COLUMN', @level2name = N'reservedfields2'
GO

-- ----------------------------
-- Records of TB_TimeEfficiency_Work_Record
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_Worker_Position
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_Worker_Position]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_Worker_Position] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dttime] datetime NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[imei] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worker] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_Worker_Position
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_Worker_Position_App
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_Worker_Position_App]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_Worker_Position_App] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[longitude] decimal(10,7) NULL ,
[latitude] decimal(10,7) NULL ,
[insdt] datetime NULL ,
[upsdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_Worker_Position_App
-- ----------------------------

-- ----------------------------
-- Table structure for TB_TimeEfficiency_Worker_Position_OLD
-- ----------------------------
DROP TABLE [dbo].[TB_TimeEfficiency_Worker_Position_OLD]
GO
CREATE TABLE [dbo].[TB_TimeEfficiency_Worker_Position_OLD] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrol_record_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dttime] datetime NULL ,
[worker_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[imei] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worker] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_TimeEfficiency_Worker_Position_OLD
-- ----------------------------

-- ----------------------------
-- Table structure for tb_unit_manager
-- ----------------------------
DROP TABLE [dbo].[tb_unit_manager]
GO
CREATE TABLE [dbo].[tb_unit_manager] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[unitid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_unit_manager
-- ----------------------------

-- ----------------------------
-- Table structure for tb_user
-- ----------------------------
DROP TABLE [dbo].[tb_user]
GO
CREATE TABLE [dbo].[tb_user] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[password] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[active] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[caption] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[sex] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userCardId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[officeroom] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[officephone] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[useremail] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[lgnum] int NULL ,
[totaltime] float(53) NULL ,
[morder] int NULL ,
[serial] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cardid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[mobile] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[jobid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pri] int NULL ,
[syncflag] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[wechatid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[themeClass] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[qq] int NULL ,
[lockTime] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user', 
'COLUMN', N'pri')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用于终端的权限等级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'pri'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用于终端的权限等级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'pri'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user', 
'COLUMN', N'syncflag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'与数据中心同步标识'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'syncflag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'与数据中心同步标识'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'syncflag'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user', 
'COLUMN', N'wechatid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绑定微信id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'wechatid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绑定微信id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'wechatid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user', 
'COLUMN', N'qq')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'QQ号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'qq'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'QQ号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'qq'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user', 
'COLUMN', N'lockTime')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'锁定时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'lockTime'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'锁定时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user'
, @level2type = 'COLUMN', @level2name = N'lockTime'
GO

-- ----------------------------
-- Records of tb_user
-- ----------------------------
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'emp01', N'admin', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'超级管理员', N'1', N'0101', N'', N'', N'', N'e77a9f7bd00b4d229056c1a57ad22589', N'0', N'15948.5600000002', N'0', N'0000001', N'', N'emp01', null, N'18616335756', N'', N'999', N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'556847e6646c4e67b9cc20835110b0d0', N'ceshi1', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'系统管理员', N'1', N'', null, null, null, N'0533JS', null, N'4.2', N'0', null, N'', N'emp01', N'2022-07-18 08:57:24.000', N'', null, null, N'E', null, N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'92893c2c12aa4d6680e2a489c3b51797', N'guopu', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'郭扑', N'1', N'1001', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13585675617', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'EE54D37F-35A9-4F95-85BA-318FE315F3E1', N'huangwei', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'黄伟', N'1', N'1002', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15921631948', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'A3A86299-8DC2-4AE7-985F-5BF8C2A705E1', N'zhangzhen', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'张震', N'1', N'1003', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15802131954', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'36F95116-9432-47C0-B4E9-52F471D69CE9', N'zhoufei', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'周斐', N'1', N'1004', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13774207128', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'D8437394-E501-4158-819D-3EE5A68827E8', N'yinqianqian', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'印倩倩', N'0', N'1005', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'17349705051', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'D45BF577-E91D-4D3C-8848-E7A0FC4568EB', N'qiyuying', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'祁玉英', N'0', N'1006', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'18100098868', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'876A51CD-5A5B-4D08-A77E-ABEF310D1859', N'guozhicheng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'郭志成', N'1', N'1007', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'17717271977', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'4996AE8F-2CDC-4D42-B968-2C71B2F25B0F', N'heaifeng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'何爱锋', N'1', N'1008', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15800964471', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'087552C2-4316-435F-8A8B-55EC503C052A', N'xiehuiting', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'谢慧婷', N'0', N'1009', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13818640485', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'88FC14BE-E091-402D-BD81-E1A14AF0271D', N'chuxiaofang', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'褚晓芳', N'0', N'1010', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13764402228', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'D394A806-FD85-41E2-9447-5A4F4091B27A', N'sunchaohong', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'孙朝红', N'1', N'1011', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13818588777', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'C183978A-6ED4-4946-B5BF-4AF2A5EF68AF', N'huangchunxiao', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'黄春晓', N'1', N'1012', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13758340847', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'115BBD0D-2101-46B4-83FF-872BC4EA4F0A', N'luping', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'陆平', N'1', N'1013', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15921278378', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'A13BCBDF-A493-4449-B13E-500258151887', N'tangchaofeng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'唐朝峰', N'1', N'1014', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13918071780', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'7F2CDC5B-9DF2-4AED-AF9A-CC0A262AE910', N'licong', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'李聪', N'1', N'1015', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15821075539', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'14B60AAA-817D-4738-8103-ECFBBF749EB0', N'wangjinhao', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'王金浩', N'1', N'1016', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15801985637', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'DA40BA0D-3143-4637-83CB-3DA45B67E12D', N'qianju', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'钱菊', N'0', N'1017', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15821024809', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'4B3BAE09-456B-4112-8FDD-7211B9CAEFFD', N'sunyonghong', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'孙永红', N'1', N'1018', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15921456528', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'FC6103DA-B5EB-44D7-AA8D-A6BD080F7DB5', N'ruanxinni', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'阮芯妮', N'0', N'1019', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13472565539', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'EE77C9DE-F315-40A5-AD47-AC70BC20D44D', N'tangxulei', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'唐徐磊', N'1', N'1020', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13816535589', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'EF5F0AEF-D13A-48CB-99EA-F8099B3D024F', N'qiuxiaolin', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'邱小林', N'1', N'1021', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13918372643', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'DC044CC4-4ED8-4AFE-8A7C-9DA248EFB455', N'peiyongbing', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'裴永兵', N'1', N'1022', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13501841046', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'DE6F833E-2C19-4C0F-87B1-33F7066EE51C', N'xiaxufeng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'夏旭锋', N'1', N'1023', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'18121102622', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'B76629DD-AF22-4C13-8AF4-097BD8500479', N'jinzhangming', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'金掌明', N'1', N'1024', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'18930799038', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'1DC2E46F-3C26-4B69-88FB-AA9270717489', N'gushenghao', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'顾圣豪', N'1', N'1025', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15901938735', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'D4F550B9-EE45-4FC8-95F0-2E7493F2324E', N'peijianhua', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'裴建华', N'1', N'1026', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13918761495', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'FA7B19F3-61DF-4FFC-9EC7-3619E03CBE28', N'zhangjun', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'张军', N'1', N'1027', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13764136158', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'D1FF2B59-A1DE-4F68-B75A-5477A1B497A6', N'liujingchao', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'刘靖超', N'1', N'1028', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13671819464', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'0219AB41-ECFB-428F-B4E9-B3CC64ADAAFC', N'zhouhui', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'周辉', N'1', N'1029', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15921363773', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'3FA277C7-AB01-4584-9A30-F591EBB677F7', N'shenaiping', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'沈爱平', N'1', N'1030', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15900972883', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'57E4F697-7C93-491E-A10F-A5CDF4FCB35D', N'heguohui', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'何国辉', N'1', N'1031', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'18017676909', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'FAA20F94-AA39-45C9-8762-E2437A2C3610', N'luoweifeng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'骆伟峰', N'1', N'1032', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13585930019', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'66DC1F65-4300-4BA7-8EED-CDED2BF61226', N'songjiafeng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'宋佳峰', N'1', N'1033', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15257409126', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'75BC5ADD-E0EA-434A-A778-EB5B69C1CD99', N'wujian', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'吴健', N'1', N'1034', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'15201869083', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'C73DA07E-3AA1-4833-925C-0C3AE4AAD24A', N'shenfeng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'沈峰', N'1', N'1035', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13816573083', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'F83821BD-57A8-464E-9FCE-99CBF18EAA9D', N'chenlibin', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'陈丽斌', N'1', N'1036', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'18049737080', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'13566F8B-38F2-4A84-A06C-DFF5B9FFD3CC', N'heqiang', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'何强', N'1', N'1037', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13621715163', null, null, N'E', null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'19A6254B-F396-407A-8193-A27E65AC4805', N'fangxuefeng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'方雪峰', N'1', N'1038', null, null, null, N'e77a9f7bd00b4d229056c1a57ad22589', N'0', null, N'1', N'0000001', N'', N'emp01', N'2026-01-27 00:21:48.000', N'13761569245', null, null, N'E', null, null, null, null)
GO
GO

-- ----------------------------
-- Table structure for tb_user_change_log
-- ----------------------------
DROP TABLE [dbo].[tb_user_change_log]
GO
CREATE TABLE [dbo].[tb_user_change_log] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[LastLoginTime] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[password] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_user_change_log
-- ----------------------------

-- ----------------------------
-- Table structure for tb_user_copy1
-- ----------------------------
DROP TABLE [dbo].[tb_user_copy1]
GO
CREATE TABLE [dbo].[tb_user_copy1] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[password] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[active] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[caption] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[sex] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userCardId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[officeroom] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[officephone] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[useremail] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[lgnum] int NULL ,
[totaltime] float(53) NULL ,
[morder] int NULL ,
[serial] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cardid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[mobile] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[jobid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pri] int NULL ,
[syncflag] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[wechatid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[themeClass] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[qq] int NULL ,
[lockTime] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_copy1', 
'COLUMN', N'pri')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用于终端的权限等级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'pri'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用于终端的权限等级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'pri'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_copy1', 
'COLUMN', N'syncflag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'与数据中心同步标识'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'syncflag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'与数据中心同步标识'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'syncflag'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_copy1', 
'COLUMN', N'wechatid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'绑定微信id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'wechatid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'绑定微信id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'wechatid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_copy1', 
'COLUMN', N'qq')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'QQ号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'qq'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'QQ号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'qq'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_copy1', 
'COLUMN', N'lockTime')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'锁定时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'lockTime'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'锁定时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_copy1'
, @level2type = 'COLUMN', @level2name = N'lockTime'
GO

-- ----------------------------
-- Records of tb_user_copy1
-- ----------------------------
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0029', N'zuoguozhong', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'左国忠', N'1', N'', N'', N'', N'', N'76f3a81a3b904496ab96eaba187727ac', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'755dc3165c464efdb51c7fa4f5724cbc', N'zhuronghua', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'朱荣华', N'1', N'', N'', N'', N'', N'a09bb729da0e4451bd31b671fee40ff0', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:21:36.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'ac333f9104c24f35996cd02ece3fb438', N'zhuhong', N'44AD6030E58435979FD3D2271EBBBAA1', N'1', N'朱虹', N'0', N'0136', N'', N'', N'', N'c3e967d203f64967a8b525210849f3fa', N'0', N'6.55', N'0', N'', N'', N'emp01', N'2023-06-15 08:36:10.000', N'', N'', null, N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0014', N'zhuchao', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'朱超', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0001', N'zhangxiaowen', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'张晓雯', N'0', N'', N'', N'', N'', N'619637d61d7c4d7985a8d4edef1322ff', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0038', N'zhangjianping', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'张剑萍', N'1', N'', N'', N'', N'', N'5d1b3d839e594e69a1e268779ed37a23', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0015', N'zhangchoahui', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'张朝辉', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0009', N'yuexun ', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'岳浔', N'1', N'', N'', N'', N'', N'b961e0dbc20e401ea1f93657880016e2', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0007', N'yuanyingwen', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'袁颖文', N'1', N'', N'', N'', N'', N'b961e0dbc20e401ea1f93657880016e2', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0008', N'yuzhibin ', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'俞志斌', N'1', N'', N'', N'', N'', N'b961e0dbc20e401ea1f93657880016e2', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'2ed483b679d24bbeaf037824dc168d92', N'yuduona', N'A21B3D05B54A52278E7BD2A0807518C3', N'1', N'余多纳', N'1', N'', N'', N'', N'', N'c3e967d203f64967a8b525210849f3fa', N'0', N'2.04', N'0', N'', N'', N'emp01', N'2023-06-15 08:39:00.000', N'', N'', null, N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0016', N'yanyuming ', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'严毓铭', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0024', N'xuguohua', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'徐国华', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0034', N'xiaoying', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'肖莹', N'0', N'', N'', N'', N'', N'226a57a68c5c41108305298580d23404', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0018', N'wuxiaoyan', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'吴晓燕', N'0', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0006', N'wuminqin', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'吴旻钦', N'1', N'', N'', N'', N'', N'b961e0dbc20e401ea1f93657880016e2', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'36997d89cc0645c988bb104c5ed61074', N'wujia', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'吴佳', N'0', N'0133', N'', N'', N'', N'021HQWS', N'0', N'39.63', N'0', N'', N'UWT0113', N'emp01', N'2023-08-22 13:07:10.000', N'', N'', null, N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'e19654a708f049089ba3eacc367646b4', N'wuguoyao', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'吴国耀', N'1', N'', N'', N'', N'', N'3cd26c8a6dbd4e94a227bfd813b25927', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:29:25.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0011', N'wangxueda', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'王学达', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0036', N'wanghui', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'王慧', N'1', N'', N'', N'', N'', N'5d1b3d839e594e69a1e268779ed37a23', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0032', N'sunyuhua', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'孙玉华', N'1', N'', N'', N'', N'', N'226a57a68c5c41108305298580d23404', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0025', N'sunyinjun', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'孙胤骏', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'dd62aef0db8b423d993f1078d9593c07', N'sj', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'宋俊', N'1', N'002', N'', N'', N'', N'021HQWS', N'0', N'20', N'0', N'', N'UWT0107', N'emp01', N'2021-08-03 16:58:18.000', N'', N'', null, N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0039', N'songjun', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'宋军', N'1', N'', N'', N'', N'', N'5d1b3d839e594e69a1e268779ed37a23', N'1', null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, N'2023-10-11 14:39:44.000')
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0026', N'shiming', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'史铭', N'1', N'', N'', N'', N'', N'76f3a81a3b904496ab96eaba187727ac', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'da243df07f30464b80165bbe13e75ae3', N'shenshicheng', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'沈史承', N'1', N'', N'', N'', N'', N'619637d61d7c4d7985a8d4edef1322ff', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'd8d530981317420aa0535aca717a158c', N'shenjie', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'沈杰', N'1', N'', N'', N'', N'', N'3cd26c8a6dbd4e94a227bfd813b25927', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:28:11.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0010', N'shenhonghua', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'沈弘华', N'1', N'', N'', N'', N'', N'b961e0dbc20e401ea1f93657880016e2', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0031', N'shanyuan', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'山源', N'1', N'', N'', N'', N'', N'76f3a81a3b904496ab96eaba187727ac', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'1d67dd6864bb45769af4aa0ee76a9775', N'raoshanshan', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'饶姗姗', N'0', N'', N'', N'', N'', N'7dec6ae56e844a2f912a27a428d3053f', null, null, N'0', N'', N'', N'emp01', N'2023-06-14 21:45:26.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'49f971c726db45a0a21d6bac376b25e8', N'qianyuqing', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'钱玉庆', N'1', N'', N'', N'', N'', N'c3e967d203f64967a8b525210849f3fa', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:37:33.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0019', N'qianchunlan', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'钱春岚', N'0', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'9f569b7b07dd4784a360e402ac553e7c', N'pengzhengliang', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'彭争梁', N'1', N'W0459', N'', N'', N'', N'7dec6ae56e844a2f912a27a428d3053f', null, null, N'0', N'', N'', N'emp01', N'2023-06-14 21:37:46.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0022', N'panyi', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'潘毅', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'9a1edb8796374185820e6494642569f1', N'mengxiangyi', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'孟祥义', N'1', N'', N'', N'', N'', N'a09bb729da0e4451bd31b671fee40ff0', null, null, N'0', N'', N'', N'emp01', N'2023-06-14 21:54:11.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0013', N'mengsiyou', N'A82B503DA02D76BAA744F1EFACE045CE', N'1', N'孟思尤', N'0', N'', N'', N'', N'', N'c3e967d203f64967a8b525210849f3fa', N'0', N'0.46', N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0023', N'luoyongshen', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'罗永生', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'9e556061233345cc91fdc94990954795', N'llm', N'44AD6030E58435979FD3D2271EBBBAA1', N'1', N'吕黎明', N'1', N'001', N'', N'', N'', N'021HQWS', null, N'0.05', N'0', N'', N'3344', N'emp01', N'2021-08-18 15:26:37.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0037', N'liuzhaomin', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'刘兆民', N'1', N'', N'', N'', N'', N'5d1b3d839e594e69a1e268779ed37a23', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0003', N'liuyi', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'刘屹', N'0', N'', N'', N'', N'', N'619637d61d7c4d7985a8d4edef1322ff', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'b5c1ec009ae347ca8585b4724ae55194', N'liuxiaolan', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'刘晓兰', N'0', N'', N'', N'', N'', N'a09bb729da0e4451bd31b671fee40ff0', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:21:02.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0028', N'liyugui', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'李玉桂', N'1', N'', N'', N'', N'', N'76f3a81a3b904496ab96eaba187727ac', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'0efba5f4c4a1455a929bff15e29b69e3', N'lina', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'李娜', N'0', N'', N'', N'', N'', N'619637d61d7c4d7985a8d4edef1322ff', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:41:05.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0035', N'jijiawen', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'计家文', N'1', N'', N'', N'', N'', N'226a57a68c5c41108305298580d23404', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0004', N'huangyajing', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'黄亚晶', N'1', N'', N'', N'', N'', N'619637d61d7c4d7985a8d4edef1322ff', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0021', N'huangxin', N'E807F1FCF82D132F9BB018CA6738A19F', N'1', N'黄鑫', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', N'0', N'2.6', N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0033', N'huangshengping', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'黄圣平', N'1', N'', N'', N'', N'', N'226a57a68c5c41108305298580d23404', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0002', N'houmeiming', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'侯媚铭', N'0', N'', N'', N'', N'', N'619637d61d7c4d7985a8d4edef1322ff', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0005', N'hongchunlong', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'洪春龙', N'1', N'', N'', N'', N'', N'619637d61d7c4d7985a8d4edef1322ff', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0027', N'gehuarong', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'葛华荣', N'1', N'', N'', N'', N'', N'76f3a81a3b904496ab96eaba187727ac', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0030', N'gaojiaming', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'郜家明', N'1', N'', N'', N'', N'', N'76f3a81a3b904496ab96eaba187727ac', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'124df620bc1a453b9889933e75ad2102', N'ganping', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'甘萍', N'0', N'', N'', N'', N'', N'a09bb729da0e4451bd31b671fee40ff0', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:26:15.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0020', N'fengyexing', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'冯业星', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'dd0bad77f7e0476e8f355a0ef5adc4c7', N'duxingzhi', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'杜兴治', N'1', N'W0082', N'', N'', N'', N'7dec6ae56e844a2f912a27a428d3053f', null, null, N'0', N'', N'', N'emp01', N'2023-06-14 21:34:50.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'2223096e9dfc44fab8685ecf06086707', N'chenxinyan', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'陈新燕', N'0', N'', N'', N'', N'', N'3cd26c8a6dbd4e94a227bfd813b25927', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:30:11.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'a58c017446c54b63bef1089be04a3086', N'chengang', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'陈罡', N'1', N'', N'', N'', N'', N'3cd26c8a6dbd4e94a227bfd813b25927', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:27:36.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'emp01', N'admin', N'E8E897CF9BD6490BB5C4FDD5A3DABF06', N'1', N'超级管理员', N'1', N'0101', N'', N'', N'', N'021HQWS', N'0', N'9544.18000000012', N'0', N'0000001', N'', N'emp01', null, N'18616335756', N'', N'999', N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0017', N'caolan', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'曹岚', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'365ea9f349b049bdbaa8ca0207f5c8cb', N'bianzhen', N'621C4D1DAFFBC8C5CAEC4E221E06B454', N'1', N'卞珍', N'0', N'', N'', N'', N'', N'c3e967d203f64967a8b525210849f3fa', N'0', N'2.02', N'0', N'', N'', N'emp01', N'2023-06-15 08:32:35.000', N'', N'', null, N'E', N'', N'skin-blue', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_copy1] ([id], [name], [password], [active], [caption], [sex], [userCardId], [officeroom], [officephone], [useremail], [pid], [lgnum], [totaltime], [morder], [serial], [cardid], [insuser], [insdt], [mobile], [jobid], [pri], [syncflag], [wechatid], [themeClass], [qq], [lockTime]) VALUES (N'hqwsyg0012', N'jinhongxun', N'E10ADC3949BA59ABBE56E057F20F883E', N'1', N'金红勋', N'1', N'', N'', N'', N'', N'4c3e60366d5740eca296f59fa6d7fbe8', null, null, N'0', N'', N'', N'emp01', N'2023-06-15 08:49:18.000', N'', N'', null, N'E', N'', N'', null, null)
GO
GO

-- ----------------------------
-- Table structure for tb_user_dept
-- ----------------------------
DROP TABLE [dbo].[tb_user_dept]
GO
CREATE TABLE [dbo].[tb_user_dept] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[EmpID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[DeptID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[Flag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_user_dept
-- ----------------------------

-- ----------------------------
-- Table structure for tb_user_detail
-- ----------------------------
DROP TABLE [dbo].[tb_user_detail]
GO
CREATE TABLE [dbo].[tb_user_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[EmpID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[LastLoginTime] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[Offtel] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[icon] varchar(MAX) COLLATE Chinese_PRC_CI_AS NULL ,
[iconopen] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[opened] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[target] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[title] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dirline] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fax] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[officeroom] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mobil] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[politics] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[webmail] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_detail', 
'COLUMN', N'icon')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户头像'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_detail'
, @level2type = 'COLUMN', @level2name = N'icon'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户头像'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_detail'
, @level2type = 'COLUMN', @level2name = N'icon'
GO

-- ----------------------------
-- Records of tb_user_detail
-- ----------------------------
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'0038cecf41ae4aa8a1f55f2f083d5df4', N'2023-08-17 11:32:10.000', N'ac333f9104c24f35996cd02ece3fb438', N'ac333f9104c24f35996cd02ece3fb438', null, N'2023-08-17 11:32:10', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'2b43906dbbe642ab9fe88ae97f8c071e', N'2022-09-26 09:38:22.000', N'13809328a32749d6922f53cadfc8ea7e', N'13809328a32749d6922f53cadfc8ea7e', null, N'2022-09-26 09:38:22', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'40a6038fba994144bc6626cc48a408d8', N'2022-03-10 09:27:18.000', N'a2a8809eee0c40f28a94a45730b384b0', N'a2a8809eee0c40f28a94a45730b384b0', null, N'2022-03-10 09:27:18', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'6602b6e7baeb432e943c583d26f4c9ed', N'2023-10-12 11:01:11.000', N'2ed483b679d24bbeaf037824dc168d92', N'2ed483b679d24bbeaf037824dc168d92', null, N'2023-10-12 11:01:11', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'7c015e6f9ba944e9b9ce79d1dcf37f7b', N'2022-11-28 14:55:46.000', N'1', N'1', null, N'2022-11-28 14:55:46', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'7c673ac3cdcc4140840a0cc489f3d358', N'2023-09-27 17:21:40.000', N'36997d89cc0645c988bb104c5ed61074', N'36997d89cc0645c988bb104c5ed61074', null, N'2023-09-27 17:21:40', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'ab73cad2c88246c8a864351cc3107576', N'2023-10-24 15:45:46.000', N'hqwsyg0021', N'hqwsyg0021', null, N'2023-10-24 15:45:46', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'ab889f0f54c94525a0f21fb88bc21cb5', N'2018-09-25 12:29:17.000', N'emp01', N'emp01', null, N'2023-08-08 15:13:35', null, N'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANcAAADXCAMAAAC+ozSHAAAC+lBMVEW0rqQ9PDouLi5CQkJAQEA9PT0/Pz9BQUE7Ozs5OTk3NzciIiI6Ojo0NDQwMDBraGN9eXM8PDwqKio0MzKPi4M2NjYoKChGRUKhnJMmJiZzcGsyMjKYk4tgXlkkJCRYVlKHgnurppwsLCxPTUonJyYjIyMzMzOclo5JSUljY2NhUkp7eHKVe23wwaguKylVSUPJoo07NDCihXWJcWXkt5/WrJa8mYa4jnlHPjl7aVpwXlTFmIKGa1ztup/rtpuge2reqY/uvKLqs5dtWE1raGTuvqODf3lURj7RoIiSc2Pvv6VLSkhTUU95YVXqs5jvwKbor5Plqo3gnn/bk3LjpIbtu6HUgV2rhXLfmXnMcEnHZTzJakLRfFfWh2PqtZrOdlDYjWpGRkbPeFLXimfor5LfnHzLbkfhoIDJaUHnrpHVhWE7OjrlqYvkpYfNc03psZXjpIXmqo23oJC/gGNLNCXsuJ2dVDXCd1a4m4rFaUJqPy1DMCWHW0K2pJfnrI+9jnbtzsLy2M6Pa1pyRzCCWDlfNyRDLB49KBx0Wz1kTDLl5OP////qxLfclXT89fKFeHFsVTliOSXYvbHBe1zYlXjy8fFoUjZwVzpgSTGRhn/jsp3KbkjnvKrPysdZQy3eoIb04tpSOy14Xj767ebEb0q2qp56YUH19fWZjYPZ19W2XzuBZUP23c/++/mdkYb99/Ttwarz0L344tfyy7f88u2jnpXxxq/z1MTFv7eqmIGjjnT56N+yo5LxyLLhqpL118e/hGm9iXDwwqnkponNmYC5l4O0e2HakG+7kn3XiWbKbUW4s6m9uK/d29n7+/vr6urU0cvIyMff395aWlmTj4dmZmaLh4BDQkKysrJbW1tPT09hYF9MTExZWVmoqKjPz89WVlZiYmKTk5O9vb1fX19SUlJ6enpRUVGdnZ3U1NRkZGRTU1NUVFReXl6Hh4f1m57tRErwaW76zc72p6rsOD785uZxcXH72druUFbuj5LsXWLfhYjzf4OCgoIRwyDHAAAaW0lEQVR4AcTYCV6DOhCAccskwCQhfUkbKqKo6fJW3Pf7H+zREiyW4tJC/Z/A7xecTHO0s4EHP0KoD04QYoVxAQUSwQqRnA+PftUfnMLOFDpR2QWKQUlpPhr/atjIg/3DmOsCo8ARMZ8c/+qBKdgdxZWQMyhFBCos0Se/GDbQsAcicClJwZGwlvLB6WFjzibjI+dUp7CHQGFBe+CQFNZUcuD5MYmz0fnF+HKvL9HxEVEm4Lih6BDLzy8P2SU9qTNeShIC+whCZLWxSiSBNY9PD9nlEcnQUV5MYC9UaAmtYecH7NLgewad0GYK9kKiBGo2T2wyOTs9TFcGAEaiI0xiYD8C6lJVa455amfzwSHu6SmnAEDlAh0K3YpqYYJrxCjRf/TfNXQXqVqkxn2LBDrFKLzT3CCy+AAz/4Kn4BDfmD6OTDCoGC6xYPvfrC65hhpK/AKBTikGDuExLi3m+qTn22zACfRNCHDiDFeYnfc89E+4gX7Vl2DNsUT/POrXMbfQv3SjSw4PMOkJbKVU91+inrsuPj3u97jGJzyF7VICnYlc1wxLcs4Hk2HnP8vG45PhdDLiWWwXcdu2S2R3YQZWMosOs9amw65vrQFPtOctGBbMXMJ2VEJXqIKCctt+4IdYuOhhz8hSpYzAJcsFbKc86AqBgtFQCaiY9POcEQEIZiJEbP/dZQwsBT9P+FogL/oIG5enRBnDaG5hjUJNtAqj9EdlSvnf6veOezkxd0qECjn3ailQE+hlWCBQEfg+H8V30kw/O8eZBYdE3CPgUAM1vjQAQBAx9H/0IoCoKIHPJae97LyjCCoiixU4KdSpVRhFbP1LfUqpH7S8lApFCy2BZtrPpawVVIjmKd12YAFKr/53UrLtcAphWASsfw2QENd82C45PurvX8xhmltDm4uGj5ENAAS+CzePR+EXaMuclGcd1pwOh8OxWw4t1KhUp+WggjqFzKMQuLB6HWmGtXcFChqU7vLzOx9xPjpdjQ7PEmhiDGqWRQtshlVf35L4uksJaEouOp0YZ1622qj/Ah3TL1degojGEBe2CwpAEP0eP0TnbyIzPrkAoDYT0CTrYW4a+oHYo0sghtDABl1fXkDThKcAuJinsCmg0ZbBoEi4c5faPhYJv+z48jqHkkAziwVsCMXHsDJIELpjl48rAWyKx13O9+lkwtj6KOTco41NSJKN2bFEdwmLkjmWFGyyw+6yzjnXOuG0LHDvQ56AOoEo1ZYwpAJ/yJv/k7Q+J6fnXf5a/vdDgSvTZmNURNjYKgoixJ+IYv5ffsXawtjkqEvT+idXYnLGPUaqDCyYiNbCFDrhd8sW0s749U2e/yOxQuADEXfalW7OBJcWc52mKRNCKGyUUayw1jImi5iVWZbFGb+9ywv/aWwJU7zTaSihRHxKFdaI0TV3klkhTrROqzgisMRia7DdYkVazu8f8qWHOWtbgnmXL6TjtOrCj6LJY54/PT3f/3P97mXZ6DFBav9kuMgSKxlu547+6vUxd948bAnjXf4GO0m3b6zyLd/i8em/1SHGWqbRoqKzIje2C2xaeDHnL3cP+bubjOEa6atrGMG2A9P/5a2enu6rQ3zhdfPZzForF45nZ7yIer3JP7i3WEN66pqIbcNA3+Xf91T47/7+/m0z9Ort7jFvejGNsO67BqJ54bLYZe3mqXSTt3j0WCOs8y4uwCG06tL3ea/uEqwLeulS6/dkx77lPbvXWCOC7rvG3G1Ga/LlIe/b24ewEJZUdtR1V33Gm6ubvHcP17bxmCN0p4/zmzM+ucsP4OHFwxrSddeQb2yG9jo/iMcriRUaQMGwLrv0x0vZzB/zw/ifeLtKixiIAQAMW4V0bXAquPsLtp51vf9tkKEp7Xu+zNzgr0TbBlSKHWbIOfKNVbGnOm+2hFztzkVZR0OarbK69pRWOVTOPXZ7Qq4W9imN6dm9Fw64XW7W0J83cSjm6r6oXKy31SGn65QewfR2ibl6iG9QyUV6NeJ0hfm2/ryP+CB0hog4TjYzlqUiZpdlpZVhGRqyrgnoLBbo0je54nZRbXj6jrIuHCfapVe1ao3xQJjru5KpoGv26+rADiUxu8LsylgVmCC2H6TOr6sLpWwbMWd2ZTWUekdpF44VhY1gwe2iPvliKu9qnlPYKFeZXVQcXkJD3jX9dfm/sPCO07X+/xyeAsq73hL69Dvc5v0rJZtqnI9NuM6zcoPXFdrkgqUBV2OH2kp1wuui1msHpibu16leV3OmZXJZfho23ky5NgLXshJ2l5OGjYYJ1zkVvsC71SvZLrnQnMu3mF1VRU2KGdfkz+Xxu9yiayXrQqA6itvlFV1owmWzu44PrMC4K7DYXdtgOUZdL5fpfJ7d5aYzG+iKur6ZOQv3No60gQcLkUv+ytw08NEEjgKPKZPTOdU9sXe12s3m1Wq9p8SCnCQ7oDCzs7HLDbOdMrp1ysxMf9DtvKuVZJA7K20s/x4oTu2f5qUZzdMARZotr6mee+H3RLbXDXZfpq3EQRAtgpJNUBQFMphgiAxBVuQhf0MURSlHSLSQiYN/iNd/eexV48zzvhWU4SeIrK6E4YS1iGWIv5wsgUKGmoKmE4Zg2WhtMAIRfbDX/063vR6+w1uvibc5CXZ7XcFLlsIwGm2aFgYIkaGEATT8R6VB9YJXXc6rxvHyfPCdtDTvJbYBBwoZRgg4CEt4L3p1vR6Y5Lz3um3+MmpRT4gEPBgyGU4wDBxoMrvHRlbMsF+n/Au9vGzM+W8r71qAXrIGjOgqVVxtIba3txurLKIWMcgTISMiFImxFQpbav0n4qsZ8VVaArdMcLwW5LweeNjrh/P5C8QZ6JVkMRg10Gk46ImIpIRYu83qUrSvYWpizmvZTDsO/43XNt5+wXxtkVcqBgklvZoDUgKOpVIGIE5tfLbX9R56IT58Ie14JTMxCbeqfK8OnsVxJdFJkYXT7DrvtVdtjZNgMyiliqqvRsr3auFara9VkrnGjF4eXketWw8WG25wHor6KE1RSrN8Wh2kBFzrhQD+MIulttecjQCwaZ0HWpu3AGMru/HNeSEcgcRoISUI8KyuJzRH3ST02sa8YMvmyr02ASiSJG2vdV4sz6eI3y8MKWCrBiE5v1kpWCSLQ9akh2r5aY7G6ejlkyRJAdhUsdYOABVfn93lvLdpznkRf2HH0lEYRmxNnAUSKUVgp6SNsGpVIYSXkILXAvS6z0csVIAdlXrtgrCML198uZfY03JeMiGBbG7L1kR379m7b//+AwcOHDy04XDXoSOmeRQyqhT3l94uUe0Gpcc0H93wWNehQxsOHNi3ff/jT+xpisWZE9Vxp+W81wz8lmgu/s0w7KrU60nQCDKnxk6wWcspYgdYYImc7cw81WM+ve2ZY9sOIcePHT9hmuZJMEpaIXL4VI+JCw8eQroOs4W7T62qDxSeAzjMYPPGFPQiGjxZeXpJBJk7zU6wWXUUyZIcocxpy+LMWfapIxsOP7bYtDgHIhkN7dR5tvBCYeHFY8utv3PJKJzPsoO97vkzYUiVJ1iv4/XnezDB8l4NxEZVzpu2V5852/n1FpkoppFREE/lFl5+9ukNgxeebNOJTQN18DGvSf+f8+qt1GsL85INgI21doJNX0CRFoIEm3pMxhHL64ztdfzisedMxBBJabQ9JuPps4ueP9Nsx+HFYw+ayJ5VMkFaqEMz86rdGJbQa0vlcagQEgGAF1hBvBa9bAgjtdvMseixw1ae4Kd+8ZkzJtITIiXRj5o2f37MKjSMsy/iQqSnyRajg718LwBYYgpsqtxLIwTCoBlz8PVfwYvltvyS6XDkscOXX+zq6jr24mXcLuRlUhJnJS68fLyr66K18BXT4dXXsCwN9po6RwMAQrTKvdYDENKmgUKbazDBZlDEueF4/VKPafN8nSVmcflwn5njjZdISfrfeNMRcxZefsvZrVffGCAMf7HXlMnTmjXQ2gQCsL7y/gWCrocgQevwbUrBy5kkBl67cslE3n7n3XfffafvaWez+snovGciuNDi/dzCKx8MDC3z6GWVw+UAIV0UoPL+tRkgKBMShtSC6fjd+RAvRJA/3INuBXre+2iA/BH97zlqDnuOCh0yISW8ahshTIgcBKh8QLSP8gbEm+6y/78AFHEKvUMgda7p5O49Nkf/IgiECzklnD55dA9y+sNzoSFjcsNgr/s/BoNgGfNi7l3Jmg2odOEUlmA+mkMfaTZCZOIOQUTIcHTqwNL7ljkGtvqVWDYq5BMA9tmDQZeziWMqeiHEFZ+SMqAFFl43+YalBrCPAeATD46V2DGI1kkb8XFKwctPeMmy8lL+5Tziu27y9EZDw64MXhwst2AgGp/RZfjIt+C1hPDCNvyD8h7pOSR9103xLTMMDMMtEzxgPQaiKlI6H72WFQoiL5/VE9Jf1uPePJ/7pk5bSNtVDMP1Xnh9gYEoCpQurWFeCwoFkZNsukyvLM3zpW/qpOU0KWIYfuGFVx8Gokga6IobLK/bGwsFkZMOy2vgdcJDyTK//a6p96+gfhHDsG+CR4EoEpk00CaWYLV1rgviznK9aIF9M27w4Stw0aMwxJEjgh8edrBJS10XxHS6hQxcqagcdl6YMakZf2IEhw1P6AWQMYnrbrNmtGbqIBMu5HSakoGPyno77/DVhul31bEIkaFwpvRg9g2iFxsRb5tDXRbEesergnKozbjdft0exJnXG3YAtNlXQ9YZrMbX5LIgUttroJKyEfPNnI9n9Da8Y/OIJwEEbJJLbysu9C3cXgLpL8OrhTqkwOdbyj5IHZyrKI9amIpejbdPnnzXI64KB3rtRK/yy0a35bWCeWHz8o4toJFWfMg+dfL05S4Lx07Hq/yyoYCPhX+WtPHPUNy3AThV31hcELO8XpS8jl7llo0EXGjGL3+xeXnH1wAiHoYeuWvytDnUXeFYm05n0avsstEJiWYWJUtCnoYhHlaCOK0t891S46N5ONtyWiavX/mUIC0dftdl4yvQ5rDnMAEDoG+ClwBIxG8HIhZE/sLRsNPyIgUC6fTaepeHFA2+Yt1LJxo2ZY+9MDCW3zX5/gX8nVlmVuiVJ23RweEl0zwAKZZeMl4cekovROxP8GPf1No67gQTpPSIXmqb4CK9VAAVzw/ee+G1L5HbAbbdMAm9uDrzyu408ml//wcDAwP96MXQJBfppYCF2tB61bz0MMDW2+9BL54EEyGeRuQPrnz00UevD+S91mguunIMLMI6Phj72FuvJ9mESBQIq/N8xV7yH3ilbTrIgLVjn+am4FRHco3Cn16dECZqGNgKvInykk8ACCFaWCRkG8YhV2cWnP36zF/UzSghgWiQ/w7AYLkdCmtXz0uxtMje2i8pb4Jp36QaglK7VdoD+WExxf406iK9MsA+hOBV2a9dADohIWLx+YwY5U0wXQmR0ErQ8mIt6XQbKEQW+LtXCk+1RA7iHcDX3nptBhBJjhcgTrk7mMDsVEuM3bUFhHQ6KEm6q+HQwMxCVLwD8JI+AIPkiIBCXY6IISNtbRnr0YLr4RDDEMEvHDymF1YWqlyCFiBcqN/Y9aPD5ZnSCUNEDuOh0usEUwkiGwDdvAmWx/i2TTOEgPsb7K8gLOXEVM/TC29HUUwwwELjrPTFyPWBcs5e2JQjAmp5PPUi67aAQy9Akjro5GqgF5oy7Mr/5C3rJnjP12CzafOE3uJADBDvaaUOipVSfZ8A4n0UIjvWb9q0ftc67NIx3lEKqeBGNIEH5B272M/eMeEqswOgk7/SV/JFioopNWY8WdzCWgkPsipJQdltlY96OzhxXCgmXV/Ti6LrMEzh7e4Y0gsGdyBWEIYRbMRjBlYO/kAs/wI7gfPgGLJjC3R7UhHl0cKwe0yrBrIeYqO2Zl3Op5WkaBYCQURJ0yLBohVBufTMG+PoWN6X+njp1qwrhoRoYXCIyISdxWxWRlRRJkQQVaOt5M1GHLdrjNkE0VFmRFkMRrQcEtIGYUMDRdXZa6OQZYwYIbH0bBgd++3Ck2bc1RdhuqoogpuqgdtV3Q2TiXfI+e3CEaoaG9btasNcnpRV5w60miXRT7zCT22SCed1VxVK4lfezxw6tdHwarcqfFI01i/xNLtwkO+bUC16IZPPML5hShRFNUhK09pS5Sh0pimD6yJRNDQLAMhoRrye414jU7UodM4r3Vylo1V39rXBz1E0FKyFVWQXQJzrAqe1XmdW2QBP0TAwuarKekg4tSPr1bmrGy+exo+Y7M1tTV6r+mKedOeAXQvjeJ82rsRaKhBzSktnYnxoYRtLqBTRWyudC7vHx24hmwCguzIxp2ZEABvXePFKJECpTKw+/6Lhk3HkFe2MQSZZgZiMw1MGMuPJ6xMAmspAprNsMdTCz2a8edGkAvBVmWKo1Y2xPI68vtsFQC3UBEST5YhlcxWjm6LX9+PE64fzUbBbTwYScdd9DLXiGYhhGAP89cfxIfa2afYo1MYAiCTdibU22OsUu+zAOdP8aVxE4bOmJfYaZWDux7BHyy6mjFQGGzty1LT4eRx4PW8yXn6d2iQjYBfGLFeS+VtoKoJ5afOGyfjxu+pv14+mjSNGOzWAr7iqB6bWVwlIfEULWsjzVff62XTYQ23wV412ciSZlVqpaJFV9pKZ48eqez1r5nmDOqSidv2QR49BPclCMJXXetPM80v1i2GRWJY6qDFrH5K0YZRYrGf7ihFr81qPWeDX6mo9hFUjz5t5Mawfsa9Kx2JA787gpjr0v2wW8eNv//d7lZze+sff/znriFlKjKY0y0wtsWX17TEA7T+93DWU3FgWBuBAHp1Tc4YqUNLZ0m+Z8mSwDYkxWwbN8tamzs+m/XadOT9nqRbcw8vMyWCXr8uibqlb8nWRGZf1pKpSvxL14JcH/fvCuzJNW1B6cVUoCMCxpQsf+mAz7d7X6wPQSajkQzYjjwhZsxPPFNdgcnIl/13Rcu5bYsFF29EMAEfdIz/7YDJdWDqGhO75ROti0erLy9t8IlkgX/vsX9RmPPWFJNWz21Od/o1YtEEJ22kh0ekt7X6f63Skh0TbA0i6KIrOLafy1ywpzXe+nv/Or/yPEz+TnpHqxlD9mFI6HEdryWzuhZ+9X6EOyd7TvCAkmubaFCVeeUZJ9s3PfiX9L2KlJKRszXyupF+IElvuniyXT0RRbLZlT+772fsTSvcCkua5Lokyq3LIlKJ9Npm0zLP/kEdWfQ9Km9zLc0lhbLbe62i7l/qAFoeUUHLRiih17okTy6qvfzW1vODJ3z0vStkcqLmkyGkDx96jaB/ap4ZScl0W5b73u8OnP7dc78TpJ06eWxWl3uKSXHm0I+/+lVoC2k5IC9qwSep1RbnVF5P775nTT1ZlevKJwycPvPyKqHCJOaaEgZAW2aaBzpEPvatULqAHVDT7dQzWRZXv/Tw7bg+XOJBSiqUYcCLviwKvhc7SO052/hjQ8onqctlviCqr9f/E/HeyWJXlSgzVXCrHANyfvaO5coFWTOU0xCQxK6u+MGXVsV4S1d5iya3LRaFnAPvefqx9HTWVyoM3zcUDUUP+v11lfvG8qNalWS4fesCBHQ1Lk5lA//zb3Ow9wKRyQ9cOtCxXyMzUFTWeP1eS6sXviTrrnLLTXJwa+REVRW3g0IfeTrEALaIykT/mhAmdEi4n1kWt5xfH7OX6VHJpzHLF0HgumBTLFrfQ2XHJzh+FbpcVKvJjzphoU2LC0kA0Jft5c63ULpR6st1N3i6IihNhoLez/bEEwymrVMA5B6CEzZLdFQ1WfzPdIH94RTS5PA9BZMLiBb2QVFEf2EnJftZBO6QFe3oxK5A+mD6nrohmr5x78Rd5qWp3YZ5Lh8MFI1vtxwA4uoNcxwC01f6zx7zoofQBCzizLhqduXrt+g3RqGvzTEzUUnPlySjnI7HU/NkIy27B2lYqe8RFD0D26jzvW6LBzWu3EtdviwZ3OEcE+FwqtvdQJjRgReg0jdiHOkZItpF/HvhcSkufAZ6pOTuku9dvZa5dbRyu3NCGEXAVf0iSJWvg4VhDrkOI09rqJLkBV7Cg57kSd2pb8Fbu+l1RbYu3cwPoxQlQaxZly6CFC/UrfhrIgq+kKvAAIpelpt1x494tRXXJ1ljhyjVfqzc0s87y0al9n48iIimCtSfgOkCo5OLLNZOlut+tiGWzwrbgcb3YaFPKwqHap8ujjA6u9yB8Un+OLVHi9vVbBf/cOFvzIOdsHWOuZyKer4/dNUujRVNxUwu04Szk4jVRcPZft4qur22slMS6U+gyoMf1NCOkTFCzOlyZPhOhz7U0WOSzonh3rGx8+1bRVdEd/Pj1xljswbC53kMa0XTj65VXx8+gzw5Bovaupg5oUy9IxDx3Rw32+ms/7op7twpuC/H6yqArFFfSCjkPaeZ44rph1jO63TQNMQ1HPZLsyoIdQkCpIA7JfIhrOUAoz/vAM3Ud8Fx3EqvBXh+syG1YUi7p7EAZsk2WYjeGpGue40cWvIDrwZbDMCFJqyjYz9CiVI85oPiBxsXRbmHKCIiSWMrXc3f6g99f3Bqz2HLIlFhSz24h58Vcz6BhzByH2a7vVSzDmKSIExNf53q7ID30kAHoEQ0DlvJgeT3+rcS6dyav53zILvLc2NUAy9LaDwHgBp6e7a7xdMJKr6l+tluGMSdGIbie2TdNZieJ5xG5I1ZP4Dc25i155ppSrjN5o64NXi+eGXHkAKYtW93kBqY5jFmyKRGXnr9HYJEUcCpq8w54D6JlZ99hSrD1rVkplHpJ/xa5lcFZJVbei+1JwM1MZ8KZtCRGp/T7xJ91oeRb3KwPWCHtGS++z5u8qcRS3BC5N+6siTVeNJ5oMDxu1vfHnAkoYeJI1dYYzhoqdrjZLlljN2bVxTvMQXd2RhWfZeUr0t6yucC1YTjcTLN5ZlKx6vfBzL/spTE3cx5GJAdSoXyR3b5VtO2i/w+XCUiHxTvQz3/IESVaxc3RR5QtjZmAd8CCpkxX7pJIXS+9N2ZWuJTr4CHeCYdztmzE2fX7f4nYdCI7f1jqAAAAAElFTkSuQmCC', null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'ba7db6247bf44b95ba5e7d1df62d20f0', N'2020-10-15 15:44:01.000', N'B9CD73B8-4F8C-4A48-87DC-54C441B7F55B', N'B9CD73B8-4F8C-4A48-87DC-54C441B7F55B', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'c385aa97765949d7bcd40186711658d7', N'2022-01-18 14:18:41.000', N'b9b3d32a436f459294224f91a61e6efb', N'b9b3d32a436f459294224f91a61e6efb', null, N'2022-01-18 14:18:41', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'd33aeb1d62e44d14b74901a0f8ddebf3', N'2023-04-14 09:19:45.000', N'dd62aef0db8b423d993f1078d9593c07', N'dd62aef0db8b423d993f1078d9593c07', null, N'2023-10-11 14:42:42', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'e235ce998cf84c6fa3eaf991b6dc8f0b', N'2023-01-09 17:29:06.000', N'6ca231f5afec4bd48c2017d73ff7bcdf', N'6ca231f5afec4bd48c2017d73ff7bcdf', null, N'2023-01-09 17:29:06', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'ef138cf3faf440cca263cbd5470420b6', N'2022-09-14 10:34:47.000', N'c158fbdc26694c7682951ecbd04a2529', N'c158fbdc26694c7682951ecbd04a2529', null, N'2022-09-14 10:34:47', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO
INSERT INTO [dbo].[tb_user_detail] ([id], [insdt], [insuser], [userid], [EmpID], [LastLoginTime], [Offtel], [icon], [iconopen], [opened], [target], [title], [url], [dirline], [fax], [officeroom], [mobil], [politics], [webmail]) VALUES (N'feaf6136b8534a5a8099b3f85a2fbc4c', N'2023-10-11 14:44:40.000', N'hqwsyg0013', N'hqwsyg0013', null, N'2023-10-11 14:44:40', null, null, null, null, null, null, null, null, null, null, null, null, null)
GO
GO

-- ----------------------------
-- Table structure for tb_user_job
-- ----------------------------
DROP TABLE [dbo].[tb_user_job]
GO
CREATE TABLE [dbo].[tb_user_job] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[jobid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[serial] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_job', 
'COLUMN', N'userid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_job'
, @level2type = 'COLUMN', @level2name = N'userid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'人员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_job'
, @level2type = 'COLUMN', @level2name = N'userid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_job', 
'COLUMN', N'jobid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'职位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_job'
, @level2type = 'COLUMN', @level2name = N'jobid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'职位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_job'
, @level2type = 'COLUMN', @level2name = N'jobid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_user_job', 
'COLUMN', N'serial')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程分组id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_job'
, @level2type = 'COLUMN', @level2name = N'serial'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程分组id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_user_job'
, @level2type = 'COLUMN', @level2name = N'serial'
GO

-- ----------------------------
-- Records of tb_user_job
-- ----------------------------
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'13cc0c88498945569fd615e2cf0d09f5', N'2020-11-09 23:08:26.000', N'emp01', N'emp01', N'PS-XZZW-20200908155101', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'2f02f0e89eb84987b383dda6bdb85222', N'2020-10-28 10:29:38.000', N'emp01', N'emp01', N'PS-XZZW-20201028102015', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'5123649ea71244a0bd33d39c0a9531dc', N'2020-10-28 10:30:21.000', N'emp01', N'emp01', N'PS-XZZW-20201028091913', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'52ab16cf8e3b434fbd10a6372ca3c0a9', N'2023-06-14 13:44:22.000', N'emp01', N'emp01', N'06011-XZZW-20230614134348', null, N'5a5ecc4f-1a17-4987-a805-17adfdfae53e')
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'536b0b721e8a454b9df0c7e5431cd695', N'2020-10-28 10:30:14.000', N'emp01', N'emp01', N'PS-XZZW-20201028092011', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'568f0268de664322bd080c91edbdb171', N'2023-06-14 13:46:43.000', N'emp01', N'emp01', N'06011-XZZW-20230614134608', null, N'c9d1684c-e7ab-465f-b957-f4b1b408045a')
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'639d344e8e7e4e318cd5d011c0318868', N'2023-06-15 16:31:11.000', N'emp01', N'emp01', N'06011-XZZW-20230615135855', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'68e4b0cc28c245e89d6c1cd13dabba0b', N'2020-10-28 10:29:52.000', N'emp01', N'emp01', N'PS-XZZW-20201028095619', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'8b29f67e280c42b1bcc8e73f95212177', N'2022-03-16 11:23:50.000', N'emp01', N'emp01', N'BK-XZZW-20220316112328', null, N'a0d9af66-258c-4b3e-a6ee-218b1452ace0')
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'8b481bc906444e1d9714bbcb89837f73', N'2020-10-28 10:29:45.000', N'emp01', N'emp01', N'PS-XZZW-20201028095649', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'94d53cfef281401a81d13c3f498df326', N'2026-01-27 01:11:28.000', N'emp01', N'92893c2c12aa4d6680e2a489c3b51797', N'SHJSW-WS-20260127002545', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'a72057e536f4427b9c25adc4b5685cc2', N'2020-10-28 10:29:07.000', N'emp01', N'emp01', N'PS-XZZW-20201028102550', null, N'a8833afe-1c2b-4258-af57-d391527a9c41')
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'b721f4bb626444c3b03c2604fd825060', N'2020-10-28 10:29:59.000', N'emp01', N'emp01', N'PS-XZZW-20201028095522', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'bc9fb526830d4c18940955d89425f1c4', N'2020-10-28 10:30:07.000', N'emp01', N'emp01', N'PS-XZZW-20201028092136', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'bf90bc5409ca428180eeeccc0cb5f280', N'2023-06-14 13:48:14.000', N'emp01', N'emp01', N'06011-XZZW-20230614134801', null, N'32fd8919-a457-40ea-bfc2-442cb62108f9')
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'c374c57b3435469c93516390fc755221', N'2020-09-13 22:29:23.000', N'emp01', N'emp01', N'PS-XZZW-20200826140003', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'ca179c17f331427291b70bd0a0d15977', N'2020-10-28 10:30:29.000', N'emp01', N'emp01', N'PS-XZZW-20201028091834', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'd8ffcd146eb04b638da71624ecb9c52a', N'2026-01-27 01:19:19.000', N'emp01', N'0219AB41-ECFB-428F-B4E9-B3CC64ADAAFC', N'SHJSW-WS-20260127002601', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'db10dd30ebdf4ecabce22e2bedf21edc', N'2023-06-14 13:50:52.000', N'emp01', N'emp01', N'06011-XZZW-20230614135040', null, N'96d411e1-ca01-48e7-872d-e667c90b6d51')
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'dbd424d65fe34827a6d8617a4d854eee', N'2021-10-16 11:38:21.000', N'emp01', N'emp01', N'BK-XZZW-20210826112837', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'dccbd2b698924a6aaf24f00c8da5ca7c', N'2020-09-13 22:29:38.000', N'emp01', N'emp01', N'PS-XZZW-20200826135752', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'e85be9da8557499cb487e3ac266cba9b', N'2021-10-16 11:38:33.000', N'emp01', N'emp01', N'BK-XZZW-20211016113827', null, N'dc5e4a95-158d-44b5-ac8b-0cdfb0e605b8')
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'ed7824f39c654b95b07a0d397f8bafb8', N'2023-06-14 13:40:50.000', N'emp01', N'emp01', N'06011-XZZW-20230614134030', null, N'badf4838-d313-4b50-b707-4ed3e4b2da4a')
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'f051ae9635584d48bb5dbb3d156a692a', N'2020-09-13 22:29:31.000', N'emp01', N'emp01', N'PS-XZZW-20200826135933', null, null)
GO
GO
INSERT INTO [dbo].[tb_user_job] ([id], [insdt], [insuser], [userid], [jobid], [unitid], [serial]) VALUES (N'f64f95e86b154e6ea8d81d015d6c504a', N'2023-06-14 13:56:12.000', N'emp01', N'emp01', N'06011-XZZW-20230614135552', null, N'ad0a6bf6-30af-47e2-96a1-823b95af07c2')
GO
GO

-- ----------------------------
-- Table structure for tb_user_outsiders
-- ----------------------------
DROP TABLE [dbo].[tb_user_outsiders]
GO
CREATE TABLE [dbo].[tb_user_outsiders] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[caption] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[sex] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[cardid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO
 
-- ----------------------------
-- Table structure for tb_user_role
-- ----------------------------
DROP TABLE [dbo].[tb_user_role]
GO
CREATE TABLE [dbo].[tb_user_role] (
[EmpID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[RoleID] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_user_role
-- ----------------------------
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0029', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'755dc3165c464efdb51c7fa4f5724cbc', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'ac333f9104c24f35996cd02ece3fb438', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0014', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0001', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0036', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0009', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0008', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'36997d89cc0645c988bb104c5ed61074', N'c437bb0599664d9dac64d299042b2a3e')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0020', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0024', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'dd62aef0db8b423d993f1078d9593c07', N'rol0001')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0018', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0013', N'c437bb0599664d9dac64d299042b2a3e')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'36997d89cc0645c988bb104c5ed61074', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'dd62aef0db8b423d993f1078d9593c07', N'rol0000')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0032', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0011', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0033', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0035', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0025', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0037', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0039', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0026', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'da243df07f30464b80165bbe13e75ae3', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'd8d530981317420aa0535aca717a158c', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0010', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0031', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'1d67dd6864bb45769af4aa0ee76a9775', N'rol0005')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'e23b2374f8784c95a52ddc9481ec1c8c', N'rol0005')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'e23b2374f8784c95a52ddc9481ec1c8c', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'9f569b7b07dd4784a360e402ac553e7c', N'rol0005')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0022', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0021', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'755dc3165c464efdb51c7fa4f5724cbc', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0023', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'9e556061233345cc91fdc94990954795', N'rol0000')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'8f00351bfeed494a9d0e711131d73d53', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0003', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'b5c1ec009ae347ca8585b4724ae55194', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0028', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'0efba5f4c4a1455a929bff15e29b69e3', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'ea48ee7c182046eb93bd803bf456b517', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0004', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'34e65bbf1c7041de9361b30a9085e921', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0002', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0005', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0027', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0030', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'124df620bc1a453b9889933e75ad2102', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'dd0bad77f7e0476e8f355a0ef5adc4c7', N'rol0005')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'2223096e9dfc44fab8685ecf06086707', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'a58c017446c54b63bef1089be04a3086', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'2ed483b679d24bbeaf037824dc168d92', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'92893c2c12aa4d6680e2a489c3b51797', N'6c6ab286f106415382a735607fa73459')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0017', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'36997d89cc0645c988bb104c5ed61074', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0012', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'b5c1ec009ae347ca8585b4724ae55194', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'124df620bc1a453b9889933e75ad2102', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'd8d530981317420aa0535aca717a158c', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'2223096e9dfc44fab8685ecf06086707', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'a58c017446c54b63bef1089be04a3086', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0025', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0013', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'15c825974f924a718662df84361c3bae', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'1f3c8a616c0f4804aa5b80c4e585b25a', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0013', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'8a0ac49e29e4461e9a625ead72082e34', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'2ed483b679d24bbeaf037824dc168d92', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0029', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0028', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0027', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'8cf607518c9b459fa649276b40ba952b', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0031', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0030', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0016', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'348edbe94cb743b5b14780540f2eb2bc', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0003', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0007', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0010', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0026', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0024', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0018', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0011', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0034', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0038', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'e23b2374f8784c95a52ddc9481ec1c8c', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0008', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0022', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0012', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0014', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0015', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0023', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0006', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'2ed483b679d24bbeaf037824dc168d92', N'c437bb0599664d9dac64d299042b2a3e')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'9a1edb8796374185820e6494642569f1', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0017', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0019', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0006', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0006', N'c437bb0599664d9dac64d299042b2a3e')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0013', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'365ea9f349b049bdbaa8ca0207f5c8cb', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'e19654a708f049089ba3eacc367646b4', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0006', N'rol0005')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'365ea9f349b049bdbaa8ca0207f5c8cb', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0004', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0002', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0005', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'b1df1b5b766449e2978e457195c253a2', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'f862b756146547168cee270c307f439b', N'rol0007')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'49f971c726db45a0a21d6bac376b25e8', N'rol0006')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'hqwsyg0001', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'da243df07f30464b80165bbe13e75ae3', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'0efba5f4c4a1455a929bff15e29b69e3', N'')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'0219AB41-ECFB-428F-B4E9-B3CC64ADAAFC', N'rol0005')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'emp01', N'6c6ab286f106415382a735607fa73459')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'emp01', N'rol0001')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'556847e6646c4e67b9cc20835110b0d0', N'rol0001')
GO
GO
INSERT INTO [dbo].[tb_user_role] ([EmpID], [RoleID]) VALUES (N'emp01', N'c437bb0599664d9dac64d299042b2a3e')
GO
GO

-- ----------------------------
-- Table structure for tb_user_time
-- ----------------------------
DROP TABLE [dbo].[tb_user_time]
GO
CREATE TABLE [dbo].[tb_user_time] (
[id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[userid] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[ip] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[sdate] datetime NULL ,
[edate] datetime NULL ,
[logintime] float(53) NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO
 

-- ----------------------------
-- Table structure for tb_user_workstation
-- ----------------------------
DROP TABLE [dbo].[tb_user_workstation]
GO
CREATE TABLE [dbo].[tb_user_workstation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workstationid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_user_workstation
-- ----------------------------
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'027d4fd8d7c94cbb8e07836b83f0f4d8', N'5D5A1CE82629452F810C7062507D641E', N'27e1af2a9b9da450e950434152f579252', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'03fd0def93e444a5b3c7b93d0e7d65b7', N'20481DA028CF464E8593A53700FE737C', N'38577597e29d4d7c8a743c2975df0c80', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'1366965781664cfebb4f06604a57b8d9', N'73D676734FB54773A14C515B71E48654', N'27e1af2a9b9da450e950434152f579252', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'15a170aa8eea4791888341c089a4df2a', N'674A5A8974CC4A078663FF95F16C5E3D', N'5a8152d4f4a84d47ab34c2889174caa2', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'17fb2ac4c3f04d9f953fd171be98cb01', N'6EB28344008A40E1B56E97CE08446B07', N'93d3961afe5e46b489a6cf897e383f99', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'189758c0c1864b6c87ad230db9821926', N'177ad5ef13704c87af06f3326be2efd3', N'9a31467415c64674b0c06bd93ee622b3', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'18cb36d1d276464d8b31dd2cb9cdff02', N'32f3dfe14a3642bbb9c586583e344dd1', N'60242e0d584f40a49a6980c540e8e26f', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'1bc6a4197caf41c9aa128190a611ae63', N'BC8155F9D4EC47D785D88CAEDF836C83', N'dcfe7d45c93f47f8b02265ca97bf7ace', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'2343dafc695943a0bf8cbb0871a80f49', N'emp02', N'93d3961afe5e46b489a6cf897e383f99', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'25b803aba8074782819e493a307f6dc2', N'5e96d1fd5ab34baea6766781ac5776f0', N'8a6087f5e3cd4c51bb95b0d0d58c5dd7', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'26d9b6189c124b6d818bf176a7145505', N'1A40B000635B458F9787368C45950BFC', N'83ba2215436a4f16a5c90bcbfd8fc006', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'28c035d47e034f4fa485aee13e3c183b', N'8D93B14D5FCF4CD38B1A50EC40D79972', N'c09947b9b0f5458db42c07dbedb7536a', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'32f4b7378e5443749718e8bc67ab1344', N'0fdfeff53c9e4e829be902585118f9d2', N'562381130ee0409a97c7d6b6c7623641', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'38212479e2d04508bd03253b026d72d3', N'b7450d1b729f485b97b278be3ae789d2', N'38577597e29d4d7c8a743c2975df0c80', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'3e6f6e01c7454c09872ee0aa901aee07', N'd0b1a4e9083e486ea381c74049919af8', N'eb9ad587d65c4fcdb5acfc0f74a15eff', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'4144c92b3da84221a0ed3f20f660b3af', N'21B4E9E497874193A14776EAFE2E60C3', N'2f2bea8e251f74950ba02054d7e1829c7', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'4374f25250f84f579d8ec4b09ecf03ea', N'CB6A11276B3042B397C72275D4237B77', N'593ec486019b43e4af056777e614d0f2', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'477a01e0147049eaa1ecb2c3459bcac8', N'06e3522c5286493b9f6271e29c6be5ea', N'daef077e52a844fa92d4fb4770c12de9', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'4fc7fc728c6646c7abe5b4f1c583f898', N'0f90e593d213465393cc44e52ba95576', N'528f1f0a28674152a834fde729f9891d', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'5161c3a3347d45e18605c012d0b590b6', N'101790707111408D99C97C1755A9C84B', N'93d3961afe5e46b489a6cf897e383f99', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'56bfe69b84c94fc7bda4fb6c66bad92f', N'emp01', N'528f1f0a28674152a834fde729f9891d', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'5ab32f4f4f6b409684f36ccfbaacc863', N'ECBCC3A7D3BE44F3A3602C9B630B4F66', N'7fa5a2f394814f1a858ea938cfd2f1b4', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'5c16c0102a514e7f9cb8788c1f5cfc35', N'148a136bc3a841758a2857752f1ff884', N'68b7adcd527347969e2eedfb12c655d0', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'5da9647cedfc44a6ab5e0380bff18099', N'2165ECAFFB5B482CB57ACBFCE69CF360', N'2ed9529b283aa461794cf7cf296a8da44', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'69194a51059a4ec18deab7fa8d86a992', N'209A8DA65F1642FD89201642E6500DCF', N'94e2e97dd49f4e8a951211139d086d45', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'6e972d2e6e5c47e29be09488606786bc', N'305F1A3348A04747B5FFFD26BD1CFA47', N'dcfe7d45c93f47f8b02265ca97bf7ace', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'70e5676ad7a54a8d994c4a7ef6211051', N'2060547CD9044D2A91A6157E9D4712D0', N'528f1f0a28674152a834fde729f9891d', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'74685ac071d84229944057c6b1915716', N'EF6DEF9CAFC94B46ADEC0F0D8C7E96B1', N'307ae6c8e1f34348a1a1ad1ab1cfc72a', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'83494e9cbbe0495493217b1505cdfeee', N'42bd43aba0a846b0a1bf362ecf2cfd8f', N'2004a72576384df1ac08a5f3ecf92e9f', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'899e4c53e1eb41edb2939eac80070e12', N'21206B631DB44F79A3F93A8CF5F2DF0E', N'562381130ee0409a97c7d6b6c7623641', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'8a00bb8361e2456d9554528f2ced1957', N'f31ab05efba34151a9a7e28728d5acc9', N'efef53370a564d6c8b931967e481b5ef', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'8d04431447a644ada8b48472a04b05de', N'67C49E5BC6DF484FA30FEFC1BA615606', N'8a6087f5e3cd4c51bb95b0d0d58c5dd7', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'8e3d2e73275c45ba8787abe20585d8c0', N'a3223976757f490bba1651938bda6c02', N'1', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'9b22a31205204279a4c721f97b2d54c2', N'b11ee24a9d4a4a8799f962c30e0b63ec', N'89b42cc8f21c494fa81f5bd2c8dac182', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'9d24b2407fb341af8ac482d9f05a52a5', N'7ca9e0b1cb0e4244a21da9544ed86c79', N'8234058371254cd49998229d2832774f', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'a3aeb6c1039347899b47bfcd69444df9', N'ce406bbb339c421eb560501e23d02ccc', N'a3f974ab0fc344708b6fd2f849df5aa1', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'a3ed7160206e48ec8de66b74a2f35193', N'FEFEEA5F3B9D4E4FA48D464DEB8F4224', N'cce962087fb34a689b89514a3f93ebb7', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'a4654ae7690046739a90438dcca5dc73', N'2F92E20E02124CADB843DB149967EA63', N'27e1af2a9b9da450e950434152f579252', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'a4bc422468a24777bda8b35663746526', N'2F82B36C5FB14578B113E2B00FAB53E6', N'efef53370a564d6c8b931967e481b5ef', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'a6277d4c9cab4376ab91daa04a70dc6b', N'BE686C7A511F408EB97C779018F8263F', N'a3f974ab0fc344708b6fd2f849df5aa1', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'a7d34b8b7f9a4683b1f585655a1dda41', N'5F2F56BB1B63464CA3462284D1E806B2', N'38577597e29d4d7c8a743c2975df0c80', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'a8ff06d78e0449f5a9fd76d1c9d2fe36', N'8A7561CE30DF45F3BCFC9D9E6C6C72F9', N'0ebc2b48c4484fc389f1842b4f79695f', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'ada61c4d4a274e33b5a2200117c9a328', N'4F3A055F89ED424BAE5069C0805025D0', N'2004a72576384df1ac08a5f3ecf92e9f', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'c0afb8ad63834369a6eda6e66de328ca', N'201ABE16E6574841B47ADCA406D6542E', N'2307ae6c8e1f34348a1a1ad1ab1cfc72a', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'c40d6b7dc1e649c69fc7aca005babc86', N'203C64A229274307891E8C6B8580B328', N'68b7adcd527347969e2eedfb12c655d0', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'cef9181867c24bc6adc7b620d35932d5', N'213D1F5AC8D74A4C80D8660E758DA00D', N'2f2bea8e251f74950ba02054d7e1829c7', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'd6753ff929ef4d80828d77b77a22822d', N'202F4F5644E44B99A6B95972B93404C0', N'9a31467415c64674b0c06bd93ee622b3', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'd99a279033624ef592d63c70a6ae8f73', N'2025A4DF40E944E3BEBBB2CBB81DE9DB', N'27e1af2a9b9da450e950434152f579252', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'e54845bff9174c1e99a6bdbabf37d630', N'7e234e71b00144f48b80b4eeb9bb2173', N'93d3961afe5e46b489a6cf897e383f99', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'e69f6c3a82074c51a027b5d668f46659', N'343d9d5ff08f48e0ba8fe4a19d96ad2f', N'94e2e97dd49f4e8a951211139d086d45', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'f7b7de3ac1af49cba0e95d410a9153e2', N'c7fb086d95e84109b236d1634187250c', N'9a31467415c64674b0c06bd93ee622b3', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'f86dcf08539e45ec9479cc3d52b6feac', N'1398f9c9b6f345e6ab0f8ff5902c7b38', N'562381130ee0409a97c7d6b6c7623641', N'emp01', null)
GO
GO
INSERT INTO [dbo].[tb_user_workstation] ([id], [userid], [workstationid], [insuser], [insdt]) VALUES (N'fe79f59c3ce540bc92162b3dd4d511f8', N'B1689E58AFC841CCA2CA6F08886ECCBB', N'a48dbe8e4b4d4f8fa16962e45657fdfb', N'emp01', null)
GO
GO

-- ----------------------------
-- Table structure for tb_visit_apply
-- ----------------------------
DROP TABLE [dbo].[tb_visit_apply]
GO
CREATE TABLE [dbo].[tb_visit_apply] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[visit_units] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lead_units] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[organizational_unit] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[leader_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[leader_position] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[contact_information] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[visit_time] datetime NULL ,
[visitors_number] int NULL ,
[purpose_content] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[comments] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[seal_img_path] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[state] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[submission_time] datetime NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visit_apply
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visit_position
-- ----------------------------
DROP TABLE [dbo].[tb_visit_position]
GO
CREATE TABLE [dbo].[tb_visit_position] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[visitors_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dttime] datetime NULL ,
[state] int NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[imei] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[worker] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visit_position
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visit_register
-- ----------------------------
DROP TABLE [dbo].[tb_visit_register]
GO
CREATE TABLE [dbo].[tb_visit_register] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[visit_units] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[visit_duration] float(53) NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[contact_address] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[leader_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[receptionist] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[contact_information] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[visit_time] datetime NULL ,
[visitors_number] int NULL ,
[purpose_content] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[comments_suggestions] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[commentator] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[state] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[submission_time] datetime NULL ,
[apply_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参观登记表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参观登记表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'visit_units')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参观单位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'visit_units'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参观单位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'visit_units'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'visit_duration')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参观用时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'visit_duration'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参观用时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'visit_duration'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'contact_address')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'contact_address'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系地址'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'contact_address'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'leader_name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'领队名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'leader_name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'领队名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'leader_name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'receptionist')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接待人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'receptionist'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接待人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'receptionist'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'contact_information')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'contact_information'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系电话'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'contact_information'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'visit_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参观时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'visit_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参观时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'visit_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'visitors_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参观人数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'visitors_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参观人数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'visitors_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'purpose_content')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参观内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'purpose_content'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参观内容'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'purpose_content'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'comments_suggestions')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参观意见及建议'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'comments_suggestions'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参观意见及建议'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'comments_suggestions'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'commentator')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'讲解人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'commentator'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'讲解人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'commentator'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'state')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'state'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'state'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'processDefId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'processDefId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'processDefId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'processId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'processId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'processId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'audit_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人，注：接待部门负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人，注：接待部门负责人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'submission_time')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'提交审核时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'submission_time'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'提交审核时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'submission_time'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'apply_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联申请表ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'apply_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联申请表ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'apply_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO

-- ----------------------------
-- Records of tb_visit_register
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visit_register_detail
-- ----------------------------
DROP TABLE [dbo].[tb_visit_register_detail]
GO
CREATE TABLE [dbo].[tb_visit_register_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[safeArea_position_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[state] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[register_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'参观登记附表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'参观登记附表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'safeArea_position_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全区域id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'safeArea_position_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全区域id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'safeArea_position_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'state')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'state'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'state'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'register_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联登记表ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'register_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联登记表ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'register_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_register_detail', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_register_detail'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO

-- ----------------------------
-- Records of tb_visit_register_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visit_safeArea
-- ----------------------------
DROP TABLE [dbo].[tb_visit_safeArea]
GO
CREATE TABLE [dbo].[tb_visit_safeArea] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[security_level] int NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[state] int NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[audit_man_id] varchar(250) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全区域信息表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全区域信息表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全区域名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全区域名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'security_level')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全级别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'security_level'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全级别'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'security_level'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'state')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'state'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'state'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'morder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'latitude')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'默认中心坐标-纬度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'latitude'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'默认中心坐标-纬度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'latitude'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'longitude')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'默认中心坐标-经度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'longitude'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'默认中心坐标-经度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'longitude'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'remark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'remark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'remark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'processDefId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'processDefId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'processDefId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'processId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'processId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程字段'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'processId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea', 
'COLUMN', N'audit_man_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'审核人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea'
, @level2type = 'COLUMN', @level2name = N'audit_man_id'
GO

-- ----------------------------
-- Records of tb_visit_safeArea
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visit_safeArea_position
-- ----------------------------
DROP TABLE [dbo].[tb_visit_safeArea_position]
GO
CREATE TABLE [dbo].[tb_visit_safeArea_position] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[latitude] decimal(10,7) NULL ,
[longitude] decimal(10,7) NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[safeArea_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[state] int NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全区域定位信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全区域定位信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'主键ID'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'insdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'insdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'insdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'insuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'insuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'insuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'latitude')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'纬度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'latitude'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'纬度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'latitude'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'longitude')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'经度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'longitude'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'经度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'longitude'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'biz_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'biz_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂区id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'biz_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'safeArea_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安全区域id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'safeArea_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安全区域id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'safeArea_id'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'state')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'state'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'状态'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'state'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_visit_safeArea_position', 
'COLUMN', N'morder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'morder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'顺序'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_visit_safeArea_position'
, @level2type = 'COLUMN', @level2name = N'morder'
GO

-- ----------------------------
-- Records of tb_visit_safeArea_position
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visit_safety_commitment
-- ----------------------------
DROP TABLE [dbo].[tb_visit_safety_commitment]
GO
CREATE TABLE [dbo].[tb_visit_safety_commitment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[state] int NULL ,
[content] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[edition] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visit_safety_commitment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visit_safety_commitment_record
-- ----------------------------
DROP TABLE [dbo].[tb_visit_safety_commitment_record]
GO
CREATE TABLE [dbo].[tb_visit_safety_commitment_record] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[state] int NULL ,
[content] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL ,
[promisor] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[commitment_time] datetime NULL ,
[sign_img_path] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visit_safety_commitment_record
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visit_visitors
-- ----------------------------
DROP TABLE [dbo].[tb_visit_visitors]
GO
CREATE TABLE [dbo].[tb_visit_visitors] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[full_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[gender] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[age] int NULL ,
[apply_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[state] int NULL ,
[contact_information] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visit_visitors
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_cacheConfig
-- ----------------------------
DROP TABLE [dbo].[tb_visual_cacheConfig]
GO
CREATE TABLE [dbo].[tb_visual_cacheConfig] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dataName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[inivalue] float(53) NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[dataType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[collectMode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[NumTail] int NULL ,
[unit] varchar(255) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_cacheConfig
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_cacheData
-- ----------------------------
DROP TABLE [dbo].[tb_visual_cacheData]
GO
CREATE TABLE [dbo].[tb_visual_cacheData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[dataName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[inivalue] float(53) NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[dataType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[timeType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[NumTail] int NULL ,
[unit] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[rate] float(53) NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_cacheData
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_datatype
-- ----------------------------
DROP TABLE [dbo].[tb_visual_datatype]
GO
CREATE TABLE [dbo].[tb_visual_datatype] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[data_type_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] int NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_datatype
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_interaction
-- ----------------------------
DROP TABLE [dbo].[tb_visual_interaction]
GO
CREATE TABLE [dbo].[tb_visual_interaction] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[methodCode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[parameter] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[active] int NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_interaction
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_jsp
-- ----------------------------
DROP TABLE [dbo].[tb_visual_jsp]
GO
CREATE TABLE [dbo].[tb_visual_jsp] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[jsp_code] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[style] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] int NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_jsp
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_jsp_configure
-- ----------------------------
DROP TABLE [dbo].[tb_visual_jsp_configure]
GO
CREATE TABLE [dbo].[tb_visual_jsp_configure] (
[id] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[data_type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[pro_dataVisual_frame_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[element_left] float(53) NULL ,
[element_top] float(53) NULL ,
[unit_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[select_unit_id] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[windows_height] float(53) NULL ,
[windows_width] float(53) NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_jsp_configure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_jsp_configure_detail
-- ----------------------------
DROP TABLE [dbo].[tb_visual_jsp_configure_detail]
GO
CREATE TABLE [dbo].[tb_visual_jsp_configure_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[data_name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpcode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[insdt] datetime NULL ,
[configure_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[numTail] int NULL ,
[active] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[data_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[time_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rate] float(53) NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_jsp_configure_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_jsp_element
-- ----------------------------
DROP TABLE [dbo].[tb_visual_jsp_element]
GO
CREATE TABLE [dbo].[tb_visual_jsp_element] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[element_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[get_value_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value_url] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[data_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[camera_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] int NULL ,
[http_url] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[numtail] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_jsp_element
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_layout
-- ----------------------------
DROP TABLE [dbo].[tb_visual_layout]
GO
CREATE TABLE [dbo].[tb_visual_layout] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[div_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[div_class] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] int NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_layout
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_layout_detail
-- ----------------------------
DROP TABLE [dbo].[tb_visual_layout_detail]
GO
CREATE TABLE [dbo].[tb_visual_layout_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[rowno] int NULL ,
[colspan] int NULL ,
[rowspan] int NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] int NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_layout_detail
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Visual_Plan_Component
-- ----------------------------
DROP TABLE [dbo].[TB_Visual_Plan_Component]
GO
CREATE TABLE [dbo].[TB_Visual_Plan_Component] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[style] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] bit NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[w] float(53) NULL ,
[h] float(53) NULL ,
[width] float(53) NULL ,
[x] float(53) NULL ,
[y] float(53) NULL ,
[color_pattern] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[data_json] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_Visual_Plan_Component
-- ----------------------------

-- ----------------------------
-- Table structure for TB_Visual_Plan_Component_Element
-- ----------------------------
DROP TABLE [dbo].[TB_Visual_Plan_Component_Element]
GO
CREATE TABLE [dbo].[TB_Visual_Plan_Component_Element] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[name] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[element_code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[get_value_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[data_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[camera_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] bit NULL ,
[mpoint_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[w] float(53) NULL ,
[h] float(53) NULL ,
[x] float(53) NULL ,
[y] float(53) NULL ,
[color_pattern] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[data_json] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[handle_json] nvarchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[default_value] nvarchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[is_default_value] bit NULL 
)


GO

-- ----------------------------
-- Records of TB_Visual_Plan_Component_Element
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_plan_interaction
-- ----------------------------
DROP TABLE [dbo].[tb_visual_plan_interaction]
GO
CREATE TABLE [dbo].[tb_visual_plan_interaction] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[interaction_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[parameter] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[btnClass] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[btnStyle] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[camera_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_plan_interaction
-- ----------------------------

-- ----------------------------
-- Table structure for tb_visual_processOperation
-- ----------------------------
DROP TABLE [dbo].[tb_visual_processOperation]
GO
CREATE TABLE [dbo].[tb_visual_processOperation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[data_model] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[manage_project] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[manage_actual] float(53) NULL ,
[manage_target] float(53) NULL ,
[manage_unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[manage_evaluate] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cost_project] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cost_actual] float(53) NULL ,
[cost_target] float(53) NULL ,
[cost_unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[cost_evaluate] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_visual_processOperation
-- ----------------------------

-- ----------------------------
-- Table structure for tb_weather
-- ----------------------------
DROP TABLE [dbo].[tb_weather]
GO
CREATE TABLE [dbo].[tb_weather] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[time] datetime NULL ,
[city] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[weather] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[temp] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[wind] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[humidity] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[high_temp] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[low_temp] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[wind_power] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[precip] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[feelsLike] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[pressure] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[vis] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[windSpeed] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[type] int NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'weather')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'天气'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'weather'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'天气'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'weather'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'temp')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'温度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'temp'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'温度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'temp'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'wind')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'风向'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'wind'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'风向'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'wind'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'humidity')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'湿度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'humidity'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'湿度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'humidity'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'high_temp')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'最高温度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'high_temp'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'最高温度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'high_temp'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'low_temp')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'最低温度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'low_temp'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'最低温度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'low_temp'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'wind_power')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'风力'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'wind_power'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'风力'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'wind_power'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'precip')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'降水量-毫米'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'precip'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'降水量-毫米'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'precip'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'feelsLike')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'体感温度-摄氏度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'feelsLike'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'体感温度-摄氏度'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'feelsLike'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'pressure')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'大气压强-百帕'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'pressure'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'大气压强-百帕'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'pressure'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'vis')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'能见度-公里'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'vis'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'能见度-公里'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'vis'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'windSpeed')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'风速，公里/小时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'windSpeed'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'风速，公里/小时'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'windSpeed'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_weather', 
'COLUMN', N'type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'0 为实时天气 1为预报天气'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'0 为实时天气 1为预报天气'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_weather'
, @level2type = 'COLUMN', @level2name = N'type'
GO

-- ----------------------------
-- Records of tb_weather
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_camera
-- ----------------------------
DROP TABLE [dbo].[tb_work_camera]
GO
CREATE TABLE [dbo].[tb_work_camera] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[url] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[channel] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[style] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[username] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[password] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[active] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[viewscopes] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processsectionid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[netUrl] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[phoneUrl] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[configid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[configtype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[isSavePic] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[savePicNum] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[savePicSt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[isNeedAlarm] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_camera', 
'COLUMN', N'configid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'关联构筑物或设备的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_camera'
, @level2type = 'COLUMN', @level2name = N'configid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'关联构筑物或设备的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_camera'
, @level2type = 'COLUMN', @level2name = N'configid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_camera', 
'COLUMN', N'configtype')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'标注是关联的是构筑物表还是设备表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_camera'
, @level2type = 'COLUMN', @level2name = N'configtype'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'标注是关联的是构筑物表还是设备表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_camera'
, @level2type = 'COLUMN', @level2name = N'configtype'
GO

-- ----------------------------
-- Records of tb_work_camera
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_camera_File
-- ----------------------------
DROP TABLE [dbo].[tb_work_camera_File]
GO
CREATE TABLE [dbo].[tb_work_camera_File] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[masterid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[filename] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[abspath] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[filepath] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[size] int NULL ,
[pointId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_camera_File
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_group
-- ----------------------------
DROP TABLE [dbo].[tb_work_group]
GO
CREATE TABLE [dbo].[tb_work_group] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[deptid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'班组表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'班组表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group', 
'COLUMN', N'deptid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属车间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group'
, @level2type = 'COLUMN', @level2name = N'deptid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属车间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group'
, @level2type = 'COLUMN', @level2name = N'deptid'
GO

-- ----------------------------
-- Records of tb_work_group
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_group_copy1
-- ----------------------------
DROP TABLE [dbo].[tb_work_group_copy1]
GO
CREATE TABLE [dbo].[tb_work_group_copy1] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group_copy1', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'班组表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_copy1'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'班组表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_copy1'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group_copy1', 
'COLUMN', N'unit_id')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属车间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_copy1'
, @level2type = 'COLUMN', @level2name = N'unit_id'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属车间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_copy1'
, @level2type = 'COLUMN', @level2name = N'unit_id'
GO

-- ----------------------------
-- Records of tb_work_group_copy1
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_group_copy2
-- ----------------------------
DROP TABLE [dbo].[tb_work_group_copy2]
GO
CREATE TABLE [dbo].[tb_work_group_copy2] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[deptid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group_copy2', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'班组表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_copy2'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'班组表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_copy2'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group_copy2', 
'COLUMN', N'deptid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属车间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_copy2'
, @level2type = 'COLUMN', @level2name = N'deptid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属车间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_copy2'
, @level2type = 'COLUMN', @level2name = N'deptid'
GO

-- ----------------------------
-- Records of tb_work_group_copy2
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_group_member
-- ----------------------------
DROP TABLE [dbo].[tb_work_group_member]
GO
CREATE TABLE [dbo].[tb_work_group_member] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[groupid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[usertype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group_member', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'班组成员表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_member'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'班组成员表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_member'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group_member', 
'COLUMN', N'groupid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'所属班组id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_member'
, @level2type = 'COLUMN', @level2name = N'groupid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'所属班组id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_member'
, @level2type = 'COLUMN', @level2name = N'groupid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group_member', 
'COLUMN', N'userid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'成员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_member'
, @level2type = 'COLUMN', @level2name = N'userid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'成员id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_member'
, @level2type = 'COLUMN', @level2name = N'userid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_group_member', 
'COLUMN', N'usertype')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'成员类型（成员 or 组长）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_member'
, @level2type = 'COLUMN', @level2name = N'usertype'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'成员类型（成员 or 组长）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_group_member'
, @level2type = 'COLUMN', @level2name = N'usertype'
GO

-- ----------------------------
-- Records of tb_work_group_member
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_groupContent
-- ----------------------------
DROP TABLE [dbo].[tb_work_groupContent]
GO
CREATE TABLE [dbo].[tb_work_groupContent] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[groupTypeId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL 
)


GO

-- ----------------------------
-- Records of tb_work_groupContent
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_groupContentForm
-- ----------------------------
DROP TABLE [dbo].[tb_work_groupContentForm]
GO
CREATE TABLE [dbo].[tb_work_groupContentForm] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insertRow] int NULL ,
[insertColumn] int NULL ,
[columns] int NULL ,
[rows] int NULL ,
[showText] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[showTextSt] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[width] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[height] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[calculationMethod] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[valueRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitConversion] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontWeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fontColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[backgroundColor] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[textAlign] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dataMpId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpst] varchar(10) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_groupContentForm
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_groupContentFormData
-- ----------------------------
DROP TABLE [dbo].[tb_work_groupContentFormData]
GO
CREATE TABLE [dbo].[tb_work_groupContentFormData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[formId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[schedulingId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[value] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_groupContentFormData
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_groupdetail
-- ----------------------------
DROP TABLE [dbo].[tb_work_groupdetail]
GO
CREATE TABLE [dbo].[tb_work_groupdetail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grouptype_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[leader] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[members] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_groupdetail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_groupManage
-- ----------------------------
DROP TABLE [dbo].[tb_work_groupManage]
GO
CREATE TABLE [dbo].[tb_work_groupManage] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sdt] datetime NULL ,
[edt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[delflag] bit NULL ,
[biz_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_groupManage
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_grouptime
-- ----------------------------
DROP TABLE [dbo].[tb_work_grouptime]
GO
CREATE TABLE [dbo].[tb_work_grouptime] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[grouptype_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sdt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[edt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[edtAdd] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[timeExpand] int NULL 
)


GO

-- ----------------------------
-- Records of tb_work_grouptime
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_grouptype
-- ----------------------------
DROP TABLE [dbo].[tb_work_grouptype]
GO
CREATE TABLE [dbo].[tb_work_grouptype] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(250) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[patrolType] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[code] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_grouptype
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_interrupt
-- ----------------------------
DROP TABLE [dbo].[tb_work_interrupt]
GO
CREATE TABLE [dbo].[tb_work_interrupt] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[productid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[wftaskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[materialid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[amount] varchar(20) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_interrupt
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_line
-- ----------------------------
DROP TABLE [dbo].[tb_work_line]
GO
CREATE TABLE [dbo].[tb_work_line] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[serial] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NOT NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[capacity] int NULL ,
[workshopid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_line', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产线表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产线表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_line', 
'COLUMN', N'serial')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产线编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line'
, @level2type = 'COLUMN', @level2name = N'serial'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产线编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line'
, @level2type = 'COLUMN', @level2name = N'serial'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_line', 
'COLUMN', N'capacity')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产能'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line'
, @level2type = 'COLUMN', @level2name = N'capacity'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产能'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line'
, @level2type = 'COLUMN', @level2name = N'capacity'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_line', 
'COLUMN', N'workshopid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'车间id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line'
, @level2type = 'COLUMN', @level2name = N'workshopid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'车间id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line'
, @level2type = 'COLUMN', @level2name = N'workshopid'
GO

-- ----------------------------
-- Records of tb_work_line
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_line_equipmentcard
-- ----------------------------
DROP TABLE [dbo].[tb_work_line_equipmentcard]
GO
CREATE TABLE [dbo].[tb_work_line_equipmentcard] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NOT NULL ,
[lineid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[EquipmentCardid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_line_equipmentcard', 
'COLUMN', N'EquipmentCardid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'张金迁新建'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line_equipmentcard'
, @level2type = 'COLUMN', @level2name = N'EquipmentCardid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'张金迁新建'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_line_equipmentcard'
, @level2type = 'COLUMN', @level2name = N'EquipmentCardid'
GO

-- ----------------------------
-- Records of tb_work_line_equipmentcard
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_line_workstation
-- ----------------------------
DROP TABLE [dbo].[tb_work_line_workstation]
GO
CREATE TABLE [dbo].[tb_work_line_workstation] (
[lineid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workstationid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_line_workstation
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_modbusfig
-- ----------------------------
DROP TABLE [dbo].[tb_work_modbusfig]
GO
CREATE TABLE [dbo].[tb_work_modbusfig] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ipsever] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[port] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[slaveid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[order32] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[remarks] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[flag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[company_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_modbusfig
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_modbusrecord
-- ----------------------------
DROP TABLE [dbo].[tb_work_modbusrecord]
GO
CREATE TABLE [dbo].[tb_work_modbusrecord] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[lastdate] datetime NULL ,
[record] nvarchar(80) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_work_modbusrecord
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_mPointHisChangeData
-- ----------------------------
DROP TABLE [dbo].[tb_work_mPointHisChangeData]
GO
CREATE TABLE [dbo].[tb_work_mPointHisChangeData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[changePeople] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[changeTime] datetime NULL ,
[changeData] float(53) NULL ,
[oldData] float(53) NULL ,
[valueTime] datetime NULL 
)


GO

-- ----------------------------
-- Records of tb_work_mPointHisChangeData
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_order
-- ----------------------------
DROP TABLE [dbo].[tb_work_order]
GO
CREATE TABLE [dbo].[tb_work_order] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[stdt] datetime NULL ,
[eddt] datetime NULL ,
[productNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workorderNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[suspended] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lineid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bomid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dwgid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[updateuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatedt] datetime NULL ,
[issueddt] datetime NULL ,
[porder] int NULL ,
[productionOrderNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ProductiveTaskOrderId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[productid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[OrderCreateDate] datetime NULL ,
[OrderFinishDate] datetime NULL ,
[productUId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[planId] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[wfOrderid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processrealid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pstatus] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[preamount] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[actamount] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[distuser_reason] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[distequ_reason] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dispatchprocessdefid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'stdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'stdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'stdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'eddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'结束时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'eddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'结束时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'eddt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'productNo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'productNo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'productNo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'workorderNo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工单编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'workorderNo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工单编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'workorderNo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'suspended')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'订单状态（激活，挂起）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'suspended'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'订单状态（激活，挂起）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'suspended'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'updateuser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'updateuser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'updateuser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'updatedt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'updatedt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'更新时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'updatedt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'issueddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'下发时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'issueddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'下发时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'issueddt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'porder')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'优先级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'porder'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'优先级'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'porder'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'productionOrderNo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品单号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'productionOrderNo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品单号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'productionOrderNo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'任务状态，计划废弃，则任务状态改变'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'任务状态，计划废弃，则任务状态改变'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'ProductiveTaskOrderId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'生产任务单Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'ProductiveTaskOrderId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'生产任务单Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'ProductiveTaskOrderId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'productid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品在物理信息表中的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'productid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品在物理信息表中的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'productid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'OrderCreateDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'订单创建日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'OrderCreateDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'订单创建日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'OrderCreateDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'OrderFinishDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'订单完成日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'OrderFinishDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'订单完成日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'OrderFinishDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'productUId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品序列号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'productUId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品序列号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'productUId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'planId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'planId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'planId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'processrealid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'processrealid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'processrealid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'preamount')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划产量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'preamount'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划产量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'preamount'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'actamount')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工单当前产量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'actamount'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工单当前产量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'actamount'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'distuser_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'跨班组分配人员原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'distuser_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'跨班组分配人员原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'distuser_reason'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'distequ_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'跨班组设备分配原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'distequ_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'跨班组设备分配原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'distequ_reason'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order', 
'COLUMN', N'dispatchprocessdefid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'调度流程'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'dispatchprocessdefid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'调度流程'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order'
, @level2type = 'COLUMN', @level2name = N'dispatchprocessdefid'
GO

-- ----------------------------
-- Records of tb_work_order
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_order_act
-- ----------------------------
DROP TABLE [dbo].[tb_work_order_act]
GO
CREATE TABLE [dbo].[tb_work_order_act] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[serverIp] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workOrderId] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[stdt] datetime NULL ,
[eddt] datetime NULL ,
[productNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workorderNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[suspended] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[lineid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bomid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[dwgid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[updateuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatedt] datetime NULL ,
[porder] int NULL ,
[productionOrderNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[ProductiveTaskOrderId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[productid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[OrderCreateDate] datetime NULL ,
[OrderFinishDate] datetime NULL ,
[productUId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[planId] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[wfOrderid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processrealid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pstatus] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[preamount] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[actamount] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[distuser_reason] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[distequ_reason] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'productNo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'productNo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'productNo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'workorderNo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工单编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'workorderNo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工单编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'workorderNo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'suspended')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'订单状态（激活，挂起）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'suspended'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'订单状态（激活，挂起）'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'suspended'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'productionOrderNo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品单号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'productionOrderNo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品单号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'productionOrderNo'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'任务状态，计划废弃，则任务状态改变'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'任务状态，计划废弃，则任务状态改变'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'ProductiveTaskOrderId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'生产任务单Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'ProductiveTaskOrderId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'生产任务单Id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'ProductiveTaskOrderId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'productid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品在物理信息表中的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'productid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品在物理信息表中的id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'productid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'OrderCreateDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'订单创建日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'OrderCreateDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'订单创建日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'OrderCreateDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'OrderFinishDate')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'订单完成日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'OrderFinishDate'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'订单完成日期'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'OrderFinishDate'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'productUId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品序列号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'productUId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品序列号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'productUId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'planId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'planId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'planId'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'preamount')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'计划产量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'preamount'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'计划产量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'preamount'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'actamount')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工单当前产量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'actamount'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工单当前产量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'actamount'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'distuser_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'跨班组分配人员原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'distuser_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'跨班组分配人员原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'distuser_reason'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_order_act', 
'COLUMN', N'distequ_reason')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'跨班组设备分配原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'distequ_reason'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'跨班组设备分配原因'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_order_act'
, @level2type = 'COLUMN', @level2name = N'distequ_reason'
GO

-- ----------------------------
-- Records of tb_work_order_act
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_order_excute
-- ----------------------------
DROP TABLE [dbo].[tb_work_order_excute]
GO
CREATE TABLE [dbo].[tb_work_order_excute] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[wftaskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[updateuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatedt] datetime NULL ,
[remark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_order_excute
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_procedure_workstation
-- ----------------------------
DROP TABLE [dbo].[tb_work_procedure_workstation]
GO
CREATE TABLE [dbo].[tb_work_procedure_workstation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NOT NULL ,
[procedureid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workstationid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_procedure_workstation
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_process
-- ----------------------------
DROP TABLE [dbo].[tb_work_process]
GO
CREATE TABLE [dbo].[tb_work_process] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[taskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_realid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_realdetailid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workstationid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stdt] datetime NULL ,
[edt] datetime NULL ,
[remarks] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[updateuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatedt] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processorderid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_process
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_processorder
-- ----------------------------
DROP TABLE [dbo].[tb_work_processorder]
GO
CREATE TABLE [dbo].[tb_work_processorder] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[taskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_realid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_realdetailid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[updateuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[updatedt] datetime NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_processorder
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_scheduling
-- ----------------------------
DROP TABLE [dbo].[tb_work_scheduling]
GO
CREATE TABLE [dbo].[tb_work_scheduling] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[grouptypeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[userids] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[groupDetail_id] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[groupManageid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[schedulingtype] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[patrolmode] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[areaid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stdt] datetime NULL ,
[eddt] datetime NULL ,
[status] int NULL ,
[isTypeSetting] int NULL ,
[succeeduser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[succeeddt] datetime NULL ,
[succeedRemark] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[handoveruser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[handoverdt] datetime NULL ,
[workPeople] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'grouptypeid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'班次id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'grouptypeid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'班次id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'grouptypeid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'bizid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'bizid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'厂id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'bizid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'userids')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'值班人员ids'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'userids'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'值班人员ids'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'userids'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'schedulingtype')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'schedulingtype'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检类型'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'schedulingtype'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'patrolmode')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'巡检模式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'patrolmode'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'巡检模式'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'patrolmode'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'areaid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工艺段id？应该暂时没用到'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'areaid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工艺段id？应该暂时没用到'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'areaid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'stdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'stdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'开始时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'stdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'eddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'结束时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'eddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'结束时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'eddt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'status')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'0：未排班
1：已排班
2：已交班
3：已接班'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'status'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'0：未排班
1：已排班
2：已交班
3：已接班'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'status'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'succeeduser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接班人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'succeeduser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接班人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'succeeduser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'succeeddt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'接班时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'succeeddt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'接班时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'succeeddt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'succeedRemark')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'succeedRemark'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注信息'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'succeedRemark'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'handoveruser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'交班人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'handoveruser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'交班人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'handoveruser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_scheduling', 
'COLUMN', N'handoverdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'交班时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'handoverdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'交班时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_scheduling'
, @level2type = 'COLUMN', @level2name = N'handoverdt'
GO

-- ----------------------------
-- Records of tb_work_scheduling
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_scheduling_replaceJob
-- ----------------------------
DROP TABLE [dbo].[tb_work_scheduling_replaceJob]
GO
CREATE TABLE [dbo].[tb_work_scheduling_replaceJob] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[replaceTime] datetime NULL ,
[oldPeople] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[replacePeople] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[schedulingId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[middlePeople] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_scheduling_replaceJob
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_task_equipment
-- ----------------------------
DROP TABLE [dbo].[tb_work_task_equipment]
GO
CREATE TABLE [dbo].[tb_work_task_equipment] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[equipmentid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workorderid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[processid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stdt] datetime NULL ,
[eddt] datetime NULL ,
[overgroupflag] varchar(1) COLLATE Chinese_PRC_CI_AS NULL ,
[workstepid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_equipment', 
'COLUMN', N'equipmentid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'equipmentid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'设备id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'equipmentid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_equipment', 
'COLUMN', N'workorderid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'workorderid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'workorderid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_equipment', 
'COLUMN', N'taskid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'任务id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'taskid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'任务id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'taskid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_equipment', 
'COLUMN', N'processid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'processid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'流程id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'processid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_equipment', 
'COLUMN', N'overgroupflag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'跨班组分配标记'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'overgroupflag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'跨班组分配标记'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_equipment'
, @level2type = 'COLUMN', @level2name = N'overgroupflag'
GO

-- ----------------------------
-- Records of tb_work_task_equipment
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_task_group
-- ----------------------------
DROP TABLE [dbo].[tb_work_task_group]
GO
CREATE TABLE [dbo].[tb_work_task_group] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[workorderid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[groupid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[num] varchar(3) COLLATE Chinese_PRC_CI_AS NULL ,
[overgroupflag] varchar(1) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_group', 
'COLUMN', N'num')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'安排人数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_group'
, @level2type = 'COLUMN', @level2name = N'num'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'安排人数'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_group'
, @level2type = 'COLUMN', @level2name = N'num'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_group', 
'COLUMN', N'overgroupflag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'跨班组分配标示'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_group'
, @level2type = 'COLUMN', @level2name = N'overgroupflag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'跨班组分配标示'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_group'
, @level2type = 'COLUMN', @level2name = N'overgroupflag'
GO

-- ----------------------------
-- Records of tb_work_task_group
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_task_material
-- ----------------------------
DROP TABLE [dbo].[tb_work_task_material]
GO
CREATE TABLE [dbo].[tb_work_task_material] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[materialid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[amount] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workstationid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[batchingflag] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[arrivalamount] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[batchingamount] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[buser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[bdt] datetime NULL ,
[processRealDetailId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'materialid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物料id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'materialid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物料id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'materialid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'amount')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'物料用量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'amount'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'物料用量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'amount'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'workstationid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'workstationid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'workstationid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'taskid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'任务id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'taskid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'任务id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'taskid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'batchingflag')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'标记配料完成情况：1为已到货，2为已分配'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'batchingflag'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'标记配料完成情况：1为已到货，2为已分配'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'batchingflag'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'batchingamount')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'分配数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'batchingamount'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'分配数量'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'batchingamount'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'buser')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'配料员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'buser'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'配料员'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'buser'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'bdt')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'配料时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'bdt'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'配料时间'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'bdt'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_material', 
'COLUMN', N'processRealDetailId')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'产品工序id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'processRealDetailId'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'产品工序id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_material'
, @level2type = 'COLUMN', @level2name = N'processRealDetailId'
GO

-- ----------------------------
-- Records of tb_work_task_material
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_task_workstation
-- ----------------------------
DROP TABLE [dbo].[tb_work_task_workstation]
GO
CREATE TABLE [dbo].[tb_work_task_workstation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[workstationid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workstationname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_realid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[process_realdetailid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[taskid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_workstation', 
'COLUMN', N'workstationid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'workstationid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'workstationid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_workstation', 
'COLUMN', N'workstationname')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'workstationname'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'workstationname'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_workstation', 
'COLUMN', N'process_realid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位所属工艺id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'process_realid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位所属工艺id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'process_realid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_workstation', 
'COLUMN', N'process_realdetailid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位所属工序id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'process_realdetailid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位所属工序id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'process_realdetailid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_task_workstation', 
'COLUMN', N'taskid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工单id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'taskid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工单id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_task_workstation'
, @level2type = 'COLUMN', @level2name = N'taskid'
GO

-- ----------------------------
-- Records of tb_work_task_workstation
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_wordAnalysisReport_content
-- ----------------------------
DROP TABLE [dbo].[tb_work_wordAnalysisReport_content]
GO
CREATE TABLE [dbo].[tb_work_wordAnalysisReport_content] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(5) COLLATE Chinese_PRC_CI_AS NULL ,
[curveType] varchar(5) COLLATE Chinese_PRC_CI_AS NULL ,
[axis] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[textContent] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[curveWidth] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveHeight] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveUnit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveScaleSt] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[curveMaxValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveMinValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveInterval] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_wordAnalysisReport_content
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_wordAnalysisReport_content_curve
-- ----------------------------
DROP TABLE [dbo].[tb_work_wordAnalysisReport_content_curve]
GO
CREATE TABLE [dbo].[tb_work_wordAnalysisReport_content_curve] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fixedValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[axisNum] int NULL ,
[calculationMethod] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[valueRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitConversion] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[legendShape] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_wordAnalysisReport_content_curve
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_wordAnalysisReport_content_curve_axis
-- ----------------------------
DROP TABLE [dbo].[tb_work_wordAnalysisReport_content_curve_axis]
GO
CREATE TABLE [dbo].[tb_work_wordAnalysisReport_content_curve_axis] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[num] int NULL ,
[position] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveMaxValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveMinValue] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[curveInterval] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_wordAnalysisReport_content_curve_axis
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_wordAnalysisReport_content_form
-- ----------------------------
DROP TABLE [dbo].[tb_work_wordAnalysisReport_content_form]
GO
CREATE TABLE [dbo].[tb_work_wordAnalysisReport_content_form] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insertRow] int NULL ,
[insertColumn] int NULL ,
[columns] int NULL ,
[rows] int NULL ,
[showText] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[showTextSt] varchar(2) COLLATE Chinese_PRC_CI_AS NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[calculationMethod] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[valueRange] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unitConversion] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_wordAnalysisReport_content_form
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_wordAnalysisReport_formData
-- ----------------------------
DROP TABLE [dbo].[tb_work_wordAnalysisReport_formData]
GO
CREATE TABLE [dbo].[tb_work_wordAnalysisReport_formData] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[mpid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[value] float(53) NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[modeFormld] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[showText] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_wordAnalysisReport_formData
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_wordAnalysisReport_record
-- ----------------------------
DROP TABLE [dbo].[tb_work_wordAnalysisReport_record]
GO
CREATE TABLE [dbo].[tb_work_wordAnalysisReport_record] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[sdt] datetime NULL ,
[edt] datetime NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_wordAnalysisReport_record
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_wordAnalysisReport_structure
-- ----------------------------
DROP TABLE [dbo].[tb_work_wordAnalysisReport_structure]
GO
CREATE TABLE [dbo].[tb_work_wordAnalysisReport_structure] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[name] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[unitId] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[morder] int NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[startHour] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[startDay] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[endDay] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[fontSize] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[boldFont] varchar(5) COLLATE Chinese_PRC_CI_AS NULL ,
[color] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_wordAnalysisReport_structure
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_wordAnalysisReport_text
-- ----------------------------
DROP TABLE [dbo].[tb_work_wordAnalysisReport_text]
GO
CREATE TABLE [dbo].[tb_work_wordAnalysisReport_text] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[text] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[modeFormld] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_work_wordAnalysisReport_text
-- ----------------------------

-- ----------------------------
-- Table structure for TB_work_workshop
-- ----------------------------
DROP TABLE [dbo].[TB_work_workshop]
GO
CREATE TABLE [dbo].[TB_work_workshop] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[bizid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[picurl] varchar(5000) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[morder] int NULL ,
[flag] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[rid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[areas] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[ownuserid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of TB_work_workshop
-- ----------------------------

-- ----------------------------
-- Table structure for TB_work_workshop_procedures
-- ----------------------------
DROP TABLE [dbo].[TB_work_workshop_procedures]
GO
CREATE TABLE [dbo].[TB_work_workshop_procedures] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[workshopid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[procedureid] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[porder] int NOT NULL 
)


GO

-- ----------------------------
-- Records of TB_work_workshop_procedures
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_workstation
-- ----------------------------
DROP TABLE [dbo].[tb_work_workstation]
GO
CREATE TABLE [dbo].[tb_work_workstation] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[serial] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[typeid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[deptid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[intro] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[remark] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[equipmentname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation', 
'COLUMN', N'serial')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'serial'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'serial'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation', 
'COLUMN', N'typeid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'typeid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位类型id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'typeid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation', 
'COLUMN', N'name')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'name'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位名称'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'name'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation', 
'COLUMN', N'deptid')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'车间id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'deptid'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'车间id'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'deptid'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation', 
'COLUMN', N'intro')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'intro'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation'
, @level2type = 'COLUMN', @level2name = N'intro'
GO

-- ----------------------------
-- Records of tb_work_workstation
-- ----------------------------

-- ----------------------------
-- Table structure for tb_work_workstation_type
-- ----------------------------
DROP TABLE [dbo].[tb_work_workstation_type]
GO
CREATE TABLE [dbo].[tb_work_workstation_type] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[serial] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[intro] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation_type', 
NULL, NULL)) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位类型表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位类型表'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation_type', 
'COLUMN', N'serial')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位类型编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation_type'
, @level2type = 'COLUMN', @level2name = N'serial'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位类型编号'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation_type'
, @level2type = 'COLUMN', @level2name = N'serial'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_work_workstation_type', 
'COLUMN', N'intro')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'工位类型描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation_type'
, @level2type = 'COLUMN', @level2name = N'intro'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'工位类型描述'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_work_workstation_type'
, @level2type = 'COLUMN', @level2name = N'intro'
GO

-- ----------------------------
-- Records of tb_work_workstation_type
-- ----------------------------

-- ----------------------------
-- Table structure for tb_workorder_achievement
-- ----------------------------
DROP TABLE [dbo].[tb_workorder_achievement]
GO
CREATE TABLE [dbo].[tb_workorder_achievement] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[user_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[participate_content] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[project_role] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[work_time] money NULL ,
[evaluate_score] money NULL ,
[skill_weight] money NULL ,
[actual_work_time] money NULL ,
[explain] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[table_type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_workorder_achievement
-- ----------------------------

-- ----------------------------
-- Table structure for tb_workorder_achievement_order
-- ----------------------------
DROP TABLE [dbo].[tb_workorder_achievement_order]
GO
CREATE TABLE [dbo].[tb_workorder_achievement_order] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[name] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[tb_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[stu_type] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type1] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[type2] varchar(100) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_workorder_achievement_order
-- ----------------------------

-- ----------------------------
-- Table structure for tb_workorder_consume
-- ----------------------------
DROP TABLE [dbo].[tb_workorder_consume]
GO
CREATE TABLE [dbo].[tb_workorder_consume] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_item_number] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[library_number] int NULL ,
[library_price] money NULL ,
[library_total_price] money NULL ,
[stock_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[number] int NULL ,
[price] money NULL ,
[total_price] money NULL ,
[memo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_workorder_consume', 
'COLUMN', N'repair_item_number')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'维修项目代码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_workorder_consume'
, @level2type = 'COLUMN', @level2name = N'repair_item_number'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'维修项目代码'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_workorder_consume'
, @level2type = 'COLUMN', @level2name = N'repair_item_number'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_workorder_consume', 
'COLUMN', N'stock_type')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'库内/库外'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_workorder_consume'
, @level2type = 'COLUMN', @level2name = N'stock_type'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'库内/库外'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_workorder_consume'
, @level2type = 'COLUMN', @level2name = N'stock_type'
GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_workorder_consume', 
'COLUMN', N'memo')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'实际与定额差异的分析说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_workorder_consume'
, @level2type = 'COLUMN', @level2name = N'memo'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'实际与定额差异的分析说明'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_workorder_consume'
, @level2type = 'COLUMN', @level2name = N'memo'
GO

-- ----------------------------
-- Records of tb_workorder_consume
-- ----------------------------

-- ----------------------------
-- Table structure for tb_workorder_consume2
-- ----------------------------
DROP TABLE [dbo].[tb_workorder_consume2]
GO
CREATE TABLE [dbo].[tb_workorder_consume2] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[maintenance_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[outstock_record_detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[goods_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[consume_number] money NULL 
)


GO

-- ----------------------------
-- Records of tb_workorder_consume2
-- ----------------------------

-- ----------------------------
-- Table structure for tb_workorder_detail
-- ----------------------------
DROP TABLE [dbo].[tb_workorder_detail]
GO
CREATE TABLE [dbo].[tb_workorder_detail] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[job_number] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[job_name] varchar(200) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_plan_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_id] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[receive_user_ids] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[equipment_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[plan_date] datetime NULL ,
[complete_date] datetime NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[processId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[processDefId] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[outsource] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[fault_description] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[scheme_resume] varchar(2000) COLLATE Chinese_PRC_CI_AS NULL ,
[achievements_hour] money NULL ,
[status] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[is_compete] char(1) COLLATE Chinese_PRC_CI_AS NULL ,
[compete_team_ids] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormity_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_date] datetime NULL ,
[equipment_id2] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[save_type] tinyint NULL ,
[compete_date] datetime NULL ,
[equ_plan_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[abnormity_date] datetime NULL ,
[out_date] datetime NULL ,
[in_date] datetime NULL ,
[out_confirm_user] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[out_confirm_dt] datetime NULL ,
[in_confirm_user] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[in_confirm_dt] datetime NULL 
)


GO
IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 
'SCHEMA', N'dbo', 
'TABLE', N'tb_workorder_detail', 
'COLUMN', N'out_confirm_user')) > 0) 
EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'确认人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_workorder_detail'
, @level2type = 'COLUMN', @level2name = N'out_confirm_user'
ELSE
EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'确认人'
, @level0type = 'SCHEMA', @level0name = N'dbo'
, @level1type = 'TABLE', @level1name = N'tb_workorder_detail'
, @level2type = 'COLUMN', @level2name = N'out_confirm_user'
GO

-- ----------------------------
-- Records of tb_workorder_detail
-- ----------------------------

-- ----------------------------
-- Table structure for tb_workorder_library_maintain
-- ----------------------------
DROP TABLE [dbo].[tb_workorder_library_maintain]
GO
CREATE TABLE [dbo].[tb_workorder_library_maintain] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[library_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[actual_work_time] money NULL ,
[differences] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_workorder_library_maintain
-- ----------------------------

-- ----------------------------
-- Table structure for tb_workorder_library_overhaul
-- ----------------------------
DROP TABLE [dbo].[tb_workorder_library_overhaul]
GO
CREATE TABLE [dbo].[tb_workorder_library_overhaul] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[library_content_id] nchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[project_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL ,
[condition] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[cycle] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_content] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[finish_situation] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[belong_library] varchar(10) COLLATE Chinese_PRC_CI_AS NULL ,
[inside_repair_time] money NULL ,
[outside_repair_cost] money NULL ,
[working_hours] money NULL ,
[actual_cost] money NULL ,
[pid] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_workorder_library_overhaul
-- ----------------------------

-- ----------------------------
-- Table structure for tb_workorder_repair_content
-- ----------------------------
DROP TABLE [dbo].[tb_workorder_repair_content]
GO
CREATE TABLE [dbo].[tb_workorder_repair_content] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[detail_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[repair_content_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[self_quota_hour] money NULL ,
[self_actual_hour] money NULL ,
[outsource_quota_fee] money NULL ,
[outsource_actual_fee] money NULL ,
[memo] varchar(1000) COLLATE Chinese_PRC_CI_AS NULL ,
[unit_id] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[insdt] datetime NULL ,
[insuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsuser] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
[upsdt] datetime NULL ,
[repair_name] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[content_type] varchar(50) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of tb_workorder_repair_content
-- ----------------------------

-- ----------------------------
-- Table structure for temp_tableSpaceInfo
-- ----------------------------
DROP TABLE [dbo].[temp_tableSpaceInfo]
GO
CREATE TABLE [dbo].[temp_tableSpaceInfo] (
[name] nvarchar(128) COLLATE Chinese_PRC_CI_AS NULL ,
[rows] char(11) COLLATE Chinese_PRC_CI_AS NULL ,
[reserved] varchar(18) COLLATE Chinese_PRC_CI_AS NULL ,
[data] varchar(18) COLLATE Chinese_PRC_CI_AS NULL ,
[index_size] varchar(18) COLLATE Chinese_PRC_CI_AS NULL ,
[unused] varchar(18) COLLATE Chinese_PRC_CI_AS NULL 
)


GO

-- ----------------------------
-- Records of temp_tableSpaceInfo
-- ----------------------------

-- ----------------------------
-- View structure for Purchase_sale_deposit
-- ----------------------------
DROP VIEW [dbo].[Purchase_sale_deposit]
GO
CREATE VIEW [dbo].[Purchase_sale_deposit] AS 
select *
from
(((select a.id as out_id  ,a.name as out_name,sum(b.out_number)as out_number,b.price as out_price,sum(b.total_money)as out_total_money
from  TB_SparePart_OutStockRecord c LEFT JOIN TB_SparePart_OutStockRecordDetail b on c.id = b.outstock_record_id  LEFT JOIN TB_SparePart_Goods a on a.id = b.goods_id
where 1=1 
GROUP by a.id ,a.name,b.price) x FULL outer JOIN
(select f.id as in_id  ,f.name as in_name,sum(e.instock_number)as in_stock_number,e.price as in_price,sum(e.total_money)as in_total_money
from  TB_SparePart_InStockRecord d LEFT JOIN TB_SparePart_InStockRecordDetail e on d.id = e.instock_record_id  LEFT JOIN TB_SparePart_Goods f on f.id = e.goods_id
where 1=1
GROUP by f.id ,f.name,e.price)  y 
on x.out_id = y.in_id  )FULL outer JOIN
(select a.id as cs_id  ,a.name as cs_name,sum(h.real_number)as cs_real_number,h.price as cs_price,sum(h.price*h.real_number)as cs_total_money
from  TB_SparePart_StockCheck g LEFT JOIN TB_SparePart_StockCheckDetail h on g.id = h.check_id  LEFT JOIN TB_SparePart_Goods a on a.id = h.goods_id
where 1=1
GROUP by a.id ,a.name,h.price) z
on z.cs_id = x.out_id )FULL outer JOIN
(select a.id as ls_id  ,a.name as ls_name ,sum(h.real_number)as ls_real_number,h.price as ls_price,sum(h.price*h.real_number)as ls_total_money
from  TB_SparePart_StockCheck k LEFT JOIN TB_SparePart_StockCheckDetail h on k.id = h.check_id  LEFT JOIN TB_SparePart_Goods a on a.id = h.goods_id
where  k.now_time in( SELECT  last_time from TB_SparePart_StockCheck  where MONTH(now_time) = '11' )
GROUP by a.id ,a.name,h.price) m
on m.ls_id = z.cs_id ;
GO

-- ----------------------------
-- View structure for TB_LGY
-- ----------------------------
DROP VIEW [dbo].[TB_LGY]
GO
CREATE VIEW [dbo].[TB_LGY] AS 
SELECT   dbo.TB_Sewage_Source.name AS Expr2, dbo.BIG_YE.*, dbo.TB_Sewage_Source.contract_number, 
                dbo.TB_Sewage_Source.contract_order, dbo.TB_Sewage_Source.username, 
                dbo.TB_Sewage_Source.process_section_id, dbo.TB_Sewage_Source.unit_id, 
                dbo.TB_Sewage_Source.displacement
FROM      dbo.BIG_YE INNER JOIN
                dbo.TB_Sewage_Source ON dbo.BIG_YE.dwmc = dbo.TB_Sewage_Source.name
GO

-- ----------------------------
-- View structure for TB_SJXJ
-- ----------------------------
DROP VIEW [dbo].[TB_SJXJ]
GO
CREATE VIEW [dbo].[TB_SJXJ] AS 
SELECT   dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.worker_id AS Expr3, dbo.tb_user.*, dbo.tb_user.id AS Expr1, 
                dbo.tb_user.name AS Expr2, dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.insdt AS Expr4, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.insuser AS Expr5, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.patrol_record_id, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.floor_id, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.patrol_route_id, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.previous_id, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.next_id, dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.type, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.posx, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.patrol_point_id, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.posy, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.container_height, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.container_width, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.finishdt, dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.status, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.latitude, dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.longitude, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.morder AS Expr6, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.finish_num_content, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.all_num_content, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.finish_num_measurePoint, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.all_num_measurePoint, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.previous_id_actual, 
                dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.next_id_actual
FROM      dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute INNER JOIN
                dbo.tb_user ON dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute.worker_id = dbo.tb_user.id
GO

-- ----------------------------
-- View structure for tb_ytsj
-- ----------------------------
DROP VIEW [dbo].[tb_ytsj]
GO
CREATE VIEW [dbo].[tb_ytsj] AS 
SELECT   dbo.TB_Sewage_Source.id AS Expr1, dbo.TB_Sewage_Source.contract_order AS Expr2, 
                dbo.TB_Sewage_Source.contract_number AS Expr3, dbo.TB_Sewage_Source.id, 
                dbo.TB_Sewage_Source.contract_number, dbo.TB_Sewage_Source.contract_order, dbo.TB_Sewage_Source.name, 
                dbo.TB_Sewage_Source.address, dbo.TB_Sewage_Source.contract_date, dbo.TB_Sewage_Source.username, 
                dbo.TB_Sewage_Source.phone, dbo.TB_Sewage_Source.process_section_id, dbo.TB_Sewage_Source.unit_id, 
                dbo.TB_Sewage_Source.vent_num, dbo.TB_Sewage_Source.permit_num, dbo.TB_Sewage_Source.plane_num, 
                dbo.TB_Sewage_Source.environment_num, dbo.TB_Sewage_Source.trade, dbo.TB_Sewage_Source.permit, 
                dbo.TB_Sewage_Source.displacement, dbo.TB_Sewage_Source.standard, dbo.TB_Sewage_Source.city, 
                dbo.TB_Sewage_Source.society_number, dbo.TB_Sewage_Source.longitude_latitude, dbo.TB_Sewage_Source.attribute, 
                dbo.TB_Sewage_Source.remark, dbo.TB_Sewage_Source.insdt, dbo.TB_Sewage_Source.insuser, 
                dbo.TB_Sewage_Source.account_number, dbo.TB_Sewage_Source.account_name, 
                dbo.TB_Sewage_Source.abbreviation, dbo.TB_Sewage_Source.area, dbo.TB_Sewage_Source.important_level, 
                dbo.TB_Sewage_Source.remarks, dbo.TB_JSYW_Point.tstamp, dbo.TB_JSYW_Point.pollutantvalue
FROM      dbo.TB_Sewage_Source INNER JOIN
                dbo.TB_JSYW_Point ON dbo.TB_Sewage_Source.name = dbo.TB_JSYW_Point.psname
GO

-- ----------------------------
-- View structure for uv_equipment
-- ----------------------------
DROP VIEW [dbo].[uv_equipment]
GO
CREATE VIEW [dbo].[uv_equipment] AS 
select e.id as id,e.equipmentCardID as equipmentCardId,e.equipmentName as equipmentName,ecb.name as bname,ecs.name as sname,pro.sname as processName,e.areaID as areaName,e.insdt as creatTime
from TB_EM_EquipmentCard e
left outer join tb_process_section pro on pro.id = e.processSectionId
left outer join TB_EM_EquipmentClass ecb on ecb.id = e.equipment_big_class_id
left outer join TB_EM_EquipmentClass ecs on ecs.id = e.equipmentClassID
where ecb.name = '电气设备'
GO

-- ----------------------------
-- View structure for uv_equipmentCard_tree
-- ----------------------------
DROP VIEW [dbo].[uv_equipmentCard_tree]
GO
CREATE VIEW [dbo].[uv_equipmentCard_tree] AS 
SELECT   id AS uid, id, sname AS name, pid, 'C' AS flag
FROM      dbo.tb_company
UNION
SELECT   b.[bizId] + b.[equipment_belong_id] + 'B' AS uid, b.[equipment_belong_id] AS id, a.belong_name AS name, 
                b.[bizId] AS pid, 'B' AS flag
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                tb_em_equipment_belong a ON a.id = b.equipment_belong_id
GROUP BY b.[bizId], b.[equipment_belong_id], a.belong_name
UNION
SELECT   b.[bizId] + b.[equipment_belong_id] + b.[processSectionId] + 'P' AS uid, b.[processSectionId] AS id, a.[name] AS name, 
                b.[bizId] + b.[equipment_belong_id] + 'B' AS pid, 'P' AS flag
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                [dbo].[tb_process_section] a ON a.id = b.[processSectionId]
GROUP BY b.[bizId], b.[equipment_belong_id], b.[processSectionId], a.[name]
UNION
SELECT   b.[bizId] + b.[equipment_belong_id] + b.[processSectionId] + b.[equipment_big_class_id] + 'E' AS uid, 
                b.[equipment_big_class_id] AS id, a.[name] AS name, 
                b.[bizId] + b.[equipment_belong_id] + b.[processSectionId] + 'P' AS pid, 'E' AS flag
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                [dbo].[TB_EM_EquipmentClass] a ON a.id = b.[equipment_big_class_id]
GROUP BY b.[bizId], b.[equipment_belong_id], b.[processSectionId], b.[equipment_big_class_id], a.[name]
UNION
SELECT   b.[bizId] + b.[equipment_belong_id] + b.[processSectionId] + b.[equipment_big_class_id] + b.[equipmentClassID] + 'S' AS uid,
                 b.[equipmentClassID] AS id, a.[name] AS name, 
                b.[bizId] + b.[equipment_belong_id] + b.[processSectionId] + b.[equipment_big_class_id] + 'E' AS pid, 'S' AS flag
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                [dbo].[TB_EM_EquipmentClass] a ON a.id = b.[equipmentClassID]
GROUP BY b.[bizId], b.[equipment_belong_id], b.[processSectionId], b.[equipment_big_class_id], b.[equipmentClassID], a.[name]
GO

-- ----------------------------
-- View structure for uv_equtree
-- ----------------------------
DROP VIEW [dbo].[uv_equtree]
GO
CREATE VIEW [dbo].[uv_equtree] AS 
SELECT   id AS uid, id, sname AS name, pid, 'C' AS flag, '' AS code
FROM      dbo.tb_company
UNION
SELECT   b.[bizId] + b.[processSectionId] + 'P' AS uid, b.[processSectionId] AS id, a.[name] AS name, b.[bizId] AS pid, 'P' AS flag, 
                a.[code] AS code
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                [dbo].[tb_process_section] a ON a.id = b.[processSectionId]
GROUP BY b.[bizId], b.[processSectionId], a.[name], a.[code]
UNION
SELECT   b.[bizId] + b.[processSectionId] + b.[equipment_big_class_id] + 'E' AS uid, b.[equipment_big_class_id] AS id, 
                a.[name] AS name, b.[bizId] + b.[processSectionId] + 'P' AS pid, 'E' AS flag, a.[equipment_class_code] AS code
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                [dbo].[TB_EM_EquipmentClass] a ON a.id = b.[equipment_big_class_id]
GROUP BY b.[bizId], b.[processSectionId], b.[equipment_big_class_id], a.[name], a.[equipment_class_code]
UNION
SELECT   b.[bizId] + b.[processSectionId] + b.[equipment_big_class_id] + b.[equipmentClassID] + 'S' AS uid, 
                b.[equipmentClassID] AS id, a.[name] AS name, 
                b.[bizId] + b.[processSectionId] + b.[equipment_big_class_id] + 'E' AS pid, 'S' AS flag, 
                a.[equipment_class_code] AS code
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                [dbo].[TB_EM_EquipmentClass] a ON a.id = b.[equipmentClassID]
GROUP BY b.[bizId], b.[processSectionId], b.[equipment_big_class_id], b.[equipmentClassID], a.[name], a.[equipment_class_code]
GO

-- ----------------------------
-- View structure for uv_pumptree
-- ----------------------------
DROP VIEW [dbo].[uv_pumptree]
GO
CREATE VIEW [dbo].[uv_pumptree] AS 
SELECT   id AS uid, id, sname AS name, pid, 'C' AS flag, '' AS code
FROM      dbo.tb_company
UNION

SELECT  biz_id + id +'T' AS uid, id, name AS name, biz_id AS pid, 'T' AS flag, '' AS code
FROM       dbo.tb_process_section_type 
GROUP BY biz_id, id, name

UNION
SELECT   b.[bizId] + b.[processSectionId] + 'P' AS uid, b.[processSectionId] AS id, a.[name] AS name, b.[bizId]+a.process_section_type_id+'T' AS pid, 'P' AS flag, 
                a.[code] AS code
FROM      [dbo].[TB_EM_EquipmentCard] b 
LEFT JOIN [dbo].[tb_process_section] a ON a.id = b.[processSectionId]

GROUP BY b.[bizId], b.[processSectionId], a.[name], a.[code],a.[process_section_type_id]
UNION
SELECT   b.[bizId] +b.[processSectionId] + b.[equipment_big_class_id] + 'E' AS uid, b.[equipment_big_class_id] AS id, 
                a.[name] AS name, b.[bizId]+ b.[processSectionId] + 'P' AS pid, 'E' AS flag, a.[equipment_class_code] AS code
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                [dbo].[TB_EM_EquipmentClass] a ON a.id = b.[equipment_big_class_id]
				LEFT JOIN [dbo].[tb_process_section] c ON c.id = b.[processSectionId]
				
				
GROUP BY b.[bizId], b.[processSectionId], b.[equipment_big_class_id], a.[name], a.[equipment_class_code], c.process_section_type_id
UNION
SELECT   b.[bizId] + b.[processSectionId] + b.[equipment_big_class_id] + b.[equipmentClassID] + 'S' AS uid, 
                b.[equipmentClassID] AS id, a.[name] AS name, 
                b.[bizId] + b.[processSectionId] + b.[equipment_big_class_id] + 'E' AS pid, 'S' AS flag, 
                a.[equipment_class_code] AS code
FROM      [dbo].[TB_EM_EquipmentCard] b LEFT JOIN
                [dbo].[TB_EM_EquipmentClass] a ON a.id = b.[equipmentClassID]
GROUP BY b.[bizId], b.[processSectionId], b.[equipment_big_class_id], b.[equipmentClassID], a.[name], a.[equipment_class_code]
GO

-- ----------------------------
-- View structure for uv_unit
-- ----------------------------
DROP VIEW [dbo].[uv_unit]
GO
CREATE VIEW [dbo].[uv_unit] AS 
SELECT     tb_company.id AS id, tb_company.name AS name, (CASE WHEN tb_company.sname IS NULL THEN tb_company.name ELSE tb_company.sname END) AS sname, 
                      tb_company.pid AS pid, tb_company.taskid AS taskid, type, tb_company.active AS active, tb_company.morder AS morder, 'F' AS syncflag
FROM         tb_company
UNION
SELECT     id, full_name AS name, (CASE WHEN short_name IS NULL THEN full_name ELSE short_name END) AS sname, pid, '' AS taskid, 'M' AS type, active AS active, 
                      morder AS morder, isnull(syncflag,'I') 
FROM         tb_maintenance_maintainer
UNION
SELECT     tb_dept.id AS id, tb_dept.name AS name, (CASE WHEN tb_dept.sname IS NULL THEN tb_dept.name ELSE tb_dept.sname END) AS sname, tb_dept.pid AS pid, 
                      tb_dept.taskid AS taskid, 'D' AS type, tb_dept.active AS active, tb_dept.morder AS morder, 'F' AS syncflag
FROM         tb_dept
UNION
SELECT     TB_User.id, TB_User.name AS name, TB_User.caption AS sname, pid, mobile AS taskid, 'U' AS type, TB_User.active AS active, morder, isnull(TB_User.syncflag, 'I')
FROM         TB_User
GO

-- ----------------------------
-- View structure for uv_user_power
-- ----------------------------
DROP VIEW [dbo].[uv_user_power]
GO
CREATE VIEW [dbo].[uv_user_power] AS 
SELECT DISTINCT 
                      TOP (100) PERCENT dbo.tb_user_role.EmpID, dbo.tb_menuitem.id, dbo.tb_menuitem.name, dbo.tb_menuitem.pid, dbo.tb_menuitem.caption, 
                      dbo.tb_menuitem.location, dbo.tb_menuitem.target, dbo.tb_menuitem.type, dbo.tb_menuitem.active, dbo.tb_menuitem.lvl, dbo.tb_menuitem.morder
FROM         dbo.tb_user_role INNER JOIN
                      dbo.tb_role_menu ON dbo.tb_user_role.RoleID = dbo.tb_role_menu.roleID INNER JOIN
                      dbo.tb_menuitem ON dbo.tb_role_menu.menuID = dbo.tb_menuitem.id
GO

-- ----------------------------
-- View structure for view_timeefficiency_patrolpoint
-- ----------------------------
DROP VIEW [dbo].[view_timeefficiency_patrolpoint]
GO
CREATE VIEW [dbo].[view_timeefficiency_patrolpoint] AS 
SELECT   id, insuser, insdt, remark, name, '0533ZB' AS biz_id, process_section_id, longitude, latitude, active, morder, 
                modbus_fig_id, read_or_write, register, type, patrol_content
FROM      dbo.TB_TimeEfficency_PatrolPoint
GO

-- ----------------------------
-- View structure for view_timeefficiency_record
-- ----------------------------
DROP VIEW [dbo].[view_timeefficiency_record]
GO
CREATE VIEW [dbo].[view_timeefficiency_record] AS 
SELECT   id, insdt, insuser, biz_id, NULL AS patrol_area_id, name, [content], start_time, end_time, act_finish_time, patrol_plan_id, 
                worker_id, work_result, status, type, NULL AS patrol_model_id, NULL AS color
FROM      dbo.TB_TimeEfficiency_PatrolRecord AS w
GO

-- ----------------------------
-- View structure for view_timeefficiency_recordpoint
-- ----------------------------
DROP VIEW [dbo].[view_timeefficiency_recordpoint]
GO
CREATE VIEW [dbo].[view_timeefficiency_recordpoint] AS 
SELECT   id, patrol_record_id, patrol_point_id, insuser, insdt, worker_id, finishdt, status, latitude, longitude, 
                finishdt AS morder
FROM      dbo.TB_TimeEfficiency_PatrolRecord_PatrolRoute AS w
GO

-- ----------------------------
-- View structure for view_timeefficiency_workerpositi
-- ----------------------------
DROP VIEW [dbo].[view_timeefficiency_workerpositi]
GO
CREATE VIEW [dbo].[view_timeefficiency_workerpositi] AS 
SELECT   id, dttime, worker_id AS worker, latitude, longitude, insuser, insdt, biz_id AS bizid, patrol_record_id, type
FROM      dbo.TB_TimeEfficiency_Worker_Position
GO

-- ----------------------------
-- Procedure structure for execWebservice
-- ----------------------------
DROP PROCEDURE [dbo].[execWebservice]
GO

CREATE PROCEDURE [dbo].[execWebservice](  
    @URL varchar(500) 
)  
AS  
BEGIN  
    declare @ServiceUrl as varchar(1000) 
    declare @status int=0  
	set @ServiceUrl = @URL                      
	                  
	Declare @Object as Int
	Declare @ResponseText as Varchar(8000)
	                  
	Exec sp_OACreate 'Msxml2.ServerXMLHTTP.3.0', @Object OUT;
	Exec sp_OAMethod @Object, 'open', NULL, 'get',@ServiceUrl,'false'
	Exec sp_OAMethod @Object, 'send'
	Exec sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT
	--print 'ResponseText'+@ResponseText
	if(CHARINDEX('pass',@responseText)>0)  
    begin  
        set @status=1
    end      
    Exec sp_OADestroy @Object
    --print 'status:'
    --print  @status
	--Select @status  as status
	return @status
END;

GO

-- ----------------------------
-- Procedure structure for Get_Biz_EquipmentStatistics
-- ----------------------------
DROP PROCEDURE [dbo].[Get_Biz_EquipmentStatistics]
GO

CREATE PROCEDURE [dbo].[Get_Biz_EquipmentStatistics]
AS
BEGIN
	declare @bizid varchar(50) -- 水厂Id
	declare @equipLevelId varchar(50) --设备等级id
	declare @equipTotalNum int --设备总台数
	declare @equipIntactNum int --设备完好台数
	declare @equipFaultNum int --设备故障次数
	declare @equipIntactRate float --设备完好率
	declare @equipTotalHour int --设备总台时
	declare @equipFaultMin int --设备故障分钟
	declare @stdt datetime --范围开始时间
	set @stdt = (select dateadd (month,-1,getdate()))
	declare @eddt datetime --范围结束时间
	set @eddt = getdate()
	declare @days int --范围内天数
	set @days = (select datediff(day,(select dateadd (month,-1,getdate())),getdate()))
	--循环水厂
	DECLARE bizList CURSOR FOR SELECT id FROM [tb_company] where type = 'B'
	open bizList
		FETCH next FROM bizList INTO @bizid
	WHILE (@@FETCH_STATUS = 0)
	BEGIN
		--循环设备等级，各保存一条记录
		DECLARE equipLevelList CURSOR FOR SELECT id FROM [TB_EM_EquipmentLevel] where active = '1'
		open equipLevelList
			FETCH next FROM equipLevelList INTO @equipLevelId
		WHILE (@@FETCH_STATUS = 0)
		BEGIN
			--设备总台数
			set @equipTotalNum = (select count(id) from [TB_EM_EquipmentCard] where equipmentLevelId = @equipLevelId and bizId = @bizid)

			--设备完好台数
			set @equipIntactNum = (select count(id) from [TB_EM_EquipmentCard] where equipmentLevelId = @equipLevelId and bizId = @bizid and equipmentStatus = '1')

			--故障次数
			set @equipFaultNum = (select count(id) from [tb_maintenance_detail] where equipment_id in 
								 (select id from [TB_EM_EquipmentCard] where equipmentLevelId = @equipLevelId and bizId = @bizid)
								  and [status] = '1' and insdt between @stdt and @eddt) --维修单

			--完好率
			set @equipTotalHour = @equipTotalNum * 24 * @days
			
			set @equipFaultMin = (select  isnull(sum(DATEDIFF( Minute, D.[insdt], D.[actual_finish_date])),0) AS diff  FROM [tb_maintenance_detail] D
								  left outer join [TB_EM_EquipmentCard] C on C.id = D.equipment_id
								  where D.[actual_finish_date] is not null and D.[status] = '1' and D.insdt between @stdt and @eddt and C.equipmentLevelId = @equipLevelId and C.bizId = @bizid)
			
			--非0判断
			if (@equipTotalHour > 0)
			begin
				set @equipIntactRate = 1-(@equipFaultMin/60/@equipTotalHour);
			end
			else
			begin
				set @equipIntactRate = 0;
			end

			insert into [TB_EM_Equipment_Statistics] ([insdt],[equipment_level_id],[company_id],[total_equip_num],[intact_equip_num],[fault_equip_num],[intact_rate]) values
			(@eddt,@equipLevelId,@bizid,@equipTotalNum,@equipIntactNum,@equipFaultNum,@equipIntactRate)
			FETCH next FROM equipLevelList INTO @equipLevelId
		END
		--关闭游标 
		CLOSE equipLevelList 
		--释放游标 
		DEALLOCATE equipLevelList 

		--生成一条全体记录
		--设备总台数
			set @equipTotalNum = (select count(id) from [TB_EM_EquipmentCard] where bizId = @bizid)

			--设备完好台数
			set @equipIntactNum = (select count(id) from [TB_EM_EquipmentCard] where bizId = @bizid and equipmentStatus = '1')

			--故障次数
			set @equipFaultNum = (select count(id) from [tb_maintenance_detail] where equipment_id in 
								 (select id from [TB_EM_EquipmentCard] where bizId = @bizid)
								  and [status] = '1' and insdt between @stdt and @eddt) --维修单

			--完好率
			set @equipTotalHour = @equipTotalNum * 24 * @days
			set @equipFaultMin = (select  isnull(sum(DATEDIFF( Minute, D.[insdt], D.[actual_finish_date])) ,0) AS diff FROM [tb_maintenance_detail] D
								  left outer join [TB_EM_EquipmentCard] C on C.id = D.equipment_id
								  where D.[actual_finish_date] is not null and D.[status] = '1' and D.insdt between @stdt and @eddt and C.bizId = @bizid)
			--set @equipIntactRate = (@equipTotalHour - @equipFaultMin/60) / @equipTotalHour
			print @bizid
			print @equipTotalHour
			print @equipFaultMin
			--非0判断
			if (@equipTotalHour > 0)
			begin
				set @equipIntactRate = 1-(@equipFaultMin/60/@equipTotalHour);
				print '>0'
				print  @equipIntactRate
				print  1-(@equipFaultMin/60/@equipTotalHour)
			end
			else
			begin
				set @equipIntactRate = 0;
			end
			insert into [TB_EM_Equipment_Statistics] ([insdt],[equipment_level_id],[company_id],[total_equip_num],[intact_equip_num],[fault_equip_num],[intact_rate]) values
			(@eddt,'all',@bizid,@equipTotalNum,@equipIntactNum,@equipFaultNum,@equipIntactRate)

		FETCH next FROM bizList INTO @bizid
	END
END

GO

-- ----------------------------
-- Procedure structure for Get_Equipment_EconomicLife
-- ----------------------------
DROP PROCEDURE [dbo].[Get_Equipment_EconomicLife]
GO

CREATE PROCEDURE [dbo].[Get_Equipment_EconomicLife]
AS
BEGIN
	declare @equipmentPropId varchar(50) -- 设备附表Id
    declare @equipmentId varchar(50) -- 设备主表Id
	declare @repairMoney money -- 维修费sa
    declare @maintainMoney money -- 维护费
	declare @purchaseMoney money --采购费
	declare @residualValueRate float --残值率
	declare @maintainIncrement float --维护增额
	declare @economicLife float --经济寿命
	--循环设备
	DECLARE equipmentPropList CURSOR FOR SELECT id,equipment_id,purchase_money,repair_money,maintain_money,purchase_money,residual_value_rate,maintain_increment   FROM [TB_EM_EquipmentCard_Prop]
	open equipmentPropList
		FETCH next FROM equipmentPropList INTO @equipmentPropId,@equipmentId,@purchaseMoney,@repairMoney,@maintainMoney,@purchaseMoney,@residualValueRate,@maintainIncrement
	WHILE (@@FETCH_STATUS = 0)
	BEGIN
		--若设备没有残值率 获取默认残值率
		if(@residualValueRate is null)
		 begin
	      set @residualValueRate = (select param1 FROM [TB_EM_Equipment_Model] where status = '1')
		end
		print @residualValueRate
		--经济寿命
		if(@maintainIncrement is null or @maintainIncrement = 0)
		 begin
			set @maintainIncrement = 1
		end
		set @economicLife = sqrt((2*@purchaseMoney*(1-@residualValueRate) + @repairMoney + @maintainMoney)/@maintainIncrement)
		print @economicLife
		update [TB_EM_EquipmentCard_Prop] set [economic_life] = @economicLife where id = @equipmentPropId
		FETCH next FROM equipmentPropList INTO @equipmentPropId,@equipmentId,@purchaseMoney,@repairMoney,@maintainMoney,@purchaseMoney,@residualValueRate,@maintainIncrement
	END
END

GO

-- ----------------------------
-- Procedure structure for Get_Equipment_ResidualValue
-- ----------------------------
DROP PROCEDURE [dbo].[Get_Equipment_ResidualValue]
GO

CREATE PROCEDURE [dbo].[Get_Equipment_ResidualValue]
AS
BEGIN
	declare @equipmentPropId varchar(50) -- 设备附表Id
    declare @equipmentId varchar(50) -- 设备主表Id
	declare @purchaseMoney money -- 资产原值V0
    declare @physicalLife float -- 预计使用年限T
	declare @residualValueRate float --残值率
	declare @useTime float --当前使用年限

	declare @increaseValue money --增加值
	
	declare @residualValue money -- 固定资产净残值
	declare @monthDepreciationRate float -- 月折旧率
	declare @yearDepreciationRate float -- 年折旧率
	declare @monthDepreciation money -- 月折旧额
	declare @yearDepreciation money -- 年折旧额
	declare @totalDepreciation money -- 累计折旧
	declare @currentValue money -- 当前价值

	
	--循环设备
	DECLARE equipmentPropList CURSOR FOR SELECT id,equipment_id,purchase_money,physical_life,residual_value_rate,use_time,increase_value,residual_value,month_depreciation_rate,year_depreciation_rate,month_depreciation,year_depreciation,total_depreciation,current_value  FROM [TB_EM_EquipmentCard_Prop]
	open equipmentPropList
		FETCH next FROM equipmentPropList INTO @equipmentPropId,@equipmentId,@purchaseMoney,@physicalLife,@residualValueRate,@useTime,@increaseValue,@residualValue,@monthDepreciationRate,@yearDepreciationRate,@monthDepreciation,@yearDepreciation,@totalDepreciation,@currentValue
	WHILE (@@FETCH_STATUS = 0)
	BEGIN
		--若设备没有残值率 获取默认残值率
		if(@residualValueRate is null)
		 begin
	      set @residualValueRate = (select gama FROM [TB_EM_Equipment_Model] where status = '1')
		end
		print @residualValueRate
		--若设备没有物理寿命 获取默认物理寿命
		if(@physicalLife is null)
		 begin
	      set @physicalLife = (select param2 FROM [TB_EM_Equipment_Model] where status = '1')
		end
		print @physicalLife
		--设备价值增加
		
		declare @sumSQL nvarchar(4000)
		set @sumSQL=N''
		set @sumSQL=@sumSQL+N'select @increaseValue=sum(increase_value) from [TB_EM_Equipment_IncreaseValue] where equipment_id = ''' +@equipmentId +N' '' '
		
		print @sumSQL
		EXEC sp_executesql @sumSQL,N'@increaseValue money output',@increaseValue output
		if(@increaseValue  is  null)
		begin
		set @increaseValue=0
		end
		
		--设备折旧模型
		set @residualValue = @purchaseMoney*@residualValueRate
		set @monthDepreciationRate = (1-@residualValueRate)/(12*@physicalLife)
		set @yearDepreciationRate = (1-@residualValueRate)/@physicalLife
		set @monthDepreciation = @purchaseMoney*@monthDepreciationRate
		set @yearDepreciation = @purchaseMoney*@yearDepreciationRate
		set @totalDepreciation = @purchaseMoney*@yearDepreciationRate*@useTime
		if(@totalDepreciation  is  null)
		begin
		set @totalDepreciation=0
		end
		print @totalDepreciation
		set @currentValue = @purchaseMoney-@totalDepreciation+@increaseValue
		print @increaseValue
		if(@currentValue  is  null)
		begin
		set @currentValue=0
		end
		print @currentValue
		update [TB_EM_EquipmentCard_Prop] set [residual_value_rate]=@residualValueRate,[physical_life]=@physicalLife, [residual_value] = @residualValue,[month_depreciation_rate] = @monthDepreciationRate,[year_depreciation_rate]=@yearDepreciationRate,[month_depreciation]=@monthDepreciation,[year_depreciation]=@yearDepreciation,[total_depreciation]=@totalDepreciation,[current_value]=@currentValue,[increase_value]=@increaseValue where id = @equipmentPropId
		FETCH next FROM equipmentPropList INTO @equipmentPropId,@equipmentId,@purchaseMoney,@physicalLife,@residualValueRate,@useTime,@increaseValue,@residualValue,@monthDepreciationRate,@yearDepreciationRate,@monthDepreciation,@yearDepreciation,@totalDepreciation,@currentValue
	END
END

GO

-- ----------------------------
-- Procedure structure for Get_Equipment_Score
-- ----------------------------
DROP PROCEDURE [dbo].[Get_Equipment_Score]
GO

CREATE PROCEDURE [dbo].[Get_Equipment_Score] --@startTime varchar(20)
 as
 begin
   --系统当前时间
   declare @nowDate datetime
   set @nowDate =  GETDATE()
 --1、需要传入的参数，设备类型、型号、厂商、规格，后面需要遍历表中所有类型得到
   declare @type varchar(50) -- 设备类型
    -- declare @model varchar(50) -- 设备型号
	   declare @standard varchar(50) -- 规格
	     declare @brand varchar(50) -- 品牌
--2、写select语句，根据上面几个变量筛选出所有设备
--3、对每台设备循环执行计算
--4、根据每台设备计算的指标，计算一类设备的指标
--5、一类设备的指标insert到tb_em_equipmentEvaluate
    declare @equipmentPropId varchar(50) -- 设备附表Id
    declare @equipmentId varchar(50) -- 设备主表Id
	declare @energMoney varchar(50) -- 能耗费
    declare @repairMoney money -- 维修费sa
    declare @maintainMoney money -- 维护费
	declare @purchaseMoney money --采购费
	declare @residuaValueRate float --残值率
	declare @useTime float --已用年限
	declare @faulStopTime decimal(18,2) --故障停机时长
	declare @installDate datetime --安装时长
	declare @runTime varchar(50) --运行总时长
	declare @repairNumber float --维修次数累计
	declare @faultNnumber float --故障次数累计
    declare @energyMoney money --能耗费
	declare @laborMoney money --每月人工费
	declare @totalLaborMoney money --总的人工费
	declare @residualValueRate float --残值率
	declare @residualValue float --残值
	declare @Cn money --单个设备成本
	declare @Trunn float --单个设备的实际运行时长 
	declare @En float --单个设备的单位时长成本
	declare @Qn float --单个设备的设备完好率
	declare @useHour float -- 设备安装的小时数
	--更新设备属性附属表的数据
	DECLARE equipmentPropList CURSOR FOR SELECT id,equipment_id,install_date,purchase_money,energy_money,labor_money,residual_value_rate,run_time   FROM [TB_EM_EquipmentCard_Prop]
	open equipmentPropList
	FETCH next FROM equipmentPropList INTO @equipmentPropId,@equipmentId,@installDate,@purchaseMoney,@energyMoney,@laborMoney,@residualValueRate,@Trunn
	WHILE (@@FETCH_STATUS = 0)
	BEGIN
	   --计算目前为止，设备的维护保养费用，维修费用，维修次数，故障次数
	   set @maintainMoney = (select SUM (actual_money) from [tb_maintenance_detail] where type = '1' and equipment_id = @equipmentId and status = '1')
	   set @repairMoney = (select SUM ( actual_money) from [tb_maintenance_detail] where type = '2' and equipment_id = @equipmentId and status = '1')
	   --print @maintainMoney
	   set @repairNumber = (select count(*) from [tb_maintenance_detail] where type = '2' and equipment_id = @equipmentId and status = '1')
	   set @faultNnumber = (select count(*) from [tb_maintenance_detail] where type = '2' and equipment_id = @equipmentId )
	   --print @repairNumber
	   --print @faultNnumber
	   --更新使用年限
	   set @useTime = cast(((SELECT DATEDIFF(HOUR,@installDate,@nowDate))/8760.00) as decimal(18,2))
	   set @useHour = (SELECT DATEDIFF(HOUR,@installDate,@nowDate))
	   set @faulStopTime = (select isnull(sum(hour),0) from (select DATEDIFF(HOUR,insdt,actual_finish_date) as hour from [tb_maintenance_detail] where type = '1' and equipment_id = @equipmentId and status = '1') A)
	   --select isnull(sum(hour),0) from (select DATEDIFF(HOUR,insdt,actual_finish_date) as hour from [tb_maintenance_detail] where type = '1' and equipment_id = @equipmentId and status = '1') A

	   --计算单个设备的单位成本
	   set @residualValue = @purchaseMoney * @residualValueRate
	   set @totalLaborMoney = @laborMoney * @useTime *12
	   if(@energyMoney is null)
	   begin
	      set @energyMoney =0.00
	   end
	   if(@maintainMoney is null)
	   begin
	      set @maintainMoney =0.00
	   end
	   if(@repairMoney is null)
	   begin
	      set @repairMoney =0.00
	   end
	   --print @residualValue
	   --设备实际运行时长 = 安装时长 - 故障停机时长
	   set @Trunn = @useHour - @faulStopTime
	   set @Cn = @purchaseMoney + @energyMoney + @maintainMoney + @repairMoney + @totalLaborMoney + @residualValue
	   --非输出设备
	   set @En = @Cn/@Trunn
	   --输出设备
	   --set @En = @Cn/@On
	   set @Qn = (@Trunn/(@useHour)) * 100
	   print @Qn 
	   update [TB_EM_EquipmentCard_Prop] set maintain_money = @maintainMoney, repair_money = @repairMoney,use_time = @useTime,run_time = @Trunn,
	           En = @En, repair_number = @repairNumber, fault_number = @faultNnumber ,intact_rate = @Qn where id = @equipmentPropId

	   FETCH next FROM equipmentPropList INTO @equipmentPropId,@equipmentId,@installDate,@purchaseMoney,@energyMoney,@laborMoney,@residualValueRate,@Trunn
	END

 end

GO

-- ----------------------------
-- Procedure structure for Get_EquipmentEvaluate_Score
-- ----------------------------
DROP PROCEDURE [dbo].[Get_EquipmentEvaluate_Score]
GO

CREATE PROCEDURE [dbo].[Get_EquipmentEvaluate_Score] --@startTime varchar(20)
 as
 begin
   --系统当前时间
   declare @nowDate datetime
   set @nowDate =  GETDATE()
 --1、需要传入的参数，设备类型、型号、厂商、规格，后面需要遍历表中所有类型得到
   declare @type varchar(50) -- 设备类型
   declare @standard varchar(50) -- 规格
   declare @brand varchar(50) -- 品牌
   declare @useTimeMin int -- 使用年限档位最小值
   declare @useTimeMax int -- 使用年限档位最大值
   declare @usetimeLevel varchar(50)
--2、写select语句，根据上面几个变量筛选出所有设备
--3、对每台设备循环执行计算
--4、根据每台设备计算的指标，计算一类设备的指标
--5、一类设备的指标insert到tb_em_equipmentEvaluate	
	--指标循环
	DECLARE equipmentEvaluateList CURSOR FOR 
	SELECT E.equipmentClassID,E.specification,E.equipmentModel,U.value_min,U.value_max,U.id
	FROM [CPELM].[dbo].[TB_EM_EquipmentCard] E
	left outer join [CPELM].[dbo].[TB_EM_EquipmentCard_Prop] P on P.equipment_id = E.id
	CROSS JOIN [CPELM].[dbo].[TB_EM_Equipment_UseAge] U --笛卡尔积
    where E.equipment_big_class_id in ('1','12') -- 常排定制默认风机和泵
	group by E.equipmentClassID,E.specification,E.equipmentModel,U.value_min,U.value_max,U.id
	order by U.value_min
	
	open equipmentEvaluateList
	FETCH next FROM equipmentEvaluateList INTO @type,@standard,@brand,@useTimeMin,@useTimeMax,@usetimeLevel
	WHILE (@@FETCH_STATUS = 0)
	BEGIN 
		print '开始'
		declare @equNum int --该类设备数
		if(@useTimeMax is null)
		begin
			set @useTimeMax = 100
		end
		set @equNum = (select count(E.id) from [CPELM].[dbo].[TB_EM_EquipmentCard] E 
		left outer join  [CPELM].[dbo].[TB_EM_EquipmentCard_Prop] P on P.equipment_id = E.id 
		where E.equipmentClassID = @type and E.specification = @standard and E.equipmentModel = @brand and P.[use_time] between @useTimeMin and @useTimeMax)
	    		   print '计数器'
		   print @equNum
		if (@equNum > 0)
		begin
			--如果有设备
			--质量指标评分
		   declare @Qn float --此类设备质量平均完好率标平均值（质量指标） 需要update
		   set @Qn = (select avg(P.intact_rate) from [CPELM].[dbo].[TB_EM_EquipmentCard] E
		   left outer join  [CPELM].[dbo].[TB_EM_EquipmentCard_Prop] P on P.equipment_id = E.id
		   where E.equipmentClassID = @type and E.specification = @standard and E.equipmentModel = @brand and P.[use_time] between @useTimeMin and @useTimeMax)	  

		   --分类设备完好率
		   declare @goodEquNum int
		   set @goodEquNum = (select count(E.id) from [CPELM].[dbo].[TB_EM_EquipmentCard] E
		   left outer join  [CPELM].[dbo].[TB_EM_EquipmentCard_Prop] P on P.equipment_id = E.id
		   where E.equipmentClassID = @type and E.specification = @standard and E.equipmentModel = @brand and P.[use_time] between @useTimeMin and @useTimeMax
		   and [equipmentStatus] <> '2')
		   
		   declare @totalEquNum int
		   set @goodEquNum = (select count(E.id) from [CPELM].[dbo].[TB_EM_EquipmentCard] E
		   left outer join  [CPELM].[dbo].[TB_EM_EquipmentCard_Prop] P on P.equipment_id = E.id
		   where E.equipmentClassID = @type and E.specification = @standard and E.equipmentModel = @brand and P.[use_time] between @useTimeMin and @useTimeMax)
		   
		   declare @evaluateQn float --需要update
		   set @evaluateQn = (@goodEquNum/@goodEquNum * 100)
		   
		   --效率指标评分
		   declare @Pn float --此类设备平均效率 需要update
		   set @Pn = (select avg(P.instant_flow) from [CPELM].[dbo].[TB_EM_EquipmentCard] E
		   left outer join  [CPELM].[dbo].[TB_EM_EquipmentCard_Prop] P on P.equipment_id = E.id
		   where E.equipmentClassID = @type and E.specification = @standard and E.equipmentModel = @brand and P.[use_time] between @useTimeMin and @useTimeMax)

		   --经济指标评分
		   declare @En float --单位成本 需要update
		   --类的单位成本，所有设备单位成本的平均值
		   set @En = (select avg(P.En) from [CPELM].[dbo].[TB_EM_EquipmentCard] E
		   left outer join  [CPELM].[dbo].[TB_EM_EquipmentCard_Prop] P on P.equipment_id = E.id
		   where E.equipmentClassID = @type and E.specification = @standard and E.equipmentModel = @brand and P.[use_time] between @useTimeMin and @useTimeMax)

		   --插入
		   declare @evaluteExistDeterminer int --该类是否存在计数器
		   set @evaluteExistDeterminer = (SELECT count(*) FROM [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
			where class_id = @type and specification = @standard and model = @brand and use_time = @usetimeLevel)
		   if (@evaluteExistDeterminer = 0)
			begin
				--如果为空
				print 'evaluate insert null'
				insert into [CPELM].[dbo].[TB_EM_EquipmentEvaluate] ([insdt]
				  ,[class_id]
				  ,[specification]
				  ,[model]
				  ,[Qn]
				  ,[En]
				  ,[power]
				  ,[intact_rate]
				  ,[use_time])values(@nowDate,@type,@standard,@brand,@Qn,@En,@Pn,@evaluateQn,@usetimeLevel)
				  --判断插入是否成功
				   set @evaluteExistDeterminer = (SELECT count(*) FROM [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
					where class_id = @type and specification = @standard and model = @brand and use_time = @usetimeLevel)
					if (@evaluteExistDeterminer = 1)
					begin
						--如果不为空
						declare @id int
						set @id = (select id from [CPELM].[dbo].[TB_EM_EquipmentEvaluate] where class_id = @type and specification = @standard and model = @brand and use_time = @usetimeLevel)
						declare @econRankKPI varchar(50)
						set @econRankKPI = 'CP_ECO_SCORE_' + convert(varchar,@id)
						declare @totalRankKPI varchar(50)
						set @totalRankKPI = 'CP_GEN_SCORE_' + convert(varchar,@id)
						declare @effiRankKPI varchar(50)
						set @effiRankKPI = 'CP_EFF_SCORE_' + convert(varchar,@id)
						declare @qualRankKPI varchar(50)
						set @qualRankKPI = 'CP_QUA_SCORE_' + convert(varchar,@id)
						update [CPELM].[dbo].[TB_EM_EquipmentEvaluate] set ecomomic_kpi = @econRankKPI, efficiency_kpi= @effiRankKPI,quality_kpi = @qualRankKPI,total_kpi = @totalRankKPI
						where  class_id = @type and specification = @standard and use_time =@usetimeLevel and model = @brand
						--新增测量点
						print '分'
						print @econRankKPI
						insert into [EIP_PRD_CP].[dbo].[TB_MeasurePoint]([ID],[MPointID],[MPointCode],[ParmName],[SignalType]
						  ,[valuetype],[active],[type])values(@econRankKPI,@econRankKPI,@econRankKPI,'经济评分排名','AI','sql','启用','kpi')
						insert into [EIP_PRD_CP].[dbo].[TB_MeasurePoint]([ID],[MPointID],[MPointCode],[ParmName],[SignalType]
						  ,[valuetype],[active],[type])values(@effiRankKPI,@effiRankKPI,@effiRankKPI,'效率评分排名','AI','sql','启用','kpi')
						insert into [EIP_PRD_CP].[dbo].[TB_MeasurePoint]([ID],[MPointID],[MPointCode],[ParmName],[SignalType]
						  ,[valuetype],[active],[type])values(@qualRankKPI,@qualRankKPI,@qualRankKPI,'质量评分排名','AI','sql','启用','kpi')
						insert into [EIP_PRD_CP].[dbo].[TB_MeasurePoint]([ID],[MPointID],[MPointCode],[ParmName],[SignalType]
						  ,[valuetype],[active],[type])values(@totalRankKPI,@totalRankKPI,@totalRankKPI,'综合评分排名','AI','sql','启用','kpi')
						  print 'end'
					end
			end
			else
			begin
				--如果不为空
				print 'not null'
				update [CPELM].[dbo].[TB_EM_EquipmentEvaluate] set 
				  [Qn] = @Qn
				  ,[En] = @En
				  ,[power] = @Pn
				  ,[intact_rate] = @evaluateQn
				  where  class_id = @type and specification = @standard and use_time =@usetimeLevel and model = @brand
			end
		end
	   FETCH next FROM equipmentEvaluateList INTO @type,@standard,@brand,@useTimeMin,@useTimeMax,@usetimeLevel
	end

	--评分循环
	--Declare @Qn float
	--Declare @Pn float
	declare @type2 varchar(50) -- 设备类型
	declare @standard2 varchar(50) -- 规格
	declare @brand2 varchar(50) -- 品牌
	declare @usetimeLevel2 varchar(50)--使用年限等级
	Declare @Qn2 float
    Declare @Pn2 float
	Declare @Eni float
	DECLARE evaluateList CURSOR FOR 
	SELECT class_id,specification,use_time,model,Qn,[power],En
	FROM [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
	group by class_id,specification,use_time,model,Qn,[power],En

	open evaluateList
	FETCH next FROM evaluateList INTO @type2,@standard2,@usetimeLevel2,@brand2,@Qn2,@Pn2,@Eni
	WHILE (@@FETCH_STATUS = 0)
	BEGIN
		print '开始评分'
		--质量指标评分 
		declare @QnMax float --设备质量最大完好率
		set @QnMax = (select Max(Qn) from [CPELM].[dbo].[TB_EM_EquipmentEvaluate]-- 同年限 同类型 同规格 不同型号的Qn max
		where class_id = @type2 and specification = @standard2 and use_time =@usetimeLevel2)		  
		    
		declare @Cn float --
		set @Cn = (10 * @Qn2)/@QnMax

		--效率指标评分	
		declare @PnMax float --设备质量最大效率
		set @PnMax = (select Max(power) from [CPELM].[dbo].[TB_EM_EquipmentEvaluate]-- 同年限 同类型 同规格 不同型号的Qn max
		where class_id = @type2 and specification = @standard2 and use_time =@usetimeLevel2)  
		declare @Bn float --效率评分 需要update
		set @Bn = (10 * @Pn2)/@PnMax	

		--经济评分
		--类中单位成本最小值
		declare @Emin float
		declare @An float
		set @Emin = (select Min(En) from [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
		where class_id = @type2 and specification = @standard2 and use_time =@usetimeLevel2)
		set @An = (10 * @Emin)/@Eni

		--综合评分  需要update
	    declare @x1 float --经济指标权重
		declare @x2 float --效率指标权重
		declare @x3 float --质量指标权重
		set @x1 = (select E.x1 from [CPELM].[dbo].[TB_EM_Equipment_Model] E where E.status ='1')
		set @x2 = (select E.x2 from [CPELM].[dbo].[TB_EM_Equipment_Model] E where E.status ='1')
	    set @x3 = (select E.x3 from [CPELM].[dbo].[TB_EM_Equipment_Model] E where E.status ='1')
		declare @Zn float--综合评分  需要update
	    set @Zn = @x1*@An+@x2*@Bn+@x3*@Cn	

		--更新评分
		update [CPELM].[dbo].[TB_EM_EquipmentEvaluate] set [total_score]= @Zn
				  ,[economic_score] = @An
				  ,[efficiency_score] = @Bn
				  ,[quality_score] = @Cn
				  where  class_id = @type2 and specification = @standard2 and use_time =@usetimeLevel2 and model = @brand2
		FETCH next FROM evaluateList INTO @type2,@standard2,@usetimeLevel2,@brand2,@Qn2,@Pn2,@Eni
	end


	--排名循环
	DECLARE evaluateRankList CURSOR FOR 
	SELECT class_id,specification,use_time
	FROM [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
	group by class_id,specification,use_time

	open evaluateRankList
	FETCH next FROM evaluateRankList INTO @type,@standard,@usetimeLevel
	WHILE (@@FETCH_STATUS = 0)
	BEGIN
		declare @totalkpi varchar(500)
		declare @econkpi varchar(500)
		declare @qualkpi varchar(500)
		declare @effikpi varchar(500)
		declare @ranknum int
		--经济排名
		DECLARE econScoreList CURSOR FOR 
		SELECT ecomomic_kpi,RANK() OVER(order by economic_score desc) as rank FROM [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
		where class_id = @type and specification = @standard and use_time = @usetimeLevel
		ORDER by economic_score desc;
		open econScoreList
		FETCH next FROM econScoreList INTO @econkpi,@ranknum
		WHILE (@@FETCH_STATUS = 0)
		BEGIN
			update [EIP_PRD_CP].[dbo].[TB_MeasurePoint] set ParmValue = @ranknum , MeasureDT = @nowDate
			where id = @econkpi
			declare @tableecon varchar(1000) 
			set @tableecon = 'insert into [EIP_PRD_CP].[dbo].[TB_MP_' + @econkpi 
			+ '] ([ParmValue],[MeasureDT],[insdt]) values ('''+ convert(varchar,@ranknum)  +''','''+ convert(varchar,@nowDate) +''','''+ convert(varchar,@nowDate)+''')' 
			print @tableecon
			exec(@tableecon) -- 成功 
		FETCH next FROM econScoreList INTO @econkpi,@ranknum
		end
		
		--效率排名
		DECLARE effiScoreList CURSOR FOR 
		SELECT efficiency_kpi,RANK() OVER(order by efficiency_score desc) as rank FROM [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
		where class_id = @type and specification = @standard and use_time = @usetimeLevel
		ORDER by efficiency_score desc;
		open effiScoreList
		FETCH next FROM effiScoreList INTO @effikpi,@ranknum
		WHILE (@@FETCH_STATUS = 0)
		BEGIN
			update [EIP_PRD_CP].[dbo].[TB_MeasurePoint] set ParmValue = @ranknum , MeasureDT = @nowDate
			where id = @effikpi
			declare @tableeffi varchar(1000) 
			set @tableeffi = 'insert into [EIP_PRD_CP].[dbo].[TB_MP_' + @effikpi 
			+ '] ([ParmValue],[MeasureDT],[insdt]) values ('''+ convert(varchar,@ranknum)  +''','''+ convert(varchar,@nowDate) +''','''+ convert(varchar,@nowDate)+''')' 
			print @tableeffi
			exec(@tableeffi) -- 成功
		FETCH next FROM effiScoreList INTO @effikpi,@ranknum
		end
		
		--质量排名
		DECLARE qualScoreList CURSOR FOR 
		SELECT quality_kpi,RANK() OVER(order by quality_score desc) as rank FROM [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
		where class_id = @type and specification = @standard and use_time = @usetimeLevel
		ORDER by quality_score desc;
		open qualScoreList
		FETCH next FROM qualScoreList INTO @qualkpi,@ranknum
		WHILE (@@FETCH_STATUS = 0)
		BEGIN
			update [EIP_PRD_CP].[dbo].[TB_MeasurePoint] set ParmValue = @ranknum , MeasureDT = @nowDate
			where id = @qualkpi
			declare @tablequal varchar(1000) 
			set @tablequal = 'insert into [EIP_PRD_CP].[dbo].[TB_MP_' + @qualkpi 
			+ '] ([ParmValue],[MeasureDT],[insdt]) values ('''+ convert(varchar,@ranknum)  +''','''+ convert(varchar,@nowDate) +''','''+ convert(varchar,@nowDate)+''')' 
			print @tablequal
			exec(@tablequal) -- 成功 

		FETCH next FROM qualScoreList INTO @qualkpi,@ranknum
		end
		
		--综合排名
		DECLARE totalScoreList CURSOR FOR 
		SELECT total_kpi,RANK() OVER(order by total_score desc) as rank FROM [CPELM].[dbo].[TB_EM_EquipmentEvaluate]
		where class_id = @type and specification = @standard and use_time = @usetimeLevel
		ORDER by total_score desc;
		open totalScoreList
		FETCH next FROM totalScoreList INTO @totalkpi,@ranknum
		WHILE (@@FETCH_STATUS = 0)
		BEGIN
			update [EIP_PRD_CP].[dbo].[TB_MeasurePoint] set ParmValue = @ranknum , MeasureDT = @nowDate
			where id = @totalkpi
			declare @tabletotal varchar(1000) 
			set @tabletotal = 'insert into [EIP_PRD_CP].[dbo].[TB_MP_' + @totalkpi 
			+ '] ([ParmValue],[MeasureDT],[insdt]) values ('''+ convert(varchar,@ranknum)  +''','''+ convert(varchar,@nowDate) +''','''+ convert(varchar,@nowDate)+''')' 
			print @tabletotal
			exec(@tabletotal) -- 成功 
		FETCH next FROM totalScoreList INTO @totalkpi,@ranknum
		end

		close econScoreList --关闭经济游标
		DEALLOCATE econScoreList  
		close effiScoreList --关闭效率游标
		DEALLOCATE effiScoreList  
		close qualScoreList --关闭质量游标
		DEALLOCATE qualScoreList  
		close totalScoreList --关闭综合游标
		DEALLOCATE totalScoreList  
	FETCH next FROM evaluateRankList INTO @type,@standard,@usetimeLevel
	end
 end

GO

-- ----------------------------
-- Procedure structure for Insert_MeasurePoint_For_EquipmentEvaluate
-- ----------------------------
DROP PROCEDURE [dbo].[Insert_MeasurePoint_For_EquipmentEvaluate]
GO

CREATE PROCEDURE [dbo].[Insert_MeasurePoint_For_EquipmentEvaluate] --@startTime varchar(20)
 as
 begin
   --系统当前时间
   declare @nowDate datetime
   set @nowDate =  GETDATE()

    
	declare @equipmentName varchar(50) -- 设备名称
    declare @equipmentId varchar(50) -- 设备Id

	declare @ID varchar(50) -- Id
	declare @MPointID varchar(50) -- 测量点Id
	declare @MPointCode varchar(50) -- 测量点code
	declare @ParmName varchar(50) -- 测量点name
	declare @type varchar(50) -- 测量点type

	declare @energy_money varchar(50) -- 能耗费拼接测量点id
	declare @output_flow varchar(50) -- 出口流量累计拼接测量点id
	declare @run_time varchar(50) -- 运行总时长拼接测量点id
	declare @instant_flow varchar(50) -- 瞬时流量拼接测量点id

	declare @energy_money_name varchar(50) -- 能耗费拼接测量点name
	declare @output_flow_name varchar(50) -- 出口流量累计拼接测量点name
	declare @run_time_name varchar(50) -- 运行总时长拼接测量点name
	declare @instant_flow_name varchar(50) -- 瞬时流量拼接测量点name
	

	set @energy_money = N''+'energyMoney1'
	set @output_flow = N''+'outputFlow1'
	set @run_time = N''+'runTime1'
	set @instant_flow = N''+'instantFlow1'

	set @energy_money_name = N''+'能耗费_1'
	set @output_flow_name = N''+'出口流量累计_1'
	set @run_time_name = N''+'运行总时长_1'
	set @instant_flow_name = N''+'瞬时流量_1'

	--设备主表循环
	DECLARE equipmentList CURSOR FOR SELECT id,equipmentName   FROM [ZHSWELM].[dbo].[TB_EM_EquipmentCard]
	open equipmentList
	FETCH next FROM equipmentList INTO @equipmentId,@equipmentName
	WHILE (@@FETCH_STATUS = 0)
	BEGIN
	   set @ID = @equipmentId+'_'+@energy_money
	   set @MPointID = @equipmentId+'_'+@energy_money
	   set @MPointCode = @equipmentId+'_'+@energy_money
	   set @ParmName = @equipmentName+'_'+@energy_money_name
	   insert into  [EIP_PRD_ZHSWELM].[dbo].[TB_MeasurePoint] (ID,MPointID,MPointCode,ParmName,type,active,valuetype,BizType,SignalType,equipmentId) values (@ID,@MPointID,@MPointCode,@ParmName,'data','1','sql','0756ZH','AI',@equipmentId)

	   

	   FETCH next FROM equipmentList INTO @equipmentId,@equipmentName
	END

 end

GO

-- ----------------------------
-- Procedure structure for selectSchedule
-- ----------------------------
DROP PROCEDURE [dbo].[selectSchedule]
GO

CREATE PROCEDURE [dbo].[selectSchedule]
AS
BEGIN
	SELECT * from tb_schedule_job where id = '24f3g4g6'
END

GO

-- ----------------------------
-- Procedure structure for selectScheduleJob
-- ----------------------------
DROP PROCEDURE [dbo].[selectScheduleJob]
GO

CREATE PROCEDURE [dbo].[selectScheduleJob]
AS
BEGIN
	SELECT * from tb_schedule_job where id = '24f3g4g6'
END

GO

-- ----------------------------
-- Procedure structure for sp_alterdiagram
-- ----------------------------
DROP PROCEDURE [dbo].[sp_alterdiagram]
GO

CREATE PROCEDURE [dbo].[sp_alterdiagram]
	(
		@diagramname 	sysname,
		@owner_id	int	= null,
		@version 	int,
		@definition 	varbinary(max)
	)
	WITH EXECUTE AS 'dbo'
	AS
	BEGIN
		set nocount on
	
		declare @theId 			int
		declare @retval 		int
		declare @IsDbo 			int
		
		declare @UIDFound 		int
		declare @DiagId			int
		declare @ShouldChangeUID	int
	
		if(@diagramname is null)
		begin
			RAISERROR ('Invalid ARG', 16, 1)
			return -1
		end
	
		execute as caller;
		select @theId = DATABASE_PRINCIPAL_ID();	 
		select @IsDbo = IS_MEMBER(N'db_owner'); 
		if(@owner_id is null)
			select @owner_id = @theId;
		revert;
	
		select @ShouldChangeUID = 0
		select @DiagId = diagram_id, @UIDFound = principal_id from dbo.sysdiagrams where principal_id = @owner_id and name = @diagramname 
		
		if(@DiagId IS NULL or (@IsDbo = 0 and @theId <> @UIDFound))
		begin
			RAISERROR ('Diagram does not exist or you do not have permission.', 16, 1);
			return -3
		end
	
		if(@IsDbo <> 0)
		begin
			if(@UIDFound is null or USER_NAME(@UIDFound) is null) -- invalid principal_id
			begin
				select @ShouldChangeUID = 1 ;
			end
		end

		-- update dds data			
		update dbo.sysdiagrams set definition = @definition where diagram_id = @DiagId ;

		-- change owner
		if(@ShouldChangeUID = 1)
			update dbo.sysdiagrams set principal_id = @theId where diagram_id = @DiagId ;

		-- update dds version
		if(@version is not null)
			update dbo.sysdiagrams set version = @version where diagram_id = @DiagId ;

		return 0
	END

GO

-- ----------------------------
-- Procedure structure for sp_creatediagram
-- ----------------------------
DROP PROCEDURE [dbo].[sp_creatediagram]
GO

CREATE PROCEDURE [dbo].[sp_creatediagram]
	(
		@diagramname 	sysname,
		@owner_id		int	= null, 	
		@version 		int,
		@definition 	varbinary(max)
	)
	WITH EXECUTE AS 'dbo'
	AS
	BEGIN
		set nocount on
	
		declare @theId int
		declare @retval int
		declare @IsDbo	int
		declare @userName sysname
		if(@version is null or @diagramname is null)
		begin
			RAISERROR (N'E_INVALIDARG', 16, 1);
			return -1
		end
	
		execute as caller;
		select @theId = DATABASE_PRINCIPAL_ID(); 
		select @IsDbo = IS_MEMBER(N'db_owner');
		revert; 
		
		if @owner_id is null
		begin
			select @owner_id = @theId;
		end
		else
		begin
			if @theId <> @owner_id
			begin
				if @IsDbo = 0
				begin
					RAISERROR (N'E_INVALIDARG', 16, 1);
					return -1
				end
				select @theId = @owner_id
			end
		end
		-- next 2 line only for test, will be removed after define name unique
		if EXISTS(select diagram_id from dbo.sysdiagrams where principal_id = @theId and name = @diagramname)
		begin
			RAISERROR ('The name is already used.', 16, 1);
			return -2
		end
	
		insert into dbo.sysdiagrams(name, principal_id , version, definition)
				VALUES(@diagramname, @theId, @version, @definition) ;
		
		select @retval = @@IDENTITY 
		return @retval
	END

GO

-- ----------------------------
-- Procedure structure for sp_dropdiagram
-- ----------------------------
DROP PROCEDURE [dbo].[sp_dropdiagram]
GO

CREATE PROCEDURE [dbo].[sp_dropdiagram]
	(
		@diagramname 	sysname,
		@owner_id	int	= null
	)
	WITH EXECUTE AS 'dbo'
	AS
	BEGIN
		set nocount on
		declare @theId 			int
		declare @IsDbo 			int
		
		declare @UIDFound 		int
		declare @DiagId			int
	
		if(@diagramname is null)
		begin
			RAISERROR ('Invalid value', 16, 1);
			return -1
		end
	
		EXECUTE AS CALLER;
		select @theId = DATABASE_PRINCIPAL_ID();
		select @IsDbo = IS_MEMBER(N'db_owner'); 
		if(@owner_id is null)
			select @owner_id = @theId;
		REVERT; 
		
		select @DiagId = diagram_id, @UIDFound = principal_id from dbo.sysdiagrams where principal_id = @owner_id and name = @diagramname 
		if(@DiagId IS NULL or (@IsDbo = 0 and @UIDFound <> @theId))
		begin
			RAISERROR ('Diagram does not exist or you do not have permission.', 16, 1)
			return -3
		end
	
		delete from dbo.sysdiagrams where diagram_id = @DiagId;
	
		return 0;
	END

GO

-- ----------------------------
-- Procedure structure for Sp_Formula
-- ----------------------------
DROP PROCEDURE [dbo].[Sp_Formula]
GO

CREATE PROCEDURE [dbo].[Sp_Formula]
	 @execTime varchar(19),
	 @execType varchar(20)
  as
  begin
	declare @mainMpCode varchar(50)--有公式的测量点
	declare @exp varchar(500)
	declare @mainUnitId varchar(50)
	declare @nowTimes varchar(19)--当前时间
	set @nowTimes=convert(char(19),getdate(),120)
	declare @nextTimes varchar(10)--第二天日期
	set @nextTimes=CONVERT(varchar(10),dateadd(day,1,getdate()), 120 )


	declare @tmpstr varchar(100)
	set @tmpstr=' ()+-*/casewhenthenelseend'

	DECLARE formulaList CURSOR FOR SELECT mpcode,exp,unitId FROM tb_formula_configure  where (exp is not null and exp!='') and datatype=@execType  order by morder
	open formulaList
	FETCH next FROM formulaList INTO @mainMpCode,@exp,@mainUnitId
	WHILE (@@FETCH_STATUS=0)
	BEGIN

	print @mainMpCode

	declare @sqlstr varchar(1000)
	set @sqlstr=''
    declare @cc varchar(50)--拆分后每行的数据
	set @exp = ltrim(rtrim(@exp))
	print @exp
    declare c1 cursor for
	select a from dbo.f_get_exp_split(@exp,@tmpstr)
    open c1
    fetch next from c1 into @cc
    while @@fetch_status=0
    begin
	--print @cc
	 if (charindex(@cc,@tmpstr)>0)--是否为四则运算符
     begin
      set @sqlstr=@sqlstr+cast(@cc as varchar(50))
     end
	 else if (ISNUMERIC(@cc)=1)--是否为数字
     begin
      set @sqlstr=@sqlstr+cast(@cc as varchar(50))
     end
	 else
	 begin

		declare @detailMpCode varchar(50)--公式中包含元素的测量点
		set @detailMpCode=''
		declare @mode varchar(50)--采集方式 first sum avg diff 等
		declare @starthour int--计算开始时间 0-0 8-8
		declare @detailUnitId varchar(50)

		declare @detailMpSQL nvarchar(4000)
		set @detailMpSQL=N''
		set @detailMpSQL=@detailMpSQL+N'select top 1 @detailMpCode=mpid,@mode=mode,@starthour=starthour,@detailUnitId=unitId from [tb_formula_configureDetail] where pmpid='''+@mainMpCode+''' and formulaname='''+@cc+'''  '
		EXEC sp_executesql @detailMpSQL,N'@detailMpCode varchar(50) output,@mode varchar(50) output,@starthour int output,@detailUnitId varchar(50) output',@detailMpCode output,@mode output,@starthour output,@detailUnitId output
		
		if(@starthour='' or @starthour is null)
		begin
			set @starthour=0
		end

		declare @dMpPv float--公式中包含元素的测量点
		set @dMpPv=0

		declare @whereSql varchar(1000)--查询历史数据的where
		if(@execType='day')
		begin
			set @whereSql=' where MeasureDT between '''+SUBSTRING(@execTime,0,11)+' '+cast(@starthour AS varchar(5))+':00:00'' and '''+SUBSTRING(@nextTimes,0,11)+' '+cast(@starthour AS varchar(5))+':00:00''  '
		end
		else if(@execType='month')
		begin
			set @whereSql=' where MeasureDT between '''+SUBSTRING(@execTime,0,8)+'-01 '+cast(@starthour AS varchar(5))+':00:00'' and '''+SUBSTRING(CONVERT(varchar(10),dateadd(day,0,cast(''+dateadd(ms,-3,DATEADD(mm, DATEDIFF(m,0,''+@execTime+'')+1, 0))+'' as varchar(10))), 120 ),0,11)+' '+cast(@starthour AS varchar(5))+':00:00'' '
		end
		else if(@execType='nowTime')
		begin
			set @whereSql=' where MeasureDT <='''+@nowTimes+''' and MeasureDT >='''+substring(@execTime,0,11)+' 00:00'' '
		end
	
		declare @selectSql varchar(500)--查询历史数据的select
		declare @orderSql varchar(500)--查询历史数据的order
		if(@mode='first')
		begin
			set @selectSql=' top 1 @dMpPv=ParmValue '
			set @orderSql=' order by MeasureDT desc '
		end
		else if(@mode='sum')
		begin
			set @selectSql=' @dMpPv=sum(ParmValue) '
			set @orderSql=''
		end
		else if(@mode='avg')
		begin
			set @selectSql=' @dMpPv=avg(ParmValue) '
			set @orderSql=''
		end

		declare @detailMpPVSQL nvarchar(4000)

		if(@mode='diff')
		begin
			declare @dMpPv1 float--公式中包含元素的测量点
			set @dMpPv1=0

			declare @detailMpPVSQL1 nvarchar(4000)
			set @detailMpPVSQL1=N''
			set @detailMpPVSQL1=@detailMpPVSQL1+N'select top 1 @dMpPv1=ParmValue from ['+@detailUnitId+'].[dbo].[tb_mp_'+@detailMpCode+'] '+@whereSql+' order by MeasureDT desc '
			EXEC sp_executesql @detailMpPVSQL1,N'@dMpPv1 float output',@dMpPv1 output

			declare @dMpPv2 float--公式中包含元素的测量点
			set @dMpPv2=0
			declare @detailMpPVSQL2 nvarchar(4000)
			set @detailMpPVSQL2=N''
			set @detailMpPVSQL2=@detailMpPVSQL2+N'select top 1 @dMpPv2=ParmValue from ['+@detailUnitId+'].[dbo].[tb_mp_'+@detailMpCode+'] '+@whereSql+' order by MeasureDT asc '
			EXEC sp_executesql @detailMpPVSQL2,N'@dMpPv2 float output',@dMpPv2 output

			set @dMpPv=@dMpPv1-@dMpPv2
		end
		else begin
			set @detailMpPVSQL=N''
			set @detailMpPVSQL=@detailMpPVSQL+N'select '+@selectSql+' from ['+@detailUnitId+'].[dbo].[tb_mp_'+@detailMpCode+'] '+@whereSql+' '+@orderSql+' '
			--print @detailMpPVSQL
			EXEC sp_executesql @detailMpPVSQL,N'@dMpPv float output',@dMpPv output
		end
			
			if(@dMpPv is null)begin
			 set @dMpPv=0
			end

			set @dMpPv=cast(cast(@dMpPv as float) as decimal(19,6))

			set @sqlstr=@sqlstr+cast(@dMpPv as varchar(50))
			



	 end

	fetch next from c1 into @cc
    end
    close c1
    deallocate c1

	print @mainMpCode
	print @sqlstr

	declare @upmaintbsql nvarchar(4000)--更新主表parmValue值
	set @upmaintbsql=N''
	set @upmaintbsql=@upmaintbsql+N'update ['+@mainUnitId+'].[dbo].[TB_MeasurePoint] set ParmValue='+@sqlstr+',MeasureDT='''+@execTime+''' where MPointCode='''+@mainMpCode+''' '
	EXEC sp_executesql @upmaintbsql

	if(@execType='month' or @execType='day')begin
		declare @instbsqlnum int

		declare @instbsqlnumSQL nvarchar(4000)
		set @instbsqlnumSQL=N''
		set @instbsqlnumSQL=@instbsqlnumSQL+N'select @instbsqlnum=count(*) from ['+@mainUnitId+'].[dbo].[tb_mp_'+@mainMpCode+'] where datediff('+@execType+',MeasureDT,'''+@execTime+''')=0 '
		EXEC sp_executesql @instbsqlnumSQL,N'@instbsqlnum int output',@instbsqlnum output

		if(@instbsqlnum=0)begin
			declare @instbsql nvarchar(4000)--插入字表
			set @instbsql=N''
			set @instbsql=@instbsql+N'insert into ['+@mainUnitId+'].[dbo].[tb_mp_'+@mainMpCode+'] (ParmValue,MeasureDT) values('+@sqlstr+','''+@execTime+''') '
			EXEC sp_executesql @instbsql
		end
		else begin
			declare @uptbsql nvarchar(4000)--插入字表
			set @uptbsql=N''
			set @uptbsql=@uptbsql+N'update ['+@mainUnitId+'].[dbo].[tb_mp_'+@mainMpCode+'] set ParmValue='+@sqlstr+'  where datediff('+@execType+',MeasureDT,'''+@execTime+''')=0   '
			EXEC sp_executesql @uptbsql
		end
	end
	else begin
		declare @instbsql2 nvarchar(4000)--插入字表
		set @instbsql2=N''
		set @instbsql2=@instbsql2+N'insert into ['+@mainUnitId+'].[dbo].[tb_mp_'+@mainMpCode+'] (ParmValue,MeasureDT) values('+@sqlstr+','''+@execTime+''') '
		EXEC sp_executesql @instbsql2
	end

	FETCH next FROM formulaList INTO @mainMpCode,@exp,@mainUnitId
	end
	CLOSE formulaList
	DEALLOCATE formulaList
  end

GO

-- ----------------------------
-- Procedure structure for sp_helpdiagramdefinition
-- ----------------------------
DROP PROCEDURE [dbo].[sp_helpdiagramdefinition]
GO

CREATE PROCEDURE [dbo].[sp_helpdiagramdefinition]
	(
		@diagramname 	sysname,
		@owner_id	int	= null 		
	)
	WITH EXECUTE AS N'dbo'
	AS
	BEGIN
		set nocount on

		declare @theId 		int
		declare @IsDbo 		int
		declare @DiagId		int
		declare @UIDFound	int
	
		if(@diagramname is null)
		begin
			RAISERROR (N'E_INVALIDARG', 16, 1);
			return -1
		end
	
		execute as caller;
		select @theId = DATABASE_PRINCIPAL_ID();
		select @IsDbo = IS_MEMBER(N'db_owner');
		if(@owner_id is null)
			select @owner_id = @theId;
		revert; 
	
		select @DiagId = diagram_id, @UIDFound = principal_id from dbo.sysdiagrams where principal_id = @owner_id and name = @diagramname;
		if(@DiagId IS NULL or (@IsDbo = 0 and @UIDFound <> @theId ))
		begin
			RAISERROR ('Diagram does not exist or you do not have permission.', 16, 1);
			return -3
		end

		select version, definition FROM dbo.sysdiagrams where diagram_id = @DiagId ; 
		return 0
	END

GO

-- ----------------------------
-- Procedure structure for sp_helpdiagrams
-- ----------------------------
DROP PROCEDURE [dbo].[sp_helpdiagrams]
GO

CREATE PROCEDURE [dbo].[sp_helpdiagrams]
	(
		@diagramname sysname = NULL,
		@owner_id int = NULL
	)
	WITH EXECUTE AS N'dbo'
	AS
	BEGIN
		DECLARE @user sysname
		DECLARE @dboLogin bit
		EXECUTE AS CALLER;
			SET @user = USER_NAME();
			SET @dboLogin = CONVERT(bit,IS_MEMBER('db_owner'));
		REVERT;
		SELECT
			[Database] = DB_NAME(),
			[Name] = name,
			[ID] = diagram_id,
			[Owner] = USER_NAME(principal_id),
			[OwnerID] = principal_id
		FROM
			sysdiagrams
		WHERE
			(@dboLogin = 1 OR USER_NAME(principal_id) = @user) AND
			(@diagramname IS NULL OR name = @diagramname) AND
			(@owner_id IS NULL OR principal_id = @owner_id)
		ORDER BY
			4, 5, 1
	END

GO

-- ----------------------------
-- Procedure structure for sp_renamediagram
-- ----------------------------
DROP PROCEDURE [dbo].[sp_renamediagram]
GO

CREATE PROCEDURE [dbo].[sp_renamediagram]
	(
		@diagramname 		sysname,
		@owner_id		int	= null,
		@new_diagramname	sysname
	
	)
	WITH EXECUTE AS 'dbo'
	AS
	BEGIN
		set nocount on
		declare @theId 			int
		declare @IsDbo 			int
		
		declare @UIDFound 		int
		declare @DiagId			int
		declare @DiagIdTarg		int
		declare @u_name			sysname
		if((@diagramname is null) or (@new_diagramname is null))
		begin
			RAISERROR ('Invalid value', 16, 1);
			return -1
		end
	
		EXECUTE AS CALLER;
		select @theId = DATABASE_PRINCIPAL_ID();
		select @IsDbo = IS_MEMBER(N'db_owner'); 
		if(@owner_id is null)
			select @owner_id = @theId;
		REVERT;
	
		select @u_name = USER_NAME(@owner_id)
	
		select @DiagId = diagram_id, @UIDFound = principal_id from dbo.sysdiagrams where principal_id = @owner_id and name = @diagramname 
		if(@DiagId IS NULL or (@IsDbo = 0 and @UIDFound <> @theId))
		begin
			RAISERROR ('Diagram does not exist or you do not have permission.', 16, 1)
			return -3
		end
	
		-- if((@u_name is not null) and (@new_diagramname = @diagramname))	-- nothing will change
		--	return 0;
	
		if(@u_name is null)
			select @DiagIdTarg = diagram_id from dbo.sysdiagrams where principal_id = @theId and name = @new_diagramname
		else
			select @DiagIdTarg = diagram_id from dbo.sysdiagrams where principal_id = @owner_id and name = @new_diagramname
	
		if((@DiagIdTarg is not null) and  @DiagId <> @DiagIdTarg)
		begin
			RAISERROR ('The name is already used.', 16, 1);
			return -2
		end		
	
		if(@u_name is null)
			update dbo.sysdiagrams set [name] = @new_diagramname, principal_id = @theId where diagram_id = @DiagId
		else
			update dbo.sysdiagrams set [name] = @new_diagramname where diagram_id = @DiagId
		return 0
	END

GO

-- ----------------------------
-- Procedure structure for sp_UpdateTableSpaceInfo
-- ----------------------------
DROP PROCEDURE [dbo].[sp_UpdateTableSpaceInfo]
GO

CREATE PROCEDURE [dbo].[sp_UpdateTableSpaceInfo]
AS
BEGIN
    --查询是否存在结果存储表
    IF NOT EXISTS (SELECT * FROM sysobjects where id = OBJECT_ID(N'temp_tableSpaceInfo') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
    BEGIN
        --不存在则创建
        CREATE TABLE temp_tableSpaceInfo
        (name NVARCHAR(128), 
        rows char(11), 
        reserved VARCHAR(18),
        data VARCHAR(18),
        index_size VARCHAR(18),
        unused VARCHAR(18))
    END
    --清空数据表
    DELETE FROM temp_tableSpaceInfo

    --定义临时变量在遍历时存储表名称
    DECLARE @tablename VARCHAR(255)

    --使用游标读取数据库内所有表表名
    DECLARE table_list_cursor CURSOR FOR 
    SELECT name FROM sysobjects 
    WHERE OBJECTPROPERTY(id, N'IsTable') = 1 AND name NOT LIKE N'#%%' ORDER BY name

    --打开游标
    OPEN table_list_cursor
    --读取第一条数据
    FETCH NEXT FROM table_list_cursor INTO @tablename 

    --遍历查询到的表名
    WHILE @@FETCH_STATUS = 0
    BEGIN
        --检查当前表是否为用户表
        IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(@tablename) AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
        BEGIN
            --当前表则读取其信息插入到表格中
            EXECUTE sp_executesql N'INSERT INTO temp_tableSpaceInfo EXEC sp_spaceused @tbname', N'@tbname varchar(255)', @tbname = @tablename
        END
        --读取下一条数据
        FETCH NEXT FROM table_list_cursor INTO @tablename 
    END

    --释放游标
    CLOSE table_list_cursor
    DEALLOCATE table_list_cursor
END

GO

-- ----------------------------
-- Procedure structure for sp_upgraddiagrams
-- ----------------------------
DROP PROCEDURE [dbo].[sp_upgraddiagrams]
GO

CREATE PROCEDURE [dbo].[sp_upgraddiagrams]
	AS
	BEGIN
		IF OBJECT_ID(N'dbo.sysdiagrams') IS NOT NULL
			return 0;
	
		CREATE TABLE dbo.sysdiagrams
		(
			name sysname NOT NULL,
			principal_id int NOT NULL,	-- we may change it to varbinary(85)
			diagram_id int PRIMARY KEY IDENTITY,
			version int,
	
			definition varbinary(max)
			CONSTRAINT UK_principal_name UNIQUE
			(
				principal_id,
				name
			)
		);


		/* Add this if we need to have some form of extended properties for diagrams */
		/*
		IF OBJECT_ID(N'dbo.sysdiagram_properties') IS NULL
		BEGIN
			CREATE TABLE dbo.sysdiagram_properties
			(
				diagram_id int,
				name sysname,
				value varbinary(max) NOT NULL
			)
		END
		*/

		IF OBJECT_ID(N'dbo.dtproperties') IS NOT NULL
		begin
			insert into dbo.sysdiagrams
			(
				[name],
				[principal_id],
				[version],
				[definition]
			)
			select	 
				convert(sysname, dgnm.[uvalue]),
				DATABASE_PRINCIPAL_ID(N'dbo'),			-- will change to the sid of sa
				0,							-- zero for old format, dgdef.[version],
				dgdef.[lvalue]
			from dbo.[dtproperties] dgnm
				inner join dbo.[dtproperties] dggd on dggd.[property] = 'DtgSchemaGUID' and dggd.[objectid] = dgnm.[objectid]	
				inner join dbo.[dtproperties] dgdef on dgdef.[property] = 'DtgSchemaDATA' and dgdef.[objectid] = dgnm.[objectid]
				
			where dgnm.[property] = 'DtgSchemaNAME' and dggd.[uvalue] like N'_EA3E6268-D998-11CE-9454-00AA00A3F36E_' 
			return 2;
		end
		return 1;
	END

GO

-- ----------------------------
-- Procedure structure for updateTasks
-- ----------------------------
DROP PROCEDURE [dbo].[updateTasks]
GO

CREATE PROCEDURE [dbo].[updateTasks] 
    @Rk_chadan varchar(1),   --是否紧急订单
    @FBillNo varchar(255),
    @resp varchar(5) output --返回结果
AS
	declare @url varchar(4000); 
	if @Rk_chadan = '1'
BEGIN
		set @url='http://192.168.10.245:8080/PlantEngine_RLD/services/workOrderInfo/updateTaskOrderBychadan?taskcode='+@FBillNo;--url  
		EXECUTE @resp=execWebservice @url;  
		select @resp as resp
END
	Else if @Rk_chadan = 0
BEGIN
		set @url='http://192.168.10.245:8080/PlantEngine_RLD/services/workOrderInfo/updateTaskOrder?taskcode='+@FBillNo;--url  
		EXECUTE @resp=execWebservice @url;  
		select @resp as resp
END

GO

-- ----------------------------
-- Procedure structure for USP_DelMessage_RU
-- ----------------------------
DROP PROCEDURE [dbo].[USP_DelMessage_RU]
GO

CREATE PROCEDURE [dbo].[USP_DelMessage_RU] AS

Declare @sdate  datetime
Declare @edate  datetime




set @edate = getdate();
set @edate = dateadd(hh,-datepart(hh,@edate),@edate)
set @edate = dateadd(mi,-datepart(mi,@edate),@edate)
set @edate = dateadd(ss,-datepart(ss,@edate),@edate)
set @edate = dateadd(ms,-datepart(mS,@edate),@edate)
--set @edate = dateadd(hh,8,@edate) --当日8点到明日8点
--print @edate
set @sdate = dateadd(day,-7,@edate)
--print @sdate

delete FROM TB_MESSAGE_RECV_RU where masterid in (select id FROM TB_MESSAGE_RU  where insdt<@sdate) 
or insdt<@sdate

delete FROM TB_MESSAGE_RU  where insdt<@sdate

GO

-- ----------------------------
-- Procedure structure for USP_Update_VisualDP
-- ----------------------------
DROP PROCEDURE [dbo].[USP_Update_VisualDP]
GO

CREATE PROCEDURE [dbo].[USP_Update_VisualDP] 
	
 as 

declare @execTime varchar(19)
set @execTime=convert(char(10),dateadd(day,-1,getdate()),120)
declare @bizid varchar(50) -- 声明厂id
declare @dbname varchar(50) -- 生产库名

declare @nextTimes varchar(10)--第二天日期
set @nextTimes=CONVERT(varchar(10),dateadd(day,1,getdate()), 120 )

--循环厂id
DECLARE companylist CURSOR FOR SELECT bizid,dbname FROM TB_PRO_XSERVER where dbname is not null
open companylist
FETCH next FROM companylist INTO @bizid,@dbname
WHILE (@@FETCH_STATUS=0)
BEGIN
	


declare @mpointcode as varchar(50)
declare @dataType as varchar(50)
declare @timeType as varchar(50)

declare mp cursor for select mpcode,dataType,timeType from [tb_visual_cacheData] where unitId=@bizid and active='1' and mpcode is not null
open mp
fetch next from mp into @mpointcode,@dataType,@timeType
while @@fetch_status=0
begin
	begin

	declare @parmvalue money
	set @parmvalue=0
	declare @measuredt datetime
	set @measuredt=getdate()

	declare @strsql nvarchar(4000)

	print @mpointcode

	if(@timeType='nowTime')begin
		set @strsql=N''
		set @strsql=@strsql+N'SELECT @parmvalue=ParmValue,@measuredt=MeasureDT FROM ['+@dbname+'].[dbo].[TB_MeasurePoint] where MPointCode='''+@mpointcode+''' '
		EXEC sp_executesql @strsql,N'@parmvalue money output,@measuredt datetime output',@parmvalue output,@measuredt output

	end
	else begin
		declare @whereSql varchar(1000)--查询历史数据的where
		if(@timeType='day')
		begin
			set @whereSql=' where MeasureDT between '''+SUBSTRING(@execTime,0,11)+' 00:00'' and '''+SUBSTRING(@nextTimes,0,11)+' 23:59''  '
		end
		else if(@timeType='month')
		begin
			set @whereSql=' where MeasureDT between '''+SUBSTRING(@execTime,0,8)+'-01 00:00'' and '''+SUBSTRING(CONVERT(varchar(10),dateadd(day,0,cast(''+dateadd(ms,-3,DATEADD(mm, DATEDIFF(m,0,''+@execTime+'')+1, 0))+'' as varchar(10))), 120 ),0,11)+' 23:59'' '
		end
		else if(@timeType='year')
		begin
			set @whereSql=' where MeasureDT between '''+SUBSTRING(@execTime,0,5)+'-01-01 00:00'' and '''+SUBSTRING(@nextTimes,0,5)+'-12-31 23:59''  '
		end

		declare @selectSql varchar(500)--查询历史数据的select
		declare @orderSql varchar(500)--查询历史数据的order
		if(@dataType='first')
		begin
			set @selectSql=' top 1 @parmvalue=ParmValue '
			set @orderSql=' order by MeasureDT desc '
		end
		else if(@dataType='sum')
		begin
			set @selectSql=' @parmvalue=sum(ParmValue) '
			set @orderSql=''
		end
		else if(@dataType='avg')
		begin
			set @selectSql=' @parmvalue=avg(ParmValue) '
			set @orderSql=''
		end

		if(@dataType='diff')
		begin
			declare @dMpPv1 float--公式中包含元素的测量点
			set @dMpPv1=0
			declare @detailMpPVSQL1 nvarchar(4000)
			set @detailMpPVSQL1=N''
			set @detailMpPVSQL1=@detailMpPVSQL1+N'select top 1 @dMpPv1=ParmValue from ['+@dbname+'].[dbo].[tb_mp_'+@mpointcode+'] '+@whereSql+' order by MeasureDT desc '
			EXEC sp_executesql @detailMpPVSQL1,N'@dMpPv1 float output',@dMpPv1 output

			declare @dMpPv2 float--公式中包含元素的测量点
			set @dMpPv2=0
			declare @detailMpPVSQL2 nvarchar(4000)
			set @detailMpPVSQL2=N''
			set @detailMpPVSQL2=@detailMpPVSQL2+N'select top 1 @dMpPv2=ParmValue from ['+@dbname+'].[dbo].[tb_mp_'+@mpointcode+'] '+@whereSql+' order by MeasureDT asc '
			EXEC sp_executesql @detailMpPVSQL2,N'@dMpPv2 float output',@dMpPv2 output

			set @parmvalue=@dMpPv1+@dMpPv2
		end
		else begin
			set @strsql=N''
			set @strsql=@strsql+N'select '+@selectSql+' from ['+@dbname+'].[dbo].[tb_mp_'+@mpointcode+'] '+@whereSql+' '+@orderSql+' '
			EXEC sp_executesql @strsql,N'@parmvalue money output',@parmvalue output
		end
	end
			print @dbname
			print @parmvalue
			print @measuredt

			update tb_visual_cacheData set value  = @parmvalue, insdt = @measuredt where mpcode = @mpointcode  and unitId=@bizid and active='1'
	end

fetch from mp into 	@mpointcode,@dataType,@timeType
end
close mp
deallocate mp

FETCH next FROM companylist INTO @bizid,@dbname
end
CLOSE companylist
DEALLOCATE companylist

GO

-- ----------------------------
-- Function structure for fn_diagramobjects
-- ----------------------------
DROP FUNCTION [dbo].[fn_diagramobjects]
GO

CREATE FUNCTION [dbo].[fn_diagramobjects]() 
	RETURNS int
	WITH EXECUTE AS N'dbo'
	AS
	BEGIN
		declare @id_upgraddiagrams		int
		declare @id_sysdiagrams			int
		declare @id_helpdiagrams		int
		declare @id_helpdiagramdefinition	int
		declare @id_creatediagram	int
		declare @id_renamediagram	int
		declare @id_alterdiagram 	int 
		declare @id_dropdiagram		int
		declare @InstalledObjects	int

		select @InstalledObjects = 0

		select 	@id_upgraddiagrams = object_id(N'dbo.sp_upgraddiagrams'),
			@id_sysdiagrams = object_id(N'dbo.sysdiagrams'),
			@id_helpdiagrams = object_id(N'dbo.sp_helpdiagrams'),
			@id_helpdiagramdefinition = object_id(N'dbo.sp_helpdiagramdefinition'),
			@id_creatediagram = object_id(N'dbo.sp_creatediagram'),
			@id_renamediagram = object_id(N'dbo.sp_renamediagram'),
			@id_alterdiagram = object_id(N'dbo.sp_alterdiagram'), 
			@id_dropdiagram = object_id(N'dbo.sp_dropdiagram')

		if @id_upgraddiagrams is not null
			select @InstalledObjects = @InstalledObjects + 1
		if @id_sysdiagrams is not null
			select @InstalledObjects = @InstalledObjects + 2
		if @id_helpdiagrams is not null
			select @InstalledObjects = @InstalledObjects + 4
		if @id_helpdiagramdefinition is not null
			select @InstalledObjects = @InstalledObjects + 8
		if @id_creatediagram is not null
			select @InstalledObjects = @InstalledObjects + 16
		if @id_renamediagram is not null
			select @InstalledObjects = @InstalledObjects + 32
		if @id_alterdiagram  is not null
			select @InstalledObjects = @InstalledObjects + 64
		if @id_dropdiagram is not null
			select @InstalledObjects = @InstalledObjects + 128
		
		return @InstalledObjects 
	END

GO

-- ----------------------------
-- Indexes structure for table ACT_EVT_LOG
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_EVT_LOG
-- ----------------------------
ALTER TABLE [dbo].[ACT_EVT_LOG] ADD PRIMARY KEY ([LOG_NR_])
GO

-- ----------------------------
-- Indexes structure for table ACT_GE_BYTEARRAY
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_GE_BYTEARRAY
-- ----------------------------
ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_GE_PROPERTY
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_GE_PROPERTY
-- ----------------------------
ALTER TABLE [dbo].[ACT_GE_PROPERTY] ADD PRIMARY KEY ([NAME_])
GO

-- ----------------------------
-- Indexes structure for table ACT_HI_ACTINST
-- ----------------------------
CREATE INDEX [ACT_IDX_HI_ACT_INST_START] ON [dbo].[ACT_HI_ACTINST]
([START_TIME_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_ACT_INST_END] ON [dbo].[ACT_HI_ACTINST]
([END_TIME_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_ACT_INST_PROCINST] ON [dbo].[ACT_HI_ACTINST]
([PROC_INST_ID_] ASC, [ACT_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_ACT_INST_EXEC] ON [dbo].[ACT_HI_ACTINST]
([EXECUTION_ID_] ASC, [ACT_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_HI_ACTINST
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_ACTINST] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_HI_ATTACHMENT
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_HI_ATTACHMENT
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_ATTACHMENT] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_HI_COMMENT
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_HI_COMMENT
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_COMMENT] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_HI_DETAIL
-- ----------------------------
CREATE INDEX [ACT_IDX_HI_DETAIL_PROC_INST] ON [dbo].[ACT_HI_DETAIL]
([PROC_INST_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_DETAIL_ACT_INST] ON [dbo].[ACT_HI_DETAIL]
([ACT_INST_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_DETAIL_TIME] ON [dbo].[ACT_HI_DETAIL]
([TIME_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_DETAIL_NAME] ON [dbo].[ACT_HI_DETAIL]
([NAME_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_DETAIL_TASK_ID] ON [dbo].[ACT_HI_DETAIL]
([TASK_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_HI_DETAIL
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_DETAIL] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_HI_IDENTITYLINK
-- ----------------------------
CREATE INDEX [ACT_IDX_HI_IDENT_LNK_USER] ON [dbo].[ACT_HI_IDENTITYLINK]
([USER_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_IDENT_LNK_TASK] ON [dbo].[ACT_HI_IDENTITYLINK]
([TASK_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_IDENT_LNK_PROCINST] ON [dbo].[ACT_HI_IDENTITYLINK]
([PROC_INST_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_HI_IDENTITYLINK
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_IDENTITYLINK] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_HI_PROCINST
-- ----------------------------
CREATE INDEX [ACT_IDX_HI_PRO_INST_END] ON [dbo].[ACT_HI_PROCINST]
([END_TIME_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_PRO_I_BUSKEY] ON [dbo].[ACT_HI_PROCINST]
([BUSINESS_KEY_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_HI_PROCINST
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_PROCINST] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Uniques structure for table ACT_HI_PROCINST
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_PROCINST] ADD UNIQUE ([PROC_INST_ID_] ASC)
GO

-- ----------------------------
-- Indexes structure for table ACT_HI_TASKINST
-- ----------------------------
CREATE INDEX [ACT_IDX_HI_TASK_INST_PROCINST] ON [dbo].[ACT_HI_TASKINST]
([PROC_INST_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_HI_TASKINST
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_TASKINST] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_HI_VARINST
-- ----------------------------
CREATE INDEX [ACT_IDX_HI_PROCVAR_PROC_INST] ON [dbo].[ACT_HI_VARINST]
([PROC_INST_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_PROCVAR_NAME_TYPE] ON [dbo].[ACT_HI_VARINST]
([NAME_] ASC, [VAR_TYPE_] ASC) 
GO
CREATE INDEX [ACT_IDX_HI_PROCVAR_TASK_ID] ON [dbo].[ACT_HI_VARINST]
([TASK_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_HI_VARINST
-- ----------------------------
ALTER TABLE [dbo].[ACT_HI_VARINST] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_ID_GROUP
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_ID_GROUP
-- ----------------------------
ALTER TABLE [dbo].[ACT_ID_GROUP] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_ID_INFO
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_ID_INFO
-- ----------------------------
ALTER TABLE [dbo].[ACT_ID_INFO] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_ID_MEMBERSHIP
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_ID_MEMBERSHIP
-- ----------------------------
ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] ADD PRIMARY KEY ([USER_ID_], [GROUP_ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_ID_USER
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_ID_USER
-- ----------------------------
ALTER TABLE [dbo].[ACT_ID_USER] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_PROCDEF_INFO
-- ----------------------------
CREATE INDEX [ACT_IDX_INFO_PROCDEF] ON [dbo].[ACT_PROCDEF_INFO]
([PROC_DEF_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_PROCDEF_INFO
-- ----------------------------
ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Uniques structure for table ACT_PROCDEF_INFO
-- ----------------------------
ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD UNIQUE ([PROC_DEF_ID_] ASC)
GO

-- ----------------------------
-- Indexes structure for table ACT_RE_DEPLOYMENT
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_RE_DEPLOYMENT
-- ----------------------------
ALTER TABLE [dbo].[ACT_RE_DEPLOYMENT] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_RE_MODEL
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_RE_MODEL
-- ----------------------------
ALTER TABLE [dbo].[ACT_RE_MODEL] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_RE_PROCDEF
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table ACT_RE_PROCDEF
-- ----------------------------
ALTER TABLE [dbo].[ACT_RE_PROCDEF] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Uniques structure for table ACT_RE_PROCDEF
-- ----------------------------
ALTER TABLE [dbo].[ACT_RE_PROCDEF] ADD UNIQUE ([KEY_] ASC, [VERSION_] ASC, [TENANT_ID_] ASC)
GO

-- ----------------------------
-- Indexes structure for table ACT_RU_EVENT_SUBSCR
-- ----------------------------
CREATE INDEX [ACT_IDX_EVENT_SUBSCR_CONFIG_] ON [dbo].[ACT_RU_EVENT_SUBSCR]
([CONFIGURATION_] ASC) 
GO
CREATE INDEX [ACT_IDX_EVENT_SUBSCR_EXEC_ID] ON [dbo].[ACT_RU_EVENT_SUBSCR]
([EXECUTION_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_RU_EVENT_SUBSCR
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_RU_EXECUTION
-- ----------------------------
CREATE INDEX [ACT_IDX_EXEC_BUSKEY] ON [dbo].[ACT_RU_EXECUTION]
([BUSINESS_KEY_] ASC) 
GO
CREATE INDEX [ACT_IDX_EXECUTION_PROC] ON [dbo].[ACT_RU_EXECUTION]
([PROC_DEF_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_EXECUTION_PARENT] ON [dbo].[ACT_RU_EXECUTION]
([PARENT_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_EXECUTION_SUPER] ON [dbo].[ACT_RU_EXECUTION]
([SUPER_EXEC_] ASC) 
GO
CREATE INDEX [ACT_IDX_EXECUTION_IDANDREV] ON [dbo].[ACT_RU_EXECUTION]
([ID_] ASC, [REV_] ASC) 
GO
CREATE INDEX [ACT_IDX_EXEC_PROC_INST_ID] ON [dbo].[ACT_RU_EXECUTION]
([PROC_INST_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_RU_EXECUTION
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_RU_IDENTITYLINK
-- ----------------------------
CREATE INDEX [ACT_IDX_IDENT_LNK_USER] ON [dbo].[ACT_RU_IDENTITYLINK]
([USER_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_IDENT_LNK_GROUP] ON [dbo].[ACT_RU_IDENTITYLINK]
([GROUP_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_ATHRZ_PROCEDEF] ON [dbo].[ACT_RU_IDENTITYLINK]
([PROC_DEF_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_IDENT_LNK_TASK] ON [dbo].[ACT_RU_IDENTITYLINK]
([TASK_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_IDENT_LNK_PROCINST] ON [dbo].[ACT_RU_IDENTITYLINK]
([PROC_INST_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_RU_IDENTITYLINK
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_RU_JOB
-- ----------------------------
CREATE INDEX [ACT_IDX_JOB_EXCEPTION_STACK_ID] ON [dbo].[ACT_RU_JOB]
([EXCEPTION_STACK_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_RU_JOB
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_JOB] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_RU_TASK
-- ----------------------------
CREATE INDEX [ACT_IDX_TASK_CREATE] ON [dbo].[ACT_RU_TASK]
([CREATE_TIME_] ASC) 
GO
CREATE INDEX [ACT_IDX_TASK_EXEC] ON [dbo].[ACT_RU_TASK]
([EXECUTION_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_TASK_PROCINST] ON [dbo].[ACT_RU_TASK]
([PROC_INST_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_TASK_PROC_DEF_ID] ON [dbo].[ACT_RU_TASK]
([PROC_DEF_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_RU_TASK
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_TASK] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table ACT_RU_VARIABLE
-- ----------------------------
CREATE INDEX [ACT_IDX_VARIABLE_TASK_ID] ON [dbo].[ACT_RU_VARIABLE]
([TASK_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_VARIABLE_BA] ON [dbo].[ACT_RU_VARIABLE]
([BYTEARRAY_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_VARIABLE_EXEC] ON [dbo].[ACT_RU_VARIABLE]
([EXECUTION_ID_] ASC) 
GO
CREATE INDEX [ACT_IDX_VARIABLE_PROCINST] ON [dbo].[ACT_RU_VARIABLE]
([PROC_INST_ID_] ASC) 
GO

-- ----------------------------
-- Primary Key structure for table ACT_RU_VARIABLE
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD PRIMARY KEY ([ID_])
GO

-- ----------------------------
-- Indexes structure for table Listener_His
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table Listener_His
-- ----------------------------
ALTER TABLE [dbo].[Listener_His] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table Listener_Interface
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table Listener_Interface
-- ----------------------------
ALTER TABLE [dbo].[Listener_Interface] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table listener_message
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table listener_message
-- ----------------------------
ALTER TABLE [dbo].[listener_message] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table listener_message_reload
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table listener_message_reload
-- ----------------------------
ALTER TABLE [dbo].[listener_message_reload] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table Listener_Point
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table Listener_Point
-- ----------------------------
ALTER TABLE [dbo].[Listener_Point] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table sysdiagrams
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table sysdiagrams
-- ----------------------------
ALTER TABLE [dbo].[sysdiagrams] ADD PRIMARY KEY ([diagram_id])
GO

-- ----------------------------
-- Uniques structure for table sysdiagrams
-- ----------------------------
ALTER TABLE [dbo].[sysdiagrams] ADD UNIQUE ([principal_id] ASC, [name] ASC)
GO

-- ----------------------------
-- Indexes structure for table tb_abnormity
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_abnormity
-- ----------------------------
ALTER TABLE [dbo].[tb_abnormity] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModel
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModel
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModel] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModel_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModel_file
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModel_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModel_MPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModel_MPoint
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModel_MPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModel_Output
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModel_Output
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModel_Output] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModel_Text
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModel_Text
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModel_Text] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModelData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModelData
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModelData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModelOutputData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModelOutputData
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModelOutputData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModelRecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModelRecord
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModelRecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModelRecord_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModelRecord_file
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModelRecord_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_AcceptanceModelTextData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_AcceptanceModelTextData
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_AcceptanceModelTextData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Achievement_ModelLibrary
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Achievement_ModelLibrary
-- ----------------------------
ALTER TABLE [dbo].[TB_Achievement_ModelLibrary] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_alarm_information
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_alarm_information
-- ----------------------------
ALTER TABLE [dbo].[tb_alarm_information] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_alarm_levels
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_alarm_levels
-- ----------------------------
ALTER TABLE [dbo].[tb_alarm_levels] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_alarm_mold
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_alarm_mold
-- ----------------------------
ALTER TABLE [dbo].[tb_alarm_mold] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_alarm_point
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_alarm_point
-- ----------------------------
ALTER TABLE [dbo].[tb_alarm_point] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_alarm_subscribe
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_alarm_subscribe
-- ----------------------------
ALTER TABLE [dbo].[tb_alarm_subscribe] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_alarmType
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_alarmType
-- ----------------------------
ALTER TABLE [dbo].[tb_alarmType] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_app_homePageData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_app_homePageData
-- ----------------------------
ALTER TABLE [dbo].[tb_app_homePageData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_app_menuitem
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_app_menuitem
-- ----------------------------
ALTER TABLE [dbo].[tb_app_menuitem] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_app_productMonitor
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_app_productMonitor
-- ----------------------------
ALTER TABLE [dbo].[tb_app_productMonitor] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_app_productMonitorMp
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_app_productMonitorMp
-- ----------------------------
ALTER TABLE [dbo].[tb_app_productMonitorMp] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_app_yesterdayMainData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_app_yesterdayMainData
-- ----------------------------
ALTER TABLE [dbo].[tb_app_yesterdayMainData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_appData_configure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_appData_configure
-- ----------------------------
ALTER TABLE [dbo].[tb_appData_configure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_AssetClass
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_AssetClass
-- ----------------------------
ALTER TABLE [dbo].[TB_AssetClass] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Auto_Alert
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Auto_Alert
-- ----------------------------
ALTER TABLE [dbo].[TB_Auto_Alert] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_basic_components
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_basic_components
-- ----------------------------
ALTER TABLE [dbo].[tb_basic_components] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_basic_configure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_basic_configure
-- ----------------------------
ALTER TABLE [dbo].[tb_basic_configure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_basic_homePage
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_basic_homePage
-- ----------------------------
ALTER TABLE [dbo].[tb_basic_homePage] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_BIM_alarm_threshold
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_BIM_alarm_threshold
-- ----------------------------
ALTER TABLE [dbo].[tb_BIM_alarm_threshold] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_BIM_camera
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_BIM_camera
-- ----------------------------
ALTER TABLE [dbo].[tb_BIM_camera] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_BIM_CD_homePage_tree
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_BIM_CD_homePage_tree
-- ----------------------------
ALTER TABLE [dbo].[tb_BIM_CD_homePage_tree] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_BIM_currency
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_BIM_currency
-- ----------------------------
ALTER TABLE [dbo].[tb_BIM_currency] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_bimRoute_data
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_bimRoute_data
-- ----------------------------
ALTER TABLE [dbo].[tb_bimRoute_data] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_bimRoute_eqdata
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_bimRoute_eqdata
-- ----------------------------
ALTER TABLE [dbo].[tb_bimRoute_eqdata] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_bonuspoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_bonuspoint
-- ----------------------------
ALTER TABLE [dbo].[tb_bonuspoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_bonuspoint_record
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_bonuspoint_record
-- ----------------------------
ALTER TABLE [dbo].[tb_bonuspoint_record] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_bot
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_bot
-- ----------------------------
ALTER TABLE [dbo].[tb_bot] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_bot_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_bot_file
-- ----------------------------
ALTER TABLE [dbo].[tb_bot_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_business_unit
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_business_unit
-- ----------------------------
ALTER TABLE [dbo].[tb_business_unit] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_business_unit_audit
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_business_unit_audit
-- ----------------------------
ALTER TABLE [dbo].[tb_business_unit_audit] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_business_unit_dept_apply
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_business_unit_dept_apply
-- ----------------------------
ALTER TABLE [dbo].[tb_business_unit_dept_apply] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_business_unit_handle
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_business_unit_handle
-- ----------------------------
ALTER TABLE [dbo].[tb_business_unit_handle] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_business_unit_handle_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_business_unit_handle_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_business_unit_handle_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_business_unit_inquiry
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_business_unit_inquiry
-- ----------------------------
ALTER TABLE [dbo].[tb_business_unit_inquiry] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_business_unit_issue
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_business_unit_issue
-- ----------------------------
ALTER TABLE [dbo].[tb_business_unit_issue] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_clients
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_clients
-- ----------------------------
ALTER TABLE [dbo].[tb_clients] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_common_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_common_file
-- ----------------------------
ALTER TABLE [dbo].[tb_common_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_company
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_company
-- ----------------------------
ALTER TABLE [dbo].[tb_company] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_company_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_company_file
-- ----------------------------
ALTER TABLE [dbo].[tb_company_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_CQBYT_KPI_Analysis
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_CQBYT_KPI_Analysis
-- ----------------------------
ALTER TABLE [dbo].[TB_CQBYT_KPI_Analysis] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_CQBYT_SampleValue
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_CQBYT_SampleValue
-- ----------------------------
ALTER TABLE [dbo].[TB_CQBYT_SampleValue] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_CQBYT_TestReport
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_CQBYT_TestReport
-- ----------------------------
ALTER TABLE [dbo].[tb_CQBYT_TestReport] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_CQBYT_TestReport_Details
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_CQBYT_TestReport_Details
-- ----------------------------
ALTER TABLE [dbo].[tb_CQBYT_TestReport_Details] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_data_cleaning_condition
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_data_cleaning_condition
-- ----------------------------
ALTER TABLE [dbo].[tb_data_cleaning_condition] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_data_cleaning_configure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_data_cleaning_configure
-- ----------------------------
ALTER TABLE [dbo].[tb_data_cleaning_configure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_data_cleaning_history
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_data_cleaning_history
-- ----------------------------
ALTER TABLE [dbo].[tb_data_cleaning_history] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_data_cleaning_point
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_data_cleaning_point
-- ----------------------------
ALTER TABLE [dbo].[tb_data_cleaning_point] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Data_Curve
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Data_Curve
-- ----------------------------
ALTER TABLE [dbo].[TB_Data_Curve] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Data_Curve_ RemarkType
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Data_Curve_ RemarkType
-- ----------------------------
ALTER TABLE [dbo].[TB_Data_Curve_ RemarkType] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Data_Curve_ RemarkTypeDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Data_Curve_ RemarkTypeDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_Data_Curve_ RemarkTypeDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Data_Curve_MPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Data_Curve_MPoint
-- ----------------------------
ALTER TABLE [dbo].[TB_Data_Curve_MPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Data_Curve_Remark
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Data_Curve_Remark
-- ----------------------------
ALTER TABLE [dbo].[TB_Data_Curve_Remark] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Data_Curve_Remark_File
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Data_Curve_Remark_File
-- ----------------------------
ALTER TABLE [dbo].[TB_Data_Curve_Remark_File] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_data_source
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_data_source
-- ----------------------------
ALTER TABLE [dbo].[tb_data_source] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_dept
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_dept
-- ----------------------------
ALTER TABLE [dbo].[tb_dept] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_dept_area
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_dept_area
-- ----------------------------
ALTER TABLE [dbo].[tb_dept_area] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_dept_process
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_dept_process
-- ----------------------------
ALTER TABLE [dbo].[tb_dept_process] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_dept_role
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_dept_role
-- ----------------------------
ALTER TABLE [dbo].[tb_dept_role] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_doc_data
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_doc_data
-- ----------------------------
ALTER TABLE [dbo].[tb_doc_data] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Uniques structure for table tb_doc_data
-- ----------------------------
ALTER TABLE [dbo].[tb_doc_data] ADD UNIQUE ([id] ASC)
GO

-- ----------------------------
-- Indexes structure for table tb_doc_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_doc_file
-- ----------------------------
ALTER TABLE [dbo].[tb_doc_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_doc_file_relation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_doc_file_relation
-- ----------------------------
ALTER TABLE [dbo].[tb_doc_file_relation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_document
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_document
-- ----------------------------
ALTER TABLE [dbo].[tb_document] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_efficiency_constituteConfigure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_efficiency_constituteConfigure
-- ----------------------------
ALTER TABLE [dbo].[tb_efficiency_constituteConfigure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_efficiency_constituteConfigureDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_efficiency_constituteConfigureDetail
-- ----------------------------
ALTER TABLE [dbo].[tb_efficiency_constituteConfigureDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_efficiency_efficiencyProcess
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_efficiency_efficiencyProcess
-- ----------------------------
ALTER TABLE [dbo].[TB_efficiency_efficiencyProcess] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_efficiency_overviewConfigure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_efficiency_overviewConfigure
-- ----------------------------
ALTER TABLE [dbo].[tb_efficiency_overviewConfigure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_efficiency_overviewConfigure_assembly
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_efficiency_overviewConfigure_assembly
-- ----------------------------
ALTER TABLE [dbo].[tb_efficiency_overviewConfigure_assembly] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_efficiency_overviewConfigure_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_efficiency_overviewConfigure_file
-- ----------------------------
ALTER TABLE [dbo].[tb_efficiency_overviewConfigure_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_efficiency_overviewMpConfigure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_efficiency_overviewMpConfigure
-- ----------------------------
ALTER TABLE [dbo].[tb_efficiency_overviewMpConfigure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_efficiency_statistics
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_efficiency_statistics
-- ----------------------------
ALTER TABLE [dbo].[tb_efficiency_statistics] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_efficiency_waterSpreadDataConfigure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_efficiency_waterSpreadDataConfigure
-- ----------------------------
ALTER TABLE [dbo].[tb_efficiency_waterSpreadDataConfigure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_electricity_meter
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_electricity_meter
-- ----------------------------
ALTER TABLE [dbo].[tb_electricity_meter] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Arrangement
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Arrangement
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Arrangement] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_AcceptanceApply
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_AcceptanceApply
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_AcceptanceApply] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_AcceptanceApplyDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_AcceptanceApplyDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_AcceptanceApplyDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_Accident
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_Accident
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_Accident] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_AccidentDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_AccidentDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_AccidentDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_em_equipment_belong
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_em_equipment_belong
-- ----------------------------
ALTER TABLE [dbo].[tb_em_equipment_belong] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_em_equipment_dialin
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_em_equipment_dialin
-- ----------------------------
ALTER TABLE [dbo].[tb_em_equipment_dialin] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_IncreaseValue
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_IncreaseValue
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_IncreaseValue] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_LoseApply
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_LoseApply
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_LoseApply] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_LoseApplyDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_LoseApplyDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_LoseApplyDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_Model
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_Model
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_Model] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_SaleApply
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_SaleApply
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_SaleApply] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_SaleApplyDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_SaleApplyDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_SaleApplyDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_ScrapApply
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_ScrapApply
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_ScrapApply] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_ScrapApplyDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_ScrapApplyDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_ScrapApplyDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_Specification
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_Specification
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_Specification] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_Statistics
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_Statistics
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_Statistics] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_TypeNumber
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_TypeNumber
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_TypeNumber] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_Equipment_UseAge
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_Equipment_UseAge
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_Equipment_UseAge] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentCard
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentCard
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentCard] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentCard_Camera
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentCard_Camera
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentCard_Camera] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentCard_Links
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentCard_Links
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentCard_Links] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentCard_Links_Parameter
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentCard_Links_Parameter
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentCard_Links_Parameter] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentCard_Prop
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentCard_Prop
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentCard_Prop] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentClass
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentClass
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentClass] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentClass_Prop
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentClass_Prop
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentClass_Prop] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentDepreciation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentDepreciation
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentDepreciation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentEvaluate
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentEvaluate
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentEvaluate] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentLevel
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentLevel
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentLevel] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentMaintain
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentMaintain
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentMaintain] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_EquipmentPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_EquipmentPoint
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_EquipmentPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_FacilitiesCard
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_FacilitiesCard
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_FacilitiesCard] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_FacilitiesClass
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_FacilitiesClass
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_FacilitiesClass] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_GeographyArea
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_GeographyArea
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_GeographyArea] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_MaintenancePlan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_MaintenancePlan
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_MaintenancePlan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_EM_MobileManagement
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_EM_MobileManagement
-- ----------------------------
ALTER TABLE [dbo].[tb_EM_MobileManagement] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_StructureCard
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_StructureCard
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_StructureCard] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_StructureCard_picture
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_StructureCard_picture
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_StructureCard_picture] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_StructureCard_picture_route
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_StructureCard_picture_route
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_StructureCard_picture_route] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_EM_StructureCard_picture_route_pointdetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_EM_StructureCard_picture_route_pointdetail
-- ----------------------------
ALTER TABLE [dbo].[TB_EM_StructureCard_picture_route_pointdetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_EMPP_EmppAdmin
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_EMPP_EmppAdmin
-- ----------------------------
ALTER TABLE [dbo].[tb_EMPP_EmppAdmin] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_EMPP_EmppSend
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_EMPP_EmppSend
-- ----------------------------
ALTER TABLE [dbo].[tb_EMPP_EmppSend] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_EMPP_EmppSendUser
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_EMPP_EmppSendUser
-- ----------------------------
ALTER TABLE [dbo].[tb_EMPP_EmppSendUser] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_energyEfficiency_electricityPrice
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_energyEfficiency_electricityPrice
-- ----------------------------
ALTER TABLE [dbo].[TB_energyEfficiency_electricityPrice] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_energyEfficiency_electricityPrice_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_energyEfficiency_electricityPrice_detail
-- ----------------------------
ALTER TABLE [dbo].[TB_energyEfficiency_electricityPrice_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_code_library
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_code_library
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_code_library] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_code_rule
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_code_rule
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_code_rule] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Equipment_File
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Equipment_File
-- ----------------------------
ALTER TABLE [dbo].[TB_Equipment_File] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Equipment_Fittings
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Equipment_Fittings
-- ----------------------------
ALTER TABLE [dbo].[TB_Equipment_Fittings] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_maintenanceplan_equipmentcard
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_maintenanceplan_equipmentcard
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_maintenanceplan_equipmentcard] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_maintenancerecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_maintenancerecord
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_maintenancerecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_paramset
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_paramset
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_paramset] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_paramset_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_paramset_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_paramset_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_paramset_status_evaluation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_paramset_status_evaluation
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_paramset_status_evaluation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_paramset_value
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_paramset_value
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_paramset_value] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_plan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_plan
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_plan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_plan_equ
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_plan_equ
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_plan_equ] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_plan_main_year
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_plan_main_year
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_plan_main_year] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_plan_main_year_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_plan_main_year_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_plan_main_year_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_plan_type
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_plan_type
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_plan_type] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Equipment_RepairPlan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Equipment_RepairPlan
-- ----------------------------
ALTER TABLE [dbo].[TB_Equipment_RepairPlan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Equipment_StatusManagement
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Equipment_StatusManagement
-- ----------------------------
ALTER TABLE [dbo].[TB_Equipment_StatusManagement] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_stop_record
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_stop_record
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_stop_record] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_equipment_stop_record_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_equipment_stop_record_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_equipment_stop_record_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Equipment_TransfersApply
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Equipment_TransfersApply
-- ----------------------------
ALTER TABLE [dbo].[TB_Equipment_TransfersApply] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_evaluation_criterion
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_evaluation_criterion
-- ----------------------------
ALTER TABLE [dbo].[tb_evaluation_criterion] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_evaluation_index
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_evaluation_index
-- ----------------------------
ALTER TABLE [dbo].[tb_evaluation_index] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_evaluation_index_day
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_evaluation_index_day
-- ----------------------------
ALTER TABLE [dbo].[tb_evaluation_index_day] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_evaluation_index_m
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_evaluation_index_m
-- ----------------------------
ALTER TABLE [dbo].[tb_evaluation_index_m] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_evaluation_index_month
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_evaluation_index_month
-- ----------------------------
ALTER TABLE [dbo].[tb_evaluation_index_month] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_evaluation_index_y
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_evaluation_index_y
-- ----------------------------
ALTER TABLE [dbo].[tb_evaluation_index_y] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_evaluation_index_year
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_evaluation_index_year
-- ----------------------------
ALTER TABLE [dbo].[tb_evaluation_index_year] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_extsystem
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_extsystem
-- ----------------------------
ALTER TABLE [dbo].[tb_extsystem] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_finance_equipment_dept_info
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_finance_equipment_dept_info
-- ----------------------------
ALTER TABLE [dbo].[tb_finance_equipment_dept_info] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_formula_configure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_formula_configure
-- ----------------------------
ALTER TABLE [dbo].[tb_formula_configure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_formula_configureDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_formula_configureDetail
-- ----------------------------
ALTER TABLE [dbo].[tb_formula_configureDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_fwk_menunumber
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_fwk_menunumber
-- ----------------------------
ALTER TABLE [dbo].[tb_fwk_menunumber] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_fwk_usertomenu
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_fwk_usertomenu
-- ----------------------------
ALTER TABLE [dbo].[tb_fwk_usertomenu] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_info_recv
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_info_recv
-- ----------------------------
ALTER TABLE [dbo].[tb_info_recv] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_job
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_job
-- ----------------------------
ALTER TABLE [dbo].[tb_job] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_JSYW_Company
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_JSYW_Company
-- ----------------------------
ALTER TABLE [dbo].[TB_JSYW_Company] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_JSYW_Point
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_JSYW_Point
-- ----------------------------
ALTER TABLE [dbo].[TB_JSYW_Point] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_apply_biz
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_apply_biz
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_apply_biz] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_dimension
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_dimension
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_dimension] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_indicator_lib
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_indicator_lib
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_indicator_lib] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_indicator_lib_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_indicator_lib_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_indicator_lib_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_period_instance
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_period_instance
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_period_instance] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_plan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_plan
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_plan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_plan_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_plan_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_plan_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_plan_staff
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_plan_staff
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_plan_staff] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_result
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_result
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_result] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_result_indicator
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_result_indicator
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_result_indicator] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_kpi_result_indicator_weight
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_kpi_result_indicator_weight
-- ----------------------------
ALTER TABLE [dbo].[tb_kpi_result_indicator_weight] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_KPIPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_KPIPoint
-- ----------------------------
ALTER TABLE [dbo].[TB_KPIPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_KPIPoint_Professor
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_KPIPoint_Professor
-- ----------------------------
ALTER TABLE [dbo].[TB_KPIPoint_Professor] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_KPIPoint_Professor_Param
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_KPIPoint_Professor_Param
-- ----------------------------
ALTER TABLE [dbo].[TB_KPIPoint_Professor_Param] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_lagerScreen_Configure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_lagerScreen_Configure
-- ----------------------------
ALTER TABLE [dbo].[tb_lagerScreen_Configure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_lagerScreen_ConfigureDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_lagerScreen_ConfigureDetail
-- ----------------------------
ALTER TABLE [dbo].[tb_lagerScreen_ConfigureDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_base
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_base
-- ----------------------------
ALTER TABLE [dbo].[tb_library_base] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_fault_bloc
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_fault_bloc
-- ----------------------------
ALTER TABLE [dbo].[tb_library_fault_bloc] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_fault_bloc_copy1
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_fault_bloc_copy1
-- ----------------------------
ALTER TABLE [dbo].[tb_library_fault_bloc_copy1] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_maintain_car
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_maintain_car
-- ----------------------------
ALTER TABLE [dbo].[tb_library_maintain_car] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_maintain_car_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_maintain_car_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_library_maintain_car_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_maintenance_common
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_maintenance_common
-- ----------------------------
ALTER TABLE [dbo].[tb_library_maintenance_common] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_maintenance_common_content
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_maintenance_common_content
-- ----------------------------
ALTER TABLE [dbo].[tb_library_maintenance_common_content] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_maintenance_lubrication
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_maintenance_lubrication
-- ----------------------------
ALTER TABLE [dbo].[tb_library_maintenance_lubrication] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_material_quota
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_material_quota
-- ----------------------------
ALTER TABLE [dbo].[tb_library_material_quota] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_mpoint_prop
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_mpoint_prop
-- ----------------------------
ALTER TABLE [dbo].[tb_library_mpoint_prop] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_mpoint_propsource
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_mpoint_propsource
-- ----------------------------
ALTER TABLE [dbo].[tb_library_mpoint_propsource] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_overhaul_content_bloc
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_overhaul_content_bloc
-- ----------------------------
ALTER TABLE [dbo].[tb_library_overhaul_content_bloc] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_overhaul_content_equ_biz
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_overhaul_content_equ_biz
-- ----------------------------
ALTER TABLE [dbo].[tb_library_overhaul_content_equ_biz] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_overhaul_content_model_bloc
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_overhaul_content_model_bloc
-- ----------------------------
ALTER TABLE [dbo].[tb_library_overhaul_content_model_bloc] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_overhaul_project_bloc
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_overhaul_project_bloc
-- ----------------------------
ALTER TABLE [dbo].[tb_library_overhaul_project_bloc] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_overhaul_project_equ_biz
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_overhaul_project_equ_biz
-- ----------------------------
ALTER TABLE [dbo].[tb_library_overhaul_project_equ_biz] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_overhaul_project_model_bloc
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_overhaul_project_model_bloc
-- ----------------------------
ALTER TABLE [dbo].[tb_library_overhaul_project_model_bloc] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_process_abnormal
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_process_abnormal
-- ----------------------------
ALTER TABLE [dbo].[tb_library_process_abnormal] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_process_adjustment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_process_adjustment
-- ----------------------------
ALTER TABLE [dbo].[tb_library_process_adjustment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_process_manage
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_process_manage
-- ----------------------------
ALTER TABLE [dbo].[tb_library_process_manage] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_process_manage_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_process_manage_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_library_process_manage_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_process_manage_workOrder
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_process_manage_workOrder
-- ----------------------------
ALTER TABLE [dbo].[tb_library_process_manage_workOrder] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_repair_bloc
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_repair_bloc
-- ----------------------------
ALTER TABLE [dbo].[tb_library_repair_bloc] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_repair_equ_biz
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_repair_equ_biz
-- ----------------------------
ALTER TABLE [dbo].[tb_library_repair_equ_biz] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_repair_model_bloc
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_repair_model_bloc
-- ----------------------------
ALTER TABLE [dbo].[tb_library_repair_model_bloc] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_routine_work
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_routine_work
-- ----------------------------
ALTER TABLE [dbo].[tb_library_routine_work] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_library_water_test
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_library_water_test
-- ----------------------------
ALTER TABLE [dbo].[tb_library_water_test] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_line
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_line
-- ----------------------------
ALTER TABLE [dbo].[tb_line] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_line_equipmentcard
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_line_equipmentcard
-- ----------------------------
ALTER TABLE [dbo].[tb_line_equipmentcard] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_line_process_section
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_line_process_section
-- ----------------------------
ALTER TABLE [dbo].[tb_line_process_section] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_log_info
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_log_info
-- ----------------------------
ALTER TABLE [dbo].[tb_log_info] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_main_config
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_main_config
-- ----------------------------
ALTER TABLE [dbo].[tb_main_config] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_main_config_20241122
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_main_config_20241122
-- ----------------------------
ALTER TABLE [dbo].[tb_main_config_20241122] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_main_config_JS(无需同步)
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_main_config_JS(无需同步)
-- ----------------------------
ALTER TABLE [dbo].[tb_main_config_JS(无需同步)] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_mainpage
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_mainpage
-- ----------------------------
ALTER TABLE [dbo].[tb_mainpage] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_mainpage_type
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_mainpage_type
-- ----------------------------
ALTER TABLE [dbo].[tb_mainpage_type] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_mainpage_type_user
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_mainpage_type_user
-- ----------------------------
ALTER TABLE [dbo].[tb_mainpage_type_user] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_anticorrosive_library
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_anticorrosive_library
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_anticorrosive_library] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_anticorrosive_library_equipment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_anticorrosive_library_equipment
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_anticorrosive_library_equipment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_anticorrosive_library_material
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_anticorrosive_library_material
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_anticorrosive_library_material] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_anticorrosive_material
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_anticorrosive_material
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_anticorrosive_material] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_equipment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_equipment
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_equipment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_faultlibrary
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_faultlibrary
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_faultlibrary] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_faultlibrary_branch
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_faultlibrary_branch
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_faultlibrary_branch] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_file
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_library_quota_level
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_library_quota_level
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_library_quota_level] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_maintain
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_maintain
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_maintain] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_maintain_car
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_maintain_car
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_maintain_car] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_maintain_library
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_maintain_library
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_maintain_library] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_maintain_plan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_maintain_plan
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_maintain_plan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_maintainer
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_maintainer
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_maintainer] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_maintainer_company
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_maintainer_company
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_maintainer_company] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_maintainer_selecttype
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_maintainer_selecttype
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_maintainer_selecttype] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_maintainer_type
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_maintainer_type
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_maintainer_type] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_newAndReset_library
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_newAndReset_library
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_newAndReset_library] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_newAndReset_library_quota
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_newAndReset_library_quota
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_newAndReset_library_quota] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_item_content
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_item_content
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_item_content] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_item_equipment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_item_equipment
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_item_equipment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_item_project
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_item_project
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_item_project] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_library
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_library
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_library] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_library_branch_content
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_library_branch_content
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_library_branch_content] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_library_branch_project
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_library_branch_project
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_library_branch_project] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_library_content
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_library_content
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_library_content] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_library_content_quota
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_library_content_quota
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_library_content_quota] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_overhaul_type
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_overhaul_type
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_overhaul_type] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_problem_fille
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_problem_fille
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_problem_fille] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_record
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_record
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_record] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_repair
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_repair
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_repair] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_repair_car
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_repair_car
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_repair_car] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_repairlibrary
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_repairlibrary
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_repairlibrary] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_repairlibrary_branch
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_repairlibrary_branch
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_repairlibrary_branch] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_maintenance_repairlibrary_quota
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_maintenance_repairlibrary_quota
-- ----------------------------
ALTER TABLE [dbo].[tb_maintenance_repairlibrary_quota] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MeasurePoint_DATA
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MeasurePoint_DATA
-- ----------------------------
ALTER TABLE [dbo].[TB_MeasurePoint_DATA] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_menuitem
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_menuitem
-- ----------------------------
ALTER TABLE [dbo].[tb_menuitem] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Triggers structure for table TB_MESSAGE
-- ----------------------------
DROP TRIGGER [dbo].[Trigger_message_syn]
GO
CREATE TRIGGER [dbo].[Trigger_message_syn]
ON [dbo].[TB_MESSAGE]
AFTER INSERT, UPDATE, DELETE
AS
--如果是添加
if exists(select 1 from inserted) and not exists(select 1  from deleted)
begin
      insert   into   TB_MESSAGE_RU
      select   *   from   inserted 
end
--如果是更新
else if exists(select 1 from inserted) and exists(select 1  from deleted)
begin
    delete from TB_MESSAGE_RU 
    where TB_MESSAGE_RU.id in(select id from deleted) 
 
    insert into TB_MESSAGE_RU 
    select * from inserted 
end
--如果是删除
else if not exists(select 1 from inserted) and exists(select 1  from deleted)
begin
    delete   from   TB_MESSAGE_RU 
        where   TB_MESSAGE_RU.id in(select   id   from   deleted) 
END

GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_FILE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_FILE
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_FILE] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_RECV
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_RECV
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_RECV] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Triggers structure for table TB_MESSAGE_RECV
-- ----------------------------
DROP TRIGGER [dbo].[Trigger_messagerecv_syn]
GO
CREATE TRIGGER [dbo].[Trigger_messagerecv_syn]
ON [dbo].[TB_MESSAGE_RECV]
AFTER INSERT, UPDATE, DELETE
AS
--如果是添加
if exists(select 1 from inserted) and not exists(select 1  from deleted)
begin
      insert   into   TB_MESSAGE_RECV_RU
      select   *   from   inserted 
end
--如果是更新
else if exists(select 1 from inserted) and exists(select 1  from deleted)
begin
    delete from TB_MESSAGE_RECV_RU 
    where TB_MESSAGE_RECV_RU.id in(select id from deleted) 
 
    insert into TB_MESSAGE_RECV_RU 
    select * from inserted 
end
--如果是删除
else if not exists(select 1 from inserted) and exists(select 1  from deleted)
begin
    delete   from   TB_MESSAGE_RECV_RU 
        where   TB_MESSAGE_RECV_RU.id in(select   id   from   deleted) 
END

GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_RECV_RU
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_RECV_RU
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_RECV_RU] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_RU
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_RU
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_RU] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_TYPE
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_TYPE
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_TYPE] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_TYPE_alarmlevel
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_TYPE_alarmlevel
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_TYPE_alarmlevel] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_TYPE_getpeople
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_TYPE_getpeople
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_TYPE_getpeople] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_TYPE_msguser
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_TYPE_msguser
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_TYPE_msguser] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_TYPE_role
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_TYPE_role
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_TYPE_role] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MESSAGE_TYPE_smsuser
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MESSAGE_TYPE_smsuser
-- ----------------------------
ALTER TABLE [dbo].[TB_MESSAGE_TYPE_smsuser] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_mobile_validation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_mobile_validation
-- ----------------------------
ALTER TABLE [dbo].[tb_mobile_validation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_model_cal_log
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_model_cal_log
-- ----------------------------
ALTER TABLE [dbo].[tb_model_cal_log] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_model_node_job
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_model_node_job
-- ----------------------------
ALTER TABLE [dbo].[tb_model_node_job] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_mp_JLYC_JD
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_mp_JLYC_JD
-- ----------------------------
ALTER TABLE [dbo].[tb_mp_JLYC_JD] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_MPoint_Interface
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_MPoint_Interface
-- ----------------------------
ALTER TABLE [dbo].[TB_MPoint_Interface] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_mqtt_config
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_mqtt_config
-- ----------------------------
ALTER TABLE [dbo].[tb_mqtt_config] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_mqtt_config_topic
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_mqtt_config_topic
-- ----------------------------
ALTER TABLE [dbo].[tb_mqtt_config_topic] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_overhaul_statistics
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_overhaul_statistics
-- ----------------------------
ALTER TABLE [dbo].[tb_overhaul_statistics] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Overhaul_UploadFile
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Overhaul_UploadFile
-- ----------------------------
ALTER TABLE [dbo].[TB_Overhaul_UploadFile] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_PersonalMpCollection
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_PersonalMpCollection
-- ----------------------------
ALTER TABLE [dbo].[tb_PersonalMpCollection] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_plan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_plan
-- ----------------------------
ALTER TABLE [dbo].[tb_plan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_plan_layout
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_plan_layout
-- ----------------------------
ALTER TABLE [dbo].[tb_plan_layout] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_plan_record_abnormity
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_plan_record_abnormity
-- ----------------------------
ALTER TABLE [dbo].[tb_plan_record_abnormity] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_PRO_ALARM
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_PRO_ALARM
-- ----------------------------
ALTER TABLE [dbo].[TB_PRO_ALARM] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_barChart
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_barChart
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_barChart] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_barChart_series
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_barChart_series
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_barChart_series] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_barChart_yAxis
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_barChart_yAxis
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_barChart_yAxis] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_camera
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_camera
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_camera] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_content
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_content
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_content] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_date
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_date
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_date] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_date_select
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_date_select
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_date_select] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_form
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_form
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_form] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_frame
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_frame
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_frame] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_frame_container
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_frame_container
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_frame_container] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_frame_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_frame_file
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_frame_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_gaugeChart
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_gaugeChart
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_gaugeChart] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_lineChart
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_lineChart
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_lineChart] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_lineChart_series
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_lineChart_series
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_lineChart_series] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_lineChart_yAxis
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_lineChart_yAxis
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_lineChart_yAxis] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_mPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_mPoint
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_mPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_mPoint_warehouse
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_mPoint_warehouse
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_mPoint_warehouse] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_mpView
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_mpView
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_mpView] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_percentChart
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_percentChart
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_percentChart] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_picture_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_picture_file
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_picture_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_pieChart
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_pieChart
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_pieChart] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_pieChart_series
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_pieChart_series
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_pieChart_series] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_polarCoordinates
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_polarCoordinates
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_polarCoordinates] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_polarCoordinates_series
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_polarCoordinates_series
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_polarCoordinates_series] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_progressBarChart
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_progressBarChart
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_progressBarChart] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_radarChart
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_radarChart
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_radarChart] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_radarChart_axis
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_radarChart_axis
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_radarChart_axis] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_radarChart_series
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_radarChart_series
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_radarChart_series] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_SuspensionFrame
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_SuspensionFrame
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_SuspensionFrame] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_tab
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_tab
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_tab] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_text
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_text
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_text] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_text_warehouse
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_text_warehouse
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_text_warehouse] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_dataVisual_weather
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_dataVisual_weather
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_dataVisual_weather] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_decisionExpertBase
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_decisionExpertBase
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_decisionExpertBase] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_decisionExpertBase_text
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_decisionExpertBase_text
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_decisionExpertBase_text] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_productionIndexData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_productionIndexData
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_productionIndexData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_productionIndexPlanNameConfigure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_productionIndexPlanNameConfigure
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_productionIndexPlanNameConfigure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_productionIndexPlanNameData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_productionIndexPlanNameData
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_productionIndexPlanNameData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_productionIndexPlanNameDataHis
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_productionIndexPlanNameDataHis
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_productionIndexPlanNameDataHis] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_productionIndexWorkOrder
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_productionIndexWorkOrder
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_productionIndexWorkOrder] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_testIndexManage
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_testIndexManage
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_testIndexManage] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_testMethods
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_testMethods
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_testMethods] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_pro_testTask
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_pro_testTask
-- ----------------------------
ALTER TABLE [dbo].[tb_pro_testTask] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_PRO_XSERVER
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_PRO_XSERVER
-- ----------------------------
ALTER TABLE [dbo].[TB_PRO_XSERVER] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_adjustment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_adjustment
-- ----------------------------
ALTER TABLE [dbo].[tb_process_adjustment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_adjustment_content
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_adjustment_content
-- ----------------------------
ALTER TABLE [dbo].[tb_process_adjustment_content] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_adjustment_type
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_adjustment_type
-- ----------------------------
ALTER TABLE [dbo].[tb_process_adjustment_type] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_equipment_adjustment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_equipment_adjustment
-- ----------------------------
ALTER TABLE [dbo].[tb_process_equipment_adjustment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_equipment_adjustment_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_equipment_adjustment_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_process_equipment_adjustment_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_meterCheck
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_meterCheck
-- ----------------------------
ALTER TABLE [dbo].[tb_process_meterCheck] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_meterCheck_library
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_meterCheck_library
-- ----------------------------
ALTER TABLE [dbo].[tb_process_meterCheck_library] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_modelplan_compute
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_modelplan_compute
-- ----------------------------
ALTER TABLE [dbo].[tb_process_modelplan_compute] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_routine_work
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_routine_work
-- ----------------------------
ALTER TABLE [dbo].[tb_process_routine_work] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_section
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_section
-- ----------------------------
ALTER TABLE [dbo].[tb_process_section] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_section_information
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_section_information
-- ----------------------------
ALTER TABLE [dbo].[tb_process_section_information] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_section_score
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_section_score
-- ----------------------------
ALTER TABLE [dbo].[tb_process_section_score] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_section_type
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_section_type
-- ----------------------------
ALTER TABLE [dbo].[tb_process_section_type] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Process_UploadFile
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Process_UploadFile
-- ----------------------------
ALTER TABLE [dbo].[TB_Process_UploadFile] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_water_test
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_water_test
-- ----------------------------
ALTER TABLE [dbo].[tb_process_water_test] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_process_water_test_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_process_water_test_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_process_water_test_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_reasonable_advice
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_reasonable_advice
-- ----------------------------
ALTER TABLE [dbo].[tb_reasonable_advice] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_Repair_EmergencyConfigure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_Repair_EmergencyConfigure
-- ----------------------------
ALTER TABLE [dbo].[tb_Repair_EmergencyConfigure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_Repair_EmergencyConfigureDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_Repair_EmergencyConfigureDetail
-- ----------------------------
ALTER TABLE [dbo].[tb_Repair_EmergencyConfigureDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_Repair_EmergencyConfigureInfo
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_Repair_EmergencyConfigureInfo
-- ----------------------------
ALTER TABLE [dbo].[tb_Repair_EmergencyConfigureInfo] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Repair_EmergencyPlan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Repair_EmergencyPlan
-- ----------------------------
ALTER TABLE [dbo].[TB_Repair_EmergencyPlan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Repair_EmergencyRecords
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Repair_EmergencyRecords
-- ----------------------------
ALTER TABLE [dbo].[TB_Repair_EmergencyRecords] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Repair_EmergencyRecordsDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Repair_EmergencyRecordsDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_Repair_EmergencyRecordsDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Repair_EmergencyRecordsWorkOrder
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Repair_EmergencyRecordsWorkOrder
-- ----------------------------
ALTER TABLE [dbo].[TB_Repair_EmergencyRecordsWorkOrder] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_Report_customReport
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_Report_customReport
-- ----------------------------
ALTER TABLE [dbo].[tb_Report_customReport] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_Report_customReport_mPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_Report_customReport_mPoint
-- ----------------------------
ALTER TABLE [dbo].[tb_Report_customReport_mPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_report_drainageDataomprehensiveTable
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_report_drainageDataomprehensiveTable
-- ----------------------------
ALTER TABLE [dbo].[tb_report_drainageDataomprehensiveTable] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_report_drainageDataomprehensiveTable_configure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_report_drainageDataomprehensiveTable_configure
-- ----------------------------
ALTER TABLE [dbo].[tb_report_drainageDataomprehensiveTable_configure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_report_drainageDataomprehensiveTable_mainconfigure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_report_drainageDataomprehensiveTable_mainconfigure
-- ----------------------------
ALTER TABLE [dbo].[tb_report_drainageDataomprehensiveTable_mainconfigure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_report_drainageDataomprehensiveTable_mainconfigure_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_report_drainageDataomprehensiveTable_mainconfigure_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_report_drainageDataomprehensiveTable_mainconfigure_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptCollectMode
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptCollectMode
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptCollectMode] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptCreate
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptCreate
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptCreate] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptCreateFile
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptCreateFile
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptCreateFile] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptDayLog
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptDayLog
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptDayLog] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptDayValSet
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptDayValSet
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptDayValSet] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptDeptSet
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptDeptSet
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptDeptSet] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptInfoSet
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptInfoSet
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptInfoSet] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptInfoSet_Sheet
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptInfoSet_Sheet
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptInfoSet_Sheet] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptInfoSetFile
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptInfoSetFile
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptInfoSetFile] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptLog
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptLog
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptLog] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptMpSet
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptMpSet
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptMpSet] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptSpSet
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptSpSet
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptSpSet] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_RptTypeSet
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_RptTypeSet
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_RptTypeSet] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_Template
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_Template
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_Template] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_TemplateFile
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_TemplateFile
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_TemplateFile] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Report_TemplateType
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Report_TemplateType
-- ----------------------------
ALTER TABLE [dbo].[TB_Report_TemplateType] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_role
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_role
-- ----------------------------
ALTER TABLE [dbo].[tb_role] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_certificate
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_certificate
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_certificate] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_check_comprehensive
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_check_comprehensive
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_check_comprehensive] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_check_dayly
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_check_dayly
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_check_dayly] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_check_special
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_check_special
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_check_special] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_education_builder
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_education_builder
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_education_builder] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_education_insider
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_education_insider
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_education_insider] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_education_trainee
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_education_trainee
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_education_trainee] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_education_visitor
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_education_visitor
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_education_visitor] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_external_staff
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_external_staff
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_external_staff] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_files
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_files
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_files] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_flow_task
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_flow_task
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_flow_task] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_flow_task_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_flow_task_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_flow_task_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_job_inside
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_job_inside
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_job_inside] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_job_outside
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_job_outside
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_job_outside] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_safety_staff_archives
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_safety_staff_archives
-- ----------------------------
ALTER TABLE [dbo].[tb_safety_staff_archives] ADD PRIMARY KEY ([userid])
GO

-- ----------------------------
-- Indexes structure for table TB_SCADAPIC
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SCADAPIC
-- ----------------------------
ALTER TABLE [dbo].[TB_SCADAPIC] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SCADAPIC_EM
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SCADAPIC_EM
-- ----------------------------
ALTER TABLE [dbo].[TB_SCADAPIC_EM] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SCADAPIC_MPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SCADAPIC_MPoint
-- ----------------------------
ALTER TABLE [dbo].[TB_SCADAPIC_MPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SCADAPIC_MPoint_Expression
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SCADAPIC_MPoint_Expression
-- ----------------------------
ALTER TABLE [dbo].[TB_SCADAPIC_MPoint_Expression] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SCADAPIC_ProcessSection
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SCADAPIC_ProcessSection
-- ----------------------------
ALTER TABLE [dbo].[TB_SCADAPIC_ProcessSection] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SCADAPIC_TXT
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SCADAPIC_TXT
-- ----------------------------
ALTER TABLE [dbo].[TB_SCADAPIC_TXT] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_schedule_job
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_schedule_job
-- ----------------------------
ALTER TABLE [dbo].[tb_schedule_job] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_schedule_job_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_schedule_job_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_schedule_job_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_schedule_job_type
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_schedule_job_type
-- ----------------------------
ALTER TABLE [dbo].[tb_schedule_job_type] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Sewage_company_information
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Sewage_company_information
-- ----------------------------
ALTER TABLE [dbo].[TB_Sewage_company_information] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Sewage_Input
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Sewage_Input
-- ----------------------------
ALTER TABLE [dbo].[TB_Sewage_Input] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Sewage_pumpStation_information
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Sewage_pumpStation_information
-- ----------------------------
ALTER TABLE [dbo].[TB_Sewage_pumpStation_information] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Sewage_pumpStationAttributes
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Sewage_pumpStationAttributes
-- ----------------------------
ALTER TABLE [dbo].[TB_Sewage_pumpStationAttributes] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Sewage_Source
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Sewage_Source
-- ----------------------------
ALTER TABLE [dbo].[TB_Sewage_Source] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Sewage_workshop_pumpStation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Sewage_workshop_pumpStation
-- ----------------------------
ALTER TABLE [dbo].[TB_Sewage_workshop_pumpStation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ApplyPurchasePlan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ApplyPurchasePlan
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ApplyPurchasePlan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Channels
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Channels
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Channels] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ConsumeDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ConsumeDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ConsumeDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Contract
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Contract
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Contract] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Contract_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Contract_file
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Contract_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ContractChange_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ContractChange_file
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ContractChange_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ContractClass
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ContractClass
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ContractClass] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ContractDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ContractDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ContractDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ContractDetail_Invoice
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ContractDetail_Invoice
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ContractDetail_Invoice] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ContractDetail_Invoice_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ContractDetail_Invoice_file
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ContractDetail_Invoice_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ContractDetail_Payment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ContractDetail_Payment
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ContractDetail_Payment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ContractTaxRate
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ContractTaxRate
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ContractTaxRate] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Goods
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Goods
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Goods] ADD PRIMARY KEY ([id], [number])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Goods_AcceptanceApplyDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Goods_AcceptanceApplyDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Goods_AcceptanceApplyDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Goods_Apply
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Goods_Apply
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Goods_Apply] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_GoodsClass
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_GoodsClass
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_GoodsClass] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_InStockRecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_InStockRecord
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_InStockRecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_sparepart_instockRecord_updateMoney
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_sparepart_instockRecord_updateMoney
-- ----------------------------
ALTER TABLE [dbo].[tb_sparepart_instockRecord_updateMoney] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_InStockRecordDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_InStockRecordDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_InStockRecordDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_OutStockRecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_OutStockRecord
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_OutStockRecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_OutStockRecordDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_OutStockRecordDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_OutStockRecordDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_OutStockRecordDetail_Consume
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_OutStockRecordDetail_Consume
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_OutStockRecordDetail_Consume] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Performance
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Performance
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Performance] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_PurchaseDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_PurchaseDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_PurchaseDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_PurchaseMethods
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_PurchaseMethods
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_PurchaseMethods] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_PurchasePlan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_PurchasePlan
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_PurchasePlan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_PurchaseRecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_PurchaseRecord
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_PurchaseRecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_PurchaseRecordDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_PurchaseRecordDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_PurchaseRecordDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Purpose
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Purpose
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Purpose] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_QualificationType
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_QualificationType
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_QualificationType] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_QualificationType_copy
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_QualificationType_copy
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_QualificationType_copy] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_RawMaterial
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_RawMaterial
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_RawMaterial] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_RawMaterialDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_RawMaterialDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_RawMaterialDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ReturnStockRecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ReturnStockRecord
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ReturnStockRecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_ReturnStockRecordDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_ReturnStockRecordDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_ReturnStockRecordDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Score
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Score
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Score] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Score_copy
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Score_copy
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Score_copy] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Stock
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Stock
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Stock] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Stock_TransfersApplyDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Stock_TransfersApplyDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Stock_TransfersApplyDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_StockCheck
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_StockCheck
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_StockCheck] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_StockCheckDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_StockCheckDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_StockCheckDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Subscribe
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Subscribe
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Subscribe] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_SubscribeDetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_SubscribeDetail
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_SubscribeDetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Supplier
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Supplier
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Supplier] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Supplier_copy
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Supplier_copy
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Supplier_copy] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_SupplierClass
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_SupplierClass
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_SupplierClass] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_SupplierClass_copy
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_SupplierClass_copy
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_SupplierClass_copy] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_SupplierQualification
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_SupplierQualification
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_SupplierQualification] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_SupplierQualification_copy
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_SupplierQualification_copy
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_SupplierQualification_copy] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_SupplierQualification_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_SupplierQualification_file
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_SupplierQualification_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_Warehouse
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_Warehouse
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_Warehouse] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_SparePart_warrantyPeriod
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_SparePart_warrantyPeriod
-- ----------------------------
ALTER TABLE [dbo].[TB_SparePart_warrantyPeriod] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_special_equipment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_special_equipment
-- ----------------------------
ALTER TABLE [dbo].[tb_special_equipment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_SpeechRecognition
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_SpeechRecognition
-- ----------------------------
ALTER TABLE [dbo].[tb_SpeechRecognition] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_SpeechRecognition_MpRespond
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_SpeechRecognition_MpRespond
-- ----------------------------
ALTER TABLE [dbo].[tb_SpeechRecognition_MpRespond] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_teacher_coursewaretype
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_teacher_coursewaretype
-- ----------------------------
ALTER TABLE [dbo].[tb_teacher_coursewaretype] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_teacher_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_teacher_file
-- ----------------------------
ALTER TABLE [dbo].[tb_teacher_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficency_PatrolPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficency_PatrolPoint
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficency_PatrolPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficency_PatrolPoint_MeasurePoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficency_PatrolPoint_MeasurePoint
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficency_PatrolPoint_MeasurePoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_Clockin_Record
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_Clockin_Record
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_Clockin_Record] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolArea
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolArea
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolArea] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolArea_Floor
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolArea_Floor
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolArea_Floor] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolArea_Floor_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolArea_Floor_file
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolArea_Floor_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolArea_ProcessSection
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolArea_ProcessSection
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolArea_ProcessSection] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolArea_User
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolArea_User
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolArea_User] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolContents
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolContents
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolContents] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolContents_Standard
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolContents_Standard
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolContents_Standard] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolModel
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolModel
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolModel] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlan
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlan
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlan] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlan_Dept
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlan_Dept
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_Dept] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlan_MeasurePoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlan_MeasurePoint
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_MeasurePoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlan_PatrolCamera
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlan_PatrolCamera
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolCamera] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlan_PatrolContents
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlan_PatrolContents
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolContents] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlan_PatrolEquipment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlan_PatrolEquipment
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolEquipment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlan_PatrolPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlan_PatrolPoint
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlan_PatrolRoute
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlan_PatrolRoute
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlan_PatrolRoute] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPlanType
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPlanType
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPlanType] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPoint_Camera
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPoint_Camera
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_Camera] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPoint_EquipmentCard
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPoint_EquipmentCard
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_EquipmentCard] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolPoint_File
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolPoint_File
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolPoint_File] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_Dept
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_Dept
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_Dept] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_file
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_file
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_file] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_MeasurePoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_MeasurePoint
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_MeasurePoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_PatrolCamera
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_PatrolCamera
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolCamera] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_PatrolContents
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_PatrolContents
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolContents] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_PatrolEquipment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_PatrolEquipment
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolEquipment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_PatrolPoint
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_PatrolPoint
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolPoint] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_PatrolRoute_OLD] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_PatrolRecord_ViolationRecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_PatrolRecord_ViolationRecord
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_PatrolRecord_ViolationRecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_Work_Record
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_Work_Record
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_Work_Record] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_Worker_Position_App
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_Worker_Position_App
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_Worker_Position_App] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_TimeEfficiency_Worker_Position_OLD
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_TimeEfficiency_Worker_Position_OLD
-- ----------------------------
ALTER TABLE [dbo].[TB_TimeEfficiency_Worker_Position_OLD] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_user_change_log
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_user_change_log
-- ----------------------------
ALTER TABLE [dbo].[tb_user_change_log] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_user_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_user_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_user_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_user_job
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_user_job
-- ----------------------------
ALTER TABLE [dbo].[tb_user_job] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_user_outsiders
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_user_outsiders
-- ----------------------------
ALTER TABLE [dbo].[tb_user_outsiders] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_user_time
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_user_time
-- ----------------------------
ALTER TABLE [dbo].[tb_user_time] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_user_workstation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_user_workstation
-- ----------------------------
ALTER TABLE [dbo].[tb_user_workstation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_apply
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_apply
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_apply] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_position
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_position
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_position] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_register
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_register
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_register] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_register_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_register_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_register_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_safeArea
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_safeArea
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_safeArea] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_safeArea_position
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_safeArea_position
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_safeArea_position] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_safety_commitment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_safety_commitment
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_safety_commitment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_safety_commitment_record
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_safety_commitment_record
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_safety_commitment_record] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visit_visitors
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visit_visitors
-- ----------------------------
ALTER TABLE [dbo].[tb_visit_visitors] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_cacheConfig
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_cacheConfig
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_cacheConfig] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_cacheData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_cacheData
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_cacheData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_datatype
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_datatype
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_datatype] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_interaction
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_interaction
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_interaction] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_jsp
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_jsp
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_jsp] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_jsp_configure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_jsp_configure
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_jsp_configure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_jsp_configure_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_jsp_configure_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_jsp_configure_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_jsp_element
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_jsp_element
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_jsp_element] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_layout
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_layout
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_layout] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_layout_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_layout_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_layout_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Visual_Plan_Component
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Visual_Plan_Component
-- ----------------------------
ALTER TABLE [dbo].[TB_Visual_Plan_Component] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_Visual_Plan_Component_Element
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_Visual_Plan_Component_Element
-- ----------------------------
ALTER TABLE [dbo].[TB_Visual_Plan_Component_Element] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_plan_interaction
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_plan_interaction
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_plan_interaction] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_visual_processOperation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_visual_processOperation
-- ----------------------------
ALTER TABLE [dbo].[tb_visual_processOperation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_weather
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_weather
-- ----------------------------
ALTER TABLE [dbo].[tb_weather] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_camera
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_camera
-- ----------------------------
ALTER TABLE [dbo].[tb_work_camera] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_camera_File
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_camera_File
-- ----------------------------
ALTER TABLE [dbo].[tb_work_camera_File] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_group
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_group
-- ----------------------------
ALTER TABLE [dbo].[tb_work_group] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_group_copy1
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_group_copy1
-- ----------------------------
ALTER TABLE [dbo].[tb_work_group_copy1] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_group_copy2
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_group_copy2
-- ----------------------------
ALTER TABLE [dbo].[tb_work_group_copy2] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_group_member
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_group_member
-- ----------------------------
ALTER TABLE [dbo].[tb_work_group_member] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_groupContent
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_groupContent
-- ----------------------------
ALTER TABLE [dbo].[tb_work_groupContent] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_groupContentForm
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_groupContentForm
-- ----------------------------
ALTER TABLE [dbo].[tb_work_groupContentForm] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_groupContentFormData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_groupContentFormData
-- ----------------------------
ALTER TABLE [dbo].[tb_work_groupContentFormData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_groupdetail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_groupdetail
-- ----------------------------
ALTER TABLE [dbo].[tb_work_groupdetail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_groupManage
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_groupManage
-- ----------------------------
ALTER TABLE [dbo].[tb_work_groupManage] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_grouptime
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_grouptime
-- ----------------------------
ALTER TABLE [dbo].[tb_work_grouptime] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_grouptype
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_grouptype
-- ----------------------------
ALTER TABLE [dbo].[tb_work_grouptype] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_interrupt
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_interrupt
-- ----------------------------
ALTER TABLE [dbo].[tb_work_interrupt] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_line
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_line
-- ----------------------------
ALTER TABLE [dbo].[tb_work_line] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_line_equipmentcard
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_line_equipmentcard
-- ----------------------------
ALTER TABLE [dbo].[tb_work_line_equipmentcard] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_modbusfig
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_modbusfig
-- ----------------------------
ALTER TABLE [dbo].[tb_work_modbusfig] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_modbusrecord
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_modbusrecord
-- ----------------------------
ALTER TABLE [dbo].[tb_work_modbusrecord] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_mPointHisChangeData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_mPointHisChangeData
-- ----------------------------
ALTER TABLE [dbo].[tb_work_mPointHisChangeData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_order
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_order
-- ----------------------------
ALTER TABLE [dbo].[tb_work_order] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_order_act
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_order_act
-- ----------------------------
ALTER TABLE [dbo].[tb_work_order_act] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_order_excute
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_order_excute
-- ----------------------------
ALTER TABLE [dbo].[tb_work_order_excute] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_procedure_workstation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_procedure_workstation
-- ----------------------------
ALTER TABLE [dbo].[tb_work_procedure_workstation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_process
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_process
-- ----------------------------
ALTER TABLE [dbo].[tb_work_process] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_processorder
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_processorder
-- ----------------------------
ALTER TABLE [dbo].[tb_work_processorder] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_scheduling
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_scheduling
-- ----------------------------
ALTER TABLE [dbo].[tb_work_scheduling] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_scheduling_replaceJob
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_scheduling_replaceJob
-- ----------------------------
ALTER TABLE [dbo].[tb_work_scheduling_replaceJob] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_task_equipment
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_task_equipment
-- ----------------------------
ALTER TABLE [dbo].[tb_work_task_equipment] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_task_group
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_task_group
-- ----------------------------
ALTER TABLE [dbo].[tb_work_task_group] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_task_material
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_task_material
-- ----------------------------
ALTER TABLE [dbo].[tb_work_task_material] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_task_workstation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_task_workstation
-- ----------------------------
ALTER TABLE [dbo].[tb_work_task_workstation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_wordAnalysisReport_content
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_wordAnalysisReport_content
-- ----------------------------
ALTER TABLE [dbo].[tb_work_wordAnalysisReport_content] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_wordAnalysisReport_content_curve
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_wordAnalysisReport_content_curve
-- ----------------------------
ALTER TABLE [dbo].[tb_work_wordAnalysisReport_content_curve] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_wordAnalysisReport_content_curve_axis
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_wordAnalysisReport_content_curve_axis
-- ----------------------------
ALTER TABLE [dbo].[tb_work_wordAnalysisReport_content_curve_axis] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_wordAnalysisReport_content_form
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_wordAnalysisReport_content_form
-- ----------------------------
ALTER TABLE [dbo].[tb_work_wordAnalysisReport_content_form] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_wordAnalysisReport_formData
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_wordAnalysisReport_formData
-- ----------------------------
ALTER TABLE [dbo].[tb_work_wordAnalysisReport_formData] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_wordAnalysisReport_record
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_wordAnalysisReport_record
-- ----------------------------
ALTER TABLE [dbo].[tb_work_wordAnalysisReport_record] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_wordAnalysisReport_structure
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_wordAnalysisReport_structure
-- ----------------------------
ALTER TABLE [dbo].[tb_work_wordAnalysisReport_structure] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_wordAnalysisReport_text
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_wordAnalysisReport_text
-- ----------------------------
ALTER TABLE [dbo].[tb_work_wordAnalysisReport_text] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_work_workshop
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_work_workshop
-- ----------------------------
ALTER TABLE [dbo].[TB_work_workshop] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table TB_work_workshop_procedures
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table TB_work_workshop_procedures
-- ----------------------------
ALTER TABLE [dbo].[TB_work_workshop_procedures] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_workstation
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_workstation
-- ----------------------------
ALTER TABLE [dbo].[tb_work_workstation] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_work_workstation_type
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_work_workstation_type
-- ----------------------------
ALTER TABLE [dbo].[tb_work_workstation_type] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_workorder_achievement
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_workorder_achievement
-- ----------------------------
ALTER TABLE [dbo].[tb_workorder_achievement] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_workorder_achievement_order
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_workorder_achievement_order
-- ----------------------------
ALTER TABLE [dbo].[tb_workorder_achievement_order] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_workorder_consume
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_workorder_consume
-- ----------------------------
ALTER TABLE [dbo].[tb_workorder_consume] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_workorder_consume2
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_workorder_consume2
-- ----------------------------
ALTER TABLE [dbo].[tb_workorder_consume2] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_workorder_detail
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_workorder_detail
-- ----------------------------
ALTER TABLE [dbo].[tb_workorder_detail] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_workorder_library_maintain
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_workorder_library_maintain
-- ----------------------------
ALTER TABLE [dbo].[tb_workorder_library_maintain] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_workorder_library_overhaul
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_workorder_library_overhaul
-- ----------------------------
ALTER TABLE [dbo].[tb_workorder_library_overhaul] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Indexes structure for table tb_workorder_repair_content
-- ----------------------------

-- ----------------------------
-- Primary Key structure for table tb_workorder_repair_content
-- ----------------------------
ALTER TABLE [dbo].[tb_workorder_repair_content] ADD PRIMARY KEY ([id])
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_GE_BYTEARRAY]
-- ----------------------------
ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] ADD FOREIGN KEY ([DEPLOYMENT_ID_]) REFERENCES [dbo].[ACT_RE_DEPLOYMENT] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_ID_MEMBERSHIP]
-- ----------------------------
ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] ADD FOREIGN KEY ([GROUP_ID_]) REFERENCES [dbo].[ACT_ID_GROUP] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] ADD FOREIGN KEY ([USER_ID_]) REFERENCES [dbo].[ACT_ID_USER] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_PROCDEF_INFO]
-- ----------------------------
ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD FOREIGN KEY ([INFO_JSON_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_RE_MODEL]
-- ----------------------------
ALTER TABLE [dbo].[ACT_RE_MODEL] ADD FOREIGN KEY ([DEPLOYMENT_ID_]) REFERENCES [dbo].[ACT_RE_DEPLOYMENT] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RE_MODEL] ADD FOREIGN KEY ([EDITOR_SOURCE_VALUE_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RE_MODEL] ADD FOREIGN KEY ([EDITOR_SOURCE_EXTRA_VALUE_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_RU_EVENT_SUBSCR]
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] ADD FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_RU_EXECUTION]
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD FOREIGN KEY ([PARENT_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD FOREIGN KEY ([SUPER_EXEC_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_RU_IDENTITYLINK]
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD FOREIGN KEY ([PROC_INST_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD FOREIGN KEY ([TASK_ID_]) REFERENCES [dbo].[ACT_RU_TASK] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_RU_JOB]
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_JOB] ADD FOREIGN KEY ([EXCEPTION_STACK_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_RU_TASK]
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_TASK] ADD FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RU_TASK] ADD FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RU_TASK] ADD FOREIGN KEY ([PROC_INST_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO

-- ----------------------------
-- Foreign Key structure for table [dbo].[ACT_RU_VARIABLE]
-- ----------------------------
ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD FOREIGN KEY ([BYTEARRAY_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD FOREIGN KEY ([PROC_INST_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
GO
