Пример #1
0
        ///// <summary>
        ///// ERP发货,审核出库绑定快递列表
        ///// </summary>
        ///// <param name="saleFilialeId"> </param>
        ///// <param name="msg"></param>
        ///// <returns></returns>
        //public static IList<ExpressCodeDTO> GetExpressCodeList(Guid saleFilialeId, out string msg)
        //{
        //    msg = string.Empty;
        //    using (var client = ClientProxy.CreateShopStoreWcfClient(saleFilialeId))
        //    {
        //        var result = client.Instance.SelectExpressCodeList();
        //        if (result == null || !result.IsSuccess)
        //        {
        //            msg = result == null ? "获取快递信息列表失败!" : result.Message;
        //            return null;
        //        }
        //        return result.Data;
        //    }
        //}

        /// <summary>
        /// ERP发货,添加物流绑定
        /// </summary>
        /// <param name="saleFilialeId"></param>
        /// <param name="bindExpressDto"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        public static bool InsertBindExpress(Guid saleFilialeId, BindExpressDTO bindExpressDto, out string msg)
        {
            msg = string.Empty;
            using (var client = ClientProxy.CreateShopStoreWcfClient(saleFilialeId))
            {
                var result = client.Instance.InsertBindExpress(bindExpressDto, false);
                if (result == null || !result.IsSuccess)
                {
                    msg = result == null ? "插入物流绑定信息失败!" : result.Message;
                    return(false);
                }
                return(true);
            }
        }
Пример #2
0
 /// <summary>
 /// 添加联盟店入库申请
 /// </summary>
 /// <param name="saleFilialeId"></param>
 /// <param name="stockDto"></param>
 /// <param name="stockDetailDtos">入库明细</param>
 /// <param name="isPurchase">是否为采购入库</param>
 /// <param name="expressDto">物流绑定</param>
 /// <param name="totalPrice">退回金额</param>
 /// <param name="msg"> </param>
 /// <returns>生成的入库单据号</returns>
 public static string InsertStock(Guid saleFilialeId, StockDTO stockDto, IList <StockDetailDTO> stockDetailDtos,
                                  bool isPurchase, BindExpressDTO expressDto, decimal totalPrice, out string msg)
 {
     msg = string.Empty;
     using (var client = ClientProxy.CreateShopStoreWcfClient(saleFilialeId))
     {
         var result = client.Instance.InsertStock(stockDto, stockDetailDtos, totalPrice, isPurchase, expressDto);
         if (result == null || !result.IsSuccess)
         {
             msg = result == null ? "联盟店入库申请插入失败!" : result.Message;
             return(string.Empty);
         }
         return(result.Data);
     }
 }