public string GetCompanyAddress(object o) { if (o != null) { EyouSoft.Model.ComStructure.MCPCC model = (EyouSoft.Model.ComStructure.MCPCC)o; return(model.ProvinceName + "-" + model.CityName); } return(""); }
/// <summary> /// 绑定数据源 /// </summary> private void BindSource() { EyouSoft.BLL.SourceStructure.BSource bSource = new EyouSoft.BLL.SourceStructure.BSource(); EyouSoft.Model.SourceStructure.MSourceTravel sourceTravel = bSource.GetTravelServiceModel(SiteUserInfo.SourceCompanyInfo.CompanyId); if (sourceTravel != null) { //查询国家、省市区域 EyouSoft.BLL.ComStructure.BComCity bComCity = new EyouSoft.BLL.ComStructure.BComCity(); EyouSoft.Model.ComStructure.MCPCC m = bComCity.GetCPCD(CurrentUserCompanyID, sourceTravel.SourceModel.CountryId, sourceTravel.SourceModel.ProvinceId, sourceTravel.SourceModel.CityId, sourceTravel.SourceModel.CountyId); if (m != null) { this.lblCountry.Text = m.CountryName; this.lblProvice.Text = m.ProvinceName; this.lblCity.Text = m.CityName; this.lblCounty.Text = m.CountyName; this.lblType.Text = m.CountryName == "中国" ? "国内" : "国外"; } this.lblName.Text = sourceTravel.SourceModel.Name; this.lblLicense.Text = sourceTravel.SourceModel.LicenseKey; this.lblLegalRepresentative.Text = sourceTravel.SourceTravelModel.LegalRepresentative; this.lblLegalRepresentativePhone.Text = sourceTravel.SourceTravelModel.Telephone; this.lblAddress.Text = sourceTravel.SourceModel.Address; this.lblIsSignContract.Text = sourceTravel.SourceModel.IsSignContract == true ? "是" : "否"; this.lblEffectTime.Text = sourceTravel.SourceModel.ContractPeriodEnd != null?sourceTravel.SourceModel.ContractPeriodEnd.Value.ToString("yyyy-MM-dd") : string.Empty; this.lblFeatureRoute.Text = sourceTravel.SourceTravelModel.Routes; this.lblIsSign.Text = sourceTravel.SourceModel.IsPermission == true ? "是" : "否"; this.lblIsRecommend.Text = sourceTravel.SourceModel.IsRecommend == true ? "是" : "否"; this.lblIsRebatePolicy.Text = sourceTravel.SourceModel.IsCommission == true ? "是" : "否"; this.lblRebatePolicy.Text = sourceTravel.SourceModel.UnitPolicy; } }
/// <summary> /// 绑定数据源 /// </summary> private void BindSource() { EyouSoft.BLL.CrmStructure.BCrm bCrm = new EyouSoft.BLL.CrmStructure.BCrm(); EyouSoft.Model.CrmStructure.MCrm mCrm = bCrm.GetInfo(SiteUserInfo.TourCompanyInfo.CompanyId); //查询国家、省市区域的 EyouSoft.BLL.ComStructure.BComCity bComCity = new EyouSoft.BLL.ComStructure.BComCity(); EyouSoft.Model.ComStructure.MCPCC m = bComCity.GetCPCD(CurrentUserCompanyID, mCrm.CountryId, mCrm.ProvinceId, mCrm.CityId, mCrm.CountyId); if (m != null) { this.lblCountry.Text = m.CountryName; this.lblProvice.Text = m.ProvinceName; this.lblCity.Text = m.CityName; this.lblCounty.Text = m.CountyName; } this.lblName.Text = mCrm.Name; this.lblAddress.Text = mCrm.Address; this.lblOrganizationCode.Text = mCrm.OrganizationCode; this.lblLegalRepresentative.Text = mCrm.LegalRepresentative; this.lblLegalRepresentativeMobile.Text = mCrm.LegalRepresentativeMobile; this.lblLegalRepresentativePhone.Text = mCrm.LegalRepresentativePhone; this.lblLicense.Text = mCrm.License; this.lblFinancialName.Text = mCrm.FinancialName; this.lblFinancialPhone.Text = mCrm.FinancialPhone; this.lblFinancialMobile.Text = mCrm.FinancialMobile; //查询销售员 EyouSoft.BLL.ComStructure.BComUser bUser = new EyouSoft.BLL.ComStructure.BComUser(); EyouSoft.Model.ComStructure.MComUser user = bUser.GetModel(mCrm.SellerId, SiteUserInfo.CompanyId); if (null != user) { this.lblSeller.Text = user.UserName; } this.lblBrevityCode.Text = mCrm.BrevityCode; this.lblRebatePolicy.Text = mCrm.RebatePolicy; }
private void Bind() { if (!string.IsNullOrEmpty(EyouSoft.Common.Utils.GetQueryStringValue("crmId"))) { EyouSoft.Model.CrmStructure.MCrm crmModel = crmBll.GetInfo(EyouSoft.Common.Utils.GetQueryStringValue("crmId")); if (crmBll != null) { lblAddress.Text = crmModel.Address; lblBrevityCode.Text = crmModel.BrevityCode; lblAmountOwed.Text = crmModel.AmountOwed.ToString("C"); EyouSoft.Model.ComStructure.MCPCC cpccModel = cityBll.GetCPCD(crmModel.CompanyId, crmModel.CountryId, crmModel.ProvinceId, crmModel.CityId, crmModel.CountyId); lblCity.Text = cpccModel.CityName; lblCountry.Text = cpccModel.CountryName; lblCounty.Text = cpccModel.CountyName; lblProvince.Text = cpccModel.ProvinceName; lblDeadline.Text = crmModel.Deadline.ToString(); lblFinancialMobile.Text = crmModel.FinancialMobile; lblFinancialName.Text = crmModel.FinancialName; lblFinancialPhone.Text = crmModel.FinancialPhone; lblIsSignContract.Text = (!crmModel.IsSignContract) ? "否" : "是"; lblLegalRepresentative.Text = crmModel.LegalRepresentative; lblLegalRepresentativeMobile.Text = crmModel.LegalRepresentativeMobile; lblLegalRepresentativePhone.Text = crmModel.LegalRepresentativePhone; lblLicense.Text = crmModel.License; lblName.Text = crmModel.Name; lblOrganizationCode.Text = crmModel.OrganizationCode; //lblRebatePolicy.Text = crmModel.RebatePolicy; lblSellerId.Text = crmModel.SellerName; if (crmModel.BankList != null && crmModel.BankList.Count > 0) { rptBank.DataSource = crmModel.BankList; rptBank.DataBind(); } else { phYinHangZhangHuEmpty.Visible = true; } if (crmModel.LinkManList != null && crmModel.LinkManList.Count > 0) { for (int i = 0; i < crmModel.LinkManList.Count; i++) { EyouSoft.Model.ComStructure.MComUser userModel = userBll.GetModel(crmModel.LinkManList[i].UserId, base.SiteUserInfo.CompanyId); string html = string.Empty; if (userModel != null) { html = string.Format("<table cellspacing='0' cellpadding='0' border='0' width='100%' class='pp-tableclass'><tr class='pp-table-title'><th height='23' align='center'>帐号</th><th align='center'>密码</th><th height='23' align='center'>状态</th></tr><tr ><td align='center'>{0}</td><td align='center'>{1}</td><td align='center'>{2}</td></tr></table>", userModel.UserName, userModel.Password, userModel.UserStatus.ToString()); userListString.Add(crmModel.LinkManList[i].UserId, html); } } rptLinkMan.DataSource = crmModel.LinkManList; rptLinkMan.DataBind(); } if (crmModel.AttachModel != null) { filename = crmModel.AttachModel.Name; filepath = crmModel.AttachModel.FilePath; } } } }