Пример #1
0
            public static BillColumn GetColumn(BillCell item)
            {
                BillColumn col;

                cols.TryGetValue(item, out col);
                return(col);
            }
Пример #2
0
        public void Calc()
        {
            var alpha = AcadLib.Comparers.AlphanumComparator.New;
            // группировка материалов по столбцам
            var cellMaterGroups = materials.GroupBy(g => new {
                title = g.BillTitle, titleIndex = g.BillTitleIndex, group = g.BillGroup,
                mark  = g.BillMark, gost = g.Gost, name = g.BillName
            }).OrderBy(o => o.Key.titleIndex).ThenBy(o => o.Key.group).ThenBy(o => o.Key.mark, alpha).ThenBy(o => o.Key.name);

            foreach (var cell in cellMaterGroups)
            {
                BillCell cel = new BillCell(cell.ToList());
                Cells.Add(cel);
            }
        }
Пример #3
0
 public BillColumn(BillCell item, int index)
 {
     cell       = item;
     mater      = item.BillMaterial;
     this.Index = index;
 }