File:en/product-details.htm
Method:number.round(value)
~value:@
类型不正确
en/xmls/goods.xmls
...dentification]=$argv(0,$null);
@table=@querygoods.map(['GoodsName,EnGoodsName,CAS,MDL,MF,MW,CatalogId,GoodsId,GoodsCode,AnotherName,EnAnotherName,EnDescribe'],[' Status>0 and {*AreaId = $shell.getData(cn)} {?and (} {*CAS = } {?or} {*GoodsCode =} {?or} {*Identification =} {?)}']);
@map=$map();
$if(!@table){
@map[Body]=['<div class="cred">抱歉,没有该产品的详细目录。</div>'];
}
$else{
@map[GoodsName]=@table[EnGoodsName];
@map[CAS]=@table[CAS];
@map[MF]=@table[MF];
@map[MDL]=@table[MDL];
@map[MW]=$number.round(@table[MW],2);
@map[CatalogId]=@table[CatalogId];
@map[GoodsId]=@table[GoodsId];
@map[EnGoodsName]=@table[EnGoodsName];
@map[GoodsCode]=@table[GoodsCode];
@map[EnAnotherName]=@table[EnAnotherName];
@map[EnDescribe]=@table[EnDescribe];
}
$shell.put(@map);
$return($empty);
}
$sub GoodsTitle(){
@querygoods=$query(goods,goods);
@querygoods[CAS]=$argv(0,$null);
@querygoods[GoodsCode]=$argv(0,$null);
@querygoods[Identification]=$argv(0,$null);
@table=@querygoods.map(['Go...