⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 position_edit.aspx.cs

📁 人力资源管理系统 读者须安装好IIS和Microsoft Visual Stutio.NET相关开发环境
💻 CS
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using HRAdmin.BLL ;
using HRAdmin.COMMON ;

namespace HRAdmin.USL
{
	/// <summary>
	/// Position_Edit 的摘要说明。
	/// </summary>
	public class Position_Edit : System.Web.UI.Page
	{
		protected System.Web.UI.WebControls.Label Label1;
		protected System.Web.UI.WebControls.Label Label2;
		protected System.Web.UI.WebControls.Button b_Modify;
		private Position_Info info = null ;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			//找到职位信息用户控件
			info = (Position_Info)this.Page.FindControl("PI") ;
		}

		#region Web 窗体设计器生成的代码
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{    
			this.b_Modify.Click += new System.EventHandler(this.b_Modify_Click);
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion

		private void b_Modify_Click(object sender, System.EventArgs e)
		{
			//实例一个部门信息对象
			PositionInfo pi = new PositionInfo() ;

			//为部门信息对象绑定属性
			info.BindInfo(pi) ;

			//调用修改部门信息方法
			int ret = pi.ModifyPosition() ;

			//修改成功
			if(ret>0)
			{
				CommHandler.Alert(Page,"职位信息修改成功!") ;
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -