protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { productServiceGroupBo = new ProductsServicesGroup(SPContext.Current.Web); productServiceBo = new ProductService(SPContext.Current.Web); serviceId = Request.QueryString["serviceId"]; var catId = Request.QueryString["catId"]; if (serviceId != null) { int id = 0; if (int.TryParse(serviceId, out id)) { var currentItem = productServiceBo.get_ProductSeviceInfoById(serviceId); if (currentItem != null) { parrentId = currentItem.SubServiceValue != null ? currentItem.SubServiceValue.LookupId : 0; } } } ParentRepeater.DataSource = productServiceGroupBo.get_ProductsServicesGroup(catId); ParentRepeater.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { serviceId = Request.QueryString["serviceId"]; catId = Request.QueryString["catId"]; type = Request.QueryString["type"]; if (!IsPostBack) { var productServiceGroupBo = new ProductsServicesGroup(SPContext.Current.Web); productServiceBo = new ProductService(SPContext.Current.Web); var productService = CacheData(); ltProductServiceGroup.Text = productService.catValue; ltProductServices.Text = productService.Title; if (serviceId != null) { int id = 0; if (int.TryParse(serviceId, out id)) { parrentId = productService.SubServiceValue != null ? productService.SubServiceValue.LookupId : 0; GetContentProductService(productService); } } ParentRepeater.DataSource = productServiceGroupBo.get_ProductsServicesGroup(web, catId); ParentRepeater.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { var userGuideBo = new UserGuide(SPContext.Current.Web); //var userGuideCollectionPaymentBo = new UserGuideForCollectionPayment(SPContext.Current.Web); ProductsServicesGroup productServiceGroupBo = new ProductsServicesGroup(SPContext.Current.Web); var productServiceBo = new ProductService(SPContext.Current.Web); var serviceId = Request.QueryString["serviceId"]; var catId = Request.QueryString["catId"]; if (!IsPostBack) { if ((string.IsNullOrEmpty(serviceId))) { productServiceGroupBo.get_ProductServiceFirst(out catId, out serviceId); } var serviceInfo = productServiceBo.get_ProductSeviceInfoById(serviceId); var userGuideInfo = userGuideBo.get_FQAByProductService(serviceId); ltContent.Text = userGuideInfo.Content; ltServiceName.Text = serviceInfo.Title; ltProductServiceGroup.Text = serviceInfo.catValue; ltProductServices.Text = serviceInfo.Title; if (serviceInfo != null && serviceInfo.CollectPayOnBehalf) { ltContent.Visible = false; } SetPageTitles(serviceInfo.Title); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { productServiceBo = new ProductsServicesGroup(SPContext.Current.Web); rpProductsServicesMenuTop.DataSource = CacheData(); rpProductsServicesMenuTop.DataBind(); var pageTitle = HttpContext.GetGlobalResourceObject("napas.resource", "Products_Services").ToString(); SetPageTitles(pageTitle); } }
public List <ProductsServicesMenu> CacheMenu() { List <ProductsServicesMenu> productServiceMenu; lock (_lock) { onRemove = new CacheItemRemovedCallback(this.RemovedCallback); productServiceMenu = (List <ProductsServicesMenu>)Cache["productServiceMenu" + language]; if (productServiceMenu == null) { var productServiceGroupBo = new ProductsServicesGroup(SPContext.Current.Web); productServiceMenu = productServiceGroupBo.get_ProductsServicesMenu(web); Cache.Add("productServiceMenu" + language, productServiceMenu, null, DateTime.Now.AddSeconds(30), Cache.NoSlidingExpiration, CacheItemPriority.High, onRemove); } } return(productServiceMenu); }