Пример #1
0
        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);
            }
        }
Пример #2
0
 public void EditDocument(TechRoute document)
 {
     var controller = _controllersFactory.GetDocumentController<TechRoute>();
     controller.Document = document;
     controller.ShowViewDialog();
 }
Пример #3
0
 public void Save(TechRoute document)
 {
     _techRouteDataManager.InsertOrUpdate(document);
     OnDataRefreshed();
 }
Пример #4
0
 public void Delete(TechRoute document)
 {
     _techRouteDataManager.Delete(document);
     OnDataRefreshed();
 }