123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- //using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace Com.Jpsoft.Hospital.Web.Module.Sys.Role
- {
- public partial class Insert : Com.Jpsoft.Hospital.Web.Common.BasePage
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- /// <summary>
- /// 添加角色名称
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected void btnOK_Click(object sender, EventArgs e)
- {
- Com.Jpsoft.Hospital.BLL.jp_sys_role role = new Com.Jpsoft.Hospital.BLL.jp_sys_role();
- Com.Jpsoft.Hospital.Model.jp_sys_role model = new Com.Jpsoft.Hospital.Model.jp_sys_role();
- model.role_name = this.txtrolename.Text;
- model.role_desc = this.role_desc.Text;
- role.Add(model);
- Response.Write("<script>alert('添加成功!');</script>");
- }
- protected void btnCancle_Click(object sender, EventArgs e)
- {
- Response.Redirect("List.aspx");
- }
- }
- }
|