Exemplo n.º 1
0
 public void UpdateQuantitiesTables(IList <QuantitiesTable> tables)
 {
     //delete quantity tables and its items the add the new ones
     foreach (var item in QuantitiesTables)
     {
         item.DeleteQuantitiesTableAndItems();
     }
     foreach (var table in tables)
     {
         //table.AddQuantityItems(table.QuantitiesTableItems);
         QuantitiesTables.Add(table);
     }
     EntityUpdated();
 }
Exemplo n.º 2
0
 public Tender UpdateQuantitiesTables(List <QuantitiesTable> tables)
 {
     //delete quantity tables and its items the add the new ones
     foreach (var item in QuantitiesTables)
     {
         item.DeleteQuantitiesTableAndItems();
     }
     foreach (var table in tables)
     {
         //table.AddQuantityItems(table.QuantitiesTableItems);
         QuantitiesTables.Add(new QuantitiesTable(table.Name, table.QuantitiesTableItems));
     }
     AddActionHistory((int)Enums.TenderStatus.UnderEstablishing, "");
     EntityUpdated();
     return(this);
 }