60 lines
2.3 KiB
C#
60 lines
2.3 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 CRM_LinkLogAdd : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
if (!Page.IsPostBack)
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|||
|
|
this.txtCustomName.Text = Request.QueryString["CustomName"].ToString();
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ZWL.BLL.ERPAnPai Model = new ZWL.BLL.ERPAnPai();
|
|||
|
|
Model.GetModel(int.Parse(Request.QueryString["RiChengID"].ToString()));
|
|||
|
|
this.txtLinkTitle.Text = Model.TitleStr;
|
|||
|
|
this.txtLinkType.Text = Model.TypeStr;
|
|||
|
|
this.txtLinkTime.Text = Model.TimeStart.ToString();
|
|||
|
|
}
|
|||
|
|
catch
|
|||
|
|
{ }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
|
|||
|
|
{
|
|||
|
|
ZWL.BLL.ERPLinkLog model = new ZWL.BLL.ERPLinkLog();
|
|||
|
|
model.CustomName = this.txtCustomName.Text;
|
|||
|
|
model.LinkTitle = this.txtLinkTitle.Text;
|
|||
|
|
model.LinkType = this.txtLinkType.Text;
|
|||
|
|
model.LinkResult = this.txtLinkResult.Text;
|
|||
|
|
model.LinkTime = this.txtLinkTime.Text;
|
|||
|
|
model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
model.TimeStr = DateTime.Now;
|
|||
|
|
model.IFShare = this.txtIFShare.Text;
|
|||
|
|
model.CusBakA = this.txtCusBakA.Text;
|
|||
|
|
model.CusBakB = this.txtCusBakB.Text;
|
|||
|
|
model.CusBakC = this.txtCusBakC.Text;
|
|||
|
|
model.CusBakD = this.txtCusBakD.Text;
|
|||
|
|
model.CusBakE = this.txtCusBakE.Text;
|
|||
|
|
|
|||
|
|
model.Add();
|
|||
|
|
|
|||
|
|
//写系统日志
|
|||
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|||
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
MyRiZhi.DoSomething = "用户添加联系记录(" + this.txtCustomName.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
ZWL.Common.MessageBox.ShowAndRedirect(this, "联系记录信息添加成功!", "MyCustomLinkLog.aspx?CustomName=" + Request.QueryString["CustomName"].ToString());
|
|||
|
|
}
|
|||
|
|
}
|