/// <summary> /// 修改评价方法 /// </summary> /// <param name="pjffbh"></param> /// <param name="entity"></param> public void ModifyAppraiseData(string pjffbh, BpeEA003Entity entity) { try { bpeEA003Service.SaveForm(pjffbh, entity); } catch (Exception) { throw; } }
/// <summary> /// 新增评价方法 /// </summary> /// <param name="entity"></param> public void AddAppraiseData(BpeEA003Entity entity) { try { bpeEA003Service.SaveForm(null, entity); } catch (Exception) { throw; } }
public ActionResult SaveAppraiseData(BpeEA003Entity meta) { if (string.IsNullOrEmpty(meta.PJFFBH) || meta.PJFFBH.Contains(" ")) { meta.PJFFBH = VerifyCode.GetRandomCode(); } if (string.IsNullOrEmpty(meta.CREATOR)) { bll.AddAppraiseData(meta); } else { bll.ModifyAppraiseData(meta.PJFFBH, meta); } return(Success("操作成功")); }