protected void ImageButton1_Click(object sender, EventArgs e) { ZWL.BLL.ERPSource Model = new ZWL.BLL.ERPSource(); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.SourceName = this.txtSourceName.Text.ToString(); Model.ShengQingUser = this.txtShengQingUser.Text.ToString(); Model.ShiYongUser = this.txtShiYongUser.Text.ToString(); Model.ShiYongShiXian = this.txtShiYongShiXian.Text.ToString(); Model.SourceMiaoShu = this.txtSourceMiaoShu.Text.ToString(); Model.NowState = this.txtNowState.Text.ToString(); Model.UserName = this.txtUserName.Text.ToString(); Model.TimeStr = DateTime.Parse(this.txtTimeStr.Text); Model.BackInfo = this.txtBackInfo.Text.ToString(); Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改资源申请信息(" + this.txtSourceName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "资源申请信息修改成功!", "Source.aspx"); }