File:cn/goods.htm
Method:file.readText(path)
未能找到文件“C:\inetpub\wwwroot\files\document\msds\MSDS-chinese\381716-33-2.html”。
系统IO操作失败
cn/xmls/goods.xmls
...评
$ajax comment(Id){
$if(@Id<>$null){
@queryc=$query(comment,goods);
@queryc[UserId]=$session[UserId];
@queryc[GoodsId]=@Id;
@ind=@queryc.scalar(['count(*)'],['{*UserId =} and {*GoodsId =}']);
$if(@ind>0){
$write(isNo);
$end();
}
$else{
$write(OK);
$end();
}
}
$return($empty);
}
//查询产品SDS
$sub SelectSDS(){
@TableDownload=$query(msds,download);
@TableDownload[GoodsCode]=@GoodsCode;
@FileName=@TableDownload.scalar(FileName,['{*GoodsCode =} and AreaId=1']);
$if(@FileName){
@
texten=$file.readText($file.getMapPath(@FileName));
$return(@texten);
}
$write($empty);
}

//查询产品en SDS
$sub SelectEnSDS(){
@TableDownload=$query(msds,download);
@TableDownload[GoodsCode]=@GoodsCode;
@FileName=@TableDownload.scalar(FileName,['{*GoodsCode =} and AreaId=2']);
$write.out(@FileName,1);
$if(@FileName){
@texten=$file.readText($file.getMapPath(@FileName));
$return(@texten);
}
$write($empty);
}