Insert.aspx.cs 1009 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. //using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. namespace Com.Jpsoft.Hospital.Web.Module.Sys.Function
  8. {
  9. public partial class Insert : Com.Jpsoft.Hospital.Web.Common.BasePage
  10. {
  11. protected void Page_Load(object sender, EventArgs e)
  12. {
  13. }
  14. protected void btnBack_Click(object sender, EventArgs e)
  15. {
  16. Response.Redirect("List.aspx");
  17. }
  18. protected void btnOK_Click(object sender, EventArgs e)
  19. {
  20. Com.Jpsoft.Hospital.Model.jp_sys_function model = new Com.Jpsoft.Hospital.Model.jp_sys_function();
  21. Com.Jpsoft.Hospital.BLL.jp_sys_function fun = new Com.Jpsoft.Hospital.BLL.jp_sys_function();
  22. model.fun_name = this.fun_name.Text;
  23. model.fun_pagename = this.fun_pagedata.Text;
  24. fun.Add(model);
  25. Response.Write("<script>alert('添加成功!');</script>");
  26. }
  27. }
  28. }