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;

    }

  • 相关阅读:
    win10 安装ZIP Archive解压版 mysql 以及初始化配置
    python 协程, 异步IO Select 和 selectors 模块 多并发演示
    Python 标准库
    GRUB (简体中文)
    收集了一些python的文章
    SQL注入中的WAF绕过技术
    使用sqlmap中tamper脚本绕过waf
    在Linode VPS上搭建最新版Transmission
    在Linode VPS上搭建离线下载神器Aria2+WEBUI管理及对国内云盘看法
    我的渗透利器
  • 原文地址:https://www.cnblogs.com/perock/p/2375310.html
Copyright © 2011-2022 走看看