📄 liaisoninformation.cs
字号:
namespace PowerEasy.WebSite.Controls.Crm
{
using PowerEasy.Controls;
using PowerEasy.Model.Crm;
using PowerEasy.WebSite.Controls;
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
public class LiaisonInformation : UserControl
{
protected RegionControl Region1;
protected TextBox TxtAddress;
protected TextBox TxtAim;
protected TextBox TxtEmail;
protected TextBox TxtFax;
protected TextBox TxtHomepage;
protected TextBox TxtHomePhone;
protected TextBox TxtICQ;
protected TextBox TxtMobile;
protected TextBox TxtMSN;
protected TextBox TxtOfficePhone;
protected TextBox TxtPHS;
protected TextBox TxtQQ;
protected TextBox TxtUC;
protected TextBox TxtYahoo;
protected TextBox TxtZipCode;
protected EmailValidator VmailEmail;
protected MobileValidator VmblMobile;
protected TelephoneValidator VtelHomePhone;
protected TelephoneValidator VtelOfficePhone;
protected ZipCodeValidator VziptZipCode;
public void GetContacter(ContacterInfo contacterInfo)
{
contacterInfo.Country = this.Region1.Country;
contacterInfo.Province = this.Region1.Province;
contacterInfo.City = this.Region1.City;
contacterInfo.Address = this.TxtAddress.Text;
contacterInfo.ZipCode = this.TxtZipCode.Text;
contacterInfo.OfficePhone = this.TxtOfficePhone.Text;
contacterInfo.HomePhone = this.TxtHomePhone.Text;
contacterInfo.Mobile = this.TxtMobile.Text;
contacterInfo.Fax = this.TxtFax.Text;
contacterInfo.Phs = this.TxtPHS.Text;
contacterInfo.Homepage = this.TxtHomepage.Text;
contacterInfo.Email = this.TxtEmail.Text;
contacterInfo.QQ = this.TxtQQ.Text;
contacterInfo.Msn = this.TxtMSN.Text;
contacterInfo.Icq = this.TxtICQ.Text;
contacterInfo.Yahoo = this.TxtYahoo.Text;
contacterInfo.UC = this.TxtUC.Text;
contacterInfo.Aim = this.TxtAim.Text;
}
protected void Page_Load(object sender, EventArgs e)
{
}
public void SetContacter(ContacterInfo contacterInfo)
{
this.Region1.Action = "Modify";
this.Region1.Country = contacterInfo.Country;
this.Region1.Province = contacterInfo.Province;
this.Region1.City = contacterInfo.City;
this.TxtAddress.Text = contacterInfo.Address;
this.TxtZipCode.Text = contacterInfo.ZipCode;
this.TxtOfficePhone.Text = contacterInfo.OfficePhone;
this.TxtHomePhone.Text = contacterInfo.HomePhone;
this.TxtMobile.Text = contacterInfo.Mobile;
this.TxtFax.Text = contacterInfo.Fax;
this.TxtPHS.Text = contacterInfo.Phs;
this.TxtHomepage.Text = contacterInfo.Homepage;
this.TxtEmail.Text = contacterInfo.Email;
this.TxtQQ.Text = contacterInfo.QQ;
this.TxtMSN.Text = contacterInfo.Msn;
this.TxtICQ.Text = contacterInfo.Icq;
this.TxtYahoo.Text = contacterInfo.Yahoo;
this.TxtUC.Text = contacterInfo.UC;
this.TxtAim.Text = contacterInfo.Aim;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -