public void btnSave_Click(object sender, EventArgs e)
        {
            string strErr = "";

            if (this.txtUserM_Icon.Text.Trim().Length == 0)
            {
                strErr += "UserM_Icon不能为空!\\n";
            }
            if (!PageValidate.IsNumber(txtUserM_User.Text))
            {
                strErr += "UserM_User格式错误!\\n";
            }
            if (this.txtUserM_Url.Text.Trim().Length == 0)
            {
                strErr += "UserM_Url不能为空!\\n";
            }
            if (this.txtUserM_Name.Text.Trim().Length == 0)
            {
                strErr += "UserM_Name不能为空!\\n";
            }
            if (!PageValidate.IsNumber(txtUserM_Delete.Text))
            {
                strErr += "UserM_Delete格式错误!\\n";
            }
            if (!PageValidate.IsNumber(txtUserM_Valid.Text))
            {
                strErr += "UserM_Valid格式错误!\\n";
            }

            if (strErr != "")
            {
                MessageBox.Show(this, strErr);
                return;
            }
            string UserM_Icon   = this.txtUserM_Icon.Text;
            int    UserM_User   = int.Parse(this.txtUserM_User.Text);
            string UserM_Url    = this.txtUserM_Url.Text;
            string UserM_Name   = this.txtUserM_Name.Text;
            int    UserM_ID     = int.Parse(this.lblUserM_ID.Text);
            int    UserM_Delete = int.Parse(this.txtUserM_Delete.Text);
            int    UserM_Valid  = int.Parse(this.txtUserM_Valid.Text);


            WalleProject.Model.t_usermenu model = new WalleProject.Model.t_usermenu();
            model.UserM_Icon   = UserM_Icon;
            model.UserM_User   = UserM_User;
            model.UserM_Url    = UserM_Url;
            model.UserM_Name   = UserM_Name;
            model.UserM_ID     = UserM_ID;
            model.UserM_Delete = UserM_Delete;
            model.UserM_Valid  = UserM_Valid;

            WalleProject.BLL.t_usermenu bll = new WalleProject.BLL.t_usermenu();
            bll.Update(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "list.aspx");
        }
 private void ShowInfo(int UserM_ID)
 {
     WalleProject.BLL.t_usermenu   bll   = new WalleProject.BLL.t_usermenu();
     WalleProject.Model.t_usermenu model = bll.GetModel(UserM_ID);
     this.txtUserM_Icon.Text   = model.UserM_Icon;
     this.txtUserM_User.Text   = model.UserM_User.ToString();
     this.txtUserM_Url.Text    = model.UserM_Url;
     this.txtUserM_Name.Text   = model.UserM_Name;
     this.lblUserM_ID.Text     = model.UserM_ID.ToString();
     this.txtUserM_Delete.Text = model.UserM_Delete.ToString();
     this.txtUserM_Valid.Text  = model.UserM_Valid.ToString();
 }