Exemple #1
0
        /// <summary>
        /// 添加回款记录
        /// </summary>
        /// <param name="model">回款实体模型</param>
        public bool InsertExt(Jinher.AMP.BTP.Deploy.CommodityOrderRefundDTO model)
        {
            CommodityOrderRefund modeladd = new CommodityOrderRefund();

            modeladd.Id               = model.Id;
            modeladd.SubTime          = model.SubTime;
            modeladd.SubId            = model.SubId;
            modeladd.CommodityOrderId = model.CommodityOrderId;
            modeladd.OrderItemId      = model.OrderItemId;
            modeladd.RefundType       = model.RefundType;
            modeladd.RefundDate       = model.RefundDate;
            modeladd.RefundAmount     = model.RefundAmount;
            modeladd.Remark           = model.Remark;
            modeladd.ModifiedBy       = "";
            ContextSession contextSession = ContextFactory.CurrentThreadContext;

            modeladd.EntityState = System.Data.EntityState.Added;
            contextSession.SaveObject(modeladd);
            if (contextSession.SaveChanges() == 0)
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 public bool Insert(Jinher.AMP.BTP.Deploy.CommodityOrderRefundDTO model)
 {
     try
     {
         //调用代理方法
         return(base.Channel.Insert(model));
     }
     catch
     {
         //抛异常
         throw;
     }
     finally
     {
         //关链接
         ChannelClose();
     }
 }
 /// <summary>
 /// 添加回款记录
 /// </summary>
 /// <param name="model">回款实体模型</param>
 public bool Insert(Jinher.AMP.BTP.Deploy.CommodityOrderRefundDTO model)
 {
     base.Do();
     return(this.Command.Insert(model));
 }