/// <summary> /// 删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void lbDel_Click(object sender, CommandEventArgs e) { Entity.OperatelogEntity model = new Entity.OperatelogEntity(); BLL.OperatelogBLL bll = new JumbotOA.BLL.OperatelogBLL(); model = bll.GetEntity(Convert.ToInt32(e.CommandArgument)); bll.Delete(Convert.ToInt32(e.CommandArgument)); Addadminlog(model.Eupdatetitle, "删除日志"); }
/// <summary> /// 删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void lbDel_Click(object sender, CommandEventArgs e) { Entity.OperatelogEntity model = new Entity.OperatelogEntity(); BLL.OperatelogBLL bll = new JumbotOA.BLL.OperatelogBLL(); model = bll.GetEntity(Convert.ToInt32(e.CommandArgument)); bll.Delete(Convert.ToInt32(e.CommandArgument)); Addadminlog(model.Eupdatetitle, "删除日志"); }
/// <summary> /// 获取信息 /// </summary> public void Select_log(string str) { int count; BLL.OperatelogBLL bll = new JumbotOA.BLL.OperatelogBLL(); this.pro_repeater.DataSource = bll.getpage(20, AspNetPager1.CurrentPageIndex, out count, str); this.pro_repeater.DataBind(); AspNetPager1.RecordCount = count; }
/// <summary> /// 获取信息 /// </summary> public void Select_log(string str) { int count; BLL.OperatelogBLL bll = new JumbotOA.BLL.OperatelogBLL(); this.pro_repeater.DataSource = bll.getpage(20, AspNetPager1.CurrentPageIndex, out count, str); this.pro_repeater.DataBind(); AspNetPager1.RecordCount = count; }
//往操作日志添加信息 void Addlog(string type) { Entity.OperatelogEntity model = new Entity.OperatelogEntity(); model.Uid = UserId; model.Eupdatetitle = this.txtTitle.Text; model.Eupdatetype = type; model.Eupadatetime = DateTime.Now; int i = new JumbotOA.BLL.OperatelogBLL().Add(model); if (i > 0) FinalMessage("修改成功", "Learning_List.aspx", 0); else FinalMessage("修改失败", "Learning_List.aspx", 0); }
//操作日志添加信息 void Addlog(string type) { Entity.OperatelogEntity model = new Entity.OperatelogEntity(); model.Uid = UserId; model.Eupdatetitle = this.txtTitle.Text; model.Eupdatetype = type; model.Eupadatetime = DateTime.Now; int i = new JumbotOA.BLL.OperatelogBLL().Add(model); if (i > 0) { JumbotOA.Utils.QQRobotHelp.SendClusterMessage("OA平台消息:" + UserName + "发表了新的学习资料《" + this.txtTitle.Text + "》"); FinalMessage("添加成功", "Learning_List.aspx", 0); } else FinalMessage("添加失败", "Learning_List.aspx", 0); }
//往操作日志添加信息 void Addlog(string type) { Entity.OperatelogEntity model = new Entity.OperatelogEntity(); model.Uid = UserId; model.Eupdatetitle = this.txtTitle.Text; model.Eupdatetype = type; model.Eupadatetime = DateTime.Now; int i = new JumbotOA.BLL.OperatelogBLL().Add(model); if (i > 0) { FinalMessage("修改成功", "Placard_List.aspx", 0); } else { FinalMessage("修改失败", "Placard_List.aspx", 0); } }
//操作日志添加信息 void Addlog(string type) { Entity.OperatelogEntity model = new Entity.OperatelogEntity(); model.Uid = UserId; model.Eupdatetitle = this.txtTitle.Text; model.Eupdatetype = type; model.Eupadatetime = DateTime.Now; int i = new JumbotOA.BLL.OperatelogBLL().Add(model); if (i > 0) { JumbotOA.Utils.QQRobotHelp.SendClusterMessage("OA平台消息:" + UserName + "发表了新的学习资料《" + this.txtTitle.Text + "》"); FinalMessage("添加成功", "Learning_List.aspx", 0); } else { FinalMessage("添加失败", "Learning_List.aspx", 0); } }