常用API

curuserId()

当前用户ID

curext()

当前公司ID

appl.company().ext()

当前公司ID

fieldid2pname(tablenum(VendTable),fieldnum(VendTable,DlvTerm)))

获取字段名

setFocus()

获得焦点

infolog.activateWindow(form.hWnd())

获取窗口焦点

currency::curPrice2CurPrice(Price,CurrencyCode,"USD",CurrencyDate)

价格汇率转换

Currency::curAmount2CurAmount();

金额汇率转换

ReSearch()

保留当前过滤条件、排序等,从数据库中重新刷新数据

executeQuery()

当改变过滤条件、排序等,重新刷取数据

Refresh()

从数据源中读取记录

Reread()

从数据库中读取记录

MkDate(01,1,2011)

用三个整数组合返回日期格式数据

infolog.clear(infolog.line())

清除提示框信息

dateNull()

返回空日期(1900-01-01)

infolog.language("ZH-HANS")

设置语言

element.newPage()

生成新一页

sysquery::valueNot()

查询非值

qr.reset()

查询游标返回第一条记录处

dateTimeUtil::newDateTime()

时间日期组合

sysquery::valueNot(dateTimeutil::newDateTime(datenull(),0))

查询非空日期条件输入

fieldId2Ext(FieldNum(EmplTable,Dimension),2)

数组类型获取字段ID

year(today())

当前年

mthofyr(today())

当前月

dayofmth(today())

当前日

inventTable_ds.object(fieldNum(inventTable,MainMaterial)).allowEdit(False)

数据源对象操作

CompanyInfo::find().CurrencyCode

获取当前货币代码

this.design(#GL_Blank_DefaultCUR)

报表多个设计时,可根据不同情况设置应用实际设计

global::time2StrHMS(timenow() - start)

时间显示

checkFailed()

系统弹出错误,双击错误提示时,可以直接跳到错误代码处

DateTimeUtil::date()

获取时间日期格式中的日期

hasTableAccess(tablenum(SysDataBaseLog),AccessType::Delete)

表权限判断

isConfigurationkeyEnabled(configurationkeynum(SIG))

判断功能是否启用,配置码

CompanyInfo::name()

返回公司名称

element.design().lookupCaption()

返回报表标题

sysquery::findOrCreateRange()

查找或创建查询范围

posted @ 2012-08-30 16:10  Sprite.z  Views(520)  Comments(0Edit  收藏  举报