/// <summary> /// 获取信息 /// </summary> public void Select_log(string str) { int count; BLL.AdminlogBLL bll = new JumbotOA.BLL.AdminlogBLL(); this.pro_repeater.DataSource = bll.getpage(20, AspNetPager1.CurrentPageIndex, out count, str); this.pro_repeater.DataBind(); AspNetPager1.RecordCount = count; }
//添加管理员操作记录 void Addadminlog(string type) { Entity.AdminlogEntity model = new Entity.AdminlogEntity(); model.Uid = UserId; model.Updatetime = DateTime.Now; model.Updatetitle = this.txtUname.Text; model.Updatetype = type; int i = new JumbotOA.BLL.AdminlogBLL().Add(model); if (i > 0) FinalMessage("用户添加成功", "User_List.aspx", 0); else FinalMessage("用户添加失败", "User_List.aspx", 0); }
//往管理员日志插入数据 void Addadminlog(string type) { Entity.AdminlogEntity model = new Entity.AdminlogEntity(); model.Uid = UserId; model.Updatetime = DateTime.Now; model.Updatetitle = this.txtUname.Text; model.Updatetype = type; int i = new JumbotOA.BLL.AdminlogBLL().Add(model); if (i > 0) { Response.Redirect("User_List.aspx"); } }
//添加到管理员操作日志 void Adminlogadd(string name) { Entity.AdminlogEntity model = new Entity.AdminlogEntity(); model.Uid = UserId; model.Updatetitle = name; model.Updatetime = DateTime.Now; model.Updatetype = "删除用户"; int i = new JumbotOA.BLL.AdminlogBLL().Add(model); if (i > 0) FinalMessage("用户删除成功", "User_List.aspx", 0); else FinalMessage("用户删除失败", "User_List.aspx", 0); }
//往管理员日志添加数据 void Addadminlog(string title, string type) { Entity.AdminlogEntity model = new Entity.AdminlogEntity(); model.Uid = UserId; model.Updatetime = DateTime.Now; model.Updatetitle = title; model.Updatetype = type; int i = new JumbotOA.BLL.AdminlogBLL().Add(model); if (i > 0) { Response.Redirect("Success.aspx"); } }
//往管理员日志插入数据 void Addadminlog(string type) { Entity.AdminlogEntity model = new Entity.AdminlogEntity(); model.Uid = UserId; model.Updatetime = DateTime.Now; model.Updatetitle = this.txtUname.Text; model.Updatetype = type; int i = new JumbotOA.BLL.AdminlogBLL().Add(model); if (i > 0) { FinalMessage("操作成功", "User_List.aspx", 0); } }
//添加到管理员操作日志 void Adminlogadd(string name) { Entity.AdminlogEntity model = new Entity.AdminlogEntity(); model.Uid = UserId; model.Updatetitle = name; model.Updatetime = DateTime.Now; model.Updatetype = "删除用户"; int i = new JumbotOA.BLL.AdminlogBLL().Add(model); if (i > 0) { FinalMessage("用户删除成功", "User_List.aspx", 0); } else { FinalMessage("用户删除失败", "User_List.aspx", 0); } }