虚心像报表统计分析高手请教,接近200个商品的零售统计分析功能
2009-12-11 00:01 通用C#系统架构 阅读(1807) 评论(7) 编辑 收藏 举报首先技术我大概都懂,sql都会写,图形控件也会用,但是我还是做不出专业的,精美的,有深度的,客户喜欢的 统计分析效果。
我想达到的目的:
1. 到底做几个统计图?如何展现给客户才符合客户的口味?
2. 先从那个统计开始,点了哪里后又进入哪里?有深入研究分析过的有没有?例如就是小店卖香烟的,对香烟的销售进行统计分析,如何展示才好?
3. 每日的分析?对比分析?趋势图?%比?用什么表示比较友善?有意义?200来个产品,应该又如何弄才好看?
4. 每日的,每月的,每年的,如何关联联动才好看?
5. 不要告诉我,为了做这个,需要购买几十万的BI软件?最好是用微软的MSChart。
6. 今天哪个几个烟销售得最好?库存哪些烟有多少?销售趋势?库存比重?
7. 若是200种烟,这200种烟的名称,不都把屏幕占满了?怎么办?
8. 还要考虑这些统计图若都放在一个页面上了,为了产生这些效果,计算半个小时,也容易晕倒了。
9. 销售额的统计?销售金额的统计?销售明细清单?
我们学技术不是为了学技术而学,而是为了把学到的技术能用在工作上,有兴趣爱好的朋友们,也可以多研究研究这些实实在在的需求,别老是研究那些无聊的,飘渺的东西,实实在在老百姓能用到的,而且很想用的东西上多花费点儿力气。
由于时间上的原因及想获得一个有水平的报告,年月日统计得非常合理到位的关联联动报表,我想支付500元幸苦费,想从做过类似的人手里购买劳动成果,虽然钱少了点儿,也是心意,若觉得你做得太棒了,的确很棒,可以考虑给更多一点儿的幸苦费,虽然我赚钱也不容易,所谓的一分钱一分货嘛。
若曾经做过类似报表,折腾几下,也500到手了,我想也是不错的事情,最起码可以好吃好喝一段,补一下身体是足够了。
我从来不觉得发布能赚钱的帖子,或者给钱的帖子是什么耻辱? 若有人给我有钱赚的帖子,我很开心,就算钱少,我也愿意看看,是不是我马上就能搞定的?能赚别人的钱,也说明了为社会做出服务了。
我的表结构,请参考以下订单的表,销售的表也跟他应该很类似: 一个主表,一个子表,其他也没有了,就想对这么个零售情况做个精美专业的统计报表,不想什么东西都自己研究了,发包给曾经深入研究的人。
下面表结构只做参考用,没多大实际意义,这个统计报表,也是需要类似的2个表就可以了,现在是在追求友好的展示效果。
create table Convenience_DingDan (
ID nvarchar(50) not null,
CompanyID nvarchar(50) null,
DepartmentID nvarchar(50) null,
WorkgroupID nvarchar(50) null,
Code nvarchar(50) null,
UserID nvarchar(50) not null,
UserCode char(10) null,
UserRealName nvarchar(50) not null,
IdentificationCode nvarchar(50) null,
SongHuoDiDian nvarchar(50) null,
LianXiDianHua nvarchar(50) null,
DingDanZongJinE decimal(18,2) null,
DingDanQueRenShiJian nvarchar(50) null,
JieSuanFangShiID nvarchar(50) null,
JieSuanFangShi nvarchar(50) null,
IPAddress nvarchar(50) null,
AuditStatus nvarchar(50) null,
StatusCode nvarchar(50) null,
DeleteMark int null,
Enabled int null,
Description nvarchar(50) null,
CreateDate smalldatetime null,
CreateUserID nvarchar(50) null,
CreateUserRealname nvarchar(50) null,
ModifyDate smalldatetime null,
ModifyUserID nvarchar(50) null,
ModifyUserRealname nvarchar(50) null,
constraint PK_CONVENIENCE_DINGDAN primary key nonclustered (ID)
)
go
execute sp_addextendedproperty 'MS_Description',
'主键',
'user', '', 'table', 'Convenience_DingDan', 'column', 'ID'
go
execute sp_addextendedproperty 'MS_Description',
'公司主键',
'user', '', 'table', 'Convenience_DingDan', 'column', 'CompanyID'
go
execute sp_addextendedproperty 'MS_Description',
'部门主键',
'user', '', 'table', 'Convenience_DingDan', 'column', 'DepartmentID'
go
execute sp_addextendedproperty 'MS_Description',
'工作组主键',
'user', '', 'table', 'Convenience_DingDan', 'column', 'WorkgroupID'
go
execute sp_addextendedproperty 'MS_Description',
'订单编号',
'user', '', 'table', 'Convenience_DingDan', 'column', 'Code'
go
execute sp_addextendedproperty 'MS_Description',
'用户主键',
'user', '', 'table', 'Convenience_DingDan', 'column', 'UserID'
go
execute sp_addextendedproperty 'MS_Description',
'用户编码',
'user', '', 'table', 'Convenience_DingDan', 'column', 'UserCode'
go
execute sp_addextendedproperty 'MS_Description',
'用户姓名',
'user', '', 'table', 'Convenience_DingDan', 'column', 'UserRealName'
go
execute sp_addextendedproperty 'MS_Description',
'识别码',
'user', '', 'table', 'Convenience_DingDan', 'column', 'IdentificationCode'
go
execute sp_addextendedproperty 'MS_Description',
'送货地点',
'user', '', 'table', 'Convenience_DingDan', 'column', 'SongHuoDiDian'
go
execute sp_addextendedproperty 'MS_Description',
'联系电话',
'user', '', 'table', 'Convenience_DingDan', 'column', 'LianXiDianHua'
go
execute sp_addextendedproperty 'MS_Description',
'订单总金额',
'user', '', 'table', 'Convenience_DingDan', 'column', 'DingDanZongJinE'
go
execute sp_addextendedproperty 'MS_Description',
'订单确认时间',
'user', '', 'table', 'Convenience_DingDan', 'column', 'DingDanQueRenShiJian'
go
execute sp_addextendedproperty 'MS_Description',
'结算方式主键',
'user', '', 'table', 'Convenience_DingDan', 'column', 'JieSuanFangShiID'
go
execute sp_addextendedproperty 'MS_Description',
'结算方式',
'user', '', 'table', 'Convenience_DingDan', 'column', 'JieSuanFangShi'
go
execute sp_addextendedproperty 'MS_Description',
'IP地址',
'user', '', 'table', 'Convenience_DingDan', 'column', 'IPAddress'
go
execute sp_addextendedproperty 'MS_Description',
'审核状态',
'user', '', 'table', 'Convenience_DingDan', 'column', 'AuditStatus'
go
execute sp_addextendedproperty 'MS_Description',
'状态码',
'user', '', 'table', 'Convenience_DingDan', 'column', 'StatusCode'
go
execute sp_addextendedproperty 'MS_Description',
'删除标记',
'user', '', 'table', 'Convenience_DingDan', 'column', 'DeleteMark'
go
execute sp_addextendedproperty 'MS_Description',
'有效标志',
'user', '', 'table', 'Convenience_DingDan', 'column', 'Enabled'
go
execute sp_addextendedproperty 'MS_Description',
'备注',
'user', '', 'table', 'Convenience_DingDan', 'column', 'Description'
go
execute sp_addextendedproperty 'MS_Description',
'创建日期',
'user', '', 'table', 'Convenience_DingDan', 'column', 'CreateDate'
go
execute sp_addextendedproperty 'MS_Description',
'创建用户主键',
'user', '', 'table', 'Convenience_DingDan', 'column', 'CreateUserID'
go
execute sp_addextendedproperty 'MS_Description',
'创建用户',
'user', '', 'table', 'Convenience_DingDan', 'column', 'CreateUserRealname'
go
execute sp_addextendedproperty 'MS_Description',
'修改日期',
'user', '', 'table', 'Convenience_DingDan', 'column', 'ModifyDate'
go
execute sp_addextendedproperty 'MS_Description',
'修改用户主键',
'user', '', 'table', 'Convenience_DingDan', 'column', 'ModifyUserID'
go
execute sp_addextendedproperty 'MS_Description',
'修改用户',
'user', '', 'table', 'Convenience_DingDan', 'column', 'ModifyUserRealname'
go
create table Convenience_DingDanMingXi (
ID nvarchar(50) not null,
DingDanID nvarchar(50) not null,
ShangPinID nvarchar(50) not null,
ShangPinMingCheng nvarchar(50) null,
JiLiangDanWei nvarchar(50) null,
ChengBenJia numeric(18,2) not null default 0,
LingShouJia numeric(18,2) not null default 0,
ShuLiang int not null default 0,
FaHuoShuLiang int not null default 0,
AuditStatus nvarchar(50) null,
StatusCode nvarchar(50) null,
SortCode nvarchar(50) null,
DeleteMark int not null default 0,
Enabled int not null default 1,
Description nvarchar(50) null,
CreateDate smalldatetime null,
CreateUserID nvarchar(50) null,
CreateUserRealname nvarchar(50) null,
ModifyDate smalldatetime null,
ModifyUserID nvarchar(50) null,
ModifyUserRealname nvarchar(50) null,
constraint PK_CONVENIENCE_DINGDANMINGXI primary key nonclustered (ID)
)
go
execute sp_addextendedproperty 'MS_Description',
'主键',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'ID'
go
execute sp_addextendedproperty 'MS_Description',
'订单主键',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'DingDanID'
go
execute sp_addextendedproperty 'MS_Description',
'商品主键',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'ShangPinID'
go
execute sp_addextendedproperty 'MS_Description',
'商品名称',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'ShangPinMingCheng'
go
execute sp_addextendedproperty 'MS_Description',
'计量单位',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'JiLiangDanWei'
go
execute sp_addextendedproperty 'MS_Description',
'成本价',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'ChengBenJia'
go
execute sp_addextendedproperty 'MS_Description',
'零售价',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'LingShouJia'
go
execute sp_addextendedproperty 'MS_Description',
'数量',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'ShuLiang'
go
execute sp_addextendedproperty 'MS_Description',
'实际发货数量',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'FaHuoShuLiang'
go
execute sp_addextendedproperty 'MS_Description',
'审核状态',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'AuditStatus'
go
execute sp_addextendedproperty 'MS_Description',
'状态码',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'StatusCode'
go
execute sp_addextendedproperty 'MS_Description',
'排序码',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'SortCode'
go
execute sp_addextendedproperty 'MS_Description',
'删除标记',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'DeleteMark'
go
execute sp_addextendedproperty 'MS_Description',
'有效标志',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'Enabled'
go
execute sp_addextendedproperty 'MS_Description',
'备注',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'Description'
go
execute sp_addextendedproperty 'MS_Description',
'创建日期',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'CreateDate'
go
execute sp_addextendedproperty 'MS_Description',
'创建用户主键',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'CreateUserID'
go
execute sp_addextendedproperty 'MS_Description',
'创建用户',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'CreateUserRealname'
go
execute sp_addextendedproperty 'MS_Description',
'修改日期',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'ModifyDate'
go
execute sp_addextendedproperty 'MS_Description',
'修改用户主键',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'ModifyUserID'
go
execute sp_addextendedproperty 'MS_Description',
'修改用户',
'user', '', 'table', 'Convenience_DingDanMingXi', 'column', 'ModifyUserRealname'
go