protected override void AgainsCreateColumn() { if (ColumnsBook.ContainsKey(Columns.volnew) || ColumnsBook.ContainsKey(Columns.volold)) { LoadPeriod(); } }
protected override void GetDGColumn() { MyTools.C_Setting_DGColumn setting = new MyTools.C_Setting_DGColumn(); List <MyTools.C_DGColumn_Bind> list = new List <MyTools.C_DGColumn_Bind>(); list.Add(new MyTools.C_DGColumn_Bind(Columns.name, MyTools.E_TypeColumnDG.Text, "NameClient", setting)); //list.Add(new MyTools.C_DGColumn_Bind(col.inn, MyTools.E_TypeColumnDG.Text, "INN", setting)); list.Add(new MyTools.C_DGColumn_Bind(Columns.volume, MyTools.E_TypeColumnDG.Text, "Volume", setting)); list.Add(new MyTools.C_DGColumn_Bind("объёмы", MyTools.E_TypeColumnDG.Text, "Volumes", setting)); if (ColumnsBook.ContainsKey(Columns.volnew) || ColumnsBook.ContainsKey(Columns.volold)) { list.Add(new MyTools.C_DGColumn_Bind("тариф", MyTools.E_TypeColumnDG.Text, "Tarif", setting)); } list.Add(new MyTools.C_DGColumn_Bind(Columns.adres, MyTools.E_TypeColumnDG.Text, "Adres", setting)); list.Add(new MyTools.C_DGColumn_Bind("Номер папки", MyTools.E_TypeColumnDG.Text, "NumberFolder", setting)); list.Add(new MyTools.C_DGColumn_Bind("Адрес из БАЗЫ", MyTools.E_TypeColumnDG.Text, "AdresFromBase", setting)); ColumnsFromDG = list.ToArray(); }