📄 clientshow.aspx.cs
字号:
{
this.InfoTabTitle3.Attributes.Add("class", "titlemouseover");
this.OdsInfo.SelectParameters.Add("searchType", TypeCode.String, "10");
this.OdsInfo.SelectParameters.Add("field", TypeCode.Int32, "4");
this.OdsInfo.SelectParameters.Add("keyword", TypeCode.String, this.m_ClientId.ToString());
this.EgvBankrollItem.DataSourceID = "OdsInfo";
this.EgvBankrollItem.DataBind();
this.EgvBankrollItem.Visible = true;
}
}
else
{
this.InfoTabTitle3.Attributes.Add("onclick", "window.location.href='ClientShow.aspx?InfoType=3&ClientID=" + this.m_ClientId + "'");
}
if (infoType == 4)
{
this.OdsInfo.SelectMethod = "GetList";
this.OdsInfo.TypeName = "PowerEasy.Shop.Invoice";
this.OdsInfo.StartRowIndexParameterName = "startRowIndexId";
this.OdsInfo.MaximumRowsParameterName = "maxNumberRows";
this.OdsInfo.SelectCountMethod = "GetTotalOfInvoiceItem";
if (!this.Page.IsPostBack)
{
this.InfoTabTitle4.Attributes.Add("class", "titlemouseover");
this.OdsInfo.SelectParameters.Add("searchType", TypeCode.String, "4");
this.OdsInfo.SelectParameters.Add("keyword", TypeCode.String, this.m_ClientId.ToString());
this.OdsInfo.SelectParameters.Add("quickSearch", TypeCode.String, "0");
this.EgvInvoice.DataSourceID = "OdsInfo";
this.EgvInvoice.DataBind();
this.EgvInvoice.Visible = true;
}
}
else
{
this.InfoTabTitle4.Attributes.Add("onclick", "window.location.href='ClientShow.aspx?InfoType=4&ClientID=" + this.m_ClientId + "'");
}
if (infoType == 5)
{
this.OdsInfo.SelectMethod = "GetList";
this.OdsInfo.TypeName = "PowerEasy.Crm.Service";
this.OdsInfo.StartRowIndexParameterName = "startRowIndexId";
this.OdsInfo.MaximumRowsParameterName = "maxNumberRows";
this.OdsInfo.SelectCountMethod = "GetTotalOfService";
if (!this.Page.IsPostBack)
{
this.InfoTabTitle5.Attributes.Add("class", "titlemouseover");
this.OdsInfo.SelectParameters.Add("searchType", TypeCode.String, "10");
this.OdsInfo.SelectParameters.Add("field", TypeCode.String, "ClientID");
this.OdsInfo.SelectParameters.Add("keyword", TypeCode.String, this.m_ClientId.ToString());
this.EgvService.DataSourceID = "OdsInfo";
this.EgvService.DataBind();
this.EgvService.Visible = true;
}
}
else
{
this.InfoTabTitle5.Attributes.Add("onclick", "window.location.href='ClientShow.aspx?InfoType=5&ClientID=" + this.m_ClientId + "'");
}
if (infoType == 6)
{
this.OdsInfo.SelectMethod = "GetList";
this.OdsInfo.TypeName = "PowerEasy.Crm.Complain";
this.OdsInfo.StartRowIndexParameterName = "startRowIndexId";
this.OdsInfo.MaximumRowsParameterName = "maxNumberRows";
this.OdsInfo.SelectCountMethod = "GetTotal";
if (!this.Page.IsPostBack)
{
this.InfoTabTitle6.Attributes.Add("class", "titlemouseover");
this.OdsInfo.SelectParameters.Add("searchType", TypeCode.String, "0");
this.OdsInfo.SelectParameters.Add("field", TypeCode.String, "0");
this.OdsInfo.SelectParameters.Add("keyword", TypeCode.String, this.m_ClientId.ToString());
this.EgvComplain.DataSourceID = "OdsInfo";
this.EgvComplain.DataBind();
this.EgvComplain.Visible = true;
}
}
else
{
this.InfoTabTitle6.Attributes.Add("onclick", "window.location.href='ClientShow.aspx?InfoType=6&ClientID=" + this.m_ClientId + "'");
}
}
protected void ShowInitialize()
{
ClientInfo clientInfo = new ClientInfo();
clientInfo = Client.GetClientById(this.m_ClientId);
if (!clientInfo.IsNull)
{
this.ButtonInitialize(clientInfo);
this.LblArea.Text = Choiceset.GetDataText("PE_Client", "Area", clientInfo.Area);
this.LblClientField.Text = Choiceset.GetDataText("PE_Client", "ClientField", clientInfo.ClientField);
this.LblValueLevel.Text = Choiceset.GetDataText("PE_Client", "ValueLevel", clientInfo.ValueLevel);
this.LblCreditLevel.Text = Choiceset.GetDataText("PE_Client", "CreditLevel", clientInfo.CreditLevel);
this.LblImportance.Text = Choiceset.GetDataText("PE_Client", "Importance", clientInfo.Importance);
this.LblConnectionLevel.Text = Choiceset.GetDataText("PE_Client", "ConnectionLevel", clientInfo.ConnectionLevel);
this.LblSourceType.Text = Choiceset.GetDataText("PE_Client", "SourceType", clientInfo.SourceType);
this.LblPhaseType.Text = Choiceset.GetDataText("PE_Client", "PhaseType", clientInfo.PhaseType);
this.LblGroupID.Text = Choiceset.GetDataText("PE_Client", "GroupID", clientInfo.GroupId);
this.LblClientName.Text = clientInfo.ClientName;
this.LblClientNum.Text = clientInfo.ClientNum;
this.LblShortedForm.Text = clientInfo.ShortedForm;
this.LblParenter.Text = Client.GetClientNameById(clientInfo.ParentId, false);
this.LblOwner.Text = clientInfo.Owner;
this.LblCreateTime.Text = clientInfo.CreateTime.ToString();
this.LblUpdateTime.Text = clientInfo.UpdateTime.ToString();
int num = DataConverter.CLng(clientInfo.ClientType);
this.HdnClientType.Value = num.ToString();
if (num == 1)
{
this.LblClientType.Text = "个人客户";
}
else
{
this.LblClientType.Text = "企业客户";
}
this.LblRemark.Text = clientInfo.Remark;
if (num == 1)
{
ContacterInfo contacterByClientId = Contacter.GetContacterByClientId(this.m_ClientId);
if (!contacterByClientId.IsNull)
{
this.LblEducation.Text = Choiceset.GetDataText("PE_Contacter", "Education", contacterByClientId.Education);
this.LblIncome.Text = Choiceset.GetDataText("PE_Contacter", "Income", contacterByClientId.Income);
this.LblCountry.Text = contacterByClientId.Country;
this.LblProvince.Text = contacterByClientId.Province;
this.LblCity.Text = contacterByClientId.City;
this.LblAddress.Text = contacterByClientId.Address;
this.LblZipCode.Text = contacterByClientId.ZipCode;
this.LblOfficePhone.Text = contacterByClientId.OfficePhone;
this.LblHomePhone.Text = contacterByClientId.HomePhone;
this.LblMobile.Text = contacterByClientId.Mobile;
this.LblFax2.Text = contacterByClientId.Fax;
this.LblPHS.Text = contacterByClientId.Phs;
this.LblHomepage2.Text = contacterByClientId.Homepage;
this.LblEmail.Text = contacterByClientId.Email;
this.LblQQ.Text = contacterByClientId.QQ;
this.LblMSN.Text = contacterByClientId.Msn;
this.LblICQ.Text = contacterByClientId.Icq;
this.LblYahoo.Text = contacterByClientId.Yahoo;
this.LblUC.Text = contacterByClientId.UC;
this.LblAim.Text = contacterByClientId.Aim;
this.LblCompany.Text = contacterByClientId.Company;
this.LblDepartment.Text = contacterByClientId.Department;
this.LblPosition.Text = contacterByClientId.Position;
this.LblOperation.Text = contacterByClientId.Operation;
this.LblTitle.Text = contacterByClientId.Title;
this.LblCompanyAddress.Text = contacterByClientId.CompanyAddress;
if (contacterByClientId.Birthday.HasValue)
{
this.LblBirthday.Text = contacterByClientId.Birthday.Value.ToString("yyyy-MM-dd");
}
this.LblIDCard.Text = contacterByClientId.IdCard;
this.LblNativePlace.Text = contacterByClientId.NativePlace;
this.LblNation.Text = contacterByClientId.Nation;
this.LblSex.Text = BasePage.EnumToHtml<UserSexType>(contacterByClientId.Sex);
this.LblMarriage.Text = BasePage.EnumToHtml<UserMarriageType>(contacterByClientId.Marriage);
this.LblGraduateFrom.Text = contacterByClientId.GraduateFrom;
this.LblInterestsOfLife.Text = contacterByClientId.InterestsOfLife;
this.LblInterestsOfCulture.Text = contacterByClientId.InterestsOfCulture;
this.LblInterestsOfAmusement.Text = contacterByClientId.InterestsOfAmusement;
this.LblInterestsOfSport.Text = contacterByClientId.InterestsOfSport;
this.LblInterestsOfOther.Text = contacterByClientId.InterestsOfOther;
this.LblFamily.Text = contacterByClientId.Family;
}
else
{
AdminPage.WriteErrMsg("找不到对应的个人客户信息!", "ClientManage.aspx");
}
}
else
{
CompanyInfo companyByClientId = Company.GetCompanyByClientId(this.m_ClientId, false);
if (!companyByClientId.IsNull)
{
this.LblStatusInField.Text = Choiceset.GetDataText("PE_Company", "StatusInField", companyByClientId.StatusInField);
this.LblCompanySize.Text = Choiceset.GetDataText("PE_Company", "CompanySize", companyByClientId.CompanySize);
this.LblManagementForms.Text = Choiceset.GetDataText("PE_Company", "ManagementForms", companyByClientId.ManagementForms);
this.LblCountry.Text = companyByClientId.Country;
this.LblProvince.Text = companyByClientId.Province;
this.LblCity.Text = companyByClientId.City;
this.LblAddress.Text = companyByClientId.Address;
this.LblZipCode.Text = companyByClientId.ZipCode;
this.LblPhone.Text = companyByClientId.Phone;
this.LblFax1.Text = companyByClientId.Fax;
this.LblBankOfDeposit.Text = companyByClientId.BankOfDeposit;
this.LblBankAccount.Text = companyByClientId.BankAccount;
this.LblTaxNum.Text = companyByClientId.TaxNum;
this.LblHomepage1.Text = companyByClientId.Homepage;
this.LblBusinessScope.Text = companyByClientId.BusinessScope;
this.LblAnnualSales.Text = companyByClientId.AnnualSales;
this.LblRegisteredCapital.Text = companyByClientId.RegisteredCapital;
}
else
{
AdminPage.WriteErrMsg("找不到对应的企业信息!", "ClientManage.aspx");
}
}
}
else
{
AdminPage.WriteErrMsg("找不到指定的客户!", "ClientManage.aspx");
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -