码迷,mamicode.com
首页 > 其他好文 > 详细

润乾报表 4.0 与润乾报表 V2018 函数对照

时间:2020-01-10 12:58:46      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:icm   top   tar   string   group   The   enum   map   report   

之前使用报表处理是出现了一些问题,原来发现是版本造成的。此文记录两个版本之间的函数差别。

官方资料入口:http://doc.raqsoft.com.cn/report/preference/wdzl1.html

润乾报表4.0

润乾报表V2018

润乾报表V2018备注

数据集函数 ( 原润乾报表4.0已删除函数为:ds.enumGroup )

ds.avg()

同ds.avg()

@r用根集;@a 计数null

ds. bselect1()

ds.bfind(select, {refer1:order1:value1},…,{refer2:order2:value2})

@r用根集

ds. colcount()

ds.fcount()

 

ds.count()

同ds.count()

@r用根集;

ds.dcount()

同ds.dcount()

@r用根集

ds.dselect()

参见ds.select()

@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())

ds.field()

同ds.field()

 

ds.fieldname()

ds.fname(fieldNoExp)

 

ds.first()

参见ds.select()

@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())

ds.group()

同ds.group()

@r用根集,order省略为不排序,>0升序,<0降序;

order1,..,ordern省略时升序

(将润乾报表4.0的ds.group()、ds.groupEx()合并为润乾报表V2018的ds.group())

ds.groupEx()

参见ds.group()

@r用根集(将润乾报表4.0的ds.group()、ds.groupEx()合并为润乾表的ds.group())

ds.isfield()

同ds.isfield()

 

ds.last()

参见ds.select

@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())

ds.max()

同ds.max(select,{filter})

@r用根集

ds.min()

同ds.min(select,{filter})

@r用根集

ds.plot()

同ds.plot(value,list,{filter})

@c包含相等,@z降序,@r用根集

ds.select()

同ds.select(select:{order},{filter},{num},{distinct})

ds.select(select,{filter},{num},{distinct};{sort1}:{order1},…)

@r用根集,@z从后数, num省略时返回全部(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())

ds.select1()

参见ds.select()

@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())

ds.selectEx()

参见ds.select()

@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())

ds.sum()

同ds.sum(select,{filter})

@r用根集(将润乾报表4.0的ds.dselect()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())

ds.top()

参见ds.select()

@r用根集(将润乾报表4.0的ds.dselect()、ds.select()、ds.first()、ds.last()、ds.select1()、ds.selectEx()、ds.top()合并为集算器的ds.select())

单元格函数 (原润乾报表4.0已删除函数为:inputvalue ())

avg()

同avg(exp)

@a 对null元素进行计数

(将润乾报表4.0的avg()、avg2()合并为润乾报表V2018的avg())

avg2()

参见avg(cellExp,exp)

将润乾报表4.0的avg()、avg2()合并为润乾报表V2018的avg()

call()

同call(sqlStatement{,arg1{,arg2{,arg3{,……}}}}{;dbName})

将润乾报表4.0的call()、call2()合并为润乾报表V2018的call()

call2()

参见call()

将润乾报表4.0的call()、call2()合并为润乾报表V2018的call()

case()

同case()

 

cell()

同cell()

 

col()

同col()

 

count()

同count(exp)

@a对null元素进行计数

@d对去除重复内容后的数据进行计数

disp()

同disp()

 

ds()

同ds()

 

eval()

同eval()

 

if()

同if(x1:y1,…,xk:yk;y)

 

list()

list(valueExp1{,valueExp2{,valueExp3{,……}}})

@m 各元素递归并集,对内部的list不展开

(将润乾报表4.0的list()、list2()合并为润乾报表V2018的list())

list2()

参见list()

将润乾报表4.0的list()、list2()合并为润乾报表V2018的list()

map()

同map()

 

max()

max(x)

max(x,cell)

 

maxc()

同maxc()

 

maxwidth()

同maxwidth()

 

min()

同min()

 

minc()

同minc()

 

nvl()

ifn( valueExp1, valueExp2 )

 

plot()

plot( valueExp, ListExp)

@e包含等于,@z指list降序否则升序

query()

query(sqlStatement{,arg1{,arg2{,arg3{,……}}}}{;dbName})

将润乾报表4.0的query()、query2()合并为润乾报表V2018的query()

query2()

参见query()

将润乾报表4.0的query()、query2()合并为润乾报表V2018的query()

row()

同row()

 

seq()

同seq()

 

sort()

sort(array)

@z降序

sum()

sum(expression)

sum(exp,cellExp)

 

throwe()

throwe({msg})

 

to()

同to()

 

value()

同value()

 

valueat()

同valueat()

 

时间日期函数 (原润乾报表4.0已删除函数为:dayNo() )

age()

age(dateExp{,typeExp{,dateExp2}}) age(stringExp,formatExp{{,typeExp},date2Exp})

 

date()

date(stringExp)

date(year,month,day)

 

dateTime()

datetime(string)

datetime(long)

将润乾报表4.0的dateTime()、dateTime2()合并为润乾报表V2018的datetime ()

dateTime2()

datetime(string, format)

将润乾报表4.0的dateTime()、dateTime2()合并为润乾报表V2018的datetime ()

day()

同day(dateExp)

 

dayName()

同dayName(dateExp)

 

daysAfter()

interval (datetimeExp1,datetimeExp2)

@y计算两个日期时间型数据相差几年

@q  计算两个日期时间型数据相差几季度

@m 计算两个日期时间型数据相差几月

@s  计算两个日期时间型数据相差几秒

@ms计算两个日期时间型数据相差几毫秒

@r  计算两个日期时间型数据间隔,返回实数

缺省为计算两个日期时间型数据相差几天

(将润乾报表4.0的daysAfter()、secondsAfter()合并为润乾报表V2018的interval())

daysinmonth()

参见days(dateExp)

将润乾报表4.0的daysinmonth ()、daysinyear()合并为润乾报表V2018的days()

daysinyear()

参见days@y(dateExp)

将润乾报表4.0的daysinmonth ()、daysinyear()合并为润乾报表V2018的days()

hour()

同hour(datetimeExp)

 

lastday()

elapse(dateExp, n)

将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()

lastmonth()

elapse@m (dateExp, n)

将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()

lastyear()

elapse@y (dateExp, n)

将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()

minute()

同minute()

 

month()

同month()

 

monthbegin()

pdate @m(dateExp)

将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()

monthend()

pdate @me(dateExp)

将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()

now()

同now()

 

quaterbegin()

pdate @q(dateExp)

将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()

quaterend()

pdate @qe(dateExp)

将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()

relDate()

参见elapse(dateExp, n)

将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()

relTime()

参见elapse@s(dateExp, n)

将润乾报表4.0的lastday()、lastmonth ()、lastyear()、relDate()、relTime()合并为润乾报表V2018的elapse()

second()

同second(datetimeExp)

 

secondsAfter()

参见interval@s (datetimeExp1,datetimeExp2)

将润乾报表4.0的daysAfter()、secondsAfter()合并为润乾报表V2018的interval()

time()

同time()

 

weekbegin()

pdate @w(dateExp)

将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()

weekend()

pdate @we(dateExp)

将润乾报表4.0的monthbegin ()、monthend ()、queterbegin ()、quaterend ()、weekbegin()、weekend()合并为润乾报表V2018的pdate()

year()

同year(dateExp))

 

数学函数

abs()

同abs()

 

ceil()

同ceil()

 

cos()

同cos()

 

exp()

同exp()

 

fact()

同fact()

 

floor()

同floor()

 

log()

ln(numberExp)

 

log10()

lg (numberExp)

 

pi()

同pi()

 

pow()

同power(xExp, nExp)

 

rand()

同rand()

 

round()

同round()

 

sign()

同sign()

 

sin()

同sin()

 

sqrt()

同sqrt()

 

tan()

同tan()

 

asin()

同asin()

 

acos()

同acos()

 

atan()

同atan()

 

字符串函数 (原润乾报表4.0已删除函数为:ltrim ()、rtrim())

fill()

同fill(s, n)

 

left()

同left(string, n)

 

len()

同len(str)

 

like()

同like( stringExp, formatExp{, ignoreCase} )

 

link()

同link(serviceName{,jspArgNames,jspArgValues{,reportArgNames,reportArgValues}})

 

lower()

同lower(str)

 

mid()

同mid(s, start{, end})

 

pos()

同pos()

 

right()

同right(s, n)

 

rmQuote()

同rmquote(exp)

 

rmb()

同rmb()

 

rplc()

replace( src,a,b)

 

space()

同space()

 

split()

同split()

 

trim()

同trim(s)

 

upper()

同upper()

 

wordCap()

同wordcap()

 

数据类型转换

asc()

同asc( string{, nPos} )

 

bigint()

bigint(stringExp)

bigint(numberExp)

 

char()

同char( int )

 

chn()

同chn(intExp{,abbrivateExp{, uppercaseExp }} )

 

decimal()

同deicmal()

 

double()

同double()

 

float()

同float()

 

hexstring()

同hexstring(dataExp{,spaceExp})

 

int()

同int()

 

isdate()

同isdate()

 

isEmpty ()

同isempty ()

 

isnumber()

同isnumber()

 

istime()

同istime()

 

long()

同long()

 

number()

同number()

 

rgb()

同rgb( redIntExp, greenIntExp, blueIntExp{, alphaIntExp} )

 

str()

string(expression{, format})

 

分页后运算函数

pno()

同pno()

@x 在横向分页的页表中的页码

@y 在纵向分页的页表中的页码

pcount()

同pcount()

@x 在横向分页的页表中的页码

@y 在纵向分页的页表中的页码

pcsum()

同pcsum({cellExp})

 

pccount()

同pccount({cellExp})

 

资料来源于网络。

润乾报表 4.0 与润乾报表 V2018 函数对照

标签:icm   top   tar   string   group   The   enum   map   report   

原文地址:https://www.cnblogs.com/kaspar/p/12175451.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!