/*
   Create Schema Script 
   Database Version   : 10.2.0.1.0 
   Toad Version       : 10.6.1.3 
   DB Connect String  : 172.26.8.103:1521/ptaisino 
   Schema             : AOSPLUS_ORACLE 
   Script Created by  : AOSPLUS_ORACLE 
   Script Created at  : 11/24/2017 9:51:50 
   Physical Location  :  
   Notes              :  

   Object Counts: 
   Directories: 0 
   Tables: 48         Columns: 403        Constraints: 34     
*/

--
-- AOS_SYSTEM_VAR_DEFINE  (Table) 
--
CREATE TABLE AOS_SYSTEM_VAR_DEFINE
(
  CGUID        VARCHAR2(18)                    NOT NULL,
  SESSIONCODE  VARCHAR2(100)                   NOT NULL,
  CNAME        VARCHAR2(50),
  CDATATYPE    VARCHAR2(4),
  CTIMESTAMP   VARCHAR2(18),
  CONSTRAINT AOS_SYSTEM_VAR_DEFINE_PK
  PRIMARY KEY
  (CGUID)
);


--
-- AOS_SYNDB  (Table) 
--
CREATE TABLE AOS_SYNDB
(
  CGUID          VARCHAR2(18)                  NOT NULL,
  CCODE          VARCHAR2(255)                 NOT NULL,
  CSQL           CLOB,
  CLASTVALFIELD  VARCHAR2(255)                 NOT NULL,
  PAGESIZE       VARCHAR2(100),
  CLASTVAL       VARCHAR2(255),
  CTARGETTB      VARCHAR2(255)                 NOT NULL
);

COMMENT ON COLUMN AOS_SYNDB.CGUID IS '主键';

COMMENT ON COLUMN AOS_SYNDB.CCODE IS '同步数据编码';

COMMENT ON COLUMN AOS_SYNDB.CSQL IS '同步数据sql';

COMMENT ON COLUMN AOS_SYNDB.CTARGETTB IS '同步至mongodb对应的collection';



--
-- AOS_PROJECT_SAVE  (Table) 
--
CREATE TABLE AOS_PROJECT_SAVE
(
  CGUID     VARCHAR2(20)                       NOT NULL,
  NAME      VARCHAR2(20)                       NOT NULL,
  FORMID    VARCHAR2(100)                      NOT NULL,
  THEVALUE  CLOB,
  USERNAME  VARCHAR2(50)                       NOT NULL,
  CONSTRAINT AOS_PROJECT_SAVE_PK
  PRIMARY KEY
  (CGUID)
);


--
-- AOS_CANVAS  (Table) 
--
CREATE TABLE AOS_CANVAS
(
  CGUID        VARCHAR2(20)                    NOT NULL,
  PAGEPATH     VARCHAR2(100)                   NOT NULL,
  PAGECONTENT  CLOB,
  CDESC        VARCHAR2(100),
  ISTATUS      NUMBER(11),
  CONSTRAINT AOS_CANVAS_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_CANVAS.PAGEPATH IS '页面路径';

COMMENT ON COLUMN AOS_CANVAS.PAGECONTENT IS '页面内容';

COMMENT ON COLUMN AOS_CANVAS.CDESC IS '页面描述';

COMMENT ON COLUMN AOS_CANVAS.ISTATUS IS '状态';



--
-- AOS_NOTICE_TYPE  (Table) 
--
CREATE TABLE AOS_NOTICE_TYPE
(
  CGUID      VARCHAR2(18)                      NOT NULL,
  CORDER     VARCHAR2(18)                      NOT NULL,
  CNAME      VARCHAR2(50)                      NOT NULL,
  ISTATUS    NUMBER(11)                         NOT NULL,
  CPARENTID  VARCHAR2(18),
  CONSTRAINT AOS_NOTICE_TYPE_PK
  PRIMARY KEY
  (CGUID)
);


--
-- AOS_NOTICE  (Table) 
--
CREATE TABLE AOS_NOTICE
(
  CGUID             VARCHAR2(18)               NOT NULL,
  CNOTICETYPE       VARCHAR2(18)               NOT NULL,
  CNAME             VARCHAR2(255)              NOT NULL,
  CDESC             CLOB,
  CURL              VARCHAR2(255),
  IPRIORITY         NUMBER(11),
  DCREATEDATE       DATE                        NOT NULL,
  DENDDATE          DATE,
  DDUEDATE          DATE,
  CTOUSERGUID       VARCHAR2(18)               NOT NULL,
  CFROMUSERGUID     VARCHAR2(18)               NOT NULL,
  CPROCESSGUID      VARCHAR2(18),
  CBUSINESSGUID     VARCHAR2(18),
  CBUSINESSPARAM    CLOB,
  CORGNID           VARCHAR2(18),
  CATTACHGROUPGUID  VARCHAR2(18),
  CDELETEFLAG       VARCHAR2(10),
  CREPLYGUID        VARCHAR2(18),
  CSENDGUID         VARCHAR2(18),
  ISTATUS           VARCHAR2(1)                NOT NULL,
  IPROMPT           NUMBER(11),
  OPENWAY           VARCHAR2(1)                DEFAULT '0'                   NOT NULL,
  CONSTRAINT AOS_NOTICE_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_NOTICE.CNOTICETYPE IS '信息类型';

COMMENT ON COLUMN AOS_NOTICE.CNAME IS '名称';

COMMENT ON COLUMN AOS_NOTICE.CDESC IS '说明';

COMMENT ON COLUMN AOS_NOTICE.CURL IS '链接URL';

COMMENT ON COLUMN AOS_NOTICE.IPRIORITY IS '优先级';

COMMENT ON COLUMN AOS_NOTICE.DCREATEDATE IS '创建时间';

COMMENT ON COLUMN AOS_NOTICE.DENDDATE IS '结束时间';

COMMENT ON COLUMN AOS_NOTICE.DDUEDATE IS '到期时间';

COMMENT ON COLUMN AOS_NOTICE.CTOUSERGUID IS '接收用户GUID';

COMMENT ON COLUMN AOS_NOTICE.CFROMUSERGUID IS '发送用户GUID';

COMMENT ON COLUMN AOS_NOTICE.CPROCESSGUID IS '工作流GUID';

COMMENT ON COLUMN AOS_NOTICE.CBUSINESSGUID IS '业务相关表的cGUID';

COMMENT ON COLUMN AOS_NOTICE.CBUSINESSPARAM IS '业务相关表参数';

COMMENT ON COLUMN AOS_NOTICE.CORGNID IS '组织';

COMMENT ON COLUMN AOS_NOTICE.CATTACHGROUPGUID IS '上传附件组的guid';

COMMENT ON COLUMN AOS_NOTICE.CDELETEFLAG IS '删除标记';

COMMENT ON COLUMN AOS_NOTICE.CREPLYGUID IS '回复组ID';

COMMENT ON COLUMN AOS_NOTICE.CSENDGUID IS '群发id';

COMMENT ON COLUMN AOS_NOTICE.ISTATUS IS '状态  0 已读  1未读';

COMMENT ON COLUMN AOS_NOTICE.IPROMPT IS '是否弹出(0: 不弹出；1: 需弹出)';

COMMENT ON COLUMN AOS_NOTICE.OPENWAY IS '0：默认tab打开方式';



--
-- AOS_PRINT_ENTITY_VARIABLE  (Table) 
--
CREATE TABLE AOS_PRINT_ENTITY_VARIABLE
(
  CGUID        VARCHAR2(18)                    NOT NULL,
  CENTITYGUID  VARCHAR2(18)                    NOT NULL,
  CPRINTTYPE   VARCHAR2(18),
  CLISTID      VARCHAR2(30),
  CVARNAME     VARCHAR2(150)                   NOT NULL,
  CVARKEY      VARCHAR2(100),
  IORDER       NUMBER(11),
  CPRECISION   VARCHAR2(100),
  CROWPRE      VARCHAR2(150),
  CDATATYPE    VARCHAR2(10),
  CFORMAT      VARCHAR2(50),
  CPICPATH     VARCHAR2(100),
  ITOTAL       NUMBER(11),
  ISUBTOTAL    NUMBER(11),
  CONSTRAINT AOS_PRINT_ENTITY_VARIABLE_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CENTITYGUID IS '数据源cguid';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CPRINTTYPE IS '模板类型id';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CLISTID IS '数据源id';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CVARNAME IS '变量名称';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CVARKEY IS '变量关键字';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CPRECISION IS '精度';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CROWPRE IS '行精度';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CDATATYPE IS '数据类型，string、number';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.CFORMAT IS '数字类型的格式';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.ITOTAL IS '合计标志：0:不合计；1：合计';

COMMENT ON COLUMN AOS_PRINT_ENTITY_VARIABLE.ISUBTOTAL IS '小计标志：0：不小计；1:小计';



--
-- AOS_PRINT_LIST_CONFIG  (Table) 
--
CREATE TABLE AOS_PRINT_LIST_CONFIG
(
  CGUID  VARCHAR2(18)                          NOT NULL,
  CCODE  VARCHAR2(200),
  CNAME  VARCHAR2(200)
);

COMMENT ON COLUMN AOS_PRINT_LIST_CONFIG.CCODE IS '编码';

COMMENT ON COLUMN AOS_PRINT_LIST_CONFIG.CNAME IS '名称';



--
-- AOS_PRINT_LIST_CONFIG_DETAIL  (Table) 
--
CREATE TABLE AOS_PRINT_LIST_CONFIG_DETAIL
(
  CGUID            VARCHAR2(18)                NOT NULL,
  CLISTCONFIGGUID  VARCHAR2(18),
  CJSON            CLOB,
  CORGNID          VARCHAR2(18),
  CONSTRAINT AOS_PRINT_LIST_CONFIG_DET_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_PRINT_LIST_CONFIG_DETAIL.CLISTCONFIGGUID IS '列表打印配置表的主键';

COMMENT ON COLUMN AOS_PRINT_LIST_CONFIG_DETAIL.CJSON IS '列表打印配置的详细信息';

COMMENT ON COLUMN AOS_PRINT_LIST_CONFIG_DETAIL.CORGNID IS '组织id';



--
-- AOS_RMS_USER_ORGN_REL  (Table) 
--
CREATE TABLE AOS_RMS_USER_ORGN_REL
(
  CGUID           VARCHAR2(18)                 NOT NULL,
  CUSERID         VARCHAR2(18)                 NOT NULL,
  CORGNID         VARCHAR2(18)                 NOT NULL,
  IDEFAULTORGNID  NUMBER(11)                    DEFAULT 0                     NOT NULL,
  CONSTRAINT AOS_RMS_USER_ORGN_REL_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_RMS_USER_ORGN_REL.CUSERID IS '用户ID';

COMMENT ON COLUMN AOS_RMS_USER_ORGN_REL.IDEFAULTORGNID IS '是否默认组织';



--
-- AOS_RMS_USER_ORGN_ROLE_REL  (Table) 
--
CREATE TABLE AOS_RMS_USER_ORGN_ROLE_REL
(
  CUSERORGNID  VARCHAR2(18)                    NOT NULL,
  CROLEID      VARCHAR2(18)                    NOT NULL,
  CONSTRAINT AOS_RMS_USER_ORGN_ROLE_RE_PK
  PRIMARY KEY
  (CUSERORGNID, CROLEID)
);


--
-- AOS_RMS_USERTYPE_CFG  (Table) 
--
CREATE TABLE AOS_RMS_USERTYPE_CFG
(
  CGUID     VARCHAR2(18)                       NOT NULL,
  CNAME     VARCHAR2(100)                      NOT NULL,
  IDEFAULT  NUMBER(4),
  IORDER    NUMBER(8),
  IADMIN    NUMBER(4)                           NOT NULL,
  ISYSTYPE  NUMBER(4),
  ISTATUS   NUMBER(4)                           DEFAULT 1
);

COMMENT ON COLUMN AOS_RMS_USERTYPE_CFG.ISYSTYPE IS '下拉框数据';



--
-- AOS_RMS_USERTYPE_PERM_REL_CFG  (Table) 
--
CREATE TABLE AOS_RMS_USERTYPE_PERM_REL_CFG
(
  CUSERTYPEID  VARCHAR2(18)                    NOT NULL,
  CPERMID      VARCHAR2(18)                    NOT NULL,
  CONSTRAINT AOS_RMS_USERTYPE_PERM_REL_PK
  PRIMARY KEY
  (CUSERTYPEID, CPERMID)
);

COMMENT ON COLUMN AOS_RMS_USERTYPE_PERM_REL_CFG.CUSERTYPEID IS '用户类型ID';

COMMENT ON COLUMN AOS_RMS_USERTYPE_PERM_REL_CFG.CPERMID IS '权限ID';



--
-- AOS_RMS_MODULE  (Table) 
--
CREATE TABLE AOS_RMS_MODULE
(
  CGUID       VARCHAR2(18),
  CCODE       VARCHAR2(18),
  CNAME       VARCHAR2(100),
  CINNERCODE  CLOB,
  CPARENT     VARCHAR2(18),
  CDESC       VARCHAR2(500),
  IENABLE     NUMBER(11),
  IORDER      NUMBER(11)
);

COMMENT ON COLUMN AOS_RMS_MODULE.CCODE IS '编码';

COMMENT ON COLUMN AOS_RMS_MODULE.CNAME IS '名称';

COMMENT ON COLUMN AOS_RMS_MODULE.CINNERCODE IS '内码';

COMMENT ON COLUMN AOS_RMS_MODULE.CPARENT IS '父节点';

COMMENT ON COLUMN AOS_RMS_MODULE.CDESC IS '描述';

COMMENT ON COLUMN AOS_RMS_MODULE.IENABLE IS '是否启用';

COMMENT ON COLUMN AOS_RMS_MODULE.IORDER IS '模块顺序';



--
-- AOS_SYS_PARAM  (Table) 
--
CREATE TABLE AOS_SYS_PARAM
(
  CGUID        VARCHAR2(18)                    NOT NULL,
  CCODE        VARCHAR2(30),
  CNAME        VARCHAR2(100),
  CEDITOR      VARCHAR2(30),
  CEDITORPROP  VARCHAR2(500),
  IVISIBLE     NUMBER(11),
  IORDER       NUMBER(11),
  ILEAF        NUMBER(11),
  CPARENTID    VARCHAR2(18),
  CVALUE       VARCHAR2(2000)
);

COMMENT ON COLUMN AOS_SYS_PARAM.CGUID IS '主键';

COMMENT ON COLUMN AOS_SYS_PARAM.CCODE IS '设置值的key';

COMMENT ON COLUMN AOS_SYS_PARAM.CNAME IS '描述';

COMMENT ON COLUMN AOS_SYS_PARAM.CEDITOR IS '编辑器类型';

COMMENT ON COLUMN AOS_SYS_PARAM.CEDITORPROP IS '编辑器参数';

COMMENT ON COLUMN AOS_SYS_PARAM.IVISIBLE IS '是否可视';

COMMENT ON COLUMN AOS_SYS_PARAM.IORDER IS '顺序';

COMMENT ON COLUMN AOS_SYS_PARAM.ILEAF IS '是否叶子节点';

COMMENT ON COLUMN AOS_SYS_PARAM.CPARENTID IS '父节点ID';



--
-- AOS_CUSTOMDATA  (Table) 
--
CREATE TABLE AOS_CUSTOMDATA
(
  CGUID         VARCHAR2(18)                   NOT NULL,
  CCODE         VARCHAR2(20),
  CNAME         VARCHAR2(100),
  CPARENTID     VARCHAR2(20),
  CCLASSID      VARCHAR2(20),
  ISTATUS       NUMBER(11),
  CTIMESTAMP    VARCHAR2(20),
  CADMINORGNID  VARCHAR2(18),
  CDEFINE1      VARCHAR2(2000),
  CDEFINE2      VARCHAR2(2000),
  CDEFINE3      VARCHAR2(2000),
  CONSTRAINT AOS_CUSTOMDATA_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON TABLE AOS_CUSTOMDATA IS '自定义数据表';

COMMENT ON COLUMN AOS_CUSTOMDATA.CCODE IS '编码';

COMMENT ON COLUMN AOS_CUSTOMDATA.CNAME IS '名称';

COMMENT ON COLUMN AOS_CUSTOMDATA.CPARENTID IS '父节点ID，级次数据需要';

COMMENT ON COLUMN AOS_CUSTOMDATA.CCLASSID IS '分类ID';

COMMENT ON COLUMN AOS_CUSTOMDATA.ISTATUS IS '状态';

COMMENT ON COLUMN AOS_CUSTOMDATA.CTIMESTAMP IS '时间戳';

COMMENT ON COLUMN AOS_CUSTOMDATA.CADMINORGNID IS '登录管理组织ID';

COMMENT ON COLUMN AOS_CUSTOMDATA.CDEFINE1 IS '自定义字段1';

COMMENT ON COLUMN AOS_CUSTOMDATA.CDEFINE2 IS '自定义字段2';

COMMENT ON COLUMN AOS_CUSTOMDATA.CDEFINE3 IS '自定义字段3';



--
-- AOS_LOG_ANALYDATA_CLIENT  (Table) 
--
CREATE TABLE AOS_LOG_ANALYDATA_CLIENT
(
  CGUID         VARCHAR2(18)                   NOT NULL,
  RESULT        CLOB,
  CTIME         VARCHAR2(23),
  CMINLOGTIME   VARCHAR2(23),
  CLASTLOGTIME  VARCHAR2(23),
  ISUPLOAD      NUMBER(11)                      DEFAULT 0,
  CONSTRAINT AOS_LOG_ANALYDATA_CLIENT_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT.RESULT IS '分析结果';

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT.CTIME IS '存入时间';

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT.CMINLOGTIME IS '分析日志条目最小时间';

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT.CLASTLOGTIME IS '分析日志条目最大时间';

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT.ISUPLOAD IS '是否上传（0：待上传；1：已上传）';



--
-- AOS_LOG_ANALYDATA_CLIENT_CFG  (Table) 
--
CREATE TABLE AOS_LOG_ANALYDATA_CLIENT_CFG
(
  CGUID        VARCHAR2(18)                    NOT NULL,
  CCODE        CLOB                             NOT NULL,
  CNAME        VARCHAR2(500)                   NOT NULL,
  CANALYSESQL  CLOB                             NOT NULL,
  CWHERE       VARCHAR2(500)                   NOT NULL,
  CONSTRAINT AOS_LOG_ANALYDATA_CLIENT__PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT_CFG.CCODE IS '分析类型编码';

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT_CFG.CNAME IS '分析类型名称';

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT_CFG.CANALYSESQL IS '分析数据sql';

COMMENT ON COLUMN AOS_LOG_ANALYDATA_CLIENT_CFG.CWHERE IS '查询条件';

INSERT INTO aos_log_analydata_client_cfg (cGuid, cCode, cName, cAnalyseSql, cWhere)
VALUES ('1', 'browser', '浏览器、系统统计', 'select t.os, 
t.browserType,
count(*) as countNum,
t.os + "" "" + t.browserType as name,
count(*) as value
from 
(select 

left(RIGHT(cParams2, LEN(cParams2)- (charINDEX(''os='',cParams2,1) + 2)), 
CHARINDEX("";"",(RIGHT(cParams2,LEN(cParams2)- (charINDEX(""os="",cParams2,1) + 2)))) -1
) as os,
left(RIGHT(cParams2, LEN(cParams2)- (charINDEX(""browserType="",cParams2,1) + 11)), 
CHARINDEX("";"",(RIGHT(cParams2,LEN(cParams2)- (charINDEX(""browserType="",cParams2,1) + 11)))) -1
) as browserType
 from aos_tracelog 
where itype = 9 and cParams2 is not null
and cParams2 like ''os%'' and cTime > {lastLogTime}
) t
GROUP BY t.os, t.browserType
order by countNum desc
', 'itype = 9 and cParams2 is not null and cParams2 like \""os%\""');


INSERT INTO aos_log_analydata_client_cfg (cGuid, cCode, cName, cAnalyseSql, cWhere)
VALUES ('2', 'url', 'url效率分析', 'SELECT
  cContent AS url,
  cast(AVG(iTime) as int) AS avgtime,
  MAX(iTime) AS maxtime,
  MIN(iTime) AS mintime,
  COUNT(*) AS urlcount,
  SUM(iTime) AS sumtime
FROM
  aos_tracelog
WHERE
  iType = 1
AND cTime > {lastLogTime}
GROUP BY
  cContent
ORDER BY avgtime DESC', 'iType=1');


INSERT INTO aos_log_analydata_client_cfg (cGuid, cCode, cName, cAnalyseSql, cWhere)
VALUES ('3', 'sql', 'sql效率分析', 'SELECT
  t.*
FROM(
SELECT
  cContent,
  cast(AVG(iTime) as int) AS avgtime,
  MAX(iTime) AS maxtime,
  MIN(iTime) AS mintime,
  COUNT(*) AS sqlcount,
  cast(AVG(iResultNum) as int) AS avgresultnum,
  sum(iTime) as sumtime,
  sum(iResultNum) as sumresultnum
FROM
  aos_tracelog
WHERE
  iType = 2
AND cTime > {lastLogTime}
GROUP BY
  cContent
) t
WHERE
  t.avgtime >= 100
OR t.maxtime >= 1000
ORDER BY
  t.avgtime DESC,
  t.maxtime DESC
', 'iType=2');




--
-- AOS_USER_PARAM  (Table) 
--
CREATE TABLE AOS_USER_PARAM
(
  CPARAM   VARCHAR2(30),
  CVALUE   VARCHAR2(1000),
  CUSERID  VARCHAR2(18),
  CORGNID  VARCHAR2(18),
  CTYPE    VARCHAR2(100)
);

COMMENT ON COLUMN AOS_USER_PARAM.CPARAM IS '参数code';

COMMENT ON COLUMN AOS_USER_PARAM.CVALUE IS '参数值';

COMMENT ON COLUMN AOS_USER_PARAM.CUSERID IS '用户ID';

COMMENT ON COLUMN AOS_USER_PARAM.CTYPE IS '参数类型，mainui，portal，grid......';



--
-- AOS_USER_PARAM_CONFIG  (Table) 
--
CREATE TABLE AOS_USER_PARAM_CONFIG
(
  CPARAMCODE   VARCHAR2(30)                    NOT NULL,
  CPARAMNAME   VARCHAR2(100),
  CEDITOR      VARCHAR2(30),
  CEDITORPROP  VARCHAR2(1024),
  IVISIBLE     NUMBER(11),
  IORDER       NUMBER(11),
  CONSTRAINT AOS_USER_PARAM_CONFIG_PK
  PRIMARY KEY
  (CPARAMCODE)
);

COMMENT ON COLUMN AOS_USER_PARAM_CONFIG.CPARAMCODE IS '设置值的key';

COMMENT ON COLUMN AOS_USER_PARAM_CONFIG.CPARAMNAME IS '描述';

COMMENT ON COLUMN AOS_USER_PARAM_CONFIG.CEDITOR IS '编辑器类型';

COMMENT ON COLUMN AOS_USER_PARAM_CONFIG.CEDITORPROP IS '编辑器参数';

COMMENT ON COLUMN AOS_USER_PARAM_CONFIG.IVISIBLE IS '是否可视';

COMMENT ON COLUMN AOS_USER_PARAM_CONFIG.IORDER IS '顺序';



--
-- AOS_USER_SHORTCUT  (Table) 
--
CREATE TABLE AOS_USER_SHORTCUT
(
  CUSERID  VARCHAR2(18)                        NOT NULL,
  CAUTHID  VARCHAR2(18)                        NOT NULL,
  IORDER   NUMBER(4)                            NOT NULL,
  CORGNID  VARCHAR2(18)
);

COMMENT ON COLUMN AOS_USER_SHORTCUT.CUSERID IS '用户ID';

COMMENT ON COLUMN AOS_USER_SHORTCUT.CAUTHID IS '菜单ID';

COMMENT ON COLUMN AOS_USER_SHORTCUT.IORDER IS '菜单顺序';



--
-- AOS_USER_PARAM_GRID  (Table) 
--
CREATE TABLE AOS_USER_PARAM_GRID
(
  CUSERGUID      VARCHAR2(18),
  CPAGE          VARCHAR2(200),
  CGRID          VARCHAR2(200),
  CCOLUMNSWIDTH  CLOB,
  CPAGESIZE      VARCHAR2(100)
);

COMMENT ON COLUMN AOS_USER_PARAM_GRID.CUSERGUID IS '用户ID';

COMMENT ON COLUMN AOS_USER_PARAM_GRID.CPAGE IS '页面路径';

COMMENT ON COLUMN AOS_USER_PARAM_GRID.CGRID IS 'Grid ID';

COMMENT ON COLUMN AOS_USER_PARAM_GRID.CCOLUMNSWIDTH IS '列信息';

COMMENT ON COLUMN AOS_USER_PARAM_GRID.CPAGESIZE IS '分页信息';



--
-- AOS_PORTAL  (Table) 
--
CREATE TABLE AOS_PORTAL
(
  CGUID           VARCHAR2(18)                 NOT NULL,
  CPORTALID       VARCHAR2(30)                 NOT NULL,
  CTITLE          VARCHAR2(20),
  CCUSTOMQUERYID  VARCHAR2(50),
  CHTML           CLOB,
  CSTYLE          CLOB,
  CSCRIPT         CLOB,
  IHEIGHT         NUMBER(11),
  ISTATUS         NUMBER(11),
  CADMINORGNID    VARCHAR2(18),
  CONSTRAINT AOS_PORTAL_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_PORTAL.CPORTALID IS 'portal模块ID';

COMMENT ON COLUMN AOS_PORTAL.CTITLE IS '标题';

COMMENT ON COLUMN AOS_PORTAL.CHTML IS 'html内容';

COMMENT ON COLUMN AOS_PORTAL.CSTYLE IS '样式单信息';

COMMENT ON COLUMN AOS_PORTAL.CSCRIPT IS '脚本信息';

COMMENT ON COLUMN AOS_PORTAL.IHEIGHT IS '默认高度';

COMMENT ON COLUMN AOS_PORTAL.ISTATUS IS '状态';



--
-- AOS_PORTAL_USERSET  (Table) 
--
CREATE TABLE AOS_PORTAL_USERSET
(
  CUSERID      VARCHAR2(18)                    NOT NULL,
  ICOLUMN      NUMBER(11),
  CPORTALGUID  VARCHAR2(18)                    NOT NULL,
  IHEIGHT      NUMBER(11),
  IORDER       NUMBER(11),
  CORGNID      VARCHAR2(18)
);

COMMENT ON COLUMN AOS_PORTAL_USERSET.CUSERID IS '用户ID';

COMMENT ON COLUMN AOS_PORTAL_USERSET.ICOLUMN IS '所在列序号，从0开始';

COMMENT ON COLUMN AOS_PORTAL_USERSET.CPORTALGUID IS 'portal模块GUID';

COMMENT ON COLUMN AOS_PORTAL_USERSET.IHEIGHT IS 'portal模块高度';

COMMENT ON COLUMN AOS_PORTAL_USERSET.IORDER IS '顺序';

COMMENT ON COLUMN AOS_PORTAL_USERSET.CORGNID IS '业务组织id';



--
-- AOS_ORGN  (Table) 
--
CREATE TABLE AOS_ORGN
(
  CGUID          VARCHAR2(18)                  NOT NULL,
  CNAME          VARCHAR2(100)                 NOT NULL,
  CNAMEEN        VARCHAR2(100),
  CSHORTNAME     VARCHAR2(100),
  CFULLNAME      VARCHAR2(500),
  CDESCP         VARCHAR2(500),
  ISTATUS        NUMBER(11)                     NOT NULL,
  CPARENTID      VARCHAR2(18)                  NOT NULL,
  CINNERCODE     VARCHAR2(500)                 NOT NULL,
  ILEVEL         NUMBER(11)                     NOT NULL,
  ILEAF          NUMBER(11)                     NOT NULL,
  DSTARTDATE     VARCHAR2(10),
  DINVALIDDATE   VARCHAR2(10),
  CCREATORID     VARCHAR2(18),
  DCREATEDATE    VARCHAR2(10),
  CUPDATEUSERID  VARCHAR2(18),
  DUPDATEDATE    VARCHAR2(10),
  CADMINORGNID   VARCHAR2(18),
  CCODE          VARCHAR2(100),
  CMNEMOCODE     VARCHAR2(100),
  CTIMESTAMP     VARCHAR2(18)                  NOT NULL,
  IACCOUNT       NUMBER(11),
  IORDER         NUMBER(11),
  CONSTRAINT AOS_ORGN_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_ORGN.CGUID IS '组织ID';

COMMENT ON COLUMN AOS_ORGN.CNAME IS '组织名称';

COMMENT ON COLUMN AOS_ORGN.CNAMEEN IS '组织英文名';

COMMENT ON COLUMN AOS_ORGN.CSHORTNAME IS '组织简称';

COMMENT ON COLUMN AOS_ORGN.CFULLNAME IS '组织全名';

COMMENT ON COLUMN AOS_ORGN.CDESCP IS '组织描述';

COMMENT ON COLUMN AOS_ORGN.ISTATUS IS '状态';

COMMENT ON COLUMN AOS_ORGN.CPARENTID IS '父节点ID';

COMMENT ON COLUMN AOS_ORGN.CINNERCODE IS '内部码';

COMMENT ON COLUMN AOS_ORGN.ILEVEL IS '组织等级';

COMMENT ON COLUMN AOS_ORGN.ILEAF IS '是否是叶子节点';

COMMENT ON COLUMN AOS_ORGN.CCREATORID IS '创建者ID';

COMMENT ON COLUMN AOS_ORGN.DCREATEDATE IS '创建日期';

COMMENT ON COLUMN AOS_ORGN.CUPDATEUSERID IS '更新操作用户ID';

COMMENT ON COLUMN AOS_ORGN.DUPDATEDATE IS '更新日期';

COMMENT ON COLUMN AOS_ORGN.CADMINORGNID IS '管理组织ID';

COMMENT ON COLUMN AOS_ORGN.CCODE IS '编码';

COMMENT ON COLUMN AOS_ORGN.CTIMESTAMP IS '时间戳';

COMMENT ON COLUMN AOS_ORGN.IORDER IS '排序字段';



--
-- AOS_ORGNTYPE_CFG  (Table) 
--
CREATE TABLE AOS_ORGNTYPE_CFG
(
  CGUID          VARCHAR2(18)                  NOT NULL,
  CCODE          VARCHAR2(50),
  CNAME          VARCHAR2(100)                 NOT NULL,
  CNAMEEN        VARCHAR2(100),
  CDESCP         CLOB,
  ISTATUS        NUMBER(11)                     NOT NULL,
  CFORMID        VARCHAR2(100),
  IBUSINESSTYPE  NUMBER(11),
  CONSTRAINT AOS_ORGNTYPE_CFG_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON TABLE AOS_ORGNTYPE_CFG IS '组织类型表';



--
-- AOS_ORGN_DIRECTORY  (Table) 
--
CREATE TABLE AOS_ORGN_DIRECTORY
(
  CGUID        VARCHAR2(20)                    NOT NULL,
  CORGNID      VARCHAR2(18)                    NOT NULL,
  CORGNTYPEID  VARCHAR2(18)                    NOT NULL,
  CPARENTID    VARCHAR2(18)                    NOT NULL,
  CINNERCODE   VARCHAR2(500),
  ILEVEL       NUMBER(11),
  ILEAF        NUMBER(11),
  IENTITY      NUMBER(11),
  IORDER       NUMBER(11),
  CONSTRAINT AOS_ORGN_DIRECTORY_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.CGUID IS '主键';

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.CORGNID IS '组织ID';

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.CORGNTYPEID IS '组织类型ID';

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.CPARENTID IS '父节点ID';

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.CINNERCODE IS '内部码';

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.ILEVEL IS '等级';

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.ILEAF IS '是否是叶子节点';

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.IENTITY IS '是否是实体';

COMMENT ON COLUMN AOS_ORGN_DIRECTORY.IORDER IS '排序';



--
-- AOS_ORGN_TYPE_REL  (Table) 
--
CREATE TABLE AOS_ORGN_TYPE_REL
(
  CORGNID  VARCHAR2(18),
  CTYPEID  VARCHAR2(18)
);


--
-- AOS_RMS_AUTHTYPE  (Table) 
--
CREATE TABLE AOS_RMS_AUTHTYPE
(
  CGUID          VARCHAR2(18)                  NOT NULL,
  CNAME          VARCHAR2(100)                 NOT NULL,
  CCODE          VARCHAR2(50),
  CNOTNULLFIELD  VARCHAR2(500),
  CSERVICE       VARCHAR2(100),
  IDEFAULT       NUMBER(11),
  ISTATUS        NUMBER(11)                     DEFAULT 1
);


--
-- AOS_RMS_PERM_MENU  (Table) 
--
CREATE TABLE AOS_RMS_PERM_MENU
(
  CGUID         VARCHAR2(18)                   NOT NULL,
  CNAME         VARCHAR2(200),
  CPARENTID     VARCHAR2(18),
  CINNERCODE    VARCHAR2(500),
  CDESCP        VARCHAR2(255),
  CURL          VARCHAR2(255),
  CICON         VARCHAR2(255),
  COPENTYPE     VARCHAR2(50),
  ILEAF         NUMBER(11),
  IMENU         NUMBER(11),
  IAUTOEXPAND   NUMBER(11),
  ISTATUS       NUMBER(11)                      NOT NULL,
  IORDER        NUMBER(11),
  ICONTROL      NUMBER(11),
  CTIMESTAMP    VARCHAR2(18),
  CADMINORGNID  VARCHAR2(18)
);

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CGUID IS '权限主键';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CNAME IS '资源名称';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CPARENTID IS '父节点ID';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CINNERCODE IS '内部码';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CDESCP IS '权限描述';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CURL IS '资源标识';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CICON IS '菜单图标';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.COPENTYPE IS '打开方式(new:新窗口;aosmodal:弹出层;modal:模态窗)';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.ILEAF IS '是否是叶子节点(1:叶子节点；0父节点)';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.IMENU IS '是否是菜单(1 是)';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.IAUTOEXPAND IS '是否自动展开(1:是)';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.ISTATUS IS '状态（1：可用；0：禁用）';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.IORDER IS '顺序';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.ICONTROL IS '是否访问控制（1是form资源，0不控制）';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CTIMESTAMP IS '时间戳';

COMMENT ON COLUMN AOS_RMS_PERM_MENU.CADMINORGNID IS '所属管理组织';



--
-- AOS_RMS_ORGNTYPE_PERM_REL_CFG  (Table) 
--
CREATE TABLE AOS_RMS_ORGNTYPE_PERM_REL_CFG
(
  CORGNTYPEID  VARCHAR2(18)                    NOT NULL,
  CPERMID      VARCHAR2(18)                    NOT NULL,
  CONSTRAINT AOS_RMS_ORGNTYPE_PERM_REL_PK
  PRIMARY KEY
  (CORGNTYPEID, CPERMID)
);


--
-- AOS_RMS_PWDTYPE  (Table) 
--
CREATE TABLE AOS_RMS_PWDTYPE
(
  CNAME                  VARCHAR2(100),
  CGUID                  VARCHAR2(18)          NOT NULL,
  CCODE                  VARCHAR2(50),
  IMINLENGTH             NUMBER(11),
  CDESP                  VARCHAR2(255),
  CDEFAULTPWD            VARCHAR2(50),
  IINCLUDECHARNUM        NUMBER(11),
  IINCLUDEBIGSMALL       NUMBER(11),
  IINCLUDESPECIALCHAR    NUMBER(11),
  IALLOWCHANGE           NUMBER(11),
  IFIRSTLOGMUSTCHANGE    NUMBER(11),
  IVALIDATEFOREVER       NUMBER(11),
  IVALIDATEDAYS          NUMBER(11),
  INOTICEWHENEXPRIED     NUMBER(11),
  IINVALIDATEPROMPTDAYS  NUMBER(11),
  ILOCK                  NUMBER(11),
  ITIMESTOLOCK           NUMBER(11),
  IDEFAULT               NUMBER(11),
  ISTATUS                NUMBER(11)
);

COMMENT ON COLUMN AOS_RMS_PWDTYPE.CNAME IS '名称';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.CCODE IS '编码';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IMINLENGTH IS '最小长度';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.CDESP IS '描述';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.CDEFAULTPWD IS '策略预置密码';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IINCLUDECHARNUM IS '包含数字字母';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IINCLUDEBIGSMALL IS '包含大小写';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IINCLUDESPECIALCHAR IS '包含符号';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IALLOWCHANGE IS '允许修改密码';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IFIRSTLOGMUSTCHANGE IS '首次登录必须修改密码';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IVALIDATEFOREVER IS '密码永久有效';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IVALIDATEDAYS IS '密码有效天数';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.INOTICEWHENEXPRIED IS '过期之前提醒';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IINVALIDATEPROMPTDAYS IS '过期提示天数';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.ILOCK IS '密码错误锁定';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.ITIMESTOLOCK IS '连续错误次数';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.IDEFAULT IS '是否默认策略';

COMMENT ON COLUMN AOS_RMS_PWDTYPE.ISTATUS IS '状态';



--
-- AOS_RMS_ROLE  (Table) 
--
CREATE TABLE AOS_RMS_ROLE
(
  CGUID         VARCHAR2(18)                   NOT NULL,
  CNAME         VARCHAR2(200)                  NOT NULL,
  CDESCP        VARCHAR2(300),
  ISTATUS       NUMBER(11),
  CADMINORGNID  VARCHAR2(18),
  CTIMESTAMP    VARCHAR2(18)                   NOT NULL,
  CORGNID       VARCHAR2(20),
  CHECK ("ISTATUS" IS NOT NULL),
  CHECK ("ISTATUS" IS NOT NULL),
  CONSTRAINT AOS_RMS_ROLE_PK
  PRIMARY KEY
  (CGUID)
);


--
-- AOS_RMS_ROLE_PERM_REL  (Table) 
--
CREATE TABLE AOS_RMS_ROLE_PERM_REL
(
  CROLEID  VARCHAR2(18)                        NOT NULL,
  CPERMID  VARCHAR2(18)                        NOT NULL,
  CONSTRAINT AOS_RMS_ROLE_PERM_REL_PK
  PRIMARY KEY
  (CROLEID, CPERMID)
);

COMMENT ON COLUMN AOS_RMS_ROLE_PERM_REL.CROLEID IS '角色ID';

COMMENT ON COLUMN AOS_RMS_ROLE_PERM_REL.CPERMID IS '权限ID';



--
-- AOS_RMS_USER  (Table) 
--
CREATE TABLE AOS_RMS_USER
(
  CGUID           VARCHAR2(18)                 NOT NULL,
  CCODE           VARCHAR2(100)                NOT NULL,
  CPWD            VARCHAR2(500),
  CNAME           VARCHAR2(500)                NOT NULL,
  CIDENTITY       VARCHAR2(100),
  CEMP            VARCHAR2(18),
  CADMINORGNID    VARCHAR2(18),
  ISTATUS         NUMBER(11)                    DEFAULT 1                     NOT NULL,
  CUSERTYPE       VARCHAR2(18)                 NOT NULL,
  CPWDTYPE        VARCHAR2(18)                 NOT NULL,
  CNAMESTARTDATE  VARCHAR2(10),
  CNAMEENDDATE    VARCHAR2(10),
  CPWDSTARTDATE   VARCHAR2(10),
  CPWDENDDATE     VARCHAR2(10),
  ICONCURRENT     NUMBER(11),
  CAUTHTYPE       VARCHAR2(18),
  ICHANGEPWD      NUMBER(11),
  LASTLOGINDATE   VARCHAR2(100),
  CTIMESTAMP      VARCHAR2(18),
  CONSTRAINT AOS_RMS_USER_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_RMS_USER.CGUID IS '主键';

COMMENT ON COLUMN AOS_RMS_USER.CCODE IS '用户账号';

COMMENT ON COLUMN AOS_RMS_USER.CPWD IS '用户密码';

COMMENT ON COLUMN AOS_RMS_USER.CNAME IS '真实姓名';

COMMENT ON COLUMN AOS_RMS_USER.CIDENTITY IS '用户唯一标识';

COMMENT ON COLUMN AOS_RMS_USER.CEMP IS '关联职员id';

COMMENT ON COLUMN AOS_RMS_USER.CADMINORGNID IS '所属管理组织id';

COMMENT ON COLUMN AOS_RMS_USER.ISTATUS IS '是否可用(1为可用，0为不可用)';

COMMENT ON COLUMN AOS_RMS_USER.CUSERTYPE IS '用户类型';

COMMENT ON COLUMN AOS_RMS_USER.CPWDTYPE IS '密码类型';

COMMENT ON COLUMN AOS_RMS_USER.CNAMESTARTDATE IS '账号生效日期';

COMMENT ON COLUMN AOS_RMS_USER.CNAMEENDDATE IS '账号失效日期';

COMMENT ON COLUMN AOS_RMS_USER.CPWDSTARTDATE IS '密码生效日';

COMMENT ON COLUMN AOS_RMS_USER.CPWDENDDATE IS '密码失效日期';

COMMENT ON COLUMN AOS_RMS_USER.ICONCURRENT IS '是否允许多人同时登录';

COMMENT ON COLUMN AOS_RMS_USER.CAUTHTYPE IS '登录认证方式';

COMMENT ON COLUMN AOS_RMS_USER.ICHANGEPWD IS '是否需要修改密码(1为是0为否)';

COMMENT ON COLUMN AOS_RMS_USER.LASTLOGINDATE IS '上一次登陆系统时间';

COMMENT ON COLUMN AOS_RMS_USER.CTIMESTAMP IS '时间戳';



--
-- AOS_RMS_USER_ORGN_PERM_REL  (Table) 
--
CREATE TABLE AOS_RMS_USER_ORGN_PERM_REL
(
  CUSERORGNID  VARCHAR2(18),
  CPERMID      VARCHAR2(18)
);


--
-- AOS_CUSTOMDATA_CLASS  (Table) 
--
CREATE TABLE AOS_CUSTOMDATA_CLASS
(
  CGUID            VARCHAR2(18)                NOT NULL,
  CCODE            VARCHAR2(18),
  CNAME            VARCHAR2(50),
  CADMINORGNID     VARCHAR2(18),
  ISTREE           NUMBER(11),
  IISOLATION       NUMBER(11),
  ISTATUS          NUMBER(11),
  CTIMESTAMP       VARCHAR2(20),
  ISHOWSTYLE       NUMBER(11),
  CDEFINE1         VARCHAR2(100),
  CDEFINE2         VARCHAR2(100),
  CDEFINE3         VARCHAR2(100),
  CDEFINE1VSCGUID  VARCHAR2(18),
  CDEFINE2VSCGUID  VARCHAR2(18),
  CDEFINE3VSCGUID  VARCHAR2(18),
  CONSTRAINT AOS_CUSTOMDATA_CLASS_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON TABLE AOS_CUSTOMDATA_CLASS IS '自定义数据分类表';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CCODE IS '数据分类编码';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CNAME IS '数据分类名称';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CADMINORGNID IS '管理组织ID';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.ISTREE IS '是否树形结构数据';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.IISOLATION IS '是否隔离数据(0:分类不共享；1:分类共享，数据不共享；2:分类共享，数据共享)';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.ISTATUS IS '状态';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CTIMESTAMP IS '时间戳';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.ISHOWSTYLE IS '显示方式(0:下拉；1:参照)';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CDEFINE1 IS '自定义属性1';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CDEFINE2 IS '自定义属性2';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CDEFINE3 IS '自定义属性3';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CDEFINE1VSCGUID IS '自定义属性1取值来源id';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CDEFINE2VSCGUID IS '自定义属性2取值来源id';

COMMENT ON COLUMN AOS_CUSTOMDATA_CLASS.CDEFINE3VSCGUID IS '自定义属性2取值来源id';



--
-- AOS_CUSTOMQUERY_DEF  (Table) 
--
CREATE TABLE AOS_CUSTOMQUERY_DEF
(
  CGUID            VARCHAR2(18)                NOT NULL,
  CCODE            VARCHAR2(50)                NOT NULL,
  CNAME            VARCHAR2(50),
  CSQL             CLOB,
  IPAGE            NUMBER(11),
  CCOLUMNDEFINE    CLOB,
  CQUERYCONDITION  CLOB,
  CCHARTDEFINE     CLOB,
  CCHARTTYPE       VARCHAR2(20),
  ISTATUS          NUMBER(11),
  ISYS             NUMBER(11),
  CONSTRAINT AOS_CUSTOMQUERY_DEF_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.CGUID IS '主键';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.CCODE IS '查询code';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.CNAME IS '查询名称';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.CSQL IS '查询sql';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.IPAGE IS '是否分页';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.CCOLUMNDEFINE IS '列定义';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.CQUERYCONDITION IS '查询条件json';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.CCHARTDEFINE IS '图表定义';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.CCHARTTYPE IS '图表类型';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.ISTATUS IS '状态';

COMMENT ON COLUMN AOS_CUSTOMQUERY_DEF.ISYS IS '是否系统内置(0：非系统内置；1：系统内置)';

INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('10', 'shortcut', '快捷方式统计', 'select pa.cName as cAuthName,count(*) as sccount 
from aos_user_shortcut pus 
left join aos_rms_perm_menu pa on pus.cAuthID=pa.cguid
group by pa.cName
order by sccount', 
0, '[{"field":"cAuthName","text":"功能","width":300,"dataType":"string"},{"field":"sccount","text":"次数","width":100,"dataType":"int","align":"right"}]', NULL, '', '', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('189480567546201078', 'portal_user', 'portal使用统计', 'select 
max(p.cTitle) as cTitle,
count(up.cPortalGuid) as pcount 
from aos_portal_userset up 
right join aos_portal p on up.cPortalGuid=p.cGuid 
group by up.cPortalGuid
order by pcount desc', 0, '[{"field":"cTitle","text":"portal名称","width":300,"dataType":"string","align":"left"},{"field":"pcount","text":"使用数","width":100,"dataType":"int","align":"right"}]', NULL, '', '', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('189480567546201161', 'auth_visit', '菜单访问统计', 'SELECT
  a.cName as cName,
  a.cURL as cURL,
  t.visitcount as visitcount
FROM
(
  SELECT
    to_char(SUBSTR(cContent,2,200)) AS url,
    COUNT (*) AS visitcount
  FROM
    aos_tracelog
  WHERE
    iType = 1
  GROUP BY
    to_char(SUBSTR(cContent,2,200))
) t
LEFT JOIN
aos_rms_perm_menu a
 ON a.CURL = t.url
WHERE
a.iMenu = 1
and a.cURL is not null
and a.curl != ''''
ORDER BY
  t.visitcount DESC,
  a.cURL ASC', 1, '[{"field":"cName","text":"权限名称","width":250},{"field":"cURL","text":"权限标识","width":500},{"field":"visitcount","text":"次数","width":105}]', NULL, '', '', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('2', 'tracelog_sql', 'SQL效率分析', 'SELECT
  to_char(SUBSTR(cContent,2,3000)) as cContent,
  round(AVG(iTime)) AS avgtime,
  MAX (iTime) AS maxtime,
  MIN (iTime) AS mintime,
  COUNT (*) AS sqlcount,
  round(AVG(iTime)) AS avgresultnum
FROM
  aos_tracelog
WHERE
  iType = 2
GROUP BY
  to_char(SUBSTR(cContent,2,3000))
ORDER BY
  AVG (iTime) DESC', 1, '[{"field":"cContent","text":"sql","width":400,"dataType":"string"},{"field":"avgtime","text":"平均时间","width":70,"dataType":"int","align":"right"},{"field":"maxtime","text":"最长时间","width":70,"dataType":"int","align":"right"},{"field":"mintime","text":"最短时间","width":70,"dataType":"int","align":"right"},{"field":"sqlcount","text":"访问总数","width":70,"dataType":"int","align":"right"},{"field":"avgresultnum","text":"平均结果数量","width":90,"dataType":"int","align":"right"}]', NULL, '', '', 1, 0);


INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('3', 'tracelog_visit_day', '访问量统计【天】', 'select   
substr(cTime, 1, 10) as day,  
count(*) as visitcount 
from aos_tracelog 
where   
iType=1 and cContent like ''/canvas/%'' 
and $between(cTime,startDay,endDay) 
and (current_date - TO_DATE(cTime, ''yyyy-MM-dd HH24:MI:SS''))  <=  30
group by substr(cTime, 1, 10)
order by substr(cTime, 1, 10) desc', 0, '[{"field":"day","text":"日期","width":100},{"field":"visitcount","text":"访问次数","width":100,"dataType":"int","align":"right"}]', NULL, '', '', 1, 0);




INSERT into AOS_CUSTOMQUERY_DEF (CGUID,CCODE,CNAME,CSQL,IPAGE,CCOLUMNDEFINE,CQUERYCONDITION,CCHARTDEFINE,CCHARTTYPE,ISTATUS,ISYS) values ('256718840091541052','browser','浏览器统计','select t.os,  
t.browserType, 
count(*) as countNum 
from  
(select  
to_char(substr(substr(cParams2, INSTR(cParams2, ''os='') + 3),1,   
INSTR(substr(cParams2, INSTR(cParams2,''os='') + 3), '';'') -1)) as os, 
to_char(substr(substr(cParams2, INSTR(cParams2, ''browserType='') + 12),1,   
INSTR(substr(cParams2, INSTR(cParams2, ''browserType='') + 12), '';'') -1)) as browserType 
 from aos_tracelog  
where itype = 9 and cParams2 is not null 
and cParams2 like ''os%''
) t 
GROUP BY t.os, t.browserType 
order by countNum desc',0,'[{"field":"os","text":"系统","width":200,"dataType":"string"},{"field":"browsertype","text":"浏览器","width":200,"dataType":"string"},{"field":"countnum","text":"总计","width":100,"dataType":"int","align":"right"}]', EMPTY_CLOB(), EMPTY_CLOB(),null,1,0);





INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('263411022255311646', 'logout', '退出行为统计', 'select to_char(SUBSTR(cParams,1,10))  as name,count(*) as value 
from aos_tracelog 
where to_char(SUBSTR(cContent,1,10)) = ''用户退出''
group by to_char(SUBSTR(cParams,1,10)) 
order by value desc ', 0, '[{"field":"name","text":"退出形式","width":200,"dataType":"string"},{"field":"value","text":"次数","width":100,"dataType":"int","align":"right"}]', NULL, '{
    title : {
        text: ''退出形式'',
  x:''center''
    },
    legend: {
        orient : ''vertical'',
        x : ''left'',
        data:getGridValue("name")
    },
    series : [
        {
            name:''退出形式'',
            type:''pie'',
            radius : ''55%'',
            center: [''50%'', ''60%''],
            data:gridData
        }
    ]
}', 'pie', 1, 0);




INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('256718840091541108', 'screen', '分辨率统计', 'select 
t.name,
count(*) as countNum 
from(
select substr(to_char(SUBSTR(cParams2,1,50)), 1, INSTR(to_char(SUBSTR(cParams2,1,50)), '','') - 1) as name
from aos_tracelog 
where cContent like ''%登录'' 
) t
group by t.name  
order by countNum desc', 0, '[{"field":"name","text":"分辨率","width":200,"dataType":"string"},{"field":"countnum","text":"访问次数","width":100,"dataType":"int","align":"right"}]', NULL, '', '', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('256718840091541431', 'log_visit_ip', '访问IP统计', 'select  to_char(SUBSTR(cParams,2,50)) as ip,count(*) as visitcount
from aos_log 
where cLogName like ''%登录''
group by to_char(SUBSTR(cParams,2,50)) 
order by visitcount desc', 0, '[{"field":"ip","text":"IP","width":200,"dataType":"string"},{"field":"visitcount","text":"访问次数","width":100,"dataType":"int","align":"right"}]', NULL, '', '', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('263411022255311581', 'tracelog_visit_hour', '访问量统计【时段】', 'select substr(cTime, 1, 10) as visittime ,count(*) as visitcount 
from aos_tracelog 
where iType=1 and cContent like ''/canvas/%''
group by substr(cTime, 1, 10)
order by substr(cTime, 1, 10)', 0, '[{"field":"visittime","text":"时间段","width":100},{"field":"visitcount","text":"访问次数","width":100,"dataType":"int","align":"right"}]', NULL, ' {
  tooltip: {
    show: true
  },
  legend: {
    data:["时段访问量"]
  },
  xAxis : [
    {
      type : "catery",
      data : getGridValue("visittime")
    }
  ],
  yAxis : [
    {
      type : "value"
    }
  ],
  series : [
    {
      "name":"时段访问量",
      "type":"bar",
      "data":getGridValue("visitcount")
    }
  ]
}', 'bar', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('956769410801710219', 'log_operation_detail', '业务日志统计详情', 'select cTime,cLogName,cParams,cUserName 
from aos_log
where $equal(cLogName,cLogName)  and $equal(cUserName,cUserName) 
order by cTime desc', 1, '[{"field":"cTime","text":"时间","width":150,"dataType":"string"},{"field":"cUserName","text":"用户名","width":100,"dataType":"string"},{"field":"cLogName","text":"日志名称","width":120,"dataType":"string"},{"field":"cParams","text":"参数","width":450,"prop":"autoEscape=\"true\""}]', NULL, '', '', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('9', 'log_operation', '业务日志统计', 'select cLogName,cUserName,count(*) as visitcount 
from aos_log 
group by cLogName,cUserName
order by visitcount desc', 1, '[{"field":"cLogName","text":"日志","width":300,"dataType":"string","align":"left","drilltitle":"业务日志统计详情","drillid":"log_operation_detail","drillfield":"cLogName,cUserName","drillpopwidth":"450","drillpopheight":"300"},{"field":"visitcount","text":"次数","width":100,"dataType":"int","align":"left","prop":"","drill":"cLogName","drillField":"cLogName","drillUrl":"log_detail","drillID":"log_operation_detail","drillPopWidth":"","drillPopHeight":"","drillTitle":"日志详情","drilltitle":"","drillid":"","drillfield":"","drillpopwidth":"","drillpopheight":""},{"field":"cUserName","text":"用户登录名","width":250,"drilltitle":"业务日志统计详情","drillid":"log_operation_detail","drillfield":"cLogName,cUserName","drillpopwidth":"450","drillpopheight":"300"}]', NULL, '', '', 1, 0);


INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('5', 'tracelog_visit_person', '访问量统计【人】', 'select cUserName,count(*) as visitcount 
from aos_tracelog 
where iType=1 and cContent like ''/canvas/%'' and (cUserName is not NULL) 
and  rownum < 31
group by cUserName 
order by visitcount desc
', 0, '[{"field":"cUserName","text":"用户名","width":100},{"field":"visitcount","text":"访问次数","width":100,"dataType":"int","align":"right"}]', NULL, ' {
  tooltip: {
    show: true
  },
  legend: {
    data:["访问量"]
  },
  xAxis : [
    {
      type : "catery",
      data : getGridValue("cusername")
    }
  ],
  yAxis : [
    {
      type : "value"
    }
  ],
  series : [
    {
      "name":"访问量",
      "type":"bar",
      "data":getGridValue("visitcount")
    }
  ]
}', 'bar', 1, 0);




INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('6', 'tracelog_exception', '异常统计', 'select substr(cTime, 1, 10) as visitday ,
count(*) as visitcount 
from aos_tracelog 
where iType = 3  
and (current_date - TO_DATE(cTime, ''yyyy-MM-dd HH24:MI:SS''))  <=  30
and $between(iTime,startDay,endDay) 
group by substr(cTime, 1, 10)
order by substr(cTime, 1, 10) desc', 0, '[{"field":"visitday","text":"日期","width":200,"dataType":"date","drilltitle":"异常统计详情","drillid":"tracelog_exception_detail","drillfield":"visitday","drillpopwidth":"600","drillpopheight":"300","align":"left"},{"field":"visitcount","text":"异常数量","width":100,"dataType":"int","align":"right","drillID":"tracelog_exception_detail","drillField":"visitday","drillTitle":"异常详情","drilltitle":"异常统计详情","drillid":"tracelog_exception_detail","drillfield":"visitday","drillpopwidth":"600","drillpopheight":"300"}]', '[{"field":"startDay","fieldName":"日期起","fieldType":"combobox","dataType":"jsonData","jsonData":"[{''id'':''start'',''text'':''start日期''}]"},{"field":"endDay","fieldName":"日期止","fieldType":"date"}]', ' {
    tooltip : {
  trigger: ''axis''
    },
    legend: {
  data:[''异常数量'']
    },
    dataZoom : {
  show : true,
  realtime : true,
  start : 20,
  end : 80
    },
    xAxis : [
  {
      type : ''catery'',
      boundaryGap : false,
      data : getGridValue("visitday")
  }
    ],
    yAxis : [
  {
      type : ''value''
  }
    ],
    series : [
  {
      name:''异常数量'',
      type:''line'',
      data:getGridValue("visitcount")
  }
    ]
};', 'line', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('167814414125010388', 'tracelog_exception_detail', '异常统计详情', 'select cUserName,cTime,cContent
from aos_tracelog
where iType=3 and substr(cTime, 1, 10)={visitday}  
order by cTime desc', 0, '[{"field":"cUserName","text":"用户名","width":100,"dataType":"string"},{"field":"cTime","text":"操作时间","width":150,"dataType":"date"},{"field":"cContent","text":"异常信息","width":550}]', '[{"field":"date","fieldName":"日期","fieldType":"date"}]', '', '', 1, 0);



INSERT INTO aos_customquery_def (cGuid, cCode, cName, cSql, iPage, cColumnDefine, cQueryCondition, cChartDefine, cChartType,iStatus, iSys)
VALUES ('12132323', 'tracelog_url', 'Url效率分析', 'SELECT
  to_char(SUBSTR(cContent,2,3000)) AS url,
  round(AVG(iTime))  AS avgtime,
  MAX (iTime) AS maxtime,
  MIN (iTime) AS mintime,
  COUNT (*) AS urlcount
FROM
  aos_tracelog
WHERE
  iType = 1
AND $like(cContent, url)
GROUP BY
  to_char(SUBSTR(cContent,2,3000))
ORDER BY
  { sortField : avgtime } { sortOrder : DESC }', 1, '[{"field":"url","text":"url","width":400,"dataType":"string"},{"field":"avgtime","text":"平均时间","width":70,"dataType":"int","align":"right"},{"field":"maxtime","text":"最长时间","width":70,"dataType":"int","align":"right"},{"field":"mintime","text":"最短时间","width":70,"dataType":"int","align":"right"},{"field":"urlcount","text":"访问总数","width":70,"dataType":"int","align":"right"}]', '[{"field":"url","fieldName":"Url","fieldType":"text"}]', '', '', 1, 0);







--
-- AOS_LOG  (Table) 
--
CREATE TABLE AOS_LOG
(
  CGUID         VARCHAR2(18)                   NOT NULL,
  CUSERID       VARCHAR2(18),
  CUSERNAME     VARCHAR2(100),
  CLOGNAME      VARCHAR2(255),
  CPARAMS       CLOB,
  CTIME         VARCHAR2(23),
  CADMINORGNID  VARCHAR2(18),
  CORGNID       VARCHAR2(18)
);

COMMENT ON TABLE AOS_LOG IS '业务日志表';

COMMENT ON COLUMN AOS_LOG.CGUID IS '主键';

COMMENT ON COLUMN AOS_LOG.CUSERID IS '用户id';

COMMENT ON COLUMN AOS_LOG.CUSERNAME IS '用户帐号';

COMMENT ON COLUMN AOS_LOG.CLOGNAME IS '日志描述信息';

COMMENT ON COLUMN AOS_LOG.CPARAMS IS '操作参数';

COMMENT ON COLUMN AOS_LOG.CTIME IS '日志记录时间';

COMMENT ON COLUMN AOS_LOG.CADMINORGNID IS '记录日志的管理组织';

COMMENT ON COLUMN AOS_LOG.CORGNID IS '记录日志的业务组织id';



--
-- AOS_TRACELOG  (Table) 
--
CREATE TABLE AOS_TRACELOG
(
  CGUID       VARCHAR2(18)                     NOT NULL,
  CUSERID     VARCHAR2(18),
  CUSERNAME   VARCHAR2(255),
  CTIME       VARCHAR2(23),
  CCONTENT    CLOB,
  ITIME       NUMBER(11),
  CPARAMS     CLOB,
  CPARAMS2    CLOB,
  IRESULTNUM  NUMBER(11),
  ITYPE       NUMBER(11)
);

COMMENT ON COLUMN AOS_TRACELOG.CGUID IS '主键';

COMMENT ON COLUMN AOS_TRACELOG.CUSERID IS '用户id';

COMMENT ON COLUMN AOS_TRACELOG.CUSERNAME IS '用户帐号';

COMMENT ON COLUMN AOS_TRACELOG.CTIME IS '访问时间';

COMMENT ON COLUMN AOS_TRACELOG.CCONTENT IS '路径访问存路径，sql访问存sql';

COMMENT ON COLUMN AOS_TRACELOG.ITIME IS '耗费时间';

COMMENT ON COLUMN AOS_TRACELOG.CPARAMS IS '参数，常用字段';

COMMENT ON COLUMN AOS_TRACELOG.CPARAMS2 IS '参数2，对cparams的扩展，不常用';

COMMENT ON COLUMN AOS_TRACELOG.IRESULTNUM IS '针对sql，查询或更新的条数';

COMMENT ON COLUMN AOS_TRACELOG.ITYPE IS '日志类型：0其他日志，1Url日志，2sql日志，3异常日志';



--
-- AOS_ANALYDATA_LIST_CFG  (Table) 
--
CREATE TABLE AOS_ANALYDATA_LIST_CFG
(
  CGUID            VARCHAR2(18)                NOT NULL,
  CCODE            VARCHAR2(500)               NOT NULL,
  CCOLUMNDEFINE    CLOB                         NOT NULL,
  CQUERYCONDITION  CLOB,
  CANALYSISSQL     CLOB                         NOT NULL,
  CCHARTDEFINE     CLOB,
  CCHARTTYPE       VARCHAR2(100),
  CONSTRAINT AOS_ANALYDATA_LIST_CFG_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_ANALYDATA_LIST_CFG.CCODE IS '分析类型code';

COMMENT ON COLUMN AOS_ANALYDATA_LIST_CFG.CCOLUMNDEFINE IS '列属性';

COMMENT ON COLUMN AOS_ANALYDATA_LIST_CFG.CQUERYCONDITION IS '查询条件';

COMMENT ON COLUMN AOS_ANALYDATA_LIST_CFG.CANALYSISSQL IS '查询sql';

COMMENT ON COLUMN AOS_ANALYDATA_LIST_CFG.CCHARTDEFINE IS '图表定义';

COMMENT ON COLUMN AOS_ANALYDATA_LIST_CFG.CCHARTTYPE IS '图表类型';

INSERT INTO aos_analydata_list_cfg (cGuid, cCode, cColumnDefine, cQueryCondition, cAnalysisSql, cChartDefine, cChartType)
VALUES ('1', 'browser', '[{\"field\":\"os\",\"text\":\"系统\",\"width\":200,\"dataType\":\"string\"},{\"field\":\"browsertype\",\"text\":\"浏览器\",\"width\":200,\"dataType\":\"string\"},{\"field\":\"countnum\",\"text\":\"总计\",\"width\":100,\"dataType\":\"int\",\"align\":\"right\"}]', '[{ \"field\" : \"browserType\",\r\n \"fieldName\" : \"浏览器类型\",\r\n \"fieldType\" : \"text\" }]', 'select t.* from(
SELECT
  cField_1,
  cValue_1,
  cField_2,
  cValue_2 ,
  cField_3,
  sum(cast(cValue_3 as int)) AS cValue_3,
  cField_4,
  cValue_4,
  cField_5,
  sum(cast(cValue_3 as int)) AS cValue_5
FROM
  aos_analydata_result
WHERE
  #equal(analysisCode,analysisCode)
AND $equal(mac, mac)
AND $equal(productCode, productCode)
AND $equal(cValue_2, browserType)
GROUP BY
  cField_1,
  cValue_1,
  cField_2,
  cValue_2,
  cField_3,
  cField_4,
  cValue_4,
  cField_5
) t
ORDER BY
  t.cValue_3 DESC', '{\r\n    title : {\r\n        text: \''系统、浏览器数量\'',\r\n  x:\''center\''\r\n    },\r\n    legend: {\r\n        orient : \''vertical\'',\r\n        x : \''left\'',\r\n        data:getGridValue(\"os\",\"browsertype\")\r\n    },\r\n    series : [\r\n        {\r\n            name:\''系统、浏览器数量\'',\r\n            type:\''pie\'',\r\n            radius : \''55%\'',\r\n            center: [\''50%\'', \''60%\''],\r\n            data:gridData\r\n        }\r\n    ]\r\n}', 'pie');


INSERT INTO aos_analydata_list_cfg (cGuid, cCode, cColumnDefine, cQueryCondition, cAnalysisSql, cChartDefine, cChartType)
VALUES ('2', 'sql', '[{\"field\":\"cContent\",\"text\":\"sql\",\"width\":400,\"dataType\":\"string\"},{\"field\":\"avgtime\",\"text\":\"平均时间\",\"width\":70,\"dataType\":\"int\",\"align\":\"right\"},{\"field\":\"maxtime\",\"text\":\"最长时间\",\"width\":70,\"dataType\":\"int\",\"align\":\"right\"},{\"field\":\"mintime\",\"text\":\"最短时间\",\"width\":70,\"dataType\":\"int\",\"align\":\"right\"},{\"field\":\"sqlcount\",\"text\":\"访问总数\",\"width\":70,\"dataType\":\"int\",\"align\":\"right\"},{\"field\":\"avgresultnum\",\"text\":\"平均结果数量\",\"width\":90,\"dataType\":\"int\",\"align\":\"right\"}]', '', 'select t.* from(
select 
cField_1,
cValue_1,
cField_2,
(sum(cValue_7)/sum(cValue_5)) as cValue_2,
cField_3,
max(cValue_3) as cValue_3,
cField_4,
min(cValue_4) as cValue_4,
cField_5,
sum(cValue_5) as cValue_5,
cfield_6,
(sum(cValue_8)/sum(cValue_5)) as cValue_6
FROM
  aos_analydata_result
where 
#equal(analysisCode,analysisCode)
AND $equal(mac, mac)
AND $equal(productCode, productCode)
group BY cField_1,cValue_1,cField_2,cField_3,cField_4,cField_5,cfield_6
) t
ORDER by t.cValue_2 desc, t.cValue_3 desc', NULL, 'line');


INSERT INTO aos_analydata_list_cfg (cGuid, cCode, cColumnDefine, cQueryCondition, cAnalysisSql, cChartDefine, cChartType)
VALUES ('34', 'url', '[{\"field\":\"url\",\"text\":\"url\",\"width\":400,\"dataType\":\"string\"},{\"field\":\"avgtime\",\"text\":\"平均时间\",\"width\":70,\"dataType\":\"int\",\"align\":\"right\"},{\"field\":\"maxtime\",\"text\":\"最长时间\",\"width\":70,\"dataType\":\"int\",\"align\":\"right\"},{\"field\":\"mintime\",\"text\":\"最短时间\",\"width\":70,\"dataType\":\"int\",\"align\":\"right\"},{\"field\":\"urlcount\",\"text\":\"访问总数\",\"width\":70,\"dataType\":\"int\",\"align\":\"right\"}]', NULL, 'select t.* from(
select 
cField_1,
cValue_1,
cField_2,
(sum(cValue_6)/sum(cValue_5)) as cValue_2,
cField_3,
max(cValue_3) as cValue_3,
cField_4,
min(cValue_4) as cValue_4,
cField_5,
sum(cValue_5) as cValue_5
FROM
  aos_analydata_result
where 
#equal(analysisCode,analysisCode)
AND $equal(mac, mac)
AND $equal(productCode, productCode)
group BY cField_1,cValue_1,cField_2,cField_3,cField_4,cField_5
) t
order by t.cValue_2 desc', NULL, 'line');



--
-- AOS_ANALYDATA_RESULT  (Table) 
--
CREATE TABLE AOS_ANALYDATA_RESULT
(
  CGUID           VARCHAR2(18)                 NOT NULL,
  ANALYSISCODE    VARCHAR2(100),
  ANALYSISNAME    VARCHAR2(100),
  MAC             VARCHAR2(50),
  PRODUCTCODE     VARCHAR2(50),
  PRODUCTNAME     VARCHAR2(100),
  PRODUCTVERSION  VARCHAR2(100),
  UPLOADDATE      VARCHAR2(50),
  CFIELD_1        VARCHAR2(50),
  CFIELD_2        VARCHAR2(50),
  CFIELD_3        VARCHAR2(50),
  CFIELD_4        VARCHAR2(50),
  CFIELD_6        VARCHAR2(50),
  CFIELD_7        VARCHAR2(50),
  CFIELD_8        VARCHAR2(50),
  CFIELD_9        VARCHAR2(50),
  CFIELD_10       VARCHAR2(50),
  CVALUE_1        CLOB,
  CVALUE_2        CLOB,
  CVALUE_3        CLOB,
  CVALUE_4        CLOB,
  CVALUE_5        CLOB,
  CVALUE_6        CLOB,
  CVALUE_7        CLOB,
  CVALUE_8        CLOB,
  CVALUE_9        CLOB,
  CVALUE_10       CLOB,
  CFIELD_5        VARCHAR2(50),
  CONSTRAINT AOS_ANALYDATA_RESULT_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.ANALYSISCODE IS '分析类型code';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.ANALYSISNAME IS '分析类型名称';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.MAC IS '应用服务器机器码';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.PRODUCTCODE IS '产品编号';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.PRODUCTNAME IS '产品名称';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.PRODUCTVERSION IS '产品版本';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.UPLOADDATE IS '上传时间';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_1 IS '字段1';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_2 IS '字段2';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_3 IS '字段3';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_4 IS '字段4';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_6 IS '字段6';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_7 IS '字段7';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_8 IS '字段8';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_9 IS '字段9';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_10 IS '字段10';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_1 IS '字段1值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_2 IS '字段2值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_3 IS '字段3值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_4 IS '字段4值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_5 IS '字段5值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_6 IS '字段6值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_7 IS '字段7值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_8 IS '字段8值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_9 IS '字段9值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CVALUE_10 IS '字段10值';

COMMENT ON COLUMN AOS_ANALYDATA_RESULT.CFIELD_5 IS '字段5';



--
-- AOS_PRINT_LIST_CONFIG_FIELD  (Table) 
--
CREATE TABLE AOS_PRINT_LIST_CONFIG_FIELD
(
  CGUID            VARCHAR2(18)                NOT NULL,
  CLISTCONFIGGUID  VARCHAR2(18)                NOT NULL,
  CCODE            VARCHAR2(50)                NOT NULL,
  CNAME            VARCHAR2(100),
  CTYPE            VARCHAR2(20),
  CONSTRAINT AOS_PRINT_LIST_CONFIG_FIE_PK
  PRIMARY KEY
  (CGUID)
);


--
-- AOS_PRINT_TEMPLATE  (Table) 
--
CREATE TABLE AOS_PRINT_TEMPLATE
(
  CGUID                VARCHAR2(18)            NOT NULL,
  CCODE                VARCHAR2(50),
  CNAME                VARCHAR2(100),
  IDEFAULT             NUMBER(11),
  CTYPE                VARCHAR2(20)            NOT NULL,
  ISYSTEM              NUMBER(11),
  CTEMPLATE            CLOB,
  CWPSTEMPLATE         CLOB,
  CDEFAULTTEMPLATE     CLOB,
  CWPSDEFAULTTEMPLATE  CLOB,
  ILINENUM             NUMBER(11),
  IMODULENUM           NUMBER(11),
  CORGNID              VARCHAR2(18),
  CTIMESTAMP           VARCHAR2(20),
  INESTEDFLAG          NUMBER(11),
  IWFCHECK             NUMBER(11),
  CTOTALFLAG           VARCHAR2(10),
  IFILLBLANKLINE       NUMBER(11),
  IDOMESTIC            NUMBER(11),
  CONSTRAINT AOS_PRINT_TEMPLATE_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.CCODE IS '编码';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.CNAME IS '名称';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.ISYSTEM IS '是否系统模板';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.CTEMPLATE IS '普通环境下的模板xml';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.CWPSTEMPLATE IS '国产环境下wps模板xml';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.CDEFAULTTEMPLATE IS '普通环境默认模板xml';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.CWPSDEFAULTTEMPLATE IS '国产环境默认模板xml';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.ILINENUM IS '明细行数';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.IMODULENUM IS '每页模板数';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.CORGNID IS '管理组织id';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.INESTEDFLAG IS '套打标记';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.IWFCHECK IS '是否工作流审批';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.CTOTALFLAG IS '合计行位置标识：first:显示在第一行，last：显示在最后一行';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.IFILLBLANKLINE IS '1:末页补空行，0：末页不补空行';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE.IDOMESTIC IS '是否是wps模板，1为wps，空或0位硕正';



--
-- AOS_PRINT_TEMPLATE_PARAM  (Table) 
--
CREATE TABLE AOS_PRINT_TEMPLATE_PARAM
(
  CGUID        VARCHAR2(18)                    NOT NULL,
  CUSERID      VARCHAR2(18),
  CTEMPLATEID  VARCHAR2(18),
  CPRINTPARAM  CLOB,
  CORGNID      VARCHAR2(18),
  CONSTRAINT AOS_PRINT_TEMPLATE_PARAM_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_PRINT_TEMPLATE_PARAM.CGUID IS '主键';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE_PARAM.CUSERID IS '用户ID';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE_PARAM.CTEMPLATEID IS '打印模板ID';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE_PARAM.CPRINTPARAM IS '打印设置参数';

COMMENT ON COLUMN AOS_PRINT_TEMPLATE_PARAM.CORGNID IS '组织ID';



--
-- AOS_PRINT_TYPE  (Table) 
--
CREATE TABLE AOS_PRINT_TYPE
(
  CGUID   VARCHAR2(20)                         NOT NULL,
  CCODE   VARCHAR2(100),
  CNAME   VARCHAR2(100),
  CCLASS  VARCHAR2(18),
  CONSTRAINT AOS_PRINT_TYPE_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_PRINT_TYPE.CCLASS IS '所属模块';



--
-- AOS_PRINT_TYPE_ENTITY  (Table) 
--
CREATE TABLE AOS_PRINT_TYPE_ENTITY
(
  CGUID         VARCHAR2(18)                   NOT NULL,
  CPRINTTYPEID  VARCHAR2(20),
  IENTITYTYPE   NUMBER(11),
  CLISTID       VARCHAR2(30),
  CONSTRAINT AOS_PRINT_TYPE_ENTITY_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_PRINT_TYPE_ENTITY.CPRINTTYPEID IS '打印模板类型id';

COMMENT ON COLUMN AOS_PRINT_TYPE_ENTITY.IENTITYTYPE IS '数据源类型：0主表 1子表';

COMMENT ON COLUMN AOS_PRINT_TYPE_ENTITY.CLISTID IS '数据源id';



--
-- AOS_DEFINEFORM_FORM  (Table) 
--
CREATE TABLE AOS_DEFINEFORM_FORM
(
  CGUID         VARCHAR2(18)                   NOT NULL,
  CNAME         VARCHAR2(200)                  NOT NULL,
  CHTMLSRC      CLOB,
  CHTMLDESIGN   CLOB,
  CCREATOR      VARCHAR2(50)                   DEFAULT '0',
  CCREATEDATE   VARCHAR2(23),
  CMODIFYDATE   VARCHAR2(23),
  ISTATUS       NUMBER(11)                      DEFAULT 1,
  CADMINORGNID  VARCHAR2(18),
  CVERSION      VARCHAR2(18),
  CONSTRAINT AOS_DEFINEFORM_FORM_PK
  PRIMARY KEY
  (CGUID)
);

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.CNAME IS '表单名';

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.CHTMLSRC IS '转换后的html';

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.CHTMLDESIGN IS '用于uEditor编辑框中的原始html';

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.CCREATOR IS '创建者';

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.CCREATEDATE IS '创建日期';

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.CMODIFYDATE IS '修改日期';

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.ISTATUS IS '启用状态';

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.CADMINORGNID IS '管理组织id';

COMMENT ON COLUMN AOS_DEFINEFORM_FORM.CVERSION IS '版本号';



--
-- AOS_FILE_FILES  (Table) 
--
CREATE TABLE AOS_FILE_FILES
  (
    CGUID         VARCHAR2(18) NOT NULL,
    CFILENAME     VARCHAR2(500),
    CFILEURL      VARCHAR2(1000),
    CFILETYPE     VARCHAR2(10),
    CUPLOADDAY    VARCHAR2(10) ,
    ITEMPFLAG     NUMBER(4),
    CGROUPGUID    VARCHAR2(18),
    CTIMESTAMP    VARCHAR2(18),
    CFILEREALNAME VARCHAR2(1000),
    CUSERID       VARCHAR2(1000),
    CFILESOURCE   VARCHAR2(50),
    CONSTRAINT AOS_FILE_FILES_PK 
    PRIMARY KEY 
    (CGUID) 
    );
  
COMMENT ON COLUMN AOS_FILE_FILES.CFILENAME IS '文件名：真实文件名_cGuid';
COMMENT ON COLUMN AOS_FILE_FILES.CFILEURL IS '文件保存路径';
COMMENT ON COLUMN AOS_FILE_FILES.CFILETYPE IS '文件类型';
COMMENT ON COLUMN AOS_FILE_FILES.CUPLOADDAY IS '上传时间';
COMMENT ON COLUMN AOS_FILE_FILES.ITEMPFLAG IS '0：永久文件，1：临时文件，使用定时任务删除临时文件';
COMMENT ON COLUMN AOS_FILE_FILES.CGROUPGUID IS '文件组id';
COMMENT ON COLUMN AOS_FILE_FILES.CTIMESTAMP IS '时间戳';
COMMENT ON COLUMN AOS_FILE_FILES.CFILEREALNAME IS '真实文件名';
COMMENT ON COLUMN AOS_FILE_FILES.CUSERID IS '上传用户id';
COMMENT ON COLUMN AOS_FILE_FILES.CFILESOURCE IS '附件来源';




INSERT INTO aos_user_param_config (cParamCode, cParamName, cEditor, cEditorProp, iVisible, iOrder) VALUES ('Font', '字体', 'combox', '{"url":"www/lib/aos/data/fontMode.txt"}', '1', '2');
INSERT INTO aos_user_param_config (cParamCode, cParamName, cEditor, cEditorProp, iVisible, iOrder) VALUES ('IndexNav', '菜单类型', 'combox', '{ "data":"[{''id'':''tree'',''text'':''Tree''},{''id'':''outlooktree'',''text'':''OutlookTree''},{''id'':''outlookmenu'',''text'':''OutLookMenu''}]"}', '1', '2');
INSERT INTO aos_user_param_config (cParamCode, cParamName, cEditor, cEditorProp, iVisible, iOrder) VALUES ('IndexNavTab', '导航方式', 'combox', '{ "data":"[{''id'':''0'',''text'':''页面导航''},{''id'':''1'',''text'':''快捷方式''}]" }', '1', '1');
INSERT INTO aos_user_param_config (cParamCode, cParamName, cEditor, cEditorProp, iVisible, iOrder) VALUES ('Skin', '皮肤', 'combox', '{"url":"www/aos/theme/skin.txt"}', '1', '1');




INSERT INTO aos_notice_type(cGUID, cOrder, cName, iStatus, cParentId) VALUES ('000000', '1', '收到的消息', '1', 'root');
INSERT INTO aos_notice_type(cGUID, cOrder, cName, iStatus, cParentId) VALUES ('000001', '2', '发送的消息', '1', 'root');
INSERT INTO aos_notice_type(cGUID, cOrder, cName, iStatus, cParentId) VALUES ('1', '2', '预警信息', '1', '000000');
INSERT INTO aos_notice_type(cGUID, cOrder, cName, iStatus, cParentId) VALUES ('2', '1', '工作流消息', '1', '000000');
INSERT INTO aos_notice_type(cGUID, cOrder, cName, iStatus, cParentId) VALUES ('3', '3', '业务消息', '1', '000000');
INSERT INTO aos_notice_type(cGUID, cOrder, cName, iStatus, cParentId) VALUES ('4', '4', '个人消息', '1', '000000');
INSERT INTO aos_notice_type(cGUID, cOrder, cName, iStatus, cParentId) VALUES ('5', '5', '系统通知', '1', '000000');




INSERT INTO aos_orgntype_cfg (cGUID, cCode, cName, cNameEn, cDescp, iStatus, cFormid, iBusinessType) VALUES ('ADMIN', '000', '管理组织', 'Admin Orgn', '管理组织是系统内置类型', '1', '', '0');

INSERT INTO aos_orgn (cGUID, cName, cNameEn, cShortName, cFullName, cDescp, iStatus, cParentID, cInnerCode, iLevel, iLeaf, dStartDate, dInvalidDate, cCreatorID, dCreateDate, cUpdateUserId, dUpdateDate, cAdminOrgnID, cCode, cMnemoCode, cTimeStamp, iAccount,iOrder) VALUES ('1', '航天信息集团', 'orgn1', '组织根节点', '173488530975772462', '1', '1', '000000', '1m', '1', '0', '20100708', NULL, '1', '20100708', '1', '2017-07-26', '1', '1m', '1', '3573135848667', NULL,'0');






INSERT INTO aos_rms_authtype (cGuid, cName, cCode, cNotNullField, cService, iDefault, iStatus) VALUES ('1', '传统密码', '1', NULL, 'ACS.UserPwdAuth', '1', '1');
INSERT INTO aos_rms_authtype (cGuid, cName, cCode, cNotNullField, cService, iDefault, iStatus) VALUES ('2', '航信CA复合认证', '2', NULL, 'ACS.UserPwdCaAuth', '0', '1');


INSERT INTO aos_rms_pwdtype (cName, cGuid, cCode, iMinLength, cDesp, cDefaultPwd, iIncludeCharNum, iIncludeBigSmall, iIncludeSpecialChar, iAllowChange, iFirstLogMustChange, iValidateForever, iValidateDays, iNoticeWhenExpried, iInvalidatePromptDays, iLock, iTimesToLock, iDefault, iStatus) VALUES ('普通-100天', '1', '1', '3', '', '123456', '1', '0', '0', '1', '1', '0', '2', '1', '3', '1', '5', '0', '1');


INSERT INTO aos_rms_user (cGUID, ccode, cPWD, cName, cIDENTITY, cEMP, CADMINORGNID, iStatus, cUserType, cPwdType, CNAMESTARTDATE, CNAMEENDDATE, CPWDSTARTDATE, CPWDENDDATE, iConcurrent, cAuthType, ICHANGEPWD, LASTLOGINDATE, CTIMESTAMP) VALUES ('1', 'admin', '7ee633a61ca0d2e9cfda5239fc7b47c8', '超级管理员', NULL, NULL, '1', '1', '1', '1', NULL, NULL, '2017-07-13', '', '1', NULL, '0', '2017-08-04', NULL);
INSERT INTO aos_rms_user (cGUID, ccode, cPWD, cName, cIDENTITY, cEMP, CADMINORGNID, iStatus, cUserType, cPwdType, CNAMESTARTDATE, CNAMEENDDATE, CPWDSTARTDATE, CPWDENDDATE, iConcurrent, cAuthType, ICHANGEPWD, LASTLOGINDATE, CTIMESTAMP) VALUES ('udp', 'adminudp', '770a04b44caa3c9564183c83db429db0', '配置管理员', NULL, NULL, '1', '1', 'udp', '1', NULL, NULL, '2017-08-03', '2017-12-29', '0', NULL, '0', '2017-08-04 10:29:06', NULL);


INSERT INTO aos_rms_user_orgn_rel (cGuid, cUserId, cOrgnId, iDefaultOrgnID) VALUES ('1', '1', '1', '1');
INSERT INTO aos_rms_user_orgn_rel (cGuid, cUserId, cOrgnId, iDefaultOrgnID) VALUES ('udp', 'udp', '1', '1');


INSERT INTO aos_rms_usertype_cfg (cGUID, cNAME, iDefault, iORDER, iADMIN, iSysType, iStatus) VALUES ('1', '管理员', '0', '0', '1', '0', '1');
INSERT INTO aos_rms_usertype_cfg (cGUID, cNAME, iDefault, iORDER, iADMIN, iSysType, iStatus) VALUES ('2', '职员', '1', '1', '0', '0', '1');
INSERT INTO aos_rms_usertype_cfg (cGUID, cNAME, iDefault, iORDER, iADMIN, iSysType, iStatus) VALUES ('udp', '配置管理员', '0', '2', '1', '1', '1');






INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0000', 'System_Cat', NULL, '系统参数', NULL, NULL, '1', NULL, '0', '000000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0001', 'Copyright', '航天信息', '版权信息', 'edit', NULL, '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0002', 'GridPageSize', '15', '默认分页条数', 'edit', NULL, '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0003', 'GridSizeList', '[15,50,200,1000]', '表格分页列表', 'edit', NULL, '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0004', 'LogBackupTime', '03:00:00', '日志备份时间（每天）', 'timespinner', '{format:"HH:mm:ss"}', '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0005', 'MysqlBackupCommand', NULL, 'Mysql备份命令', 'edit', NULL, '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0006', 'MysqlBackupCron', '0 0 12 * * ?', 'Mysql备份时间表达式', 'edit', NULL, '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0007', 'SystemInitDate', '2015-01-01', '系统初始化日期', 'datechooser', NULL, '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0008', 'SystemName', 'AOSPlus', '系统名称', 'edit', NULL, '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0009', 'SystemSkin', 'default', '默认系统皮肤', 'combox', '{\"url\":\"www/aos/theme/skin.txt\"}', '1', NULL, '1', '0000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0100', 'MainUI_Cat', 'ManUI参数', 'MainUI参数', NULL, NULL, '1', NULL, '0', '000000');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0101', 'IndexNav', 'outlooktree', '主页导航方式', 'combox', '{ data:[{id:"tree",text:"Tree"},{id:"outlooktree",text:"OutlookTree"},{id:"outlookmenu",text:"OutLookMenu"}] }', '1', NULL, '1', '0100');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0108', 'MaxTabNum', '10', '主界面最大页签数量', 'num', NULL, '1', NULL, '1', '0100');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0109', 'PushMsgTimer', '1', '主界面是否定时推送消息', 'combox', '{ data:[{id:0,text:"否"},{id:1,text:"是"}] }', '1', NULL, '1', '0100');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0110', 'PushMsgTimerInterval', '60', '主界面定时推送消息时间间隔（秒）', 'num', NULL, '1', NULL, '1', '0100');
INSERT INTO aos_sys_param (cGuid, cCode, cValue, cName, cEditor, cEditorProp, iVisible, iOrder, iLeaf, cParentID) VALUES ('0116', 'WelcomePage', NULL, '欢迎页', 'edit', NULL, '1', NULL, '1', '0100');







INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('09916708ae0f9522ee', '日志管理', 'aa1bf292838f3ccfb8', null, null, null, 'icon-xiaofeimingxidan', null, '0', '1', null, '1', '1', '1', '170845402580592115', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('0a0fbfbd9733d8cf17', '异常统计详情', '46f7fdade4f8dabe25', null, null, 'canvas/aos/customquery/customQueryResult?id=tracelog_exception_detail', null, null, '1', '0', null, '1', '5', '1', '627519536094410544', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('0a12dc801cc2afb748', '打印模板分类', 'b665641f9bbae07cb3', null, null, 'canvas/aos/print/type/print_type_list', 'icon-category', null, '1', '1', null, '1', '2', '1', '170845402580591936', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('0c9881cd613b9843a1', '模块配置', 'b665641f9bbae07cb3', null, null, 'canvas/aos/rms/moduleconfig', 'icon-cascades', null, '1', '1', null, '1', '1', '1', '170845402580591935', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('128c45eaaa5fadb8d6', '页面监控', 'ff3b028f896ad67a38', null, null, 'canvas/aos/monitor/pagemonitor', 'icon-rejectedorder', null, '1', '1', null, '1', '2', '1', '170845402580594653', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('14565964c5577f985b', '权限菜单', '43b34d94e6a4af496f', null, null, 'canvas/aos/rms/permmenulist', 'icon-viewlist', null, '1', '1', null, '1', '1', '1', '382623228651710587', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('149eff6959dce2deb8', '密码策略', '87103808c730e25ffe', null, null, 'canvas/aos/rms/pwdpolicylist', 'icon-password', null, '1', '1', null, '1', '3', '1', '382623228651710493', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('149feeee019bd08a55', '集群监控', '8e1e43a05e3ee61ddf', null, null, 'canvas/aos/monitor/clustermonitor', 'icon-jifen', null, '1', '1', null, '1', '3', '1', '170845402580592135', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('18ef209e00dfc6fb97', '系统管理', '000000', null, null, null, 'icon-mokuai_big', null, '0', '1', null, '1', '1', '1', '288718152890842929', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('2685b4a123e7d8b009', '菜单访问统计', '48bfb995835cce641a', null, null, 'canvas/aos/customquery/customQueryResult?id=auth_visit', 'icon-caidan', null, '1', '1', null, '1', '3', '1', '627519536094410487', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('28b9ba789d1128b7ca', '角色管理', '87103808c730e25ffe', null, null, 'canvas/aos/rms/rolelist', 'icon-mingpian', null, '1', '1', null, '1', '2', '1', '382623228651712983', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('2940700970195c949e', '组织机构', '30136d77dd9eeaa4f3', null, null, 'canvas/aos/orgn/orgnlist', 'icon-circle', null, '1', '1', null, '1', '1', '1', '170845402580592219', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('2d1e6f69473ea74cfc', '系统参数', '86b2a856c0121dade3', null, null, 'canvas/admin/systemparam', 'icon-liebiao', null, '1', '1', null, '1', '3', '1', '170845402580592004', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('30136d77dd9eeaa4f3', '组织管理', '18ef209e00dfc6fb97', null, null, null, 'icon-jiegousheji', null, '0', '1', null, '1', '4', '1', '170845402580592854', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('350dc78d1dbe1c43cd', '访问量【天】', '9aa43e38d254b16d33', null, null, 'canvas/aos/customquery/customQueryResult?id=tracelog_visit_day', 'icon-rili', null, '1', '1', null, '1', '1', '1', '170845402580592411', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('39c7c5b280b7d3b591', '异常统计', '46f7fdade4f8dabe25', null, null, 'canvas/aos/customquery/customQueryResult?id=tracelog_exception', 'icon-warning', null, '1', '1', null, '1', '4', '1', '627519536094410556', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('3dab916a78fe4a63d8', 'canvas管理', 'e6aa6df71cf1adf8c2', null, null, 'canvas/admin/canvas', 'icon-color', null, '1', '1', null, '1', '1', '1', '170845402580591379', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('43b34d94e6a4af496f', '功能权限', '000000', null, null, null, 'icon-repair_big', null, '0', '1', null, '1', '4', '1', '288718152890842932', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('446ec21ce8753b4dc2', '退出行为统计', 'cd2538066e28bbc91e', null, null, 'canvas/aos/customquery/customQueryResult?id=logout', 'icon-kaiguan', null, '1', '1', null, '1', '3', '1', '170845402580592427', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('44efeaaae1c8a5c3aa', '在线用户', 'aa1bf292838f3ccfb8', null, null, 'canvas/aos/session/onlineuser', 'icon-qun', null, '1', '1', null, '1', '3', '1', '170845402580592734', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('46f7fdade4f8dabe25', '系统分析', '000000', null, null, null, 'icon-xitongzhuangtai_big', null, '0', '1', null, '1', '2', '1', '288718152890842930', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('48bfb995835cce641a', '访问分析', '46f7fdade4f8dabe25', null, null, null, 'icon-data', null, '0', '1', null, '1', '3', '1', '627519536094410555', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('64d35b05822b15be9d', '跟踪日志', '09916708ae0f9522ee', null, null, 'canvas/aos/log/tracelog', 'icon-attention', null, '1', '1', null, '1', '2', '1', '170845402580592029', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('76100c8d834cc1b75e', '服务器监控', '8e1e43a05e3ee61ddf', null, null, 'canvas/aos/monitor/servermonitor', 'icon-yunyingguanli', null, '1', '1', null, '1', '1', '1', '170845402580592133', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('7a635b03db5229f237', '业务日志统计详情', '48bfb995835cce641a', null, null, 'canvas/aos/customquery/customQueryResult?id=log_operation_detail', '', null, '1', '0', null, '1', '2', '1', '627519536094410477', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('7b5a5b3fe83a10895c', '分辨率统计', 'cd2538066e28bbc91e', null, null, 'canvas/aos/customquery/customQueryResult?id=screen', 'icon-electronics', null, '1', '1', null, '1', '1', '1', '170845402580592425', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('7e37763e0c056d8ad7', '数据源监控', '8e1e43a05e3ee61ddf', null, null, 'canvas/aos/monitor/druidmonitor', 'icon-shuju', null, '1', '1', null, '1', '5', '1', '170845402580592137', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('838d6f68cb23910bec', '组织类型设置', '43b34d94e6a4af496f', null, null, 'canvas/aos/orgn/orgntypepermlist', 'icon-xinglieicon', null, '1', '1', null, '1', '3', '1', '170845402580591445', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('86b2a856c0121dade3', '系统设置', '18ef209e00dfc6fb97', null, null, null, 'icon-set', null, '0', '1', null, '1', '2', '1', '170845402580592852', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('87103808c730e25ffe', '权限管理', '18ef209e00dfc6fb97', null, null, null, 'icon-quanxian', null, '0', '1', null, '1', '1', '1', '170845402580592851', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('8a0616d5b8cfe79346', '业务日志统计', '48bfb995835cce641a', null, null, 'canvas/aos/customquery/customQueryResult?id=log_operation', 'icon-chakan', null, '1', '1', null, '1', '1', '1', '627519536094410486', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('8b50802ce4e80b0b02', '定时任务监控', '8e1e43a05e3ee61ddf', null, null, 'canvas/aos/monitor/jobmonitor', 'icon-renwu', null, '1', '1', null, '1', '6', '1', '170845402580592138', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('8d48ee2f9544c21211', '效率分析', '000000', null, null, null, 'icon-alitongxinlogo_big', null, '0', '1', null, '1', '6', '1', '288718152890842934', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('8e0d873df78f60fc0e', 'sql效率分析', '8d48ee2f9544c21211', null, null, 'canvas/aos/customquery/customQueryResult?id=tracelog_sql', 'icon-SQLshenhe', null, '1', '1', null, '1', '2', '1', '170845402580591871', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('8e1e43a05e3ee61ddf', '监控', 'aa1bf292838f3ccfb8', null, null, null, 'icon-jiankong1', null, '0', '1', null, '1', '2', '1', '170845402580592116', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('8e7c1c3bfac4ecee45', '打印模板管理', 'b665641f9bbae07cb3', null, null, 'canvas/aos/print/template/print_template_list', 'icon-templatedefault', null, '1', '1', null, '1', '3', '1', '161189116590931165', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('93bbc2f683a67277b4', '浏览器统计', 'cd2538066e28bbc91e', null, null, 'canvas/aos/customquery/customQueryResult?id=browser', 'icon-wangluo', null, '1', '1', null, '1', '2', '1', '170845402580592426', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('9aa43e38d254b16d33', '访问量', '46f7fdade4f8dabe25', null, null, null, 'icon-shuju01', null, '0', '1', null, '1', '1', '1', '627519536094410553', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('9c7cdbe479391770f5', '访问量【人】', '9aa43e38d254b16d33', null, null, 'canvas/aos/customquery/customQueryResult?id=tracelog_visit_person', 'icon-yonghu', null, '1', '1', null, '1', '2', '1', '170845402580592412', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('9e19a546a5bd193bbf', '业务日志', '09916708ae0f9522ee', null, null, 'canvas/aos/log/log', 'icon-text', null, '1', '1', null, '1', '1', '1', '170845402580592028', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('9ee2ff62c8627c07c5', '数据库连接监控', '8e1e43a05e3ee61ddf', null, null, 'canvas/aos/monitor/connectionmonitor', 'icon-shujuku', null, '1', '1', null, '1', '4', '1', '170845402580592136', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('a50ea5624e7f9fe22d', '用户管理', '87103808c730e25ffe', null, null, 'canvas/aos/rms/userlist', 'icon-account', null, '1', '1', null, '1', '1', '1', '382623228651710491', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('aa1bf292838f3ccfb8', '系统监控', '18ef209e00dfc6fb97', null, null, null, 'icon-jiankong', null, '0', '1', null, '1', '3', '1', '170845402580592853', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('aad05f2728344157f4', '自定义档案', '86b2a856c0121dade3', null, null, 'canvas/aos/customdata/customData', 'icon-wenjian', null, '1', '1', null, '1', '5', '1', '170845402580592006', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('ae29ab0e6490c43da6', '用户类型设置', '43b34d94e6a4af496f', null, null, 'canvas/aos/rms/usertypelist', 'icon-supplierfeatures', null, '1', '1', null, '1', '2', '1', '170845402580591444', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('b5dce07f2f84f1999e', '小工具管理', '86b2a856c0121dade3', null, null, 'canvas/aos/portal/portallist', 'icon-wxbgongju', null, '1', '1', null, '1', '4', '1', '170845402580592005', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('b61fa1a59b13c10c3e', '快捷方式统计', '48bfb995835cce641a', null, null, 'canvas/aos/customquery/customQueryResult?id=shortcut', 'icon-shouqicaidan', null, '1', '1', null, '1', '5', '1', '627519536094410489', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('b665641f9bbae07cb3', '打印', '000000', null, null, null, 'icon-print_big', null, '0', '1', null, '1', '7', '1', '288718152890842935', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('c1b21a215b1540e2ac', '列表打印配置', 'b665641f9bbae07cb3', null, null, 'canvas/aos/print/config/print_config_list', 'icon-news_hot_light', null, '1', '1', null, '1', '4', '1', '161189116590931166', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('c8e437473a6fd79b4f', '访问量【时段】', '9aa43e38d254b16d33', null, null, 'canvas/aos/customquery/customQueryResult?id=tracelog_visit_hour', 'icon-shijian', null, '1', '1', null, '1', '3', '1', '170845402580592413', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('cc69dca908023c1b24', '打印模板管理', '86b2a856c0121dade3', null, null, 'canvas/aos/print/template/print_template_list', 'icon-templatedefault', null, '1', '1', null, '1', '1', '1', '170845402580591985', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('cd2538066e28bbc91e', '用户数据', '46f7fdade4f8dabe25', null, null, null, 'icon-shujudaochu-01', null, '0', '1', null, '1', '2', '1', '627519536094410554', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('cd92511945c65a3ffb', '拦截监控', 'ff3b028f896ad67a38', null, null, 'canvas/aos/monitor/interceptmonitor', 'icon-shaixuan', null, '1', '1', null, '1', '3', '1', '170845402580594654', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('d054a90d43e58389d6', '线程监控', '8e1e43a05e3ee61ddf', null, null, 'canvas/aos/monitor/threadmonitor', 'icon-peizhiguanli', null, '1', '1', null, '1', '7', '1', '170845402580592139', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('d152d99fadf5e05a68', '账户解锁', 'aa1bf292838f3ccfb8', null, null, 'canvas/aos/mainui/userlocklist', 'icon-shenqingquanxian', null, '1', '1', null, '1', '4', '1', '170845402580592169', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('d2c0080c527d3216f7', '缓存监控', '8e1e43a05e3ee61ddf', null, null, 'canvas/aos/monitor/cachemonitor', 'icon-neicun', null, '1', '1', null, '1', '2', '1', '170845402580592134', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('e6aa6df71cf1adf8c2', '系统设置', '000000', null, null, null, 'icon-set_big', null, '0', '1', null, '1', '3', '1', '288718152890842931', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('e6c8ca42ba1e988d6d', 'url效率分析', '8d48ee2f9544c21211', null, null, 'canvas/aos/customquery/customQueryResult?id=tracelog_url', 'icon-link', null, '1', '1', null, '1', '1', '1', '170845402580591870', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('eb77de20af86d45775', '自定义表单', '86b2a856c0121dade3', null, null, 'canvas/aos/defineform/defineform_list', 'icon-form', null, '1', '1', null, '1', '6', '1', '161189116590931396', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('ebecde6397d5c3d2ef', '访问IP统计', '48bfb995835cce641a', null, null, 'canvas/aos/customquery/customQueryResult?id=log_visit_ip', 'icon-IP', null, '1', '1', null, '1', '4', '1', '627519536094410488', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('ed215a191d026049d5', '自定义查询', '86b2a856c0121dade3', null, null, 'canvas/aos/customquery/customQueryList', 'icon-wxbbaobiao', null, '1', '1', null, '1', '2', '1', '170845402580592003', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('f760c3fa2740dbb78c', '小工具权限', '000000', null, null, null, null, null, '1', '0', null, '1', '7', '1', '156207791953848353', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('ff3b028f896ad67a38', '监控', '000000', null, null, null, 'icon-jiankong1_big', null, '0', '1', null, '1', '5', '1', '288718152890842933', null);
INSERT INTO aos_rms_perm_menu(cGuid, cName, cParentID, cInnerCode, cDescp, cURL, cIcon, cOpenType, iLeaf, iMenu, iAutoExpand, iStatus, iOrder, iControl, cTimeStamp, cAdminOrgnId) VALUES ('ff9c0a4f499ccb083c', 'Action监控', 'ff3b028f896ad67a38', null, null, 'canvas/aos/monitor/actionmonitor', 'icon-process', null, '1', '1', null, '1', '1', '1', '170845402580594652', null);




INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '09916708ae0f9522ee');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '0a0fbfbd9733d8cf17');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '0a12dc801cc2afb748');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '0c9881cd613b9843a1');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '128c45eaaa5fadb8d6');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '14565964c5577f985b');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '149eff6959dce2deb8');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '149feeee019bd08a55');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '18ef209e00dfc6fb97');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '2685b4a123e7d8b009');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '28b9ba789d1128b7ca');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '2940700970195c949e');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '2d1e6f69473ea74cfc');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '30136d77dd9eeaa4f3');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '350dc78d1dbe1c43cd');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '39c7c5b280b7d3b591');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '3dab916a78fe4a63d8');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '43b34d94e6a4af496f');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '446ec21ce8753b4dc2');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '44efeaaae1c8a5c3aa');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '46f7fdade4f8dabe25');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '48bfb995835cce641a');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '64d35b05822b15be9d');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '76100c8d834cc1b75e');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '7a635b03db5229f237');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '7b5a5b3fe83a10895c');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '7e37763e0c056d8ad7');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '838d6f68cb23910bec');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '86b2a856c0121dade3');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '87103808c730e25ffe');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '8a0616d5b8cfe79346');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '8b50802ce4e80b0b02');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '8d48ee2f9544c21211');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '8e0d873df78f60fc0e');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '8e1e43a05e3ee61ddf');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '93bbc2f683a67277b4');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '9aa43e38d254b16d33');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '9c7cdbe479391770f5');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '9e19a546a5bd193bbf');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '9ee2ff62c8627c07c5');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'a50ea5624e7f9fe22d');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'aa1bf292838f3ccfb8');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'aad05f2728344157f4');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'ae29ab0e6490c43da6');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'b5dce07f2f84f1999e');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'b61fa1a59b13c10c3e');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'b665641f9bbae07cb3');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'c8e437473a6fd79b4f');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'cc69dca908023c1b24');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'cd2538066e28bbc91e');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'cd92511945c65a3ffb');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'd054a90d43e58389d6');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'd152d99fadf5e05a68');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'd2c0080c527d3216f7');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'e6aa6df71cf1adf8c2');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'e6c8ca42ba1e988d6d');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'ebecde6397d5c3d2ef');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'ed215a191d026049d5');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'ff3b028f896ad67a38');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'ff9c0a4f499ccb083c');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'eb77de20af86d45775');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'c1b21a215b1540e2ac');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', '8e7c1c3bfac4ecee45');
INSERT INTO aos_rms_orgntype_perm_rel_cfg(cOrgnTypeID, cPermID) VALUES ('ADMIN', 'f760c3fa2740dbb78c');





INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '18ef209e00dfc6fb97');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '87103808c730e25ffe');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'a50ea5624e7f9fe22d');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '28b9ba789d1128b7ca');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '149eff6959dce2deb8');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '43b34d94e6a4af496f');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '14565964c5577f985b');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'ae29ab0e6490c43da6');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '838d6f68cb23910bec');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'e6aa6df71cf1adf8c2');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '3dab916a78fe4a63d8');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'ff3b028f896ad67a38');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'ff9c0a4f499ccb083c');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '128c45eaaa5fadb8d6');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'cd92511945c65a3ffb');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '8d48ee2f9544c21211');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'e6c8ca42ba1e988d6d');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '8e0d873df78f60fc0e');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'b665641f9bbae07cb3');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '0c9881cd613b9843a1');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '0a12dc801cc2afb748');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '86b2a856c0121dade3');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'cc69dca908023c1b24');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'ed215a191d026049d5');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '2d1e6f69473ea74cfc');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'b5dce07f2f84f1999e');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'aad05f2728344157f4');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'aa1bf292838f3ccfb8');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '09916708ae0f9522ee');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '9e19a546a5bd193bbf');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '64d35b05822b15be9d');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '8e1e43a05e3ee61ddf');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '76100c8d834cc1b75e');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'd2c0080c527d3216f7');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '149feeee019bd08a55');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '9ee2ff62c8627c07c5');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '7e37763e0c056d8ad7');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '8b50802ce4e80b0b02');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'd054a90d43e58389d6');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '44efeaaae1c8a5c3aa');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'd152d99fadf5e05a68');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '30136d77dd9eeaa4f3');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '2940700970195c949e');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '46f7fdade4f8dabe25');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '9aa43e38d254b16d33');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '39c7c5b280b7d3b591');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '350dc78d1dbe1c43cd');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '9c7cdbe479391770f5');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'c8e437473a6fd79b4f');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'cd2538066e28bbc91e');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '7b5a5b3fe83a10895c');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '93bbc2f683a67277b4');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '446ec21ce8753b4dc2');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '48bfb995835cce641a');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '8a0616d5b8cfe79346');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '2685b4a123e7d8b009');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'ebecde6397d5c3d2ef');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'b61fa1a59b13c10c3e');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '0a12dc801cc2afb748');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '0c9881cd613b9843a1');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '128c45eaaa5fadb8d6');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '14565964c5577f985b');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '3dab916a78fe4a63d8');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '43b34d94e6a4af496f');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '838d6f68cb23910bec');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '8d48ee2f9544c21211');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '8e0d873df78f60fc0e');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'ae29ab0e6490c43da6');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'b665641f9bbae07cb3');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'cd92511945c65a3ffb');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'e6aa6df71cf1adf8c2');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'e6c8ca42ba1e988d6d');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'ff3b028f896ad67a38');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'ff9c0a4f499ccb083c');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '7a635b03db5229f237');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '0a0fbfbd9733d8cf17');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'eb77de20af86d45775');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'c1b21a215b1540e2ac');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'c1b21a215b1540e2ac');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', '8e7c1c3bfac4ecee45');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', '8e7c1c3bfac4ecee45');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('1', 'f760c3fa2740dbb78c');
INSERT INTO aos_rms_user_orgn_perm_rel(cUserOrgnId, cPermId) VALUES ('udp', 'f760c3fa2740dbb78c');




INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '09916708ae0f9522ee');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '0a0fbfbd9733d8cf17');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '0a12dc801cc2afb748');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '0c9881cd613b9843a1');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '128c45eaaa5fadb8d6');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '14565964c5577f985b');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '149eff6959dce2deb8');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '149feeee019bd08a55');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '18ef209e00dfc6fb97');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '2685b4a123e7d8b009');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '28b9ba789d1128b7ca');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '2940700970195c949e');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '2d1e6f69473ea74cfc');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '30136d77dd9eeaa4f3');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '350dc78d1dbe1c43cd');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '39c7c5b280b7d3b591');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '3dab916a78fe4a63d8');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '43b34d94e6a4af496f');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '446ec21ce8753b4dc2');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '44efeaaae1c8a5c3aa');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '46f7fdade4f8dabe25');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '48bfb995835cce641a');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '64d35b05822b15be9d');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '76100c8d834cc1b75e');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '7a635b03db5229f237');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '7b5a5b3fe83a10895c');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '7e37763e0c056d8ad7');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '838d6f68cb23910bec');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '86b2a856c0121dade3');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '87103808c730e25ffe');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '8a0616d5b8cfe79346');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '8b50802ce4e80b0b02');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '8d48ee2f9544c21211');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '8e0d873df78f60fc0e');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '8e1e43a05e3ee61ddf');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '93bbc2f683a67277b4');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '9aa43e38d254b16d33');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '9c7cdbe479391770f5');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '9e19a546a5bd193bbf');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', '9ee2ff62c8627c07c5');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'a50ea5624e7f9fe22d');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'aa1bf292838f3ccfb8');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'aad05f2728344157f4');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'ae29ab0e6490c43da6');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'b5dce07f2f84f1999e');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'b61fa1a59b13c10c3e');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'b665641f9bbae07cb3');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'c8e437473a6fd79b4f');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'cc69dca908023c1b24');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'cd2538066e28bbc91e');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'cd92511945c65a3ffb');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'd054a90d43e58389d6');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'd152d99fadf5e05a68');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'd2c0080c527d3216f7');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'e6aa6df71cf1adf8c2');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'e6c8ca42ba1e988d6d');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'ebecde6397d5c3d2ef');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'ed215a191d026049d5');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'ff3b028f896ad67a38');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'ff9c0a4f499ccb083c');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'eb77de20af86d45775');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'c1b21a215b1540e2ac');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', '8e7c1c3bfac4ecee45');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('1', 'f760c3fa2740dbb78c');
INSERT INTO aos_rms_usertype_perm_rel_cfg(cUserTypeID, cPermID) VALUES ('udp', 'f760c3fa2740dbb78c');



INSERT INTO aos_user_param (cParam, cOrgnID, cValue, cUserID, cType) VALUES ('IndexNavTab', NULL, '', '1', NULL);
INSERT INTO aos_user_param (cParam, cOrgnID, cValue, cUserID, cType) VALUES ('IndexNav', NULL, 'tree', '1', NULL);
INSERT INTO aos_user_param (cParam, cOrgnID, cValue, cUserID, cType) VALUES ('IndexNavTab', NULL, '', 'udp', NULL);
INSERT INTO aos_user_param (cParam, cOrgnID, cValue, cUserID, cType) VALUES ('IndexNav', NULL, 'tree', 'udp', NULL);
INSERT INTO aos_user_param (cParam, cOrgnID, cValue, cUserID, cType) VALUES ('IndexNavTab', '1', '', '1', 'mainui');
INSERT INTO aos_user_param (cParam, cOrgnID, cValue, cUserID, cType) VALUES ('IndexNav', '1', 'tree', '1', 'mainui');
INSERT INTO aos_user_param (cParam, cOrgnID, cValue, cUserID, cType) VALUES ('IndexNavTab', '1', '', 'udp', 'mainui');
INSERT INTO aos_user_param (cParam, cOrgnID, cValue, cUserID, cType) VALUES ('IndexNav', '1', 'tree', 'udp', 'mainui');


