Example #1
0
        public void DeleteExistingTenderQuantityTable(long tableId, long currentTableId)
        {
            TenderQuantityTableChanges tenderQuantityTable = TenderQuantityTableChanges.FirstOrDefault(t => t.Id == tableId);

            tenderQuantityTable.DeleteExistingTenderQuantityTable(currentTableId);
            EntityUpdated();
        }
Example #2
0
        public long LastItemIndex(long changeTableId)
        {
            TenderQuantityTableChanges tbl;

            tbl = TenderQuantityTableChanges.FirstOrDefault(a => a.Id == changeTableId);
            return(tbl.LastItemIndex());
        }
Example #3
0
        public void UpdateQuantityTableName(long tableId, string name)
        {
            TenderQuantityTableChanges quantityTable = TenderQuantityTableChanges.FirstOrDefault(q => q.Id == tableId);

            quantityTable.UpdateName(name);
            EntityUpdated();
        }
Example #4
0
        public void SaveTenderQuantityTableItems(List <TenderQuantityItemDTO> table, string tableName)
        {
            TenderQuantityTableChanges tbl;
            long tableId = table[0].TableId;

            tbl = TenderQuantityTableChanges.FirstOrDefault(a => a.Id == tableId);
            tbl = tbl.SaveQuantityTableBulkItems(tableId, table, tableName);
            EntityUpdated();
        }
Example #5
0
        public TenderChangeRequest SaveTenderQuantityTables(List <TenderQuantityItemDTO> table, long currentItemId, out long itemId, long changeTableId)
        {
            TenderQuantityTableChanges tbl;

            tbl = TenderQuantityTableChanges.FirstOrDefault(a => a.Id == changeTableId);
            tbl = tbl.SaveQuantityTableItems(changeTableId, table, currentItemId, out itemId);
            EntityUpdated();
            return(this);
        }
Example #6
0
        public void DeleteTenderQuantityTableWithItems(int tableId)
        {
            TenderQuantityTableChanges tenderQuantityTable = TenderQuantityTableChanges.FirstOrDefault(t => t.Id == tableId);

            if (tenderQuantityTable != null)
            {
                tenderQuantityTable.DeleteTenderQuantityTableWithItems();
            }
            EntityUpdated();
        }
Example #7
0
        public TenderQuantityTableChanges DeleteQuantityTableItemsChanges(long tableId, int itemNumber)
        {
            TenderQuantityTableChanges table = TenderQuantityTableChanges.FirstOrDefault(a => a.Id == tableId && a.IsActive == true); //Starting from 1

            if (table != null)
            {
                table.DeleteQuantityTableItem(itemNumber);
            }
            EntityUpdated();
            return(table);
        }