示例#1
0
        public void LoadData()
        {
            int id = Request.QueryString["id"].ToInt(0);

            if (id > 0)
            {
                var d = DiscountController.GetByID(id);
                if (d != null)
                {
                    ViewState["ID"]            = id;
                    txtQuantity.Text           = d.Quantity.ToString();
                    txtDiscountPerProduct.Text = d.DiscountPerProduct.ToString();
                }
            }
        }