protected void Page_Load(object sender, EventArgs e) {
            this._page = (ModuleAdminBasePage)this.Page;
            hplOrderList.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Orders/Orders.aspx{0}", this._page.GetBaseQueryString());
            hplOrderSearch.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Orders/OrderSearch.aspx{0}", this._page.GetBaseQueryString());
            hplOrderStats.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Orders/OrderStats.aspx{0}", this._page.GetBaseQueryString());

        }
        protected void Page_Load(object sender, EventArgs e) {
            this._page = (ModuleAdminBasePage)this.Page;

            hplListAccount.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Accounts/AccountList.aspx{0}", this._page.GetBaseQueryString());
            hplSearchAccount.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Accounts/AccountSearch.aspx{0}", this._page.GetBaseQueryString());
            hplAddAccount.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Accounts/AccountCreate.aspx{0}", this._page.GetBaseQueryString());
        }
        protected void Page_Load(object sender, EventArgs e) {

            this._module = base.Module as ECommerceModule;
            this._page = (ModuleAdminBasePage)this.Page;

            hplOrderList.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Orders/Orders.aspx{0}", this._page.GetBaseQueryString());

            hplCat.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Catalogue/CatalogueBrowser.aspx{0}", this._page.GetBaseQueryString());
            hplAttributes.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Catalogue/AttributeManager.aspx{0}", this._page.GetBaseQueryString());
        }
 protected void Page_Load(object sender, EventArgs e) {
     this._page = (ModuleAdminBasePage)this.Page;
     controller = Module as CatalogueViewModule;
     hplDeliveryMainMenu.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/DeliveryManager.aspx{0}", this._page.GetBaseQueryString());
     hplWeightBandingHomePage.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/ConfigureWeightBanding.aspx{0}", this._page.GetBaseQueryString());
     
     if (!IsPostBack) {
         lbStateBandings.Visible = false;
         ShowCountryList();
         ShowCountryBanding("GB");
         hplAdd.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/AddWeightBanding.aspx{0}&CountryCode={1}", this._page.GetBaseQueryString(), "GB");
     }
 }
        protected void Page_Load(object sender, EventArgs e) {
            controller = Module as CatalogueViewModule;

         
            lbSave.Click += new EventHandler(lbSave_Click);
            this._page = (ModuleAdminBasePage)this.Page;
            hplDeliveryMainMenu.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/DeliveryManager.aspx{0}", this._page.GetBaseQueryString());
            hplWeightBandingHomePage.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/ConfigureWeightBanding.aspx{0}", this._page.GetBaseQueryString());
            hplWeightBandingList.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/WeightBandingList.aspx{0}", this._page.GetBaseQueryString());
            
            if (!IsPostBack) {
                DisplayEditForm();
            }
        }
        protected void Page_Load(object sender, EventArgs e) {
            controller = Module as CatalogueViewModule;
            this._page = (ModuleAdminBasePage)this.Page;

            hplDeliveryMainMenu.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/DeliveryManager.aspx{0}", this._page.GetBaseQueryString());


            county = controller.DeliveryService.GetDeliveryType("WeightBandingState");
            country = controller.DeliveryService.GetDeliveryType("WeightBandingCountry");
            lbCountryStatus.Click += new EventHandler(lbCountryStatus_Click);
            lbCountyStatus.Click += new EventHandler(lbCountyStatus_Click);
            UpdateStatus();
            hplView.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/WeightBandingList.aspx{0}", this._page.GetBaseQueryString());
        }
        protected void Page_Load(object sender, EventArgs e) {

            this._page = (ModuleAdminBasePage)this.Page;

            hplBrowse.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Catalogue/CatalogueBrowser.aspx{0}", this._page.GetBaseQueryString());

            if (hplExport != null) {
                hplExport.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Catalogue/CSVExport.aspx{0}", this._page.GetBaseQueryString());
            }

            if (hplImport != null) {
                hplImport.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Catalogue/CSVImport.aspx{0}", this._page.GetBaseQueryString());
            }
        }
        public static string GetBrowserUrlForProduct(ModuleAdminBasePage page, CatalogueViewModule module, long productID, string message) {

            long catID = 0;

            if (productID > 0) {

                Product product = module.CatalogueViewer.GetECommerceProduct(1, "", productID);

                if (product != null && product.Categories != null && product.Categories.Count > 0) {
                    ProductCategory pc = (ProductCategory)product.Categories[0];
                    catID = pc.CategoryID;
                }
            }

            return GetBrowserUrl(page, catID, message);
        }
        protected void Page_Load(object sender, EventArgs e) {

            this._page = (ModuleAdminBasePage)this.Page;
            try {
                CatID = Int64.Parse(Request.Params[PARAM_CATEGORY_ID]);
                Confirmed = Request.Params[PARAM_CONFIRMED];
            } catch {
            }

            if (Confirmed == "true") {

                CatalogueViewModule controller = Module as CatalogueViewModule;

                if (CatID > 0) {
                    cat = controller.CatalogueViewer.GetCategory(controller.Section.Node.Site.Id, controller.Section.Node.Culture, CatID);
                }

                string message = "The category was unable to be deleted. Please try again.";

                if (cat != null) {

                    ctlBreadCrumb.RenderBreadCrumbTrail(controller.CatalogueViewer.GetCategoryView(controller.Section.Node.Site.Id, controller.Section.Node.Culture, CatID).BreadCrumbTrail);
                    cat.IsPublished = false;

					try
					{
						controller.EditService.SaveCategory(controller.Section.Node.Site.Id, cat);
						message = "The category was deleted successfully";
					}
                    catch(Exception ex)
                    {
                    	message = ex.Message;
                    }
                }

                Response.Redirect(CatalogueBrowser.GetBrowserUrl(this, (cat != null) ? cat.ParentNodeID : CatID, message));

            } else {

                //ask them to confirm
                Response.Redirect(String.Format("~/Modules/ECommerce/Admin/Catalogue/ConfirmDelete.aspx{0}", this._page.GetBaseQueryString()) + "&cat=" + CatID);
            }
        }
        protected void Page_Load(object sender, EventArgs e) {

            this.Title = "Confirm Delete";
            this._page = (ModuleAdminBasePage)this.Page;

            ReadRequestParameters();

            if (!IsPostBack) {

                CatalogueViewModule mod = Module as CatalogueViewModule;

                if (catid > 0) {                    
                    
                    Category cat = mod.CatalogueViewer.GetCategory(1, "", catid);
                    long parentCatID = (cat != null) ? cat.ParentCategory.NodeID : catid;
                    
                    Url = CatalogueBrowser.GetBrowserUrl(this, parentCatID, "Category delete cancelled");

                } else if (pid > 0) {
                    Url = CatalogueBrowser.GetBrowserUrlForProduct(this, mod, pid, "Product delete cancelled");
                } else {
                    Url = Request.UrlReferrer.ToString();
                }
            }

            ECommerceModule controller = Module as ECommerceModule;
            Service.ICatalogueViewService service = controller.CatalogueViewer;

            if (catid > 0) {
                ctlBreadCrumb.RenderBreadCrumbTrail(service.GetCategoryView(controller.Section.Node.Site.Id, controller.Section.Node.Culture, catid).BreadCrumbTrail);
            } else {
                ctlBreadCrumb.RenderBreadCrumbTrail(service.GetProductView(controller.Section.Node.Site.Id, controller.Section.Node.Culture, pid).BreadCrumbTrail);
            }

            lnkConfirm.Click += new System.EventHandler(Confirm_Click);
            lnkCancel.Click += new System.EventHandler(Cancel_Click);
        }
		private void Page_Load(object sender, System.EventArgs e) {
          
            this._page = (ModuleAdminBasePage)this.Page;
           
           // hplAccountCreate.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/AccountCreate.aspx{0}", this._page.GetBaseQueryString());
           // hplAccountList.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/AccountList.aspx{0}", this._page.GetBaseQueryString());
           // hplAccountSearch.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/AccountSearch.aspx{0}", this._page.GetBaseQueryString());

         //   hplDocuments.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/DocumentManager.aspx{0}", this._page.GetBaseQueryString());
           
           
            //hplOrders.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Orders.aspx{0}", this._page.GetBaseQueryString());
           // hplOrderSearch.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/OrderSearch.aspx{0}", this._page.GetBaseQueryString());
           // hplProductExport.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/CSVExport.aspx{0}", this._page.GetBaseQueryString());
           
          //  hplProductImport.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/CSVImport.aspx{0}", this._page.GetBaseQueryString());
           
            //hplProductAdd.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/ProductAdd.aspx{0}", this._page.GetBaseQueryString());
          //  hplCatBrowser.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/CatalogueBrowser.aspx{0}", this._page.GetBaseQueryString());
           // hplCategoryAdd.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/CategoryAdd.aspx{0}", this._page.GetBaseQueryString());

            //hplPromotionList.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/PromotionList.aspx{0}", this._page.GetBaseQueryString());
           // hplPromotionAdd.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/PromotionAdd.aspx{0}", this._page.GetBaseQueryString());
		}   
 protected void Page_Load(object sender, EventArgs e) {
     this._page = (ModuleAdminBasePage)this.Page;
     CatalogueViewModule controller = Module as CatalogueViewModule;
     rptDeliveryMethods.DataSource = controller.DeliveryService.GetAllDeliveryMethods();
     rptDeliveryMethods.DataBind();
 }
 public static string GetBrowserUrl(ModuleAdminBasePage page, long categoryID, string message) {
     return page.ResolveUrl("~/Modules/ECommerce/Admin/Catalogue/CatalogueBrowser.aspx" + page.GetBaseQueryString()
         + "&" + CatalogueBrowser.PARAM_CATEGORY_ID + "=" + categoryID
         + ((!string.IsNullOrEmpty(message)) ? ("&" + CatalogueBrowser.PARAM_MESSAGE + "=" + page.Server.UrlEncode(message)) : ""));
 }
 protected void Page_Load(object sender, EventArgs e) {
 
     this._page = (ModuleAdminBasePage)this.Page;
     hplList.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/DeliveryMethods.aspx{0}", this._page.GetBaseQueryString());
 }
        protected void Page_Load(object sender, EventArgs e) {

            this._page = (ModuleAdminBasePage)this.Page;
            Response.Redirect(String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/ConfigureWeightBanding.aspx{0}", this._page.GetBaseQueryString()));
       
        }