Пример #1
0
        private void SaveGSInvoice(ASYCUDAValuation v, xcuda_Gs_Invoice di)
        {
            if (di != null)//&& di.Amount_foreign_currency != 0
            {
                var inv = new ASYCUDAValuationGs_Invoice();
                if (di.Amount_foreign_currency != 0)
                {
                    inv.Amount_foreign_currency = di.Amount_foreign_currency.ToString();
                }
                if (di.Amount_national_currency != 0)
                {
                    inv.Amount_national_currency = di.Amount_national_currency.ToString();
                }
                if (di.Currency_code != null)
                {
                    inv.Currency_code.Text.Add(di.Currency_code);
                }
                if (di.Currency_name != null)
                {
                    inv.Currency_name.Text.Add(di.Currency_name);
                }
                if (di.Currency_rate != 0)
                {
                    inv.Currency_rate = di.Currency_rate.ToString();
                }

                v.Gs_Invoice = inv;
            }
        }
Пример #2
0
 public async Task Savexcuda_Gs_Invoice(xcuda_Gs_Invoice i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new xcuda_Gs_InvoiceService())
     {
         await ctx.Updatexcuda_Gs_Invoice(i).ConfigureAwait(false);
     }
 }