private void ShowInfo(int SchemeId,int CateId,int ProductId)
 {
     NoName.NetShop.BLL.CommendModelBll bll=new NoName.NetShop.BLL.CommendModelBll();
     NoName.NetShop.Model.CommendModel model=bll.GetModel(SchemeId,CateId,ProductId);
     this.lblSchemeId.Text=model.SchemeId.ToString();
     this.lblCateId.Text=model.CateId.ToString();
     this.lblProductId.Text=model.ProductId.ToString();
     this.txtQuantity.Text=model.Quantity.ToString();
 }
 private void ShowInfo(int SchemeId, int CateId, int ProductId)
 {
     NoName.NetShop.BLL.CommendModelBll bll   = new NoName.NetShop.BLL.CommendModelBll();
     NoName.NetShop.Model.CommendModel  model = bll.GetModel(SchemeId, CateId, ProductId);
     this.lblSchemeId.Text  = model.SchemeId.ToString();
     this.lblCateId.Text    = model.CateId.ToString();
     this.lblProductId.Text = model.ProductId.ToString();
     this.txtQuantity.Text  = model.Quantity.ToString();
 }
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            string strErr="";
            if(!PageValidate.IsNumber(txtQuantity.Text))
            {
            strErr+="Quantity�������֣�\\n";
            }

            if(strErr!="")
            {
            MessageBox.Show(this,strErr);
            return;
            }
            int Quantity=int.Parse(this.txtQuantity.Text);

            NoName.NetShop.Model.CommendModel model=new NoName.NetShop.Model.CommendModel();
            model.Quantity=Quantity;

            NoName.NetShop.BLL.CommendModelBll bll=new NoName.NetShop.BLL.CommendModelBll();
            bll.Add(model);
        }
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            string strErr = "";

            if (!PageValidate.IsNumber(txtQuantity.Text))
            {
                strErr += "Quantity不是数字!\\n";
            }

            if (strErr != "")
            {
                MessageBox.Show(this, strErr);
                return;
            }
            int Quantity = int.Parse(this.txtQuantity.Text);

            NoName.NetShop.Model.CommendModel model = new NoName.NetShop.Model.CommendModel();
            model.Quantity = Quantity;

            NoName.NetShop.BLL.CommendModelBll bll = new NoName.NetShop.BLL.CommendModelBll();
            bll.Add(model);
        }