public void Delete(TechOperation doc)
 {
    // _dataManagersFactory.GetDataManager<TechOperation>().Delete(doc);
     doc.IsDelete = true;
     Save(doc);
     OnDataRefreshed();
 }
 private void AppendToPositions(Drawing drawing, TechOperation nextOperation, TechOperation prevOperation,
     string ostRoute)
 {
     Document.Positions.Add(new PositionTaskToDept
     {
         DrawingId = drawing.Id.Value,
         CountDetails = drawing.CountAll,
         CountAll = drawing.CountAll,
         CountProduced = 0,
         Length = drawing.Length,
         Width = drawing.Width,
         Weight = drawing.Weight,
         Designation = drawing.Designation,
         GostOnSort = drawing.GostOnSort,
         MarkSteal = drawing.MarkSteal,
         Name = drawing.Name,
         NextOperation = nextOperation,
         PrevOperation = prevOperation,
         NumberOnSpec = drawing.NumberOnSpec,
         Profile = drawing.Profile,
         StandartSize = drawing.StandartSize,
         NextRoute = ostRoute,
         Files = drawing.Files
     });
 }
 public void Save(TechOperation document)
 {
     _dataManagersFactory.GetDataManager<TechOperation>().InsertOrUpdate(document);
     OnDataRefreshed();
 }
 public void DeleteTechOperation(TicketAutUser ticket, TechOperation doc)
 {
     _logger.Trace("Trace method Delete for document: {0}. Id: {2}. User: {1}", typeof(TechOperation).Name, ticket, doc.Id);
     _dataManagers.Delete(doc, ticket);
 }
 public TechOperation InsertTechOperation(TicketAutUser ticket, TechOperation doc)
 {
     _logger.Trace("Trace method Insert for document: {0}. User: {1}", typeof(TechOperation).Name, ticket);
     _dataManagers.Insert(doc, ticket);
     return(doc);
 }
 public List <HistoryRecord <TechOperation> > GetHistoryDocTechOperation(TechOperation doc)
 {
     _logger.Trace("Trace method GetHistoryList for document: {0}", typeof(TechOperation).Name);
     return(_historyManager.GetHistoryDoc(doc));
 }
Beispiel #7
0
 public void AddTechOperation(TechOperation techOperation)
 {
     TechOperations.Add((TechOperation <T>)techOperation);
 }