/// <summary> /// 修改维保记录信息 /// </summary> /// <param name="newWeibaoLog">维保记录。</param> public void UpdateWeibaoLog(WeibaoLog newWeibaoLog) { if (newWeibaoLog == null) { return; } dbContext.SubmitChanges(); }
/// <summary> /// 该方法供批量创建新维保记录时使用 /// <para>不立即提交数据库</para> /// </summary> /// <param name="newWeibaoLog"></param> public void CreateWeibaoLogNotSubmit(WeibaoLog newWeibaoLog) { if (newWeibaoLog == null) { return; } newWeibaoLog.WbId = Guid.NewGuid(); newWeibaoLog.CreateDate = System.DateTime.Now; dbContext.WeibaoLog.InsertOnSubmit(newWeibaoLog); }
/// <summary> /// 创建新的维保记录。 /// </summary> /// <param name="newBxBill">维保记录</param> /// <returns></returns> public WeibaoLog CreateWeibaoLog(WeibaoLog newWeibaoLog) { if (newWeibaoLog == null) { return(null); } newWeibaoLog.WbId = Guid.NewGuid(); newWeibaoLog.CreateDate = System.DateTime.Now; dbContext.WeibaoLog.InsertOnSubmit(newWeibaoLog); dbContext.SubmitChanges(); return(newWeibaoLog); }
/// <summary> /// 修改维保记录信息 /// </summary> /// <param name="newWeibaoLog">维保记录。</param> public void UpdateWeibaoLog(WeibaoLog newWeibaoLog) { da.UpdateWeibaoLog(newWeibaoLog); }
/// <summary> /// 该方法供批量创建新维保记录时使用 /// <para>不立即提交数据库</para> /// </summary> /// <param name="newWeibaoLog"></param> public void CreateWeibaoLogNotSubmit(WeibaoLog newWeibaoLog) { da.CreateWeibaoLogNotSubmit(newWeibaoLog); }
/// <summary> /// 创建新的维保记录。 /// </summary> /// <param name="newBxBill">维保记录</param> /// <returns></returns> public WeibaoLog CreateWeibaoLog(WeibaoLog newWeibaoLog) { return(da.CreateWeibaoLog(newWeibaoLog)); }