private static ImportBill ConvertImportBill(ServiceImportBill.import_bill item)
 {
     ImportBill import = new ImportBill();
     import.id = item.id;
     import.date = item.date;
     import.id_manufacturer = item.id_manufacturer;
     import.total_price = item.total_price;
     import.name_manufacturer = sManu.GetManufacturerById(item.id_manufacturer).name;
     return import;
 }
Beispiel #2
0
        private static ImportBill ConvertImportBill(ServiceImportBill.import_bill item)
        {
            ImportBill import = new ImportBill();

            import.id                = item.id;
            import.date              = item.date;
            import.id_manufacturer   = item.id_manufacturer;
            import.total_price       = item.total_price;
            import.name_manufacturer = sManu.GetManufacturerById(item.id_manufacturer).name;
            return(import);
        }
Beispiel #3
0
        private static List <ImportBill> ConvertListImportBill(List <ServiceImportBill.import_bill> myImport)
        {
            List <ImportBill> listImport = new List <ImportBill>();

            foreach (var item in myImport)
            {
                ImportBill import = new ImportBill();
                import.id                = item.id;
                import.date              = item.date;
                import.id_manufacturer   = item.id_manufacturer;
                import.total_price       = item.total_price;
                import.name_manufacturer = sManu.GetManufacturerById(item.id_manufacturer).name;
                listImport.Add(import);
            }
            return(listImport);
        }
 private static List<ImportBill> ConvertListImportBill(List<ServiceImportBill.import_bill> myImport)
 {
     List<ImportBill> listImport = new List<ImportBill>();
     foreach (var item in myImport)
     {
         ImportBill import = new ImportBill();
         import.id = item.id;
         import.date = item.date;
         import.id_manufacturer = item.id_manufacturer;
         import.total_price = item.total_price;
         import.name_manufacturer = sManu.GetManufacturerById(item.id_manufacturer).name;
         listImport.Add(import);
     }
     return listImport;
 }