Esempio n. 1
0
        public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO UpdateCommodity(Jinher.AMP.BTP.Deploy.CustomDTO.CommodityAndCategoryDTO commodityAndCategoryDTO)
        {
            //定义返回值
            Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO result;

            try
            {
                //调用代理方法
                result = base.Channel.UpdateCommodity(commodityAndCategoryDTO);
            }
            catch
            {
                //抛异常
                throw;
            }
            finally
            {
                //关链接
                ChannelClose();
            }            //返回结果
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// 修改商品
 /// </summary>
 /// <param name="commodityAndCategoryDTO">商品扩展实体</param>
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO UpdateCommodity(Jinher.AMP.BTP.Deploy.CustomDTO.CommodityAndCategoryDTO commodityAndCategoryDTO)
 {
     base.Do();
     return(this.UpdateCommodityExt(commodityAndCategoryDTO));
 }
Esempio n. 3
0
 /// <summary>
 /// 添加商品
 /// </summary>
 /// <param name="commodityAndCategoryDTO">商品扩展实体</param>
 /// <returns></returns>
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO SaveCommodity(Jinher.AMP.BTP.Deploy.CustomDTO.CommodityAndCategoryDTO commodityAndCategoryDTO)
 {
     base.Do();
     return(this.Command.SaveCommodity(commodityAndCategoryDTO));
 }