• 主单位与次单位


    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;

    }

  • 相关阅读:
    iOS开发_微信支付接入报错 +[WXOMTAHelper GUnzip:Out:] in libWeChatSDK.a(MTAHelper.o)
    iOS开发_适配深色模式
    Apple开发_emoji符号含义
    iOS开发_程序闪退的原因以及处理办法
    iOS开发_does not contain bitcode.”的错误解决办法
    Apple开发_限制平板应用运行在mac上窗口的尺寸
    Apple开发_计算一个字符串中包含几个目标子字符串
    OpenCV 简单使用
    效率工具
    win10 安装u8 11.0遇到的问题
  • 原文地址:https://www.cnblogs.com/perock/p/2375310.html
Copyright © 2020-2023  润新知