码迷,mamicode.com
首页 > 其他好文 > 详细

Common Functions(3)

时间:2014-08-20 16:01:22      阅读:180      评论:0      收藏:0      [点我收藏+]

标签: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

Common Functions(3)

标签:io   strong   ar   cti   amp   new   on   sp   

原文地址:http://www.cnblogs.com/AllenFeng/p/3924513.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!