private void ShowInfo(int SchemeId, int CateId) { NoName.NetShop.BLL.RuleModelBll bll = new NoName.NetShop.BLL.RuleModelBll(); NoName.NetShop.Model.RuleModel model = bll.GetModel(SchemeId, CateId); this.lblSchemeId.Text = model.SchemeId.ToString(); this.lblCateId.Text = model.CateId.ToString(); this.txtRule.Text = model.Rule; }
private void ShowInfo(int SchemeId,int CateId) { NoName.NetShop.BLL.RuleModelBll bll=new NoName.NetShop.BLL.RuleModelBll(); NoName.NetShop.Model.RuleModel model=bll.GetModel(SchemeId,CateId); this.lblSchemeId.Text=model.SchemeId.ToString(); this.lblCateId.Text=model.CateId.ToString(); this.txtRule.Text=model.Rule; }
protected void btnAdd_Click(object sender, EventArgs e) { string strErr=""; if(this.txtRule.Text =="") { strErr+="Rule����Ϊ�գ�\\n"; } if(strErr!="") { MessageBox.Show(this,strErr); return; } string Rule=this.txtRule.Text; NoName.NetShop.Model.RuleModel model=new NoName.NetShop.Model.RuleModel(); model.Rule=Rule; NoName.NetShop.BLL.RuleModelBll bll=new NoName.NetShop.BLL.RuleModelBll(); bll.Add(model); }
protected void btnAdd_Click(object sender, EventArgs e) { string strErr = ""; if (this.txtRule.Text == "") { strErr += "Rule不能为空!\\n"; } if (strErr != "") { MessageBox.Show(this, strErr); return; } string Rule = this.txtRule.Text; NoName.NetShop.Model.RuleModel model = new NoName.NetShop.Model.RuleModel(); model.Rule = Rule; NoName.NetShop.BLL.RuleModelBll bll = new NoName.NetShop.BLL.RuleModelBll(); bll.Add(model); }