/// <summary>
 /// 添加调拨单
 /// </summary>
 /// <param name="model">调拨单实体对象</param>
 /// <returns></returns>
 /// <remarks>2016-6-23 杨浩 创建</remarks>
 public override int Add(AtAllocation model)
 {
     model.SysNo = Context.Insert("AtAllocation", model)
                   .AutoMap(o => o.SysNo)
                   .ExecuteReturnLastId <int>("SysNo");
     return(model.SysNo);
 }
Exemple #2
0
 /// <summary>
 /// 创建调拨单
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 /// <remarks>2016-06-29 陈海裕 创建</remarks>
 public AtAllocation CreateAtAllocation(AtAllocation model)
 {
     model.CheckDate   = (DateTime)System.Data.SqlTypes.SqlDateTime.MinValue;
     model.CreatedDate = DateTime.Now;
     model.Status      = (int)Model.WorkflowStatus.WarehouseStatus.库存调拨单状态.待审核;
     return(DataAccess.Warehouse.IAtAllocationDao.Instance.CreateAtAllocation(model));
 }
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model">调拨单实体对象</param>
        /// <returns></returns>
        /// <remarks>2016-6-23 杨浩 创建</remarks>
        public override int Update(AtAllocation model)
        {
            int rows = Context.Update("AtAllocation", model)
                       .AutoMap(o => o.SysNo, o => o.CreatedBy, o => o.CreatedDate)
                       .Where("SysNo", model.SysNo)
                       .Execute();

            return(rows);
        }
Exemple #4
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="model">调拨单实体对象</param>
 /// <returns></returns>
 /// <remarks>2016-6-23 杨浩 创建</remarks>
 public int Update(AtAllocation model)
 {
     return(IAllocationDao.Instance.Update(model));
 }
Exemple #5
0
 /// <summary>
 /// 添加调拨单
 /// </summary>
 /// <param name="model">调拨单实体对象</param>
 /// <returns></returns>
 /// <remarks>2016-6-23 杨浩 创建</remarks>
 public int Add(AtAllocation model)
 {
     return(IAllocationDao.Instance.Add(model));
 }
 /// <summary>
 /// 更新调拨单
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 /// <remarks>2016-06-30 陈海裕 创建</remarks>
 public override int UpdateAtAllocation(AtAllocation model)
 {
     return(Context.Update("AtAllocation", model).AutoMap(o => o.SysNo).Where("SysNo", model.SysNo).Execute());
 }
 /// <summary>
 /// 创建调拨单
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 /// <remarks>2016-06-29 陈海裕 创建</remarks>
 public override AtAllocation CreateAtAllocation(AtAllocation model)
 {
     model.SysNo = Context.Insert <AtAllocation>("AtAllocation", model).AutoMap(x => x.SysNo).ExecuteReturnLastId <int>("SysNo");
     return(model);
 }
Exemple #8
0
 /// <summary>
 /// 更新调拨单
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 /// <remarks>2016-06-30 陈海裕 创建</remarks>
 public bool UpdateAtAllocation(AtAllocation model)
 {
     return(DataAccess.Warehouse.IAtAllocationDao.Instance.UpdateAtAllocation(model) > 0);
 }
Exemple #9
0
 /// <summary>
 /// 更新调拨单
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 /// <remarks>2016-06-30 陈海裕 创建</remarks>
 public abstract int UpdateAtAllocation(AtAllocation model);
Exemple #10
0
 /// <summary>
 /// 创建调拨单
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 /// <remarks>2016-06-29 陈海裕 创建</remarks>
 public abstract AtAllocation CreateAtAllocation(AtAllocation model);
Exemple #11
0
 /// <summary>
 /// 添加调拨单
 /// </summary>
 /// <param name="model">调拨单实体对象</param>
 /// <returns></returns>
 /// <remarks>2016-6-23 杨浩 创建</remarks>
 public abstract int Add(AtAllocation model);