示例#1
0
 public receiptType()
 {
     provider = new businessobjectType();
     provider.address = new addressType();
 }
示例#2
0
        private void f_SetProviderControlsFromEntity(businessobjectType provider = null)
        {
            if (provider == null)
                provider = Receipt.provider;

            tbCompanyName.Text = provider.name;
            tbCompanyRegNumber.Text = provider.companyregnum;
            tbCompanyTaxNumber.Text = provider.vatregnum;

            var address = provider.address;

            if (address != null)
            tbStreet.Text = address.street;
            tbCity.Text = address.city;
            tbZIP.Text = address.zip;
            cbCountry.Text = string.IsNullOrEmpty(address.country) ? "Slovensko" : address.country;
        }