private void ShowInfo(int ProductId, int SaleType, int SiteId) { NoName.NetShop.BLL.SalesProductModelBll bll = new NoName.NetShop.BLL.SalesProductModelBll(); NoName.NetShop.Model.SalesProductModel model = bll.GetModel(ProductId, SaleType, SiteId); this.lblProductId.Text = model.ProductId.ToString(); this.lblSaleType.Text = model.SaleType.ToString(); this.lblSiteId.Text = model.SiteId.ToString(); }
private void ShowInfo(int ProductId,int SaleType,int SiteId) { NoName.NetShop.BLL.SalesProductModelBll bll=new NoName.NetShop.BLL.SalesProductModelBll(); NoName.NetShop.Model.SalesProductModel model=bll.GetModel(ProductId,SaleType,SiteId); this.lblProductId.Text=model.ProductId.ToString(); this.lblSaleType.Text=model.SaleType.ToString(); this.lblSiteId.Text=model.SiteId.ToString(); }
protected void btnAdd_Click(object sender, EventArgs e) { string strErr=""; if(strErr!="") { MessageBox.Show(this,strErr); return; } NoName.NetShop.Model.SalesProductModel model=new NoName.NetShop.Model.SalesProductModel(); NoName.NetShop.BLL.SalesProductModelBll bll=new NoName.NetShop.BLL.SalesProductModelBll(); bll.Update(model); }
protected void btnAdd_Click(object sender, EventArgs e) { string strErr = ""; if (strErr != "") { MessageBox.Show(this, strErr); return; } NoName.NetShop.Model.SalesProductModel model = new NoName.NetShop.Model.SalesProductModel(); NoName.NetShop.BLL.SalesProductModelBll bll = new NoName.NetShop.BLL.SalesProductModelBll(); bll.Add(model); }
private void ShowInfo(int ProductId, int SaleType, int SiteId) { NoName.NetShop.BLL.SalesProductModelBll bll = new NoName.NetShop.BLL.SalesProductModelBll(); NoName.NetShop.Model.SalesProductModel model = bll.GetModel(ProductId, SaleType, SiteId); }
private void ShowInfo(int ProductId,int SaleType,int SiteId) { NoName.NetShop.BLL.SalesProductModelBll bll=new NoName.NetShop.BLL.SalesProductModelBll(); NoName.NetShop.Model.SalesProductModel model=bll.GetModel(ProductId,SaleType,SiteId); }