Пример #1
0
        private void AddAccount()
        {
            var address = ChinaPay.B3B.TransactionWeb.PublicClass.AddressShow.GetAddressBaseInfo(hfldAddressCode.Value);

            if (CurrentCompany.CompanyType == CompanyType.Platform)
            {
                if (person.Checked)
                {
                    AccountCombineService.Establish(GetAccountInfo(), GetAccountIndividual(address), DomainName, CurrenContract.ServicePhone, PlatformName);
                }
                else
                {
                    AccountCombineService.Establish(GetAccountInfo(), GetAccountEnterprise(address), DomainName, CurrenContract.ServicePhone, PlatformName);
                }
            }
            else
            {
                ValidateCode();
                if (person.Checked)
                {
                    AccountCombineService.Spread(CurrentCompany.CompanyId, GetAccountInfo(), GetAccountIndividual(address), DomainName, CurrenContract.ServicePhone, PlatformName);
                }
                else
                {
                    AccountCombineService.Spread(CurrentCompany.CompanyId, GetAccountInfo(), GetAccountEnterprise(address), DomainName, CurrenContract.ServicePhone, PlatformName);
                }
            }
        }
Пример #2
0
 private void SpreadAccount(EmployeeDetailInfo employeeDetailInfo, string spreadAccount)
 {
     if (person.Checked)
     {
         AccountCombineService.Spread(employeeDetailInfo.Owner, GetAccountInfo(), GetAccountIndividual(spreadAccount), BasePage.DomainName, BasePage.CurrenContract.ServicePhone, BasePage.PlatformName);
     }
     else
     {
         AccountCombineService.Spread(employeeDetailInfo.Owner, GetAccountInfo(), GetAccountEnterprise(spreadAccount), BasePage.DomainName, BasePage.CurrenContract.ServicePhone, BasePage.PlatformName);
     }
 }