/// <summary> /// 新增绩效年度配置表单 /// </summary> /// <param name="entity">绩效年度配置实体</param> /// <returns></returns> public void CreateYearSettingForm(BpeSC001Entity entity) { try { sc001Service.SaveForm(null, entity); } catch (Exception) { throw; } }
/// <summary> /// 修改绩效年度配置表单 /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">绩效年度配置实体</param> /// <returns></returns> public void ModifyYearSettingForm(string keyValue, BpeSC001Entity entity) { try { sc001Service.SaveForm(keyValue, entity); } catch (Exception) { throw; } }
public ActionResult SaveYear(BpeSC001Entity entity) { if (entity.JZSJ.HasValue) { entity.JZSJ = entity.JZSJ.Value.AddDays(1).AddSeconds(-1); } if (string.IsNullOrEmpty(entity.JXBM)) { bll.CreateYearSettingForm(entity); } else { bll.ModifyYearSettingForm(entity.JXBM, entity); } return(Success("操作成功")); }