“近7日”按钮(提交1)装载时脚本:
var color=new Color(0xE8F4FF) //选中背景色
var bk=new Color(0x8CC4D3)//选中边框色
var zt=new Color(0xFFFFFF)//字体未选中色
var bk1=new Color(0xE6E6E6)//未选中边框色
var color1=new Color(0xFFFFFF)//未选中背景色
var zt1=new Color(0x000000)//字体未选中色
var loc=new Locator([],COMMIT_TEXT,DETAIL);
提交1.setBackground(loc,color)
提交1.setBorderColor(loc,bk)
“近7日”按钮(提交1)提交时脚本:
var color=new Color(0xE8F4FF) //选中背景色
var bk=new Color(0x8CC4D3)//选中边框色
var zt=new Color(0xFFFFFF)//字体未选中色
var bk1=new Color(0xE6E6E6)//未选中边框色
var color1=new Color(0xFFFFFF)//未选中背景色
var zt1=new Color(0x000000)//字体未选中色
var loc=new Locator([],COMMIT_TEXT,DETAIL);
提交1.setBackground(loc,color)
提交1.setBorderColor(loc,bk)
提交4.setBackground(loc,color1)
提交4.setBorderColor(loc,bk1)
提交2.setBackground(loc,color1)
提交2.setBorderColor(loc,bk1)
提交3.setBackground(loc,color1)
提交3.setBorderColor(loc,bk1)
提交5.setBackground(loc,color1)
提交5.setBorderColor(loc,bk1)
day_1=dateAdd(today(),'day',0) //今天
day_10=dateAdd(today(),'day',-6) //10天前
param["start"]=day_10;param["end"]=day_1;
param['ratio']=formatNumber(文本30.data,"#,##0.0%")
start.value=param["start"];
end.value=param["end"];
param['t']=param["start"];
param['t1']=param["end"];
“今日”按钮提交时脚本(提交4),装载无脚本:
var color=new Color(0xE8F4FF) //选中背景色
var bk=new Color(0x8CC4D3)//选中边框色
var zt=new Color(0xFFFFFF)//字体未选中色
var bk1=new Color(0xE6E6E6)//未选中边框色
var color1=new Color(0xFFFFFF)//未选中背景色
var zt1=new Color(0x000000)//字体未选中色
var loc=new Locator([],COMMIT_TEXT,DETAIL);
提交4.setBackground(loc,color)
提交4.setBorderColor(loc,bk)
提交1.setBackground(loc,color1)
提交1.setBorderColor(loc,bk1)
提交2.setBackground(loc,color1)
提交2.setBorderColor(loc,bk1)
提交3.setBackground(loc,color1)
提交3.setBorderColor(loc,bk1)
提交5.setBackground(loc,color1)
提交5.setBorderColor(loc,bk1)
day_1=formatDate(today(),"yyyy-MM-dd")//今日
param["start"]=day_1;param["end"]=day_1;
param['ratio']=formatNumber(文本30.data,"#,##0.0%")
start.value=param["start"];
end.value=param["end"];
param['t']=param["start"];
param['t1']=param["end"]; |