Ejemplo n.º 1
0
 private void ShowInfo(int wastecc_ID)
 {
     WalleProject.BLL.t_wastesupercate   bll   = new WalleProject.BLL.t_wastesupercate();
     WalleProject.Model.t_wastesupercate model = bll.GetModel(wastecc_ID);
     this.lblwastecc_name.Text = model.wastecc_name;
     this.lblwastecc_ID.Text   = model.wastecc_ID.ToString();
 }
Ejemplo n.º 2
0
        public void btnSave_Click(object sender, EventArgs e)
        {
            string strErr = "";

            if (this.txtwastecc_name.Text.Trim().Length == 0)
            {
                strErr += "wastecc_name不能为空!\\n";
            }

            if (strErr != "")
            {
                MessageBox.Show(this, strErr);
                return;
            }
            string wastecc_name = this.txtwastecc_name.Text;
            int    wastecc_ID   = int.Parse(this.lblwastecc_ID.Text);


            WalleProject.Model.t_wastesupercate model = new WalleProject.Model.t_wastesupercate();
            model.wastecc_name = wastecc_name;
            model.wastecc_ID   = wastecc_ID;

            WalleProject.BLL.t_wastesupercate bll = new WalleProject.BLL.t_wastesupercate();
            bll.Update(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "list.aspx");
        }