protected void Page_Load(object sender, EventArgs e) { switch (Request["ActionMethod"]) { case "OpenCreate": modelVideoDetail.VideoDetailContent = ""; dtTemp = bllVideoAttribConfig.ExGetList(0, "VideoCategoryGUID='" + Request.Cookies["VideoCategoryGUID"].Value + "'", "VideoAttribConfigOrder ASC").Tables[0]; rptList.DataSource = dtTemp; rptList.DataBind(); if (dtTemp.Rows.Count < 1) { divVideoAttribConfigList.Visible = false; } break; case "OpenEdit": GUID = common.SQLFilter(Request["GUID"]); modelVideoDetail = bllVideoDetail.ExGetModel(GUID); txtVideoDetailName.Value = modelVideoDetail.VideoDetailName; VideoDetailImgeURL.Value = modelVideoDetail.VideoDetailImgeURL; txtVideoDetailSource.Value = modelVideoDetail.VideoDetailSource; txtVideoDetailBrowseCount.Value = modelVideoDetail.VideoDetailBrowseCount.ToString(); if (modelVideoDetail.VideoDetailVisible == 1) { rdoVideoDetailVisible1.Checked = true; } else { rdoVideoDetailVisible0.Checked = true; } if (modelVideoDetail.VideoDetailSequel == 1) { rdoVideoDetailSequel1.Checked = true; } else { rdoVideoDetailSequel0.Checked = true; } if (modelVideoDetail.VideoDetailVisible == 1) { rdoHotSearch1.Checked = true; } else { rdoHotSearch0.Checked = true; } //加载动态属性列表 rptList.DataSource = bllVideoAttribConfig.ExGetVideoAttribConfigAndValue(modelVideoDetail.GUID); rptList.DataBind(); break; default: common.MsgAndClose("服务器错误,请重试!5887", this); break; } }
protected void Page_Load(object sender, EventArgs e) { switch (Request["ActionMethod"]) { case "OpenCreate": break; case "OpenEdit": VideoCategoryGUID = common.SQLFilter(Request["VideoCategoryGUID"]); modelVideoCategory = bllVideoCategory.ExGetModel(VideoCategoryGUID); txtVideoCategoryName.Value = modelVideoCategory.VideoCategorName; txtVideoCategoryDescribe.Value = modelVideoCategory.VideoCategoryDescribe; break; default: common.MsgAndClose("服务器错误,请重试!0016", this); break; } }
protected void Page_Load(object sender, EventArgs e) { BLL.Administrator bllAdministrator = new BLL.Administrator(); Model.Administrator modelAdministrator = new Model.Administrator(); Common.Common common = new Common.Common(); string ManagerGUID = ""; switch (Request["ActionMethod"]) { case "OpenCreate": break; case "OpenEdit": ManagerGUID = common.SQLFilter(Request["ManagerGUID"]); modelAdministrator = bllAdministrator.ExGetModel(ManagerGUID); txtManagerUserName.Value = modelAdministrator.AdminUser; txtManagerName.Value = modelAdministrator.AdminAccount; break; default: common.MsgAndClose("服务器错误,请重试!7516", this); break; } }