Пример #1
0
 public async Task <IEnumerable <xcuda_ASYCUDA> > Searchxcuda_ASYCUDA(List <string> lst, List <string> includeLst = null)
 {
     using (var ctx = new xcuda_ASYCUDAService())
     {
         return(await ctx.Getxcuda_ASYCUDAByExpressionLst(lst, includeLst).ConfigureAwait(false));
     }
 }
Пример #2
0
 public async Task Savexcuda_ASYCUDA(xcuda_ASYCUDA i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new xcuda_ASYCUDAService())
     {
         await ctx.Updatexcuda_ASYCUDA(i).ConfigureAwait(false);
     }
 }
Пример #3
0
        //public static void Send2Excel(IEnumerable<SaleReportLine> slst)
        //{
        //    if (slst == null) return;
        //    var s = new ExportToExcel<SaleReportLine, List<SaleReportLine>>();
        //    s.dataToPrint = slst.ToList();
        //    s.GenerateReport();
        //}



        public async Task <IEnumerable <xcuda_ASYCUDA> > GetSalesDocuments(int docSetId)
        {
            using (var ctx = new xcuda_ASYCUDAService())
            {
                var lst =

                    (await
                     ctx.Getxcuda_ASYCUDAByExpressionNav(
                         string.Format("xcuda_ASYCUDA_ExtendedProperties.AsycudaDocumentSetId == {0}", docSetId)
                         ,
                         new Dictionary <string, string>()
                {
                    { "xcuda_ASYCUDA_ExtendedProperties.DocumentType", "(Type_of_declaration == \"EX\") || (Type_of_declaration == \"IM\" && Declaration_gen_procedure_code == \"4\") " }
                },
                         new List <string>()
                {
                    "xcuda_ASYCUDA_ExtendedProperties",
                    "xcuda_Declarant"
                }
                         ).ConfigureAwait(false));

                return(lst);
            }
        }