private void ShowInfo(string Id) { Maticsoft.BLL.Products.Product bll = new Maticsoft.BLL.Products.Product(); Maticsoft.Model.Product model = bll.GetModel(Id); Session["Product"] = model; this.lblProductId.Text = model.ProductId.ToString(); this.txtName.Text = model.Name; txtDescn.Text = model.Descn; txtPrice.Text = model.Price.ToString(); txtvipPrice.Text = model.VipPrice.ToString(); for (int i = 0; i < this.dropCategory.Items.Count; i++) { if (this.dropCategory.Items[i].Value == model.CategoryId) { this.dropCategory.Items[i].Selected = true; } } if (model.Cheapness == 1) { radbtn_Cheap.Checked = true; } else { radbtn_CheapNo.Checked = true; } //for (int i = 0; i < this.dropBrand.Items.Count; i++) //{ // if (this.dropBrand.Items[i].Value == model.BrandId) // { // this.dropBrand.Items[i].Selected = true; // } //} }
private void ShowInfo(string Id) { Maticsoft.BLL.Products.Product bll = new Maticsoft.BLL.Products.Product(); Maticsoft.Model.Product model = bll.GetModel(Id); //Maticsoft.BLL.Products.Brand bllb = new Maticsoft.BLL.Products.Brand(); Maticsoft.BLL.Products.Category bllc = new Maticsoft.BLL.Products.Category(); this.lblProductId.Text = model.ProductId.ToString(); this.lblName.Text = model.Name; lblDescn.Text = model.Descn; lblPrice.Text = model.Price.ToString(); lblvipprice.Text = model.VipPrice.ToString(); lblImage.Text = model.Image; //lblBrandId.Text = bllb.GetName(model.BrandId); lblCategoryId.Text = bllc.GetName(model.CategoryId); if (model.Cheapness == 1) { Label1.Text = "ÊÇ"; } else { Label1.Text = "·ñ"; } }
private void ShowInfo(string Id) { Maticsoft.BLL.Products.Product bll = new Maticsoft.BLL.Products.Product(); Maticsoft.Model.Product model = bll.GetModel(Id); Session["Product"] = model; this.lblProductId.Text = model.ProductId.ToString(); this.txtName.Text = model.Name; txtDescn.Text = model.Descn; txtPrice.Text = model.Price.ToString(); txtvipPrice.Text = model.VipPrice.ToString(); for (int i = 0; i < this.dropCategory.Items.Count; i++) { if (this.dropCategory.Items[i].Value == model.CategoryId) { this.dropCategory.Items[i].Selected = true; } } if (model.Cheapness == 1) { radbtn_Cheap.Checked = true; } else { radbtn_CheapNo.Checked = true; } //for (int i = 0; i < this.dropBrand.Items.Count; i++) //{ // if (this.dropBrand.Items[i].Value == model.BrandId) // { // this.dropBrand.Items[i].Selected = true; // } //} }