zoukankan      html  css  js  c++  java
  • 主单位与次单位

    static Qty ConvertUnit(InventTable _inventTable,Qty _qtyFrom,UnitID _unitTo)
    {
        qty         qtyTo;
        ;

        setprefix("Unit Conversion");

        if (_inventTable.inventTableModuleInvent().UnitId == "CT" ||
                                            _inventTable.inventTableModuleInvent().UnitId == "GM")
                {
                    qtyTo  += UnitConvert::qty(_qtyFrom,
                                                _inventTable.inventTableModuleInvent().UnitId,
                                                _unitTo,
                                                _inventTable.ItemId);
                }
                else
                {
                    if (_inventTable.ACT_SecUnitID == "CT" || _inventTable.ACT_SecUnitID == "GM")
                    {
                        qtyTo += UnitConvert::qty(_qtyFrom,
                                                   _inventTable.ACT_SecUnitID,
                                                   _unitTo,
                                                   _inventTable.ItemId);
                    }
                    else
                        Warning(strfmt("Units can not be converted to CT! ItemID:%1,Unit:%2,SecUnit:%3",
                                        _inventTable.ItemId,
                                        _inventTable.inventTableModuleInvent().UnitId,
                                        _inventTable.ACT_SecUnitID
                                        ));
                }

        return qtyTo;

    }

  • 相关阅读:
    在手机浏览器中判断App是否已安装
    用git无法连接github的解决方法
    使用pdf.js显示pdf文件
    Javascript绝句欣赏
    HTTP Keep-Alive模式
    和浏览器并发请求数有关的一些前端技术
    Javascript标准参考教程学习记录
    [nodejs]国内npm安装nodejs modules失败的几个解决方案
    利用sfntly的sfnttool.jar提取中文字体
    Bzoj4378--Poi2015Logistyka
  • 原文地址:https://www.cnblogs.com/perock/p/2375310.html
Copyright © 2011-2022 走看看