您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->人事管理系统(课程设计)源码>>WebFiles/Department/Add_Depart.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:人事管理系统(课程设计)源码
当前文件:文件类型 Mispersonal/WebFiles/Department/Add_Depart.aspx.cs打开代码结构图
普通视图
		            
1using System; 2using System.Data; 3using System.Configuration; 4using System.Collections; 5using System.Web; 6using System.Web.Security; 7using System.Web.UI; 8using System.Web.UI.WebControls; 9using System.Web.UI.WebControls.WebParts; 10using System.Web.UI.HtmlControls; 11using System.Data.SqlClient; 12//该源码下载自www.51aspx.com(51aspx.com) 13 14public partial class WebFiles_Department_Add_Depart : System.Web.UI.Page 15{ 16 protected void Page_Load(object sender, EventArgs e) 17 { 18 19 } 20 protected void btn_add_Click(object sender, EventArgs e) 21 { 22 if (tb_id.Text.Trim() == "") 23 { 24 Response.Write("<script>alert('部门编号不能为空')</script>"); 25 return; 26 } 27 if (tb_name.Text.Trim() == "") 28 { 29 Response.Write("<script>alert('部门名称不能为空')</script>"); 30 return; 31 } 32 if (tb_tel.Text.Trim() == "") 33 { 34 Response.Write("<script>alert('联系电话不能为空')</script>"); 35 return; 36 } 37 if (tb_address.Text.Trim() == "") 38 { 39 Response.Write("<script>alert('联系地址不能为空')</script>"); 40 return; 41 } 42 if (tb_chief.Text.Trim() == "") 43 { 44 Response.Write("<script>alert('负责人不能为空')</script>"); 45 return; 46 } 47 if (tb_belong.Text.Trim() == "") 48 { 49 Response.Write("<script>alert('所属部门不能为空')</script>"); 50 return; 51 } 52 department Add_depart = new department(); 53 Add_depart.Insert(tb_id.Text, tb_name.Text,tb_tel.Text, tb_address.Text,tb_chief.Text,tb_belong.Text); 54 55 Response.Redirect("~/WebFiles/Department/List_Depart.aspx"); 56 } 57} 58
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:人事管理系统(课程设计)源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号