Ejemplo n.º 1
0
        protected void LoadItems()
        {
            phHasItems.Visible   = true;
            phHasNoItems.Visible = false;
            if (dgCustomers.PageSize * dgCustomers.CurrentPageIndex > dgCustomers.VirtualItemCount)
            {
                dgCustomers.CurrentPageIndex         = 0;
                hfCurrentPageIndex_dgCustomers.Value = dgCustomers.CurrentPageIndex.ToString();
            }
            CustomerUI customer = BidController.GetCustomerData(CustomerId, customerType);

            Master.PageTitle = customerType == CustomerType.AppUser ? BidString.GetText(@"CustomersPageTitle") + customer.CustomerName : BidString.GetText(@"CustomersTempPageTitle");
            BindList(customer);
        }
Ejemplo n.º 2
0
        protected void Page_PreRender(object sender, EventArgs e)
        {
            if (!AllBids)
            {
                CustomerUI customer = BidController.GetCustomerData(CustomerId, customerType);
                if (bidType == BidType.BidActive)
                {
                    Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"MyActiveBidsPageTitle") + " " + customer.CustomerName : BidString.GetText(@"CustomersTempPageTitle");
                    BidsCountLabel.Text = BidString.GetText(@"SumActiveBids");
                }
                if (bidType == BidType.BidCount)
                {
                    Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"MyCountBidsPageTitle") + " " + customer.CustomerName : BidString.GetText(@"CustomersTempPageTitle");
                    BidsCountLabel.Text = BidString.GetText(@"SumCountBids");
                }
                if (bidType == BidType.BidAbandoned)
                {
                    Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"MyBidsAbandonedPageTitle") + " " + customer.CustomerName : BidString.GetText(@"CustomersTempPageTitle");
                    BidsCountLabel.Text = BidString.GetText(@"SumAbandonedBids");
                }
                if (bidType == BidType.BidPurchase)
                {
                    Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"MyBidsPurchasePageTitle") + " " + customer.CustomerName : BidString.GetText(@"CustomersTempPageTitle");
                    BidsCountLabel.Text = BidString.GetText(@"SumPurchaseBids");
                }
            }
            else
            {
                if (bidType == BidType.BidActive)
                {
                    Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"DetailsMyActiveBidsPageTitle") : BidString.GetText(@"CustomersTempPageTitle");
                    BidsCountLabel.Text = BidString.GetText(@"SumActiveBids");
                }
                if (bidType == BidType.BidCount)
                {
                    Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"DetailsMyCountBidsPageTitle") : BidString.GetText(@"CustomersTempPageTitle");
                    BidsCountLabel.Text = BidString.GetText(@"SumCountBids");
                }
                if (bidType == BidType.BidAbandoned)
                {
                    if (BidLeave)
                    {
                        Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"DetailsMyWithNotOffersPageTitle") : BidString.GetText(@"CustomersTempPageTitle");
                        BidsCountLabel.Text = BidString.GetText(@"SumAbandonedBids");
                    }
                    else
                    {
                        Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"DetailsMyBidsAbandonedPageTitle") : BidString.GetText(@"CustomersTempPageTitle");
                        BidsCountLabel.Text = BidString.GetText(@"SumAbandonedBids");
                    }
                }
                if (bidType == BidType.BidPurchase)
                {
                    Master.PageTitle    = customerType == CustomerType.AppUser ? BidString.GetText(@"DetailsMyBidsPurchasePageTitle") : BidString.GetText(@"CustomersTempPageTitle");
                    BidsCountLabel.Text = BidString.GetText(@"SumPurchaseBids");
                }
            }
            Master.ActiveMenu = "MyBids";

            Master.AddClientScriptInclude(@"dgDateManager.js");
        }