Web/HRNew/KaoHeRWModify.aspx.cs

(完整代码) 1KB

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ZWL.Common.Module;

public partial class HRNew_KaoHeRWModify : BasePage
{


	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack)
		{
			
			ZWL.BLL.ERPKaoHeRW Model = new ZWL.BLL.ERPKaoHeRW();
			Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
			this.txtRenWuName.Text=Model.RenWuName.ToString();
			this.txtFenZhi.Text=Model.FenZhi.ToString();
			this.txtRenWuNeiRong.Text=Model.RenWuNeiRong.ToString();
			this.txtBackInfo.Text=Model.BackInfo.ToString();
			this.txtUserName.Text=Model.UserName.ToString();
			this.txtTimeStr.Text=Model.TimeStr.ToString();
		}
	}
    protected void LBtnOk_Click(object sender, EventArgs e)
    {
		ZWL.BLL.ERPKaoHeRW Model = new ZWL.BLL.ERPKaoHeRW();
		
		Model.ID = int.Parse(Request.QueryString["ID"].ToString());
		Model.RenWuName=this.txtRenWuName.Text.ToString();
		Model.FenZhi=this.txtFenZhi.Text.ToString();
		Model.RenWuNeiRong=this.txtRenWuNeiRong.Text.ToString();
		Model.BackInfo=this.txtBackInfo.Text.ToString();
		Model.UserName=this.txtUserName.Text.ToString();
		Model.TimeStr=DateTime.Parse(this.txtTimeStr.Text);
		
		Model.Update();
		
		//写系统日志
		ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
		MyRiZhi.UserName = getUserName ();
        MyRiZhi.DoSomething = "用户修改考核任务信息(" + this.txtRenWuName.Text + ")";
		MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
		MyRiZhi.Add();

        ZWL.Common.MessageBox.ShowAndRedirect(this, "考核任务信息修改成功!", "KaoHeRW.aspx");
	}
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。