zoukankan      html  css  js  c++  java
  • AX 2012 createInventDim

    public InventDimId createInventDim(ItemId                       _itemId,
                                       InventBatchId                _inventBatchId,
                                       WMSLocationId                _wmsLocationId,
                                       WMSPalletId                  _wmsPalletId,
                                       InventSerialId               _inventSerialId,
                                       InventLocationId             _inventLocationId,
                                       EcoResItemConfigurationName  _configId,
                                       EcoResItemSizeName           _inventSizeId,
                                       EcoResItemColorName          _inventColorId,
                                       InventSiteId                 _inventSiteId
                                       )

    {
        InventTable item = InventTable::find(_itemId);
        InventDim   inventDim;
        ;
        #InventDimDevelop
        inventDim.InventBatchId     = _inventBatchId;
        inventDim.wmsLocationId     = _wmsLocationId;
        inventDim.wmsPalletId       = _wmsPalletId;
        inventDim.InventSerialId    = _inventSerialId;

        inventDim.InventLocationId  = _inventLocationId;

        if(item.configActive())
        {
            inventDim.ConfigId          = _configId;
        }
        if(item.sizeActive())
        {
            inventDim.InventSizeId      = _inventSizeId;
        }
        if(item.colorActive())
        {
            inventDim.InventColorId     = _inventColorId;
        }
        inventDim.InventSiteId      = _inventSiteId;
        inventDim.initFromInventLocation(inventDim.inventLocation());
        inventDim = InventDim::findOrCreate(inventDim);
        return inventDim.InventDimId;
    }

  • 相关阅读:
    《鸟哥的私房菜阅读摘要》——linux的简介和计算机基础
    抽象类可以有构造函数吗
    Java对象及对象引用变量
    html5的学习笔记
    xhtml的学习笔记
    交换机配置原理
    (转)MSI
    python xy
    Microsoft SilverLightt是一个跨浏览器的、跨平台的插件,为网络带来下一代基于.NETFramework的媒体体验和丰富的交互式应用程序。
    epub使用Adobe Digital Editions打开
  • 原文地址:https://www.cnblogs.com/fogfog/p/6144445.html
Copyright © 2011-2022 走看看