文档库 最新最全的文档下载
当前位置:文档库 › 泛微ecology图表元素设置

泛微ecology图表元素设置


e-cology6.0新增了一个门户元素【图表元素】,通过该元素可以将本系统及异构系统的数据信息通过图形报表展示在门户上面,帮助企业构建一个【管理驾驶舱】为领导决策提供全面的参考数据。

该元素的使用和维护和其他元素没什么差别。下面对于关键的内容进行一下解释说明

1) 图表元素支持的图形格式有:柱形图形2D、柱形图形3D、线形图、面积图、条形图、饼图2D、饼图3D、圆环图、柱形图2D+线形图、柱形图3D+线形图、仪表盘。

1) 数据来源:其中的默认数据源指的是e-cology系统本身,当然也可以根据需要选择其他的数据源,能够被选择的数据源,由e-cology的数据源接口定义而成,支持的数据库包括【sql2000】、【sql2005】、【sql2008】、【Oracle】、【mysql】、【db2】、【sybase】、【informix】。

2) 图表来源:支持select语句,通过select语句来获取需要展示的数据,select语句的编写需要遵循一下规则,除了【仪表盘】以外其他的形状采用同样的规则编写:

【仪表盘】格式sql编写规则:

只支持select语句并且, Select的结果必须为四列一行,且没列值为数值,其中

第一个值为最小值

第二个值为最大值

第三个值为安全值

第四个值为当前值

【其他图形】格式sql编写规则(饼状、柱状、折线等等)

ü 只支持select语句并且,select的结果必须为两列N(N>=1)行,且第二列必须为数值,其中

ü 第一列值为显示项目(分类)名称

ü 第二列值为对应项目(分类)的值




例子:

【仪表盘】格式sql编写规则:
? 只支持select语句并且, Select的结果必须为四列一行,且没列值为数值,其中
? 第一个值为最小值
? 第二个值为最大值
? 第三个值为安全值
? 第四个值为当前值
例如

Select 0,400,300,count(id) from hrmresource


【其他图形】格式sql编写规则(饼状、柱状、折线等等)
只支持select语句并且,select的结果必须为两列N(N>=1)行,且第二列必须为数值,其中
第一列值为显示项目(分类)名称
第二列值为对应项目(分类)的值

例如



员工数机构

select top 10 (select subcompanyname from hrmsubcompany where id=subCompanyId1),count(id) As cids from hrmresource group by subCompanyId1 order by cids desc

合同金额前十机构
select top 10 (select subcompanyname from hrmsubcompany where id=subCompanyId1),floor(sum(price/10000)) As cids from CRM_Contract where subCompanyId1 is not null group by subCompanyId1 order by cids desc

销售机会金额前十机构
select top 10 (select subcompanyname from hrmsubcompany where id=subCompanyId),floor(sum(preyield/10000)) As cids from CRM_SellChance group by subCompanyId order by cids desc

耗时前

五长流程

select top 5 (select workflowname from workflow_base where id=workflowid) ,
24*avg(convert(float,convert(datetime,lastoperatedate))
-convert(float,convert(datetime,createdate))) cids
from workflow_requestbase where workflowid>0 and workflowid!=5 group by workflowid order by cids desc


销售机会前十机构
select top 10 (select subcompanyname from hrmsubcompany where id=subCompanyId),count(id) As cids from CRM_SellChance group by subCompanyId order by cids desc

项目统计前十机构

select top 10 (select subcompanyname from hrmsubcompany where id=hrmdepartment.subcompanyid1),count(*) as cid from Prj_ProjectInfo ,hrmdepartment where Prj_ProjectInfo.department=hrmdepartment.id group by hrmdepartment.subcompanyid1 order by cid desc

人员性别统计

select case sex when '0' then '男' else '女' end, count(id) as cid from hrmresource group by sex

典型客户前十机构

select top 10 (select provincename from hrmprovince where id=province) ,province,count(id) as cids from CRM_CustomerInfo
where status=4 and province>0 group by province order by cids desc

创建文挡前十名统计
select top 10 (select lastname from hrmresource where id=doccreaterid) ,count(id) as cid from docdetail group by doccreaterid order by cid desc

待办事宜数量前十机构统计

select top 10 (select subcompanyname from hrmsubcompany where id=subcompanyid1),count(requestid) as cid from
workflow_currentoperator ,hrmresource
where hrmresource.id =workflow_https://www.wendangku.net/doc/ce16404431.html,erid and isremark in (0,1,8,9) and islasttimes=1 group by subcompanyid1 order by cid desc


相关文档
相关文档 最新文档