private void AppendTechOperToSheet(TechRoute route, List<TechOperation> techOperations, ExcelWorksheet ws, int i) { for (var j = 0; j < techOperations.Count; j++) { var colNumStr = GetColumnExcelName(AsciiTableStart + CountFixedField + j); var cell = ws.Cells[string.Format("{0}{1}", colNumStr, i)]; if (route != null && route.TechOperations.Any(x => x.Id == techOperations[j].Id)) cell.Value = "*"; SetStyleToAllLinesSquare(cell, ExcelBorderStyle.Thin); SetCenterOrientation(cell); } }
public void EditDocument(TechRoute document) { var controller = _controllersFactory.GetDocumentController<TechRoute>(); controller.Document = document; controller.ShowViewDialog(); }
public void Save(TechRoute document) { _techRouteDataManager.InsertOrUpdate(document); OnDataRefreshed(); }
public void Delete(TechRoute document) { _techRouteDataManager.Delete(document); OnDataRefreshed(); }