protected void BindProClamationList() { pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"), 1); ///////绑定查询条件 EyouSoft.Model.PersonalCenterStructure.NoticeNews sModel = new EyouSoft.Model.PersonalCenterStructure.NoticeNews(); Titles = EyouSoft.Common.Utils.GetQueryStringValue("Titles"); OperateName = EyouSoft.Common.Utils.GetQueryStringValue("OperateName"); if (EyouSoft.Common.Utils.GetQueryStringValue("IssueTime") == "") { sModel.IssueTime = null; } else { sModel.IssueTime = EyouSoft.Common.Utils.GetDateTime(EyouSoft.Common.Utils.GetQueryStringValue("IssueTime")); IssueTime = sModel.IssueTime.Value.ToString("yyyy-MM-dd"); } sModel.Title = Titles; sModel.OperateName = OperateName; nBll = new EyouSoft.BLL.CompanyStructure.News(); newslist = nBll.GetZuTuanAcceptNews(pageSize, pageIndex, ref recordCount, SiteUserInfo.CompanyID, sModel); len = newslist.Count(); rptList.DataSource = newslist; rptList.DataBind(); newslist = null; BindPage(); }
protected void Page_Load(object sender, EventArgs e) { nBll = new EyouSoft.BLL.CompanyStructure.News(); if (!IsPostBack) { DataInit(); } }
protected void Page_Load(object sender, EventArgs e) { if (!CheckGrant(global::Common.Enum.TravelPermission.个人中心_公告通知_查看公告)) { Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.个人中心_公告通知_查看公告, true); } nBll = new EyouSoft.BLL.CompanyStructure.News(); if (!IsPostBack) { DataInit(); } }
protected void Page_Load(object sender, EventArgs e) { //判断权限 if (!CheckGrant(global::Common.Enum.TravelPermission.系统设置_信息管理_信息管理栏目)) { Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.系统设置_信息管理_信息管理栏目, true); return; } pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1); itemIndex = (pageIndex - 1) * pageSize + 1; string method = Utils.GetQueryStringValue("method"); string ids = Utils.GetQueryStringValue("ids"); //获取员工Id EyouSoft.BLL.CompanyStructure.News newsBll = new EyouSoft.BLL.CompanyStructure.News(); //初始化newsBll //删除操作 if (method == "del") { ids = ids.TrimEnd(','); bool result = newsBll.Delete(ids.Split(',').Select(i => Utils.GetInt(i)).ToArray()); MessageBox.ShowAndRedirect(this, "删除成功!", "/systemset/infomanage/InfoList.aspx"); return; } //绑定信息列表 IList <EyouSoft.Model.CompanyStructure.News> list = newsBll.GetList(pageSize, pageIndex, ref recordCount, CurrentUserCompanyID); if (list != null && list.Count > 0) { rptInfo.DataSource = list; rptInfo.DataBind(); BindExportPage(); } else { rptInfo.EmptyText = "<tr><td colspan='7' align='center'>对不起,暂无信息!</td></tr>"; ExportPageInfo1.Visible = false; } }
protected void BindProClamationList() { nBll = new EyouSoft.BLL.CompanyStructure.News(); newslist = nBll.GetZuTuanAcceptNews(SiteUserInfo.CompanyID); }