protected void Page_Load(object sender, System.EventArgs e) { if (!int.TryParse(this.Page.Request.QueryString["StoreId"], out this.SotreId)) { base.GotoResourceNotFound(); return; } this.btnSave.Click += new System.EventHandler(this.btnEditShipper_Click); if (!this.Page.IsPostBack) { StoreManagementInfo store = StoreManagementHelper.GetStore(this.SotreId); if (store == null) { base.GotoResourceNotFound(); return; } Globals.EntityCoding(store, false); this.txtSupplierName.Text = store.StoreName; this.ddlReggion.SetSelectedRegionId(new int?(store.County)); this.txtAddress.Text = store.Address; this.txtPhone.Text = store.Phone; this.txtMobile.Text = store.Mobile; this.txtAddress.Text = store.Address; this.txtDescription.Text = store.Description; } }
protected void Page_Load(object sender, System.EventArgs e) { if (!this.Page.IsPostBack) { this.dropStores.DataBind(); this.dropStores.DataSource = StoreManagementHelper.GetStore(); this.dropStores.DataTextField = "StoreName"; this.dropStores.DataValueField = "StoreId"; this.dropStores.DataBind(); this.dropStores.Items.Insert(0, new System.Web.UI.WebControls.ListItem("", "")); } this.btnDo.Click += new System.EventHandler(this.btnDo_Click); }
private void BindStore() { int userStoreId = ManagerHelper.GetStoreIdByUserId(HiContext.Current.User.UserId); DbQueryResult productTypes = StoreManagementHelper.GetStore(new StoreQuery { StoreName = this.searchkey, PageIndex = this.pager.PageIndex, PageSize = this.pager.PageSize, StoreId = userStoreId }); this.grdStore.DataSource = productTypes.Data; this.grdStore.DataBind(); this.pager.TotalRecords = productTypes.TotalRecords; }
protected void Page_Load(object sender, System.EventArgs e) { if (!int.TryParse(this.Page.Request.QueryString["StoreId"], out this.StoreId)) { base.GotoResourceNotFound(); return; } this.hdtopic.Value = this.StoreId.ToString(); this.btnDeleteAll.Click += new System.EventHandler(this.btnDeleteAll_Click); this.grdTopicProducts.RowDeleting += new System.Web.UI.WebControls.GridViewDeleteEventHandler(this.grdTopicProducts_RowDeleting); if (!this.Page.IsPostBack) { StoreManagementInfo store = StoreManagementHelper.GetStore(this.StoreId); if (store == null) { base.GotoResourceNotFound(); return; } this.litPromotionName.Text = store.StoreName; this.BindStoreProducts(); } }