Beispiel #1
0
 /// <summary>
 /// 修改分货单
 /// </summary>
 /// <param name="order"></param>
 /// <returns></returns>
 public override void UpdatePointsOrder(Model.Procurement.PmPointsOrder order)
 {
     Context.Update <PmPointsOrder>("PmPointsOrder", order).AutoMap(p => p.SysNo).Where(p => p.SysNo).Execute();
 }
Beispiel #2
0
 /// <summary>
 /// 创建分货单
 /// </summary>
 /// <param name="order"></param>
 /// <returns></returns>
 public override int CreatePointsOrder(Model.Procurement.PmPointsOrder order)
 {
     return(Context.Insert <PmPointsOrder>("PmPointsOrder", order).AutoMap(p => p.SysNo).ExecuteReturnLastId <int>("SysNo"));
 }