Blog信息 |
blog名称:注册会计师(注会)练习软件 日志总数:398 评论数量:116 留言数量:27 访问次数:3266114 建立时间:2005年6月6日 |

| |
[delpih编程]在aspx中调用delphi.net函数(eco编程) 软件技术
吕向阳 发表于 2009/3/15 11:07:17 |
ECO做网页时,运用到ASPX中调用DELPHI中的函数,其格式如下:
**
">产品一
其中(1)为调用的格式,其应该在外面的“”里面
(2)不要用,函数用=号
getid函数的功能,根据自己标定的文章的顺序号,取得其ECO的内生ID号,运用到一个服务:
IExternalIdService,这个服务的引用单元是borland.eco.Services,
具体实现如下:
function ttop.getid(sxh: integer): string;
var anews: news;
ies: IExternalIdService;
begin
result := '';
ehnews.Expression := 'news.allInstances->select(sxh=' + sxh.ToString.Trim + ')';
if ehnews.Element.GetAsCollection.Count > 0 then
begin
anews := ehnews.element.GetAsCollection()[0].asobject as news;
ies := EcoSpace.GetEcoService(typeof(IExternalIdService)) as IExternalIdService;
result := ies.IdForObject(anews.AsIObject());
end;
end;
|
|
|