Beispiel #1
0
 /// <summary>
 /// 添加采购单详情
 /// </summary>
 /// <param name="model">采购单详情实体</param>
 /// <returns></returns>
 /// <remarks>2016-6-17 杨浩 创建</remarks>
 public override int AddPurchaseDetails(PrPurchaseDetails model)
 {
     model.SysNo = Context.Insert("PrPurchaseDetails", model)
                   .AutoMap(o => o.SysNo)
                   .ExecuteReturnLastId <int>("SysNo");
     return(model.SysNo);
 }
Beispiel #2
0
        /// <summary>
        /// 更新采购单详情
        /// </summary>
        /// <param name="model">采购单详情实体</param>
        /// <returns></returns>
        /// <remarks>2016-6-17 杨浩 创建</remarks>
        public override int UpdatePurchaseDetails(PrPurchaseDetails model)
        {
            int rows = Context.Update("PrPurchaseDetails", model)
                       .AutoMap(o => o.SysNo)
                       .Where("SysNo", model.SysNo)
                       .Execute();

            return(rows);
        }
 /// <summary>
 /// 更新采购单详情
 /// </summary>
 /// <param name="model">采购单详情实体</param>
 /// <returns></returns>
 /// <remarks>2016-6-17 杨浩 创建</remarks>
 public int UpdatePurchaseDetails(PrPurchaseDetails model)
 {
     return(IPrPurchaseDetailsDao.Instance.UpdatePurchaseDetails(model));
 }
 /// <summary>
 /// 添加采购单详情
 /// </summary>
 /// <param name="model">采购单详情实体</param>
 /// <returns></returns>
 /// <remarks>2016-6-17 杨浩 创建</remarks>
 public int AddPurchaseDetails(PrPurchaseDetails model)
 {
     return(IPrPurchaseDetailsDao.Instance.AddPurchaseDetails(model));
 }
 /// <summary>
 /// 更新采购单详情
 /// </summary>
 /// <param name="model">采购单详情实体</param>
 /// <returns></returns>
 /// <remarks>2016-6-17 杨浩 创建</remarks>
 public abstract int UpdatePurchaseDetails(PrPurchaseDetails model);
 /// <summary>
 /// 添加采购单详情
 /// </summary>
 /// <param name="model">采购单详情实体</param>
 /// <returns></returns>
 /// <remarks>2016-6-17 杨浩 创建</remarks>
 public abstract int AddPurchaseDetails(PrPurchaseDetails model);