コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 private void BindCompanyInfo(CompanyInfo info)
 {
     this.lblAccountNo.Text           = info.UserName;
     this.lblCompanyType.Text         = info.CompanyType.GetDescription() + "(" + info.AccountType.GetDescription() + ")";
     this.txtCompanyName.Text         = info.CompanyName;
     this.txtCompanyShortName.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.txtCompanyPhone.Text        = info.OfficePhones;
     this.txtFaxes.Text               = info.Faxes;
     this.txtPrincipal.Text           = info.ManagerName;
     this.txtPrincipalPhone.Text      = info.ManagerCellphone;
     this.txtLinkman.Text             = info.Contact;
     this.txtLinkManPhone.Text        = info.ContactPhone;
     this.txtUrgencyLinkMan.Text      = info.EmergencyContact;
     this.txtUrgencyLinkManPhone.Text = info.EmergencyCall;
     this.txtEmail.Text               = info.ManagerEmail;
     this.txtQQ.Text = info.ManagerQQ;
 }
コード例 #7
0
ファイル: CompanyAudit.aspx.cs プロジェクト: 842549829/Pool
 private void BindCompanyInfo(CompanyDetailInfo info)
 {
     this.lblAccuountNo.Text       = info.UserName;
     this.lblCompanyType.Text      = info.CompanyType.GetDescription();
     this.lblCompanyName.Text      = info.CompanyName;
     this.lblCompanyShortName.Text = info.AbbreviateName;
     this.lblCompanyAddress.Text   = info.Address;
     this.lblBeginDeadline.Text    = info.PeriodStartOfUse.ToString();
     this.lblEndDeadline.Text      = info.PeriodEndOfUse.ToString();
     this.lblAddress.Text          = AddressShow.GetAddressText(info.Area, info.Province, info.City, info.District);
     this.lblPostCode.Text         = info.ZipCode;
     this.lblCompanyPhone.Text     = info.OfficePhones;
     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;
     this.tbAgen.Visible  = false;
     this.tbAgens.Visible = false;
     this.BindAgentAgentQualification(info.CompanyId, info);
 }