protected void Page_Load(object sender, EventArgs e) { this.Title = "发布公告列表"; if (!IsPostBack) { QJVRMS.Business.NoticeFactory noticeFactory = new QJVRMS.Business.NoticeFactory(); this.Content.InnerHtml = noticeFactory.ShowNoticesAll(string.Empty, 20, 1); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string noticeId = get_LinkParam("noticeId"); QJVRMS.Business.NoticeFactory noticeFactory = new QJVRMS.Business.NoticeFactory(); string title = string.Empty; this.Content.InnerHtml = noticeFactory.ShowNoticeContent(noticeId, ref title); this.Title = title; } }
protected void Page_Load(object sender, EventArgs e) { this.Title = "发布公告"; if (!IsPostBack) { QJVRMS.Business.NoticeFactory noticeFactory = new QJVRMS.Business.NoticeFactory(); logName = CurrentUser.UserLoginName; this.Content.InnerHtml = noticeFactory.GetNoticesContent(logName, 10, 1); } }
//static DataTable cataTable = null; //DataTable denyTable = null; //protected void GetCataTable() //{ // if (cataTable == null) // { // cataTable = QJVRMS.Business.Catalog.GetAllCatalog(); // } //} protected void Page_Load(object sender, EventArgs e) { xmlFile = Server.MapPath("/xml/IndexFlashImages.xml"); this.imgString = this.GetImageString(); // Guid groupId = CurrentUser.UserGroupId; if (!this.IsPostBack) { this.GetStatData(); //最新公告 QJVRMS.Business.NoticeFactory noticeFactory = new QJVRMS.Business.NoticeFactory(); this.NoticesUL.InnerHtml = noticeFactory.ShowNoticesContent(); //个人事务 //QJVRMS.Business.CalendarFactory calendarFactory = new QJVRMS.Business.CalendarFactory(); //this.CalendarUL.InnerHtml = calendarFactory.ShowCalendars(DateTime.Now.ToString(), CurrentUser.UserLoginName); //订单管理 QJVRMS.Business.Orders orders = new QJVRMS.Business.Orders(); //this.CalendarUL.InnerHtml = orders.ShowDefaultOrders(CurrentUser.UserLoginName); // if (Request.IsAuthenticated) // { // this.lblLoginName.Text = CurrentUser.UserName; // this.notLogin.Visible = false; // this.logged.Visible = true; // } // else // { // this.notLogin.Visible = true; // this.logged.Visible = false; // } //GetCataTable(); //if (cataTable.Rows.Count == 0) return; //#region 权限判定 //// QJVRMS.Business.CatalogWS.CatalogService cs = new QJVRMS.Business.CatalogWS.CatalogService(); //denyTable = QJVRMS.Business.Catalog.GetCatalogByMethod(CurrentUser.UserId, QJVRMS.Business.SecurityControl.OperatorMethod.Deny); //#endregion //DataRow[] firstNodes = cataTable.Select("parentid is null", "CatalogOrder"); //GetCatalog(cataTable, firstNodes, null); } }
protected void Page_Load(object sender, EventArgs e) { string result = string.Empty; string type = get_LinkParam("type"); string name = string.Empty; string noticeId = string.Empty; QJVRMS.Business.NoticeFactory noticeFactory = new QJVRMS.Business.NoticeFactory(); switch (type) { case "Single": name = get_LinkParam("name"); noticeId = get_LinkParam("noticeid"); result = noticeFactory.GetNoticeContent(noticeId, name); break; case "Page": name = get_LinkParam("name"); int pageSize = int.Parse(get_LinkParam("size")); int pageIndex = int.Parse(get_LinkParam("index")); result = noticeFactory.GetNoticesContent(name, pageSize, pageIndex); break; case "Update": name = get_LinkParam("name"); noticeId = get_LinkParam("noticeId"); string noticeName = get_LinkParam("noticeName"); string noticeContent = get_LinkParam("noticeContent"); if (noticeFactory.EditNotice(noticeId, noticeName, noticeContent, name, type)) result = "更新成功"; else result = "更新失败"; break; case "Add": name = get_LinkParam("name"); noticeId = Guid.NewGuid().ToString(); string nName = get_LinkParam("noticeName"); string nContent = get_LinkParam("noticeContent"); if (noticeFactory.EditNotice(noticeId, nName, nContent, name, type)) result = "更新成功"; else result = "更新失败"; break; case "Delete": string nid = get_LinkParam("id"); if (noticeFactory.DeleteNotice(nid)) result = nid; break; } Response.Write(result); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { string result = string.Empty; string type = get_LinkParam("type"); string name = string.Empty; string noticeId = string.Empty; QJVRMS.Business.NoticeFactory noticeFactory = new QJVRMS.Business.NoticeFactory(); switch (type) { case "Single": name = get_LinkParam("name"); noticeId = get_LinkParam("noticeid"); result = noticeFactory.GetNoticeContent(noticeId, name); break; case "Page": name = get_LinkParam("name"); int pageSize = int.Parse(get_LinkParam("size")); int pageIndex = int.Parse(get_LinkParam("index")); result = noticeFactory.GetNoticesContent(name, pageSize, pageIndex); break; case "Update": name = get_LinkParam("name"); noticeId = get_LinkParam("noticeId"); string noticeName = get_LinkParam("noticeName"); string noticeContent = get_LinkParam("noticeContent"); if (noticeFactory.EditNotice(noticeId, noticeName, noticeContent, name, type)) { result = "更新成功"; } else { result = "更新失败"; } break; case "Add": name = get_LinkParam("name"); noticeId = Guid.NewGuid().ToString(); string nName = get_LinkParam("noticeName"); string nContent = get_LinkParam("noticeContent"); if (noticeFactory.EditNotice(noticeId, nName, nContent, name, type)) { result = "更新成功"; } else { result = "更新失败"; } break; case "Delete": string nid = get_LinkParam("id"); if (noticeFactory.DeleteNotice(nid)) { result = nid; } break; } Response.Write(result); Response.End(); }