protected void Page_Load(object sender, EventArgs e) { LoginCheck.AdminManage(); AdminSetting.isPermissions("2", "5"); string Action = Request.QueryString["Action"]; int Id = StringDeal.ToInt(Request.QueryString["Id"]); if (Action == "del") { AdminSetting.isPermissions("2", "3"); string Result = bC.ChannelDel(Id).ToString(); if (Result == "1") { StringDeal.Alter("此频道下存在子频道,请先删除子频道!"); } } else if (Action == "lock") { bC.ChannelLock(Id); } else if (Action == "down" || Action == "up") { bC.ChannelMove(Id, Action); } dsList = (DataSet)bC.ChannelList(-1); }
protected void Page_Load(object sender, EventArgs e) { LoginCheck.AdminManage(); mAG.Id = StringDeal.ToInt(Request.QueryString["Id"]); mST.ParentId = 1; t_dsList = (DataSet)bST.GetSetTypeList(mST); if (!IsPostBack) { mAG.ParentId = -1; ag_dsList = (DataSet)bAG.AdminGroupList(mAG); c_dsList = (DataSet)bC.ChannelList(-1); AdminGroupBind(0, "┣"); AdminGroupReader(); } else { AdminGroupSave(); } }
protected void Page_Load(object sender, EventArgs e) { LoginCheck.AdminManage(); mC.Id = StringDeal.ToInt(Request.QueryString["Id"]); if (mC.Id == 0) { AdminSetting.isPermissions("2", "1"); } else { AdminSetting.isPermissions("2", "2"); } mM.Id = 0; mM.ParentId = 0; mM.Temp = "Menu_Field"; if (!IsPostBack) { menuListDataSet = (DataSet)bM.MenuList(); //说明 dsReader = bM.MenuReader(mM); //说明 BindMenuParent(0, "┣"); //说明 bSetType bST = new bSetType(); //说明 mSetType mST = new mSetType(); //说明 dsList = (DataSet)bC.ChannelList(-1); //说明 BindClass(0, "┣"); mST.ParentId = 1; Setting.DataSource = bST.GetSetTypeList(mST).Tables[0]; Setting.DataTextField = "Title"; Setting.DataValueField = "Value"; Setting.DataBind(); ChannelRead(); } else { //ChannelSave(); } }