tijian_tieying/web/Web/Supply/SupplyLinkAdd.aspx.cs
2025-02-20 12:14:39 +08:00

58 lines
2.0 KiB
C#

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;
public partial class Supply_SupplyLinkAdd : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ZWL.Common.PublicMethod.CheckSession();
this.txtSupplysName.Text = Request.QueryString["GongYingShang"].ToString();
}
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
ZWL.BLL.ERPSupplyLink Model = new ZWL.BLL.ERPSupplyLink();
Model.SupplysName=this.txtSupplysName.Text.ToString();
Model.LinkManName=this.txtLinkManName.Text.ToString();
Model.ZhiWei=this.txtZhiWei.Text.ToString();
Model.Sex=this.txtSex.Text.ToString();
Model.ShengRi=DateTime.Parse(this.txtShengRi.Text);
Model.AiHao=this.txtAiHao.Text.ToString();
Model.IFFirstLink=this.txtIFFirstLink.Text.ToString();
Model.YouBian=this.txtYouBian.Text.ToString();
Model.DiZhi=this.txtDiZhi.Text.ToString();
Model.JobTel=this.txtJobTel.Text.ToString();
Model.JiaTingTel=this.txtJiaTingTel.Text.ToString();
Model.MobTel=this.txtMobTel.Text.ToString();
Model.EmailStr=this.txtEmailStr.Text.ToString();
Model.QQorMsn=this.txtQQorMsn.Text.ToString();
Model.BackInfo=this.txtBackInfo.Text.ToString();
Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName");
Model.TimeStr=DateTime.Now;
Model.Add();
//写系统日志
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
MyRiZhi.DoSomething = "用户添加供应商联系人信息(" + this.txtSupplysName.Text + ")";
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
MyRiZhi.Add();
ZWL.Common.MessageBox.ShowAndRedirect(this, "供应商联系人信息添加成功!", "SupplysLink.aspx?GongYingShang=" + Request.QueryString["GongYingShang"].ToString());
}
}