帆软学习笔记

控制控件显示隐藏

_g().getWidgetByName('report0').setVisible(false)

字符串拼接

CONCATENATE("核心市场",LEFT($endtime,4),"年",RIGHT($endtime,2),"月价格情况")

sql查询接收日期控件传参:

select 
	year,
	month,
	yearmonth,
	country,
	segment,
	rank_no,
	model,
	round(volume,0) as volume,
	round(ytd_volume,0) as ytd_volume,
	concat(round(min_msrp_price,0),"~",round(max_msrp_price,0)) as msrp_price,
	concat(round(min_tp_price,0),"~",round(max_tp_price,0)) as tp_price,
	concat(round(diff_min_tpprice,0),"~",round(diff_max_tpprice,0)) as diff_tpprice,
	round((diff_min_tpprice-diff_mg_price)/diff_mg_price,0) as diff_mg_price,
	diff_min_tpprice,
	diff_max_tpprice,
	case 
    when diff_min_tpprice < 0 then '1' 
    when diff_max_tpprice > 0 then '2'  
    when diff_min_tpprice = 0 and diff_max_tpprice = 0 then '3'
    else '0' 
    end price_trend,
    CONCAT(country,"_",model) as link
    
from t_ids_coreprice
where 1=1
${if(len(endtime)=0,""," and yearmonth='"+endtime+"'")}
order by country,segment,rank_no

sql接收链接传参:

select 
	round(min_tp_price,0) as min_tp_price,
	round(max_tp_price,0) as max_tp_price,
	round((max_tp_price-min_tp_price),0) as dif_tp_price,
	yearmonth
from t_industry_price_l2
where country = '${country_chart}' and model = '${model_chart}' and year = '${endtime}'

隔行变色

普通报表修改日期控件后提交:

JS实现无需点击查询按钮即可自动查询- FineReport帮助文档 - 全面的报表使用教程和学习资料

_g().parameterCommit();

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

江湖行骗老中医

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值