protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("课程")) { WebUtility.ShowError(WebUtility.ERROR101); } filespec = new Filespec().GetModelByCode("thum"); filespec2 = new Filespec().GetModelByCode("attachment"); if (filespec == null) { WebUtility.ShowError(WebUtility.ERROR103); } courses = bll_course.GetModel(Request.QueryString["pkid"]); if (courses == null) { courses = new CourseModel(); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("案例管理")) { WebUtility.ShowError(WebUtility.ERROR101); } thumSpec = new Filespec().GetModelByCode("thum"); imageSpec = new Filespec().GetModelByCode("image"); if (thumSpec == null || imageSpec == null) { WebUtility.ShowError(WebUtility.ERROR103); } product = bll_product.GetModel(Request.QueryString["pkid"]); if (product == null) { product = new ProductModel(); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("广告_悬浮广告")) { WebUtility.ShowError(WebUtility.ERROR101); } filespec = new Filespec().GetModelByCode("image"); if (filespec == null) { WebUtility.ShowError(WebUtility.ERROR103); } adFloating = bll_adFloating.GetModel(Request.QueryString["pkid"]); if (adFloating == null) { adFloating = new AdFloatingModel(); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { try { cid = Request.QueryString["cid"]; } catch (Exception) { cid = "1"; } WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("文章_文章管理")) { WebUtility.ShowError(WebUtility.ERROR101); } filespec = new Filespec().GetModelByCode("image"); filespec2 = new Filespec().GetModelByCode("video"); if (filespec == null) { WebUtility.ShowError(WebUtility.ERROR103); } article = bll_article.GetModel(Request.QueryString["pkid"]); if (article == null) { article = new ArticleModel(); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("论坛_论坛版块")) { WebUtility.ShowError(WebUtility.ERROR101); } forumMenu = bll_forumMenu.GetModel(Request.QueryString["pkid"]); if (forumMenu == null) { forumMenu = new ForumMenuModel(); } filespec = new Filespec().GetModelByCode("thum"); if (filespec == null) { WebUtility.ShowError(WebUtility.ERROR103); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("经销商_经销商管理")) { WebUtility.ShowError(WebUtility.ERROR101); } filespec = new Filespec().GetModelByCode("thum"); if (filespec == null) { WebUtility.ShowError(WebUtility.ERROR103); } article = bll_article.GetModel(Request.QueryString["pkid"]); if (article == null) { article = new ArticleModel(); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); group = bll_adGroup.GetModel(Request.QueryString["gid"]); if (group == null) { WebUtility.ShowError(WebUtility.ERROR102); } if (!bll_admin.RuleAuth("广告_" + group.Title)) { WebUtility.ShowError(WebUtility.ERROR101); } imageSpec = new Filespec().GetModelByCode("image"); if (imageSpec == null) { WebUtility.ShowError(WebUtility.ERROR103); } adFixed = bll_adFixed.GetModel(Request.QueryString["pkid"]); if (adFixed == null) { adFixed = new AdFixedModel(); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { filespec = new QianZhu.BLL.Filespec().GetModelByCode(Request.QueryString["code"]); if (filespec == null) { Response.End(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("产品_惠卡管理")) { WebUtility.ShowError(WebUtility.ERROR101); } filespec = new Filespec().GetModelByCode("excel"); if (filespec == null) { WebUtility.ShowError(WebUtility.ERROR103); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("全局_功能设置")) { WebUtility.ShowError(WebUtility.ERROR101); } filespec2 = new Filespec().GetModelByCode("video"); bll_config.Load(new string[] { "headScript", "footScript", "smtpServer", "emailUid", "emailPwd", "copyEnabled", "saveEnabled", "banIp", "banWords", "toemail", "video" }); if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); filespec = bll_filespec.GetModel(Request.QueryString["pkid"]); if (filespec == null) { filespec = new FilespecModel(); } watermarkSpec = bll_filespec.WatermarkSpec; if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); adGroup = bll_adGroup.GetModel(Request.QueryString["pkid"]); if (adGroup == null) { adGroup = new AdGroupModel(); } filespec = new Filespec().GetModelByCode("image"); if (filespec == null) { WebUtility.ShowError(WebUtility.ERROR103); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("广告_弹出广告")) { WebUtility.ShowError(WebUtility.ERROR101); } filespec = new Filespec().GetModelByCode("image"); if (filespec == null) { WebUtility.ShowError(WebUtility.ERROR103); } bll_config.Load(new string[] { "popupEnabled", "popupWidth", "popupHeight", "popupFile", "popupUrl", "popupShade", "popupOffTime" }); if (!Page.IsPostBack) { BindInfo(); } }
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { FilespecModel filespec = (FilespecModel)e.Item.DataItem; if (filespec.Filesize > 0) { ((HtmlTableCell)e.Item.FindControl("Eval_Size")).InnerHtml = filespec.Filesize.ToString() + " KB"; } else { ((HtmlTableCell)e.Item.FindControl("Eval_Size")).InnerHtml = "不限制"; } string nameFormat = filespec.NameFormat; if (String.IsNullOrEmpty(nameFormat)) { nameFormat = "原名"; } ((HtmlTableCell)e.Item.FindControl("Eval_Path")).InnerHtml = filespec.SavePath + nameFormat + ".*"; }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("广告_幕布广告")) { WebUtility.ShowError(WebUtility.ERROR101); } thumSpec = new Filespec().GetModelByCode("thum"); imageSpec = new Filespec().GetModelByCode("image"); if (thumSpec == null || imageSpec == null) { WebUtility.ShowError(WebUtility.ERROR103); } bll_config.Load(new string[] { "screenEnabled", "screenWidth", "screenHeight", "screenFile", "screenThumFile", "screenUrl", "screenOffTime" }); if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); thumSpec = new Filespec().GetModelByCode("thum"); imageSpec = new Filespec().GetModelByCode("image"); if (thumSpec == null || imageSpec == null) { WebUtility.ShowError(WebUtility.ERROR103); } adFixed = bll_adFixed.GetModel(Request.QueryString["pkid"]); if (adFixed == null) { adFixed = new AdFixedModel(); } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("景点管理")) { WebUtility.ShowError(WebUtility.ERROR101); } thumSpec = new Filespec().GetModelByCode("thum"); imageSpec = new Filespec().GetModelByCode("image"); if (thumSpec == null || imageSpec == null) { WebUtility.ShowError(WebUtility.ERROR103); } try { cid = Convert.ToInt32(Request.QueryString["cid"]); }catch (Exception) { cid = 3; } product = bll_product.GetModel(Request.QueryString["pkid"]); if (product == null) { product = new ProductModel(); } else { cid = product.CategoryId; } if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); if (!bll_admin.RuleAuth("全局_基本设置")) { WebUtility.ShowError(WebUtility.ERROR101); } foreLogoSpec = bll_filespec.GetModelByCode("forelogo"); foreLogoSpec2 = bll_filespec.GetModelByCode("forelogo2"); backLogoSpec = bll_filespec.GetModelByCode("backlogo"); if (foreLogoSpec == null || backLogoSpec == null) { WebUtility.ShowError(WebUtility.ERROR103); } bll_config.Load(new string[] { "pageTitle", "keywords", "descn", "foreLogo", "foreLogo2", "backLogo", "icp", "foot", "foot2" }); if (!Page.IsPostBack) { BindInfo(); } }
protected void Page_Load(object sender, EventArgs e) { WebUtility.AdminLoginAuth(); CategoryModel group = bll_category.GetModel(Request.QueryString["gid"]); if (group == null) { WebUtility.ShowError(WebUtility.ERROR102); } groupName = group.Title.Replace("类别", ""); thumSpec = new Filespec().GetModelByCode("thum"); imageSpec = new Filespec().GetModelByCode("image"); if (thumSpec == null || imageSpec == null) { WebUtility.ShowError(WebUtility.ERROR103); } project = bll_project.GetModel(Request.QueryString["pkid"]); if (project == null) { project = new ProjectModel(); } List <SqlWhere> sqlWhereList = new List <SqlWhere>(); sqlWhereList.Add(new SqlWhere(OptionsModel.FATHERID, SqlWhere.Oper.Equal, group.Pkid - 8)); sqlWhereList.Add(new SqlWhere(OptionsModel.ENABLED, SqlWhere.Oper.Equal, true)); optionsList = bll_options.GetList(0, 0, sqlWhereList, null); if (!Page.IsPostBack) { BindInfo(); } }