| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using SiteCore;
- using SQLData;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using Utils.Serialization;
- public partial class Center : BasePage
- {
- string postCode = ""; //职位ID
- protected override void OnPreInit(EventArgs e)
- {
- _repTitle = "设计列表";
- PmTag = "center";
- _keyFilterVisible = false;
- _addVisible = false;
- _filterItem = "all";
- }
- protected void Page_Load(object sender, EventArgs e)
- {
- if (_permissions.Contains("offduty"))
- {
- btnOffduty.Visible = true;
- }
- else
- {
- btnOffduty.Visible = false;
- }
- if (!IsPostBack)
- {
- StringBuilder sql = new StringBuilder();
- sql.AppendFormat("select * from view_erpnoticecell where uid={0} and IsRead=0 and DATEDIFF(MINUTE,NoticeTime,getdate())>0 order by id desc;", CurrentUser.UserID);
- DataSet ds = DbHelper.DbConn.ExecuteDataset(sql.ToString());
- AppendScript("noticeData=" + JsonString.DataTable2AjaxJson(ds.Tables[0]) + ";");
- AppendScript("userPostCode='" + CurrentUser.UserPost.Post.Code + "';");
- //StringBuilder sql = new StringBuilder();
- //int userId = CurrentUser.UserID;
- }
- }
- }
|