zoukankan      html  css  js  c++  java
  • Common Functions(3)

    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));

  • 相关阅读:
    杂题
    jzoj5679
    CF434E
    jzoj6152
    jzoj6150
    mysql 第06章 运算符
    mysql 第05章 数据类型
    mysql 第04章 SQL语句
    mysql 第03章 体系结构
    mysql 第02章 基本操作
  • 原文地址:https://www.cnblogs.com/KobeZhang/p/3924513.html
Copyright © 2011-2022 走看看