Esempio n. 1
0
        private static string GetShopStep(string shopID)
        {
            if (BopHelper.IsArrayShop(shopID))
            {
                return(ARRAY_STEP);
            }

            if (BopHelper.IsCfShop(shopID))
            {
                return(CF_STEP);
            }

            if (BopHelper.IsCellShop(shopID))
            {
                return(CELL_STEP);
            }

            return(Constants.NULL_ID);
        }
Esempio n. 2
0
        internal static string GetCfCode(string cellCode)
        {
            var list = GetCellBomByCellCode(cellCode, CellActionType.Ship);

            if (list == null || list.Count == 0)
            {
                return(null);
            }

            foreach (var item in list)
            {
                if (BopHelper.IsCfShop(item.FromShopID))
                {
                    return(item.FromProductID);
                }
            }

            return(null);
        }