private void ShowInfo(int ProductId) { NoName.NetShop.BLL.ProductModelBll bll = new NoName.NetShop.BLL.ProductModelBll(); NoName.NetShop.Model.ProductModel model = bll.GetModel(ProductId); this.lblProductId.Text = model.ProductId.ToString(); this.txtProductName.Text = model.ProductName; this.txtProductCode.Text = model.ProductCode; this.txtCatePath.Text = model.CatePath; this.txtCateId.Text = model.CateId.ToString(); this.txtTradePrice.Text = model.TradePrice.ToString(); this.txtMerchantPrice.Text = model.MerchantPrice.ToString(); this.txtReducePrice.Text = model.ReducePrice.ToString(); this.txtStock.Text = model.Stock.ToString(); this.txtSmallImage.Text = model.SmallImage; this.txtMediumImage.Text = model.MediumImage; this.txtLargeImage.Text = model.LargeImage; this.txtKeywords.Text = model.Keywords; this.txtBrief.Text = model.Brief; this.txtPageView.Text = model.PageView.ToString(); this.txtInsertTime.Text = model.InsertTime.ToString(); this.txtChangeTime.Text = model.ChangeTime.ToString(); this.txtStatus.Text = model.Status.ToString(); this.txtSortValue.Text = model.SortValue.ToString(); this.txtScore.Text = model.Score.ToString(); }
private void ShowInfo(int ProductId) { NoName.NetShop.BLL.ProductModelBll bll=new NoName.NetShop.BLL.ProductModelBll(); NoName.NetShop.Model.ProductModel model=bll.GetModel(ProductId); this.lblProductName.Text=model.ProductName; this.lblProductCode.Text=model.ProductCode; this.lblCatePath.Text=model.CatePath; this.lblCateId.Text=model.CateId.ToString(); this.lblTradePrice.Text=model.TradePrice.ToString(); this.lblMerchantPrice.Text=model.MerchantPrice.ToString(); this.lblReducePrice.Text=model.ReducePrice.ToString(); this.lblStock.Text=model.Stock.ToString(); this.lblSmallImage.Text=model.SmallImage; this.lblMediumImage.Text=model.MediumImage; this.lblLargeImage.Text=model.LargeImage; this.lblKeywords.Text=model.Keywords; this.lblBrief.Text=model.Brief; this.lblPageView.Text=model.PageView.ToString(); this.lblInsertTime.Text=model.InsertTime.ToString(); this.lblChangeTime.Text=model.ChangeTime.ToString(); this.lblStatus.Text=model.Status.ToString(); this.lblSortValue.Text=model.SortValue.ToString(); this.lblScore.Text=model.Score.ToString(); }