/// <summary> /// 保存排期调度. /// </summary> public void Save(InstrumentUsingPlanModel model) { if (!string.IsNullOrWhiteSpace(model.Remark)) { model.Remark = UtilsHelper.SpecialCharValidate(model.Remark); } if (0 == model.PlanId) { model.Creator = GRGTCommonUtils.LoginHelper.LoginUser.UserName; DBProvider.InstrumentUsingPlanDAO.Add(model); } else { DBProvider.InstrumentUsingPlanDAO.Update(model); } }
/// <summary> /// 更新排期调度. /// </summary> public void Update(InstrumentUsingPlanModel model) { DBProvider.dbMapper.Update("BaseData_InstrumentUsingPlan.Update", model); }
/// <summary> /// 增加排期调度. /// </summary> public void Add(InstrumentUsingPlanModel model) { DBProvider.dbMapper.Insert("BaseData_InstrumentUsingPlan.Insert", model); }