Example #1
0
        private void Arch_Dogovora_Load(object sender, EventArgs e)
        {
            GridViewStyles.ButtonGrid("Edit", "Сдача в архив", "Корректировать", grid_Arch_Status, Archh);
            GridViewStyles.ChancheViewGrid(grid_Arch_Status);

            bs_dd.DataSource = DB.LoadTable($"SELECT Т_Договора.[№_Договора], Т_Договора.Название_договора, Т_Договора.[Дата составления], Т_Договора.Примечание FROM Т_Кураторы INNER JOIN Т_Договора ON Т_Кураторы.ID_Куратора = Т_Договора.Куратор_проекта", "T_Seen_Dogg");

            grid_Arch_Status.DataSource = bs_dd;
        }
Example #2
0
        private void button_client_Click(object sender, EventArgs e)
        {
            GridViewStyles.ButtonGrid("Information", "Inf", "Подробнее", grid_for_all, inf);
            GridViewStyles.ButtonGrid("Del", "Delite", "Удалить", grid_for_all, inf);

            //For Tables T_Client
            DataTable dt = DB.ds.Tables["Т_Клиент"];

            bs_Client.DataSource    = DB.ds.Tables["Т_Клиент"];
            grid_for_all.DataSource = bs_Client;

            bindingNavigator1.BindingSource = bs_Client;
            QuicklyChangeDB.GridVisible(new string [] { "Фото", "ID_Клиента" }, grid_for_all);
        }
Example #3
0
        private void button_Dol_Click(object sender, EventArgs e)
        {
            GridViewStyles.ButtonGrid("ChangeContext", "Изменить", "Изменить", grid_for_all, izm);

            if (grid_for_all.Columns.Contains("Information") && grid_for_all.Columns.Contains("Del"))
            {
                grid_for_all.Columns.Remove("Information");
                grid_for_all.Columns.Remove("Del");
            }
            //For Tables T_Position
            bs_Dol.DataSource       = DB.ds.Tables["Т_Должность"];
            grid_for_all.DataSource = bs_Dol;

            bindingNavigator1.BindingSource = bs_Dol;
            QuicklyChangeDB.GridVisible(new string[] { "ID_Должности" }, grid_for_all);
        }