protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPDanWeiInfo MyDanWei = new ZWL.BLL.ERPDanWeiInfo(); MyDanWei.DanWeiName = TextBox1.Text.Trim(); MyDanWei.Tel = TextBox2.Text.Trim(); MyDanWei.Fax = TextBox3.Text; MyDanWei.YouBian = TextBox4.Text; MyDanWei.Address = TextBox5.Text; MyDanWei.WebUrl = TextBox6.Text; MyDanWei.Email = TextBox7.Text; MyDanWei.KaiHuHang = TextBox8.Text; MyDanWei.ZhangHao = TextBox9.Text; MyDanWei.Update(); ZWL.Common.MessageBox.Show(this, "修改单位信息成功!"); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改单位信息"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); }
protected void btn_Sub_Click(object sender, EventArgs e) { ZWL.BLL.ERPDanWeiInfo MyDanWei = new ZWL.BLL.ERPDanWeiInfo(); MyDanWei.DanWeiName = TextBox1.Text.Trim(); MyDanWei.Tel = TextBox2.Text.Trim(); MyDanWei.Fax = TextBox3.Text; MyDanWei.YouBian = TextBox4.Text; MyDanWei.Address = TextBox5.Text; MyDanWei.WebUrl = TextBox6.Text; MyDanWei.Email = TextBox7.Text; MyDanWei.KaiHuHang = TextBox8.Text; MyDanWei.ZhangHao = TextBox9.Text; MyDanWei.Update(); Response.Write("<script>alert('电子围栏信息修改成功!');</script>"); //ZWL.Common.MessageBox.Show(this, "修改单位信息成功!"); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改单位信息"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); }