using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using CY.BLL;
|
using CY.Model;
|
using CY.Infrastructure.Query;
|
using CY.Infrastructure.Common;
|
using CY.BLL.Sys;
|
using CY.BLL.OA;
|
|
namespace CY.WebForm.Pages.business
|
{
|
public partial class IntentionCustomerDetail : BasePage
|
{
|
OA_IntentionCustomerBLL _OA_IntentionCustomerBLL = null;
|
OA_IntentionCustomer intentionCustomer = null;
|
OA_StaffBLL _OA_StaffBLL = null;
|
|
public IntentionCustomerDetail()
|
{
|
_OA_StaffBLL = new OA_StaffBLL();
|
intentionCustomer = new OA_IntentionCustomer();
|
_OA_IntentionCustomerBLL = new OA_IntentionCustomerBLL();
|
}
|
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
if (Request["Keyid"].ToInt32() > 0)
|
{
|
|
BindIntentionCustomer();
|
}
|
else
|
{
|
|
JavaScript.RefreshDIVOpener(this);
|
}
|
}
|
|
}
|
|
private void BindIntentionCustomer()
|
{
|
string Keyid = Request["Keyid"].ToString2();
|
intentionCustomer = _OA_IntentionCustomerBLL.getSingleIntentionCustomer(Keyid);
|
|
OA_Staff m_OA_Staff_account = _OA_StaffBLL.GetModelByKeyid(intentionCustomer.AccountManagerId);
|
if (m_OA_Staff_account == null)
|
{
|
this.spanAccountManagerId.InnerText = "";
|
}
|
else
|
{
|
this.spanAccountManagerId.InnerText = m_OA_Staff_account.Name;
|
}
|
|
OA_Staff m_OA_Staff_Bussiness = _OA_StaffBLL.GetModelByKeyid(intentionCustomer.BusinessManagerId);
|
if (m_OA_Staff_Bussiness == null)
|
{
|
this.spanBusinessManagerId.InnerText = "";
|
}
|
else
|
{
|
this.spanBusinessManagerId.InnerText = m_OA_Staff_Bussiness.Name;
|
}
|
|
this.spanTurnoverIntention.InnerText = intentionCustomer.TurnoverIntention.Name.ToString2();
|
this.spanCustomerIndustriesId.InnerText = intentionCustomer.CustomerIndustries.Name.ToString2();
|
this.spanCustomerStatus.InnerText = intentionCustomer.CustomerStatus.Name.ToString2();
|
this.spanCustomerTypeId.InnerText = intentionCustomer.CustomerType.Name.ToString2();
|
this.spanDegreeImportanId.InnerText = intentionCustomer.DegreeImportan.Name.ToString2();
|
this.spanSourcesInfoId.InnerText = intentionCustomer.SourcesInfo.Name.ToString2();
|
this.spanBusinessManagers.InnerText = intentionCustomer.BusinessManagers.ToString2();
|
this.spanCompanyName.InnerText = intentionCustomer.CompanyName.ToString2();
|
this.spanCompanyOfficers.InnerText = intentionCustomer.CompanyOfficers.ToString2();
|
this.spanCompanyPhone.InnerText = intentionCustomer.PhoneNum.ToString2();
|
this.spanCuPost.InnerText = intentionCustomer.CuPost.ToString2();
|
this.spanDetailedAddress.InnerText = intentionCustomer.DetailedAddress.ToString2();
|
this.spanEmail.InnerText = intentionCustomer.Email.ToString2();
|
this.spanMobile.InnerText = intentionCustomer.MobileNum.ToString2();
|
this.spanOfficersMobileD.InnerText = intentionCustomer.OfficersMobile.ToString2();
|
this.spanQQ.InnerText = intentionCustomer.QQ.ToString2();
|
this.spanRemark.InnerText = intentionCustomer.Remark.ToString2();
|
this.spanPostcode.InnerText = intentionCustomer.Postcode.ToString2();
|
this.spanProvince.InnerText = intentionCustomer.Province.ToString2();
|
this.spanBusinessMobile.InnerText = intentionCustomer.BusinessMobile.ToString2();
|
this.spanOperator.InnerText = intentionCustomer.Operator.ToString2();
|
this.spanCity.InnerText = intentionCustomer.City.ToString2();
|
this.spanCounty.InnerText = intentionCustomer.County.ToString2();
|
this.spanCreateTime.InnerText = intentionCustomer.CreateTime.ToString2();
|
this.spanLastUpdateTime.InnerText = intentionCustomer.LastUpdateTime.ToString2();
|
}
|
}
|
}
|