private void BindCompanyInfo(CompanyDetailInfo info) { string type = Request.QueryString["Type"]; this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = !string.IsNullOrWhiteSpace(type) && type == "Organization" ? "内部机构" : "下级采购"; this.lblCompanyName.Text = info.CompanyName; this.lblCompanyShortName.Text = info.AbbreviateName; this.lblAddress.Text = info.Address; this.lblLoaction.Text = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District); this.lblCompanyPhone.Text = info.OfficePhones; this.lblPrincipal.Text = info.ManagerName; this.lblPrincipalPhone.Text = info.ManagerCellphone; this.lblLinkman.Text = info.Contact; this.lblLinkmanPhone.Text = info.ContactPhone; this.lblUrgencyLinkMan.Text = info.EmergencyContact; this.lblUrgencyLinkManPhone.Text = info.EmergencyCall; if (Request.QueryString["Editable"] != null && Request.QueryString["Editable"] == "True") { BindUpdate(info); } else { BindLookUp(info); } }
private void BindCompany(CompanyDetailInfo info) { this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = info.CompanyType.GetDescription(); this.lblUserName.Text = info.CompanyName; this.lblPetName.Text = info.AbbreviateName; this.lblLocation.Text = ChinaPay.B3B.TransactionWeb.PublicClass.AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District); this.lblAddress.Text = info.Address; this.lblPostCode.Text = info.ZipCode; this.lblFaxes.Text = info.Faxes; this.lblLinkman.Text = info.Contact; this.lblLinkmanPhone.Text = info.ContactPhone; this.lblEmail.Text = info.ManagerEmail; this.lblMSN.Text = info.ManagerMsn; this.lblQQ.Text = info.ManagerQQ; this.tbArgen.Visible = false; if (info.AccountType == AccountBaseType.Individual) { this.lblFixedPhone.Text = info.OfficePhones; } else { this.fixedPhoneTitle.Visible = false; this.fixedPhoneValue.Visible = false; } this.BindCompanyType(info); this.BindAccount(info); }
private void BindAccount(CompanyDetailInfo info) { this.BindPayment(); this.trReceiving.Visible = false; switch (info.CompanyType) { case CompanyType.Provider: this.trReceiving.Visible = true; this.BindReceiving(); break; case CompanyType.Supplier: this.trReceiving.Visible = true; this.BindReceiving(); break; case CompanyType.Purchaser: if (info.IsOem) { this.trReceiving.Visible = true; BindReceiving(); } break; } }
private UserRole GetUserRoles(CompanyDetailInfo company) { var result = UserRole.Purchaser; if (company.Audited && !isExpired(company)) { switch (company.CompanyType) { case CompanyType.Provider: result = UserRole.Provider; break; case CompanyType.Purchaser: result = UserRole.Purchaser; break; case CompanyType.Supplier: result = UserRole.Supplier; break; case CompanyType.Platform: result = UserRole.Platform; break; default: throw new NotSupportedException(); } } return(result); }
/// <summary> /// 返回资讯相关链接 /// </summary> /// <param name="AreaName">区域名</param> /// <param name="AreaId">区域ID</param> /// <param name="ScenicId">景区ID</param> /// <returns></returns> protected string getInfoAboutHref(object AreaName, object AreaId, object ScenicId, object CompanyId) { string str = string.Empty; EyouSoft.BLL.CompanyStructure.CompanyInfo companyBLL = new EyouSoft.BLL.CompanyStructure.CompanyInfo(); CompanyDetailInfo companyModel = companyBLL.GetModel(Convert.ToString(CompanyId)); if (null != companyModel) { if (companyModel.CompanyRole.HasRole(CompanyType.地接) || companyModel.CompanyRole.HasRole(CompanyType.专线)) { if (!string.IsNullOrEmpty(Convert.ToString(AreaName))) { //2012-02-10 14:10信息来源:楼 链接到组团菜单中的"旅游线路库" str = string.Format(@"<a href='javascript:void(0)' onclick=""topTab.open('{0}','资讯相关',{{}})"" class='font12_grean' title='{1}'>【{1}】</a>", EyouSoft.Common.Domain.UserBackCenter + "/teamservice/linelibrarylist.aspx?lineId=" + AreaId, Utils.GetText2(Eval("AreaName").ToString(), 6, true)); } } else if (companyModel.CompanyRole.HasRole(CompanyType.景区)) { EyouSoft.Model.ScenicStructure.MScenicArea Area = new EyouSoft.BLL.ScenicStructure.BScenicArea().GetModel(Convert.ToString(ScenicId)); if (null != Area) { str = string.Format(@"<a href=""{0}"" target=""_blank"" class='font12_grean' title='{1}'>【{1}】</a>", EyouSoft.Common.Domain.UserPublicCenter + "/ScenicManage/NewScenicDetails.aspx?ScenicId=" + Area.ScenicId, Utils.GetText2(Area.ScenicName, 6, true)); } } } return(str); }
protected void GetModelByOrderNoId() { if (!string.IsNullOrEmpty(TourId)) { modelMTourList = EyouSoft.BLL.NewTourStructure.BTourList.CreateInstance().GetModel(TourId); if (modelMTourList == null) { modelMTourList = new MTourList(); } else { GetStatues(modelMTourList.OrderStatus); #region 获取专线商联系人 modelCompany = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(modelMTourList.Business); if (modelCompany == null) { modelCompany = new CompanyDetailInfo(); } else { ContactInfo.Text = modelCompany.ContactInfo.ContactName + " 电话:" + modelCompany.ContactInfo.Tel; } #endregion MRoute modelMroute = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetModel(modelMTourList.RouteId); litPriceTeam.Text = modelMroute.IndependentGroupPrice.ToString("0.00"); #region 获取游客联系人 litVisitorContact.Text = modelMTourList.VisitorContact + " 电话:" + modelMTourList.VisitorTel; #endregion } } }
private void BindEnterprise(CompanyDetailInfo info) { if (info.AccountType == AccountBaseType.Enterprise) { this.presonName.Visible = false; this.txtCompanyName.Text = info.CompanyName; this.txtCompanyShortName.Text = info.AbbreviateName; this.txtOrginationCode.Text = info.OrginationCode; this.txtCompanyPhone.Text = info.OfficePhones; this.txtManagerName.Text = info.ManagerName; this.txtManagerCellphone.Text = info.ManagerCellphone; this.txtEmergencyContact.Text = info.EmergencyContact; this.txtEmergencyCall.Text = info.EmergencyCall; } else { fixedPhoneTitle.Visible = true; fixedPhoneValue.Visible = true; this.txtFixedPhone.Text = info.OfficePhones; this.txtPresonName.Text = info.CompanyName; this.txtIdCard.Text = info.CertNo; enterpriseContact.Visible = false; enterpriseinfo.Visible = false; } }
/// <summary> /// 验证是否显示”账户升级“内容 /// </summary> /// <param name="companyInfo"></param> /// <returns></returns> public static bool IsValid(CompanyDetailInfo companyInfo) { if (IsVerify(companyInfo) && IsVerify(companyInfo.CompanyId) && IsAllowUpgrade(companyInfo.CompanyId)) { return(true); } return(false); }
private void BindUpdate(CompanyDetailInfo info) { this.tbLookUp.Visible = false; this.txtFaxes.Text = info.Faxes; this.txtPostCode.Text = info.ZipCode; this.lblEmial.Text = info.ManagerEmail; this.txtQQ.Text = info.ManagerQQ; this.txtMSN.Text = info.ManagerMsn; }
/// <summary> /// 采购 /// </summary> private void BidPuchaserInfo(CompanyDetailInfo info) { this.BindPayAccount(info.CompanyId); this.hidType.Value = "Purchaser"; this.tbWorkTime.Visible = false; this.tbRefundTime.Visible = false; this.tbSupplierCompany.Visible = false; this.tbProviderCompany.Visible = false; }
/// <summary> /// 获取公司的详细信息 /// </summary> /// <returns></returns> public string GetCompanyInfo(object companyinfo) { CompanyDetailInfo modelcompany = (CompanyDetailInfo)companyinfo; string result = ""; result = "<a href=" + "javascript:void(0)" + " onmouseout=" + "wsug(event,0)" + " onmouseover=" + "wsug(event,'联系人:" + modelcompany.ContactInfo.ContactName + "<br/>手机:" + modelcompany.ContactInfo.Mobile + "<br/>电话:" + modelcompany.ContactInfo.Tel + "<br/>传真:" + modelcompany.ContactInfo.Fax + "<br/>QQ:" + modelcompany.ContactInfo.QQ + "')" + ">" + "联系人:" + modelcompany.ContactInfo.ContactName + "<br />" + "联系电话:" + modelcompany.ContactInfo.Tel + "</a>"; return(result); }
private void BindLookUp(CompanyDetailInfo info) { this.tbUpdate.Visible = false; this.txtBtnSave.Visible = false; this.lbllPostCode.Text = info.ZipCode; this.lbllMsn.Text = info.ManagerMsn; this.lbllFasex.Text = info.Faxes; this.lbllQQ.Text = info.ManagerQQ; this.lbllEmail.Text = info.ManagerEmail; }
private void bindOemInfo(Service.Organization.Domain.OEMInfo oemInfo) { const string _timeRegex = "yyyy-MM-dd HH:mm:ss"; lblOemCompanyUserName.Text = oemInfo.Company.UserName; lblOemCompanyTypeValue.Text = string.Format("{0}({1})", oemInfo.Company.CompanyType.GetDescription(), oemInfo.Company.AccountType.GetDescription()); lblOemAuthorizationTime.Text = oemInfo.RegisterTime.ToString(_timeRegex); lblOemCompayName.Text = oemInfo.Company.CompanyName; lblOemCompanyAbbreviation.Text = oemInfo.Company.AbbreviateName; lblOemName.Text = oemInfo.SiteName; lblOemCompayPhone.Text = oemInfo.Company.OfficePhones; lblOemCompanyOrginationCode.Text = oemInfo.Company.OrginationCode; lblOemDomainName.Text = oemInfo.DomainName; lblOemCompanyManagerName.Text = oemInfo.Company.ManagerName; lblOemCompanyManagerCellPhone.Text = oemInfo.Company.ManagerCellphone; lblOemValid.Text = oemInfo.Valid ? "正常" : "失效"; lblOemCompanyLocation.Text = AddressShow.GetAddressText(oemInfo.Company.Area, oemInfo.Company.Province, oemInfo.Company.City, oemInfo.Company.District); lblOemCompanyAddress.Text = oemInfo.Company.Address; lblOemEffectTime.Text = oemInfo.EffectTime.Value.ToString(_timeRegex); string postBackUrl = "/OrganizationModule/TerraceModule/CompanyInfoManage/LicenseQuery.aspx?type={0}&companyId={1}"; lbtnBussinessLicense.HRef = string.Format(postBackUrl, "bussiness", oemInfo.CompanyId); lbtnIATA.HRef = string.Format(postBackUrl, "iata", oemInfo.CompanyId); lbtncertNo.HRef = string.Format(postBackUrl, "certNo", oemInfo.CompanyId); switch (oemInfo.Company.CompanyType) { case ChinaPay.B3B.Common.Enums.CompanyType.Provider: break; case ChinaPay.B3B.Common.Enums.CompanyType.Purchaser: lbtnBussinessLicense.Visible = lbtnIATA.Visible = false; lbtncertNo.Visible = true; break; case ChinaPay.B3B.Common.Enums.CompanyType.Supplier: lbtnBussinessLicense.Visible = oemInfo.Company.AccountType == Common.Enums.AccountBaseType.Enterprise; lbtncertNo.Visible = oemInfo.Company.AccountType == Common.Enums.AccountBaseType.Individual; break; } lblOemEffectTimeStrat.Text = oemInfo.RegisterTime.ToString(_timeRegex); lblOemEffectTimeStrat.Text = oemInfo.EffectTime.Value.ToString(_timeRegex); CompanyDetailInfo companyDetailInfo = oemInfo.Company as CompanyDetailInfo; lblOemCompanyRegisterTime.Text = companyDetailInfo.RegisterTime.ToString(_timeRegex); lblOemCompanyAuditTime.Text = companyDetailInfo.AuditTime.HasValue ? companyDetailInfo.AuditTime.Value.ToString(_timeRegex) : string.Empty; }
protected void btnSave_Click(object sender, EventArgs e) { if (valiate()) { string companyId = hfdCompanyId.Value; if (!string.IsNullOrWhiteSpace(companyId)) { CompanyDetailInfo companyDetail = CompanyService.GetCompanyDetail(Guid.Parse(companyId)); if (companyDetail != null) { var merchant = new MerchantDTO { AccountNo = companyDetail.UserName, AdministorName = companyDetail.Contact, ContactPhone = companyDetail.ContactPhone, Email = companyDetail.ContactEmail, LegalPerson = companyDetail.Contact, LegalPhone = companyDetail.ContactPhone, LoginPassword = companyDetail.UserPassword, MerchantNo = companyDetail.UserName, Rate = decimal.Parse(txtPosRate.Text.Trim()) / 100 }; if (companyDetail.AccountType == AccountBaseType.Individual) { merchant.CompanyName = companyDetail.Contact + "分销"; merchant.OrganizationCode = "12345678-9"; merchant.LegalCarID = companyDetail.CertNo; } else { merchant.CompanyName = companyDetail.CompanyName; merchant.OrganizationCode = companyDetail.OrginationCode; merchant.LegalCarID = txtContactCertNo.Text.Trim(); } try { MerchantBaseService.MerchantOpening(merchant); var item = new OperationLog(OperationModule.单位, OperationType.Insert, CurrentUser.UserName, OperatorRole.Platform, merchant.AccountNo, string.Format("将账号{0}设为商户", merchant.AccountNo)); LogService.SaveOperationLog(item); ShowMessage("设为商户成功"); } catch (Exception ex) { ShowExceptionMessage(ex, "设为商户"); } } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string companyId = Request.QueryString["CompanyId"]; if (!string.IsNullOrWhiteSpace(companyId)) { CompanyDetailInfo info = CompanyService.GetCompanyDetail(Guid.Parse(companyId)); this.BindCompanyInfo(info); } } }
/// <summary> /// 出票 /// </summary> private void BindProviderInfo(CompanyDetailInfo info) { this.tbProviderCompany.Visible = true; this.tbSupplierCompany.Visible = false; this.certNo.Visible = false; this.divOffice.InnerHtml = BindOffice(info.CompanyId); this.divPerson.InnerHtml = BindPerson(info.CompanyId); this.BindPayAccount(info.CompanyId); this.BindPutAccoynt(info.CompanyId); this.BindWorkTime(info.CompanyId); this.BindCrippledTime(info.CompanyId); this.BindProviderUnitInfo(info.CompanyId); }
/// <summary> /// 获取出票方的公司信息 /// </summary> /// <param name="companyId"></param> /// <returns></returns> private CompanyDetailInfo GetCompanyInfo(Guid companyId) { var result = CompanyService.GetCompanyDetail(companyId); if (result == null) { result = new CompanyDetailInfo { AbbreviateName = string.Empty, UserName = string.Empty }; } return(result); }
public static bool Lock(decimal key, Service.Locker.LockRole lockRole, CompanyDetailInfo company, EmployeeDetailInfo employee, string remark, out string errorMsg) { var lockInfo = new Service.Locker.LockInfo(key.ToString()) { LockRole = lockRole, Company = company.CompanyId, CompanyName = company.AbbreviateName, Account = employee.UserName, Name = employee.Name, Remark = remark }; return(Service.LockService.Lock(lockInfo, out errorMsg)); }
private void BindCompanyInfo(CompanyDetailInfo info) { this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = info.CompanyType.GetDescription() + "(" + info.AccountType.GetDescription() + ")"; this.hfldAddressCode.Value = AddressShow.GetAddressJson(info.Area, info.Province, info.City, info.District); this.txtAddress.Text = info.Address; this.txtPostCode.Text = info.ZipCode; this.txtCompanyPhone.Text = info.OfficePhones; this.txtFaxes.Text = info.Faxes; this.txtLinkman.Text = info.Contact; this.txtLinkManPhone.Text = info.ContactPhone; this.txtEmail.Text = info.ContactEmail; this.txtQQ.Text = info.ContactQQ; BindEnterprise(info); }
protected static bool publisherIsValid(CompanyDetailInfo company) { if (!company.Enabled) { return(false); } if (company.PeriodStartOfUse.HasValue && company.PeriodStartOfUse.Value.Date > DateTime.Today) { return(false); } if (company.PeriodEndOfUse.HasValue && company.PeriodEndOfUse.Value.Date < DateTime.Today) { return(false); } return(true); }
/// <summary> /// 账户升级类型的判断 /// </summary> /// <param name="companyInfo"></param> /// <returns></returns> private static bool IsVerify(CompanyDetailInfo companyInfo) { if (companyInfo.CompanyType == Common.Enums.CompanyType.Purchaser) { return(true); } if (companyInfo.CompanyType == Common.Enums.CompanyType.Supplier && companyInfo.AuditTime.HasValue) { return(true); } if (companyInfo.CompanyType == Common.Enums.CompanyType.Provider && companyInfo.AuditTime.HasValue && !companyInfo.Audited) { return(true); } return(false); }
/// <summary> /// 绑定公司基本信息 /// </summary> private void BindCompanyInfo(CompanyDetailInfo info) { this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = info.CompanyType.GetDescription() + "(" + info.AccountType.GetDescription() + ")"; this.lblLocation.Text = ChinaPay.B3B.TransactionWeb.PublicClass.AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District); this.lblAddress.Text = info.Address; this.lblPostCode.Text = info.ZipCode; this.lblLinkman.Text = info.Contact; this.lblLinkmanPhone.Text = info.ContactPhone; this.lblFaxes.Text = info.Faxes; this.lblRegisterTime.Text = info.RegisterTime.ToString("yyyy-MM-dd HH:mm:ss"); this.lblAudit.Text = info.AuditTime.HasValue ? info.AuditTime.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty; this.lblIsOpenExternalInterface.Text = info.IsOpenExternalInterface ? "已启用" : "未启用"; lblTuiguang.Text = info.CompanyType == CompanyType.Platform ? "" : !string.IsNullOrEmpty(info.OperatorAccount) ? info.OperatorAccount : !BasePage.HasPermission("/tuiguang.aspx") ? "" : "<a href='javascript:zhiding();'>业务员指派</a>"; if (info.AccountType == AccountBaseType.Enterprise) { this.lblIndividual.Visible = false; this.lblCompanyName.Text = info.CompanyName; this.lblComapnyShortName.Text = info.AbbreviateName; this.lblCompanyPhone.Text = info.OfficePhones; this.lblPrincipal.Text = info.ManagerName; this.lblPrincipalPhone.Text = info.ManagerCellphone; this.lblUrgencyLinkman.Text = info.EmergencyContact; this.lblUrgencyLinkmanPhone.Text = info.EmergencyCall; this.lblOrginationCode.Text = info.OrginationCode; } else { this.fixedPhone.Visible = true; this.lblFixedPhone.Text = info.OfficePhones; this.lblCompany.Visible = false; this.tbBuyorOut.Visible = false; this.lblTrueName.Text = info.CompanyName; this.lblCertNo.Text = info.CertNo; } if (info.CompanyType != CompanyType.Purchaser && info.CompanyType != CompanyType.Platform) { this.exceptPurchase.Visible = true; this.lblBeginDeadline.Text = info.PeriodStartOfUse.Value.ToShortDateString(); this.lblEndDeadline.Text = info.PeriodEndOfUse.Value.ToShortDateString(); this.BindTime(info); } this.lblEmail.Text = info.ManagerEmail; this.lblQQ.Text = info.ManagerQQ; this.BindCompanyInfoByType(info); }
private void BingInfo(CompanyDetailInfo info) { this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = info.CompanyType.GetDescription(); this.txtUserName.Text = info.CompanyName; this.txtPetName.Text = info.AbbreviateName; this.hidAddress.Value = AddressShow.GetAddressJson(info.Area, info.Province, info.City, info.District); this.lblBindLocation.InnerText = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District); this.txtAddress.Text = info.Address; this.txtPostCode.Text = info.ZipCode; this.txtFaxes.Text = info.Faxes; this.txtLinkman.Text = info.Contact; this.txtLinkManPhone.Text = info.ContactPhone; this.txtEmail.Text = info.ContactEmail; // this.txtMSN.Text = info.ContactMSN; this.txtQQ.Text = info.ContactQQ; }
private void BindCompanyInfo(CompanyDetailInfo info) { this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = info.CompanyType.GetDescription(); this.lblUserName.Text = info.CompanyName; this.lblPetName.Text = info.AbbreviateName; this.lblAddress.Text = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District); this.lblUserAddress.Text = info.Address; this.txtPostCode.Text = info.ZipCode; this.txtFaxes.Text = info.Faxes; this.lblLinkman.Text = info.Contact; this.lblLinkmanPhone.Text = info.ContactPhone; this.txtEmail.Text = info.ContactEmail; this.txtQQ.Text = info.ContactQQ; this.txtMSN.Text = info.ContactMSN; this.lblBeginDeadline.Text = info.PeriodStartOfUse.HasValue?info.PeriodStartOfUse.Value.ToString("yyyy-MM-dd"):string.Empty; this.lblEndDeadline.Text = info.PeriodEndOfUse.HasValue?info.PeriodEndOfUse.Value.ToString("yyyy-MM-dd"):string.Empty; }
private void BingInfo(CompanyDetailInfo info) { this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = info.CompanyType.GetDescription(); this.lblUserName.Text = info.CompanyName; this.lblPetName.Text = info.AbbreviateName; this.lblLocation.Text = ChinaPay.B3B.TransactionWeb.PublicClass.AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District); this.lblBeginDeadline.Text = info.PeriodStartOfUse.HasValue ? info.PeriodStartOfUse.Value.ToShortDateString() : string.Empty; this.lblEndDeadline.Text = info.PeriodEndOfUse.HasValue ? info.PeriodEndOfUse.Value.ToShortDateString() : string.Empty; this.lblAddress.Text = info.Address; this.lblPostCode.Text = info.ZipCode; this.lblFaxes.Text = info.Faxes; this.lblLinkman.Text = info.Contact; this.lblLinkmanPhone.Text = info.ContactPhone; this.lblEmail.Text = info.ContactEmail; this.lblMSN.Text = info.ContactMSN; this.lblQQ.Text = info.ContactQQ; }
private void getUpgradeInfo(CompanyDetailInfo companyInfo) { if (CompanyUpgradeService.IsValid(companyInfo) && BasePage.SuperiorOEM == null) { this.typeUpgradeApply.Visible = true; if (companyInfo.CompanyType == Common.Enums.CompanyType.Purchaser && companyInfo.AccountType == AccountBaseType.Individual) { this.rbnSupplierIndividual.Visible = true; this.rbnProviderEnterprise.Visible = true; this.rbnSupplierIndividual.Checked = true; } if (companyInfo.CompanyType == Common.Enums.CompanyType.Purchaser && companyInfo.AccountType == AccountBaseType.Enterprise) { this.rbnSupplierEnterprise.Visible = true; this.rbnProviderEnterprise.Visible = true; this.rbnSupplierEnterprise.Checked = true; } if (companyInfo.CompanyType == Common.Enums.CompanyType.Supplier && companyInfo.Audited == true && companyInfo.AuditTime.HasValue) { this.rbnProviderEnterprise.Visible = true; this.rbnProviderEnterprise.Checked = true; } if (companyInfo.CompanyType == Common.Enums.CompanyType.Supplier && companyInfo.Audited == false && companyInfo.AuditTime.HasValue) { this.rbnProviderEnterprise.Visible = true; if (companyInfo.AccountType == AccountBaseType.Individual) { this.rbnSupplierIndividual.Visible = true; this.rbnSupplierIndividual.Checked = true; } else { this.rbnSupplierEnterprise.Visible = true; this.rbnSupplierEnterprise.Checked = true; } } if (companyInfo.CompanyType == Common.Enums.CompanyType.Provider && companyInfo.Audited == false && companyInfo.AuditTime.HasValue) { this.rbnProviderEnterprise.Visible = true; this.rbnSupplierEnterprise.Visible = true; this.rbnSupplierEnterprise.Checked = true; } } }
private void BindCompanyType(CompanyDetailInfo info) { if (info.CompanyType != CompanyType.Supplier) { this.tbArgen.Visible = true; this.lblPrincipal.Text = info.ManagerName; this.lblPrincipalPhone.Text = info.ManagerCellphone; this.lblUrgencyLinkman.Text = info.EmergencyContact; this.lblUrgencyLinkmanPhone.Text = info.EmergencyCall; } else { this.tdNickName.InnerText = "昵称"; this.tdUserName.InnerText = "用户名"; this.lblEmail.Text = info.ContactEmail; this.lblMSN.Text = info.ContactMSN; this.lblQQ.Text = info.ContactQQ; } }
private void bindCompanyInfo(CompanyDetailInfo info) { this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = info.CompanyType.GetDescription(); this.lblAccountType.Text = info.AccountType.GetDescription(); this.lblIsOpenExternalInterface.Text = info.IsOpenExternalInterface ? "已启用" : "未启用"; if (info.AccountType == AccountBaseType.Individual) { this.companyContactInfo.Visible = false; this.lblCompany.Visible = false; this.lblTrueName.Text = info.CompanyName; this.lblCertNo.Text = info.CertNo; this.lblFixedPhone.Text = info.OfficePhones; } else { this.fixedPhone.Visible = false; this.lblIndividual.Visible = false; this.lblCompanyName.Text = info.CompanyName; this.lblOrginationCode.Text = info.OrginationCode; this.lblCompanyShortName.Text = info.AbbreviateName; this.lblCompanyPhone.Text = info.OfficePhones; this.lblPrincipal.Text = info.ManagerName; this.lblPrincipalPhone.Text = info.ManagerCellphone; this.lblUrgencyLinkMan.Text = info.EmergencyContact; this.lblUrgencyLinkManPhone.Text = info.EmergencyCall; } if (info.CompanyType == CompanyType.Platform || info.CompanyType == CompanyType.Purchaser) { this.timeTitle.Visible = false; this.timeValue.Visible = false; } this.lblLocation.Text = ChinaPay.B3B.TransactionWeb.PublicClass.AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District); this.lblAddress.Text = info.Address; this.lblPostCode.Text = info.ZipCode; this.lblFaxes.Text = info.Faxes; this.lblLinkman.Text = info.Contact; this.lblLinkManPhone.Text = info.ContactPhone; this.lblEmail.Text = info.ContactEmail; this.lblQQ.Text = info.ContactQQ; this.lblBeginDeadline.Text = info.PeriodStartOfUse.HasValue ? info.PeriodStartOfUse.Value.ToShortDateString() : string.Empty; this.lblEndDeadline.Text = info.PeriodEndOfUse.HasValue ? info.PeriodEndOfUse.Value.ToShortDateString() : string.Empty; }
private void BindCompanyInfo(CompanyDetailInfo info) { this.lblAccountNo.Text = info.UserName; this.lblCompanyType.Text = info.CompanyType.GetDescription(); this.lblCompanyName.Text = info.CompanyName; this.lblCompanyShortName.Text = info.AbbreviateName; this.lblAddress.Text = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District); this.lblCompanyAddress.Text = info.Address; this.txtPostCode.Text = info.ZipCode; this.txtCompanyPhone.Text = info.OfficePhones; this.txtFaxes.Text = info.Faxes; this.lblPrincipal.Text = info.ManagerName; this.lblPrincipalPhone.Text = info.ManagerCellphone; this.lblLinkman.Text = info.Contact; this.lblLinkManPhone.Text = info.ContactPhone; this.lblUrgencyLinkMan.Text = info.EmergencyContact; this.lblUrgencyLinkManPhone.Text = info.EmergencyCall; this.txtEmail.Text = info.ManagerEmail; this.txtMSN.Text = info.ManagerMsn; this.txtQQ.Text = info.ManagerQQ; }
/// <summary> /// 产品 /// </summary> private void BindSupplierInfo(CompanyDetailInfo info) { if (info.AccountType == AccountBaseType.Individual) { this.bussinessLicense.Visible = false; } if (info.AccountType == AccountBaseType.Enterprise) { this.certNo.Visible = false; } this.tbRefundTime.Visible = false; this.lblEmail.Text = info.ContactEmail; this.lblQQ.Text = info.ContactQQ; this.hidType.Value = "Supplier"; this.tbSupplierCompany.Visible = true; this.tbProviderCompany.Visible = false; this.BindPayAccount(info.CompanyId); this.BindPutAccoynt(info.CompanyId); this.BindWorkTime(info.CompanyId); this.BindSupplierUnitInfo(info.CompanyId); }