K3中 报表汇总行颜色不同
来源:互联网 发布:数据同步解决方案 编辑:程序博客网 时间:2024/05/16 04:22
CREATE PROCEDURE proc_weber_seorder_sum
@datefrom datetime,
@dateto datetime
AS
SET NOCOUNT ON
--销售订单明细表
select c.fnumber cust_number,m.fbillno,''+convert(char(10),m.fdate,121) fdate,d.fentryid,i.fnumber,i.fname,i.fmodel,d.fqty,99 as FSumSort
into #tmp_weber
from SEOrder m,SEOrderentry d,t_icitem i,t_Organization c
where m.finterid=d.finterid and d.fitemid=i.fitemid and m.fcustid=c.fitemid and m.fdate between @datefrom and @dateto
union
select c.fnumber,m.fbillno,'','','','','',sum(d.fqty) qty,99 as fsumsort
from SEOrder m,SEOrderentry d,t_icitem i,t_Organization c
where m.finterid=d.finterid and d.fitemid=i.fitemid and m.fcustid=c.fitemid and m.fdate between @datefrom and @dateto
group by c.fnumber,c.fname,m.fbillno WITH ROLLUP
update #tmp_weber
set cust_number='总 计▼',fbillno=convert(char(10),@dateto,121),fentryid=(null),fsumsort=101
from #tmp_weber
where cust_number is null
update #tmp_weber
set fbillno='客户小计▼',fdate=convert(char(10),@dateto,121),fentryid=(null),fsumsort=100
from #tmp_weber
where fbillno is null
update #tmp_weber
set fdate='订单小计▼',fentryid=(null),fsumsort=101
from #tmp_weber
where fentryid=0
select t.cust_number,c.fname as cfname,t.fbillno,t.fentryid,t.fdate,t.fnumber,t.fname,t.fmodel,t.fqty,t.fsumsort
from #tmp_weber t
left join t_Organization c on t.cust_number=c.fnumber
drop table #tmp_weber
SET NOCOUNT OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
@datefrom datetime,
@dateto datetime
AS
SET NOCOUNT ON
--销售订单明细表
select c.fnumber cust_number,m.fbillno,''+convert(char(10),m.fdate,121) fdate,d.fentryid,i.fnumber,i.fname,i.fmodel,d.fqty,99 as FSumSort
into #tmp_weber
from SEOrder m,SEOrderentry d,t_icitem i,t_Organization c
where m.finterid=d.finterid and d.fitemid=i.fitemid and m.fcustid=c.fitemid and m.fdate between @datefrom and @dateto
union
select c.fnumber,m.fbillno,'','','','','',sum(d.fqty) qty,99 as fsumsort
from SEOrder m,SEOrderentry d,t_icitem i,t_Organization c
where m.finterid=d.finterid and d.fitemid=i.fitemid and m.fcustid=c.fitemid and m.fdate between @datefrom and @dateto
group by c.fnumber,c.fname,m.fbillno WITH ROLLUP
update #tmp_weber
set cust_number='总 计▼',fbillno=convert(char(10),@dateto,121),fentryid=(null),fsumsort=101
from #tmp_weber
where cust_number is null
update #tmp_weber
set fbillno='客户小计▼',fdate=convert(char(10),@dateto,121),fentryid=(null),fsumsort=100
from #tmp_weber
where fbillno is null
update #tmp_weber
set fdate='订单小计▼',fentryid=(null),fsumsort=101
from #tmp_weber
where fentryid=0
select t.cust_number,c.fname as cfname,t.fbillno,t.fentryid,t.fdate,t.fnumber,t.fname,t.fmodel,t.fqty,t.fsumsort
from #tmp_weber t
left join t_Organization c on t.cust_number=c.fnumber
drop table #tmp_weber
SET NOCOUNT OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
- K3中 报表汇总行颜色不同
- Birt 报表奇偶行颜色不同设置
- K3报表
- 关于在ALV报表单元或行标识不同的颜色的处理
- RDLC报表隔行不同背景颜色显示的完美解决方案
- reportservice报表单元格根据条件显示不同的颜色
- Flex中表格的行背景显示不同的颜色
- K3自定义sql报表字段显示标题
- 金蝶K3 SQL报表系列-委外未勾稽明细表
- TRQ-K3报表需求实现过程记录
- 在GridView中,不同条件的行显示不同的颜色
- 在GridView中,不同条件的行显示不同的颜色
- 不同的值,行的颜色不同
- 奇偶行table颜色不同
- 金蝶K3工业单据二次开发指导汇总
- 页面中超连接不同的颜色
- c#中richtextbox显示不同的颜色
- 水晶报表 奇偶行颜色控制
- 图片被页面缓存的问题解决方案
- [转]管理Web网站安全五个常遇问题
- 常用正则表达式收集
- Sql注射国家文化网官方站点
- 将excel表中数据导入到oracle中
- K3中 报表汇总行颜色不同
- 草它妈!
- 工具和工具使用手册请说明
- Filter编码过滤器
- JAVASCRIPT 判断数组是否有值 以及是否有重复值
- 印刷版 Wikipedia 已正式出版
- first throw.
- K3中 生产物料级次 charindex的应用
- java面试大全