示例#1
0
 /// <summary>
 /// 修改指标等级
 /// </summary>
 /// <param name="xh"></param>
 /// <param name="entity"></param>
 public void ModifyPerfLevel(string xh, BpeEA001Entity entity)
 {
     try
     {
         bpeEA001Service.SaveForm(xh, entity);
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#2
0
 /// <summary>
 /// 新增指标等级
 /// </summary>
 /// <param name="entity"></param>
 public void AddPerfLevel(BpeEA001Entity entity)
 {
     try
     {
         bpeEA001Service.SaveForm(null, entity);
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#3
0
 public ActionResult SavePerfLevel(BpeEA001Entity meta)
 {
     if (string.IsNullOrEmpty(meta.XH) || meta.XH.Contains("&nbsp;"))
     {
         meta.XH = VerifyCode.GetRandomCode();
     }
     if (string.IsNullOrEmpty(meta.CREATOR))
     {
         bll.AddPerfLevel(meta);
     }
     else
     {
         bll.ModifyPerfLevel(meta.XH, meta);
     }
     return(Success("操作成功"));
 }