标签:io strong ar cti amp new on sp
1.获取Excl中sheet的名字
SysExcelWorkbooks workbooks = application.workbooks();
SysExcelWorkbook workbook;
SysExcelWorksheets worksheets;
SysExcelWorksheet worksheet;
workbook = workbooks.item(1);
worksheets = workbook.worksheets();
worksheet = worksheets.itemFromNum(1);
2.EXCEL 中去掉隐藏引句的公式
SUBSTITUTE(C4,CHAR(9),)
3.excel
=text(c4,0) 再复制 用数值粘贴
这时令人兴奋的小绿箭头已经出现了
4.取随机数
RandomGenerate RandomGenerate = new RandomGenerate();
print RandomGenerate.randomint(1000,9999);
pause;
5.获取整数,不四舍五入
roundDownDec(1.25,0)
6.得到库存单位
inventtablemodule::find(inventtable.ItemId,moduleinventpurchsales::Invent,true).UnitId;
7.物料的现有量
while select inventsum where inventsum.ItemId == inventtable.ItemId
join inventdim
where (inventdim.inventDimId == inventsum.InventDimId) &&
(inventdim.InventLocationId == "浸大仓"){
qty += inventsum.PhysicalInvent();
}
info(int2str(qty));
Common Functions(3),布布扣,bubuko.com
标签:io strong ar cti amp new on sp
原文地址:http://www.cnblogs.com/AllenFeng/p/3924513.html