private void ShowInfo(int ProductId,int ParaId)
 {
     NoName.NetShop.BLL.ProductParaModelBll bll=new NoName.NetShop.BLL.ProductParaModelBll();
     NoName.NetShop.Model.ProductParaModel model=bll.GetModel(ProductId,ParaId);
     this.lblProductId.Text=model.ProductId.ToString();
     this.lblParaId.Text=model.ParaId.ToString();
     this.txtParaValue.Text=model.ParaValue;
 }
Beispiel #2
0
 private void ShowInfo(int ProductId, int ParaId)
 {
     NoName.NetShop.BLL.ProductParaModelBll bll   = new NoName.NetShop.BLL.ProductParaModelBll();
     NoName.NetShop.Model.ProductParaModel  model = bll.GetModel(ProductId, ParaId);
     this.lblProductId.Text = model.ProductId.ToString();
     this.lblParaId.Text    = model.ParaId.ToString();
     this.txtParaValue.Text = model.ParaValue;
 }
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            string strErr="";
            if(this.txtParaValue.Text =="")
            {
            strErr+="ParaValue����Ϊ�գ�\\n";
            }

            if(strErr!="")
            {
            MessageBox.Show(this,strErr);
            return;
            }
            string ParaValue=this.txtParaValue.Text;

            NoName.NetShop.Model.ProductParaModel model=new NoName.NetShop.Model.ProductParaModel();
            model.ParaValue=ParaValue;

            NoName.NetShop.BLL.ProductParaModelBll bll=new NoName.NetShop.BLL.ProductParaModelBll();
            bll.Update(model);
        }
Beispiel #4
0
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            string strErr = "";

            if (this.txtParaValue.Text == "")
            {
                strErr += "ParaValue不能为空!\\n";
            }

            if (strErr != "")
            {
                MessageBox.Show(this, strErr);
                return;
            }
            string ParaValue = this.txtParaValue.Text;

            NoName.NetShop.Model.ProductParaModel model = new NoName.NetShop.Model.ProductParaModel();
            model.ParaValue = ParaValue;

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