예제 #1
0
        private void SaveCountry(ASYCUDAGeneral_information gi, xcuda_General_information dg)
        {
            if (dg.xcuda_Country != null)
            {
                var c = new ASYCUDAGeneral_informationCountry();
                c.Country_first_destination.Text.Add(dg.xcuda_Country.Country_first_destination);
                c.Country_of_origin_name = dg.xcuda_Country.Country_of_origin_name;

                c.Destination = new ASYCUDAGeneral_informationCountryDestination();
                if (dg.xcuda_Country.xcuda_Destination != null)
                {
                    c.Destination.Destination_country_code = dg.xcuda_Country.xcuda_Destination.Destination_country_code;
                    c.Destination.Destination_country_name = dg.xcuda_Country.xcuda_Destination.Destination_country_name;
                    //c.Destination.Destination_country_region = dg.xcuda_Country.xcuda_Destination.
                }

                if (dg.xcuda_Country.xcuda_Export != null)
                {
                    c.Export.Export_country_code = dg.xcuda_Country.xcuda_Export.Export_country_code;
                    c.Export.Export_country_name = dg.xcuda_Country.xcuda_Export.Export_country_name;
                }
                if (dg.xcuda_Country.Trading_country != null)
                {
                    c.Trading_country.Text.Add(dg.xcuda_Country.Trading_country);
                }
                gi.Country = c;
            }
        }
예제 #2
0
 public async Task Savexcuda_General_information(xcuda_General_information i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new xcuda_General_informationService())
     {
         await ctx.Updatexcuda_General_information(i).ConfigureAwait(false);
     }
 }
예제 #3
0
        public void SetupProperties()
        {
            if (xcuda_Identification == null)
            {
                xcuda_Identification = new xcuda_Identification();
            }

            if (xcuda_Identification.xcuda_Type == null)
            {
                xcuda_Identification.xcuda_Type = new xcuda_Type();
            }

            if (xcuda_ASYCUDA_ExtendedProperties == null)
            {
                xcuda_ASYCUDA_ExtendedProperties = new xcuda_ASYCUDA_ExtendedProperties();
            }

            if (xcuda_Declarant == null)
            {
                xcuda_Declarant = new xcuda_Declarant();
            }

            if (xcuda_General_information == null)
            {
                xcuda_General_information = new xcuda_General_information();
            }

            if (xcuda_General_information.xcuda_Country == null)
            {
                xcuda_General_information.xcuda_Country = new xcuda_Country();
            }

            if (xcuda_Identification.xcuda_Office_segment == null)
            {
                xcuda_Identification.xcuda_Office_segment = new xcuda_Office_segment();
            }

            if (xcuda_Identification.xcuda_Registration == null)
            {
                xcuda_Identification.xcuda_Registration = new xcuda_Registration();
            }

            if (xcuda_Identification.xcuda_Type == null)
            {
                xcuda_Identification.xcuda_Type = new xcuda_Type();
            }

            if (xcuda_Valuation == null)
            {
                xcuda_Valuation = new xcuda_Valuation();
            }



            if (xcuda_Valuation.xcuda_Gs_Invoice == null)
            {
                xcuda_Valuation.Calculation_working_mode = "1";
                xcuda_Valuation.xcuda_Gs_Invoice         = new xcuda_Gs_Invoice();
            }

            if (xcuda_Property == null)
            {
                xcuda_Property = new xcuda_Property();
            }
        }