/// <summary> /// 页面列表 /// </summary> public void SearchData() { var search = base.GetSearch(); var jsonResult = new BllAAShare().SearchData(search); WriteJsonToPage(jsonResult); }
public void Audit(string id, int status, string Introduction) { var msg = new ModJsonResult(); try { var bll = new BllAAShare(); var mod = bll.LoadData(id); if (mod != null) { mod.Status = (FlowEnum)status; mod.Introduction = Introduction; mod.AuditorTime = DateTime.Now; mod.Auditor = CurrentMaster.Id; if (bll.Update(mod) > 0) { msg.success = true; } else { msg.success = false; msg.msg = "操作失败"; } } else { msg.success = false; msg.msg = "操作失败"; } } catch (Exception ex) { msg.msg = "操作失败:" + ex.Message; } WriteJsonToPage(msg.ToString()); }