|
|
@@ -0,0 +1,417 @@
|
|
|
+namespace DeanOfficeApp
|
|
|
+{
|
|
|
+ partial class MainForm
|
|
|
+ {
|
|
|
+ private System.ComponentModel.IContainer components = null;
|
|
|
+
|
|
|
+ protected override void Dispose(bool disposing)
|
|
|
+ {
|
|
|
+ if (disposing && (components != null))
|
|
|
+ components.Dispose();
|
|
|
+ base.Dispose(disposing);
|
|
|
+ }
|
|
|
+
|
|
|
+ private void InitializeComponent()
|
|
|
+ {
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ this.panelTop = new Guna.UI2.WinForms.Guna2Panel();
|
|
|
+ this.controlBox = new Guna.UI2.WinForms.Guna2ControlBox();
|
|
|
+ this.panelLeft = new Guna.UI2.WinForms.Guna2Panel();
|
|
|
+ this.cmbTeachers = new Guna.UI2.WinForms.Guna2ComboBox();
|
|
|
+ this.btnStudents = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.btnUsers = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.btnGrades = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.btnAssignments = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.cmbGroups = new Guna.UI2.WinForms.Guna2ComboBox();
|
|
|
+ this.rbAsc = new Guna.UI2.WinForms.Guna2RadioButton();
|
|
|
+ this.rbDesc = new Guna.UI2.WinForms.Guna2RadioButton();
|
|
|
+ this.btnLoad = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.gbDisciplines = new Guna.UI2.WinForms.Guna2GroupBox();
|
|
|
+ this.txtDiscName = new Guna.UI2.WinForms.Guna2TextBox();
|
|
|
+ this.numHours = new Guna.UI2.WinForms.Guna2NumericUpDown();
|
|
|
+ this.btnAdd = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.btnUpdate = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.btnDelete = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.panelRight = new Guna.UI2.WinForms.Guna2Panel();
|
|
|
+ this.dgvDisciplines = new Guna.UI2.WinForms.Guna2DataGridView();
|
|
|
+ this.dgvSchedule = new Guna.UI2.WinForms.Guna2DataGridView();
|
|
|
+ this.btnExportCsv = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.btnExportHtml = new Guna.UI2.WinForms.Guna2Button();
|
|
|
+ this.panelTop.SuspendLayout();
|
|
|
+ this.panelLeft.SuspendLayout();
|
|
|
+ this.gbDisciplines.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.numHours)).BeginInit();
|
|
|
+ this.panelRight.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDisciplines)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dgvSchedule)).BeginInit();
|
|
|
+ this.SuspendLayout();
|
|
|
+
|
|
|
+ // panelTop
|
|
|
+ this.panelTop.Controls.Add(this.controlBox);
|
|
|
+ this.panelTop.Dock = System.Windows.Forms.DockStyle.Top;
|
|
|
+ this.panelTop.FillColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ this.panelTop.Location = new System.Drawing.Point(0, 0);
|
|
|
+ this.panelTop.Name = "panelTop";
|
|
|
+ this.panelTop.Size = new System.Drawing.Size(1000, 40);
|
|
|
+ this.panelTop.TabIndex = 0;
|
|
|
+
|
|
|
+ // controlBox
|
|
|
+ this.controlBox.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
|
|
|
+ this.controlBox.FillColor = System.Drawing.Color.FromArgb(231, 76, 60);
|
|
|
+ this.controlBox.IconColor = System.Drawing.Color.White;
|
|
|
+ this.controlBox.Location = new System.Drawing.Point(960, 6);
|
|
|
+ this.controlBox.Name = "controlBox";
|
|
|
+ this.controlBox.Size = new System.Drawing.Size(30, 28);
|
|
|
+ this.controlBox.TabIndex = 0;
|
|
|
+ this.controlBox.Click += new System.EventHandler(this.controlBox_Click);
|
|
|
+
|
|
|
+ // panelLeft
|
|
|
+ this.panelLeft.Controls.Add(this.cmbTeachers);
|
|
|
+ this.panelLeft.Controls.Add(this.btnStudents);
|
|
|
+ this.panelLeft.Controls.Add(this.btnUsers);
|
|
|
+ this.panelLeft.Controls.Add(this.btnGrades);
|
|
|
+ this.panelLeft.Controls.Add(this.btnAssignments);
|
|
|
+ this.panelLeft.Controls.Add(this.cmbGroups);
|
|
|
+ this.panelLeft.Controls.Add(this.rbAsc);
|
|
|
+ this.panelLeft.Controls.Add(this.rbDesc);
|
|
|
+ this.panelLeft.Controls.Add(this.btnLoad);
|
|
|
+ this.panelLeft.Controls.Add(this.gbDisciplines);
|
|
|
+ this.panelLeft.Dock = System.Windows.Forms.DockStyle.Left;
|
|
|
+ this.panelLeft.FillColor = System.Drawing.Color.FromArgb(248, 249, 250);
|
|
|
+ this.panelLeft.Location = new System.Drawing.Point(0, 40);
|
|
|
+ this.panelLeft.Name = "panelLeft";
|
|
|
+ this.panelLeft.Size = new System.Drawing.Size(260, 760);
|
|
|
+ this.panelLeft.TabIndex = 1;
|
|
|
+
|
|
|
+ // cmbTeachers
|
|
|
+ this.cmbTeachers.BackColor = System.Drawing.Color.Transparent;
|
|
|
+ this.cmbTeachers.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
|
|
+ this.cmbTeachers.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.cmbTeachers.FocusedColor = System.Drawing.Color.FromArgb(94, 148, 255);
|
|
|
+ this.cmbTeachers.FocusedState.BorderColor = System.Drawing.Color.FromArgb(94, 148, 255);
|
|
|
+ this.cmbTeachers.Font = new System.Drawing.Font("Segoe UI", 10F);
|
|
|
+ this.cmbTeachers.ForeColor = System.Drawing.Color.FromArgb(68, 88, 112);
|
|
|
+ this.cmbTeachers.ItemHeight = 30;
|
|
|
+ this.cmbTeachers.Location = new System.Drawing.Point(20, 6);
|
|
|
+ this.cmbTeachers.Name = "cmbTeachers";
|
|
|
+ this.cmbTeachers.Size = new System.Drawing.Size(220, 36);
|
|
|
+ this.cmbTeachers.TabIndex = 5;
|
|
|
+ this.cmbTeachers.SelectedIndexChanged += new System.EventHandler(this.cmbTeachers_SelectedIndexChanged);
|
|
|
+
|
|
|
+ // btnStudents
|
|
|
+ this.btnStudents.BorderRadius = 10;
|
|
|
+ this.btnStudents.FillColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ this.btnStudents.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnStudents.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnStudents.Location = new System.Drawing.Point(20, 470);
|
|
|
+ this.btnStudents.Name = "btnStudents";
|
|
|
+ this.btnStudents.Size = new System.Drawing.Size(220, 40);
|
|
|
+ this.btnStudents.TabIndex = 6;
|
|
|
+ this.btnStudents.Text = "👥 Студенты";
|
|
|
+ this.btnStudents.Click += new System.EventHandler(this.btnStudents_Click);
|
|
|
+
|
|
|
+ // btnUsers
|
|
|
+ this.btnUsers.BorderRadius = 10;
|
|
|
+ this.btnUsers.FillColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ this.btnUsers.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnUsers.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnUsers.Location = new System.Drawing.Point(20, 525);
|
|
|
+ this.btnUsers.Name = "btnUsers";
|
|
|
+ this.btnUsers.Size = new System.Drawing.Size(220, 40);
|
|
|
+ this.btnUsers.TabIndex = 7;
|
|
|
+ this.btnUsers.Text = "👥 Управление пользователями";
|
|
|
+ this.btnUsers.Click += new System.EventHandler(this.btnUsers_Click);
|
|
|
+
|
|
|
+ // btnGrades (новая)
|
|
|
+ this.btnGrades.BorderRadius = 10;
|
|
|
+ this.btnGrades.FillColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ this.btnGrades.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnGrades.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnGrades.Location = new System.Drawing.Point(20, 580);
|
|
|
+ this.btnGrades.Name = "btnGrades";
|
|
|
+ this.btnGrades.Size = new System.Drawing.Size(220, 40);
|
|
|
+ this.btnGrades.TabIndex = 8;
|
|
|
+ this.btnGrades.Text = "📝 Успеваемость";
|
|
|
+ this.btnGrades.Click += new System.EventHandler(this.btnGrades_Click);
|
|
|
+
|
|
|
+ // btnAssignments (новая)
|
|
|
+ this.btnAssignments.BorderRadius = 10;
|
|
|
+ this.btnAssignments.FillColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ this.btnAssignments.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnAssignments.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnAssignments.Location = new System.Drawing.Point(20, 635);
|
|
|
+ this.btnAssignments.Name = "btnAssignments";
|
|
|
+ this.btnAssignments.Size = new System.Drawing.Size(220, 40);
|
|
|
+ this.btnAssignments.TabIndex = 9;
|
|
|
+ this.btnAssignments.Text = "📅 Назначения (расписание)";
|
|
|
+ this.btnAssignments.Click += new System.EventHandler(this.btnAssignments_Click);
|
|
|
+
|
|
|
+ // cmbGroups
|
|
|
+ this.cmbGroups.BackColor = System.Drawing.Color.Transparent;
|
|
|
+ this.cmbGroups.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
|
|
+ this.cmbGroups.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.cmbGroups.FocusedColor = System.Drawing.Color.Empty;
|
|
|
+ this.cmbGroups.Font = new System.Drawing.Font("Segoe UI", 10F);
|
|
|
+ this.cmbGroups.ForeColor = System.Drawing.Color.FromArgb(68, 88, 112);
|
|
|
+ this.cmbGroups.ItemHeight = 30;
|
|
|
+ this.cmbGroups.Location = new System.Drawing.Point(20, 48);
|
|
|
+ this.cmbGroups.Name = "cmbGroups";
|
|
|
+ this.cmbGroups.Size = new System.Drawing.Size(220, 36);
|
|
|
+ this.cmbGroups.TabIndex = 0;
|
|
|
+
|
|
|
+
|
|
|
+ // rbAsc
|
|
|
+ this.rbAsc.AutoSize = true;
|
|
|
+ this.rbAsc.CheckedState.BorderThickness = 0;
|
|
|
+ this.rbAsc.Location = new System.Drawing.Point(20, 90);
|
|
|
+ this.rbAsc.Name = "rbAsc";
|
|
|
+ this.rbAsc.Size = new System.Drawing.Size(109, 17);
|
|
|
+ this.rbAsc.TabIndex = 1;
|
|
|
+ this.rbAsc.Text = "По возрастанию";
|
|
|
+ this.rbAsc.UncheckedState.BorderThickness = 0;
|
|
|
+
|
|
|
+ // rbDesc
|
|
|
+ this.rbDesc.AutoSize = true;
|
|
|
+ this.rbDesc.CheckedState.BorderThickness = 0;
|
|
|
+ this.rbDesc.Location = new System.Drawing.Point(20, 120);
|
|
|
+ this.rbDesc.Name = "rbDesc";
|
|
|
+ this.rbDesc.Size = new System.Drawing.Size(93, 17);
|
|
|
+ this.rbDesc.TabIndex = 2;
|
|
|
+ this.rbDesc.Text = "По убыванию";
|
|
|
+ this.rbDesc.UncheckedState.BorderThickness = 0;
|
|
|
+
|
|
|
+ // btnLoad
|
|
|
+ this.btnLoad.BorderRadius = 10;
|
|
|
+ this.btnLoad.FillColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ this.btnLoad.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnLoad.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnLoad.Location = new System.Drawing.Point(20, 160);
|
|
|
+ this.btnLoad.Name = "btnLoad";
|
|
|
+ this.btnLoad.Size = new System.Drawing.Size(220, 40);
|
|
|
+ this.btnLoad.TabIndex = 3;
|
|
|
+ this.btnLoad.Text = "Загрузить расписание";
|
|
|
+ this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click);
|
|
|
+
|
|
|
+ // gbDisciplines
|
|
|
+ this.gbDisciplines.Controls.Add(this.txtDiscName);
|
|
|
+ this.gbDisciplines.Controls.Add(this.numHours);
|
|
|
+ this.gbDisciplines.Controls.Add(this.btnAdd);
|
|
|
+ this.gbDisciplines.Controls.Add(this.btnUpdate);
|
|
|
+ this.gbDisciplines.Controls.Add(this.btnDelete);
|
|
|
+ this.gbDisciplines.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.gbDisciplines.ForeColor = System.Drawing.Color.Black;
|
|
|
+ this.gbDisciplines.Location = new System.Drawing.Point(20, 230);
|
|
|
+ this.gbDisciplines.Name = "gbDisciplines";
|
|
|
+ this.gbDisciplines.Size = new System.Drawing.Size(220, 280);
|
|
|
+ this.gbDisciplines.TabIndex = 4;
|
|
|
+ this.gbDisciplines.TabStop = false;
|
|
|
+ this.gbDisciplines.Text = "Управление дисциплинами";
|
|
|
+
|
|
|
+ // txtDiscName
|
|
|
+ this.txtDiscName.Cursor = System.Windows.Forms.Cursors.IBeam;
|
|
|
+ this.txtDiscName.DefaultText = "";
|
|
|
+ this.txtDiscName.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.txtDiscName.Location = new System.Drawing.Point(15, 40);
|
|
|
+ this.txtDiscName.Name = "txtDiscName";
|
|
|
+ this.txtDiscName.PlaceholderText = "Название";
|
|
|
+ this.txtDiscName.SelectedText = "";
|
|
|
+ this.txtDiscName.Size = new System.Drawing.Size(190, 36);
|
|
|
+ this.txtDiscName.TabIndex = 0;
|
|
|
+
|
|
|
+ // numHours
|
|
|
+ this.numHours.BackColor = System.Drawing.Color.Transparent;
|
|
|
+ this.numHours.Cursor = System.Windows.Forms.Cursors.IBeam;
|
|
|
+ this.numHours.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.numHours.Location = new System.Drawing.Point(15, 90);
|
|
|
+ this.numHours.Name = "numHours";
|
|
|
+ this.numHours.Size = new System.Drawing.Size(100, 36);
|
|
|
+ this.numHours.TabIndex = 1;
|
|
|
+
|
|
|
+ // btnAdd
|
|
|
+ this.btnAdd.BorderRadius = 8;
|
|
|
+ this.btnAdd.FillColor = System.Drawing.Color.FromArgb(40, 167, 69);
|
|
|
+ this.btnAdd.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnAdd.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnAdd.Location = new System.Drawing.Point(15, 145);
|
|
|
+ this.btnAdd.Name = "btnAdd";
|
|
|
+ this.btnAdd.Size = new System.Drawing.Size(85, 35);
|
|
|
+ this.btnAdd.TabIndex = 2;
|
|
|
+ this.btnAdd.Text = "Добавить";
|
|
|
+ this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
|
|
|
+
|
|
|
+ // btnUpdate
|
|
|
+ this.btnUpdate.BorderRadius = 8;
|
|
|
+ this.btnUpdate.FillColor = System.Drawing.Color.FromArgb(255, 193, 7);
|
|
|
+ this.btnUpdate.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnUpdate.ForeColor = System.Drawing.Color.Black;
|
|
|
+ this.btnUpdate.Location = new System.Drawing.Point(110, 145);
|
|
|
+ this.btnUpdate.Name = "btnUpdate";
|
|
|
+ this.btnUpdate.Size = new System.Drawing.Size(85, 35);
|
|
|
+ this.btnUpdate.TabIndex = 3;
|
|
|
+ this.btnUpdate.Text = "Обновить";
|
|
|
+ this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
|
|
|
+
|
|
|
+ // btnDelete
|
|
|
+ this.btnDelete.BorderRadius = 8;
|
|
|
+ this.btnDelete.FillColor = System.Drawing.Color.FromArgb(220, 53, 69);
|
|
|
+ this.btnDelete.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnDelete.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnDelete.Location = new System.Drawing.Point(15, 195);
|
|
|
+ this.btnDelete.Name = "btnDelete";
|
|
|
+ this.btnDelete.Size = new System.Drawing.Size(180, 35);
|
|
|
+ this.btnDelete.TabIndex = 4;
|
|
|
+ this.btnDelete.Text = "Удалить выбранную";
|
|
|
+ this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
|
|
|
+
|
|
|
+ // panelRight
|
|
|
+ this.panelRight.Controls.Add(this.dgvDisciplines);
|
|
|
+ this.panelRight.Controls.Add(this.dgvSchedule);
|
|
|
+ this.panelRight.Controls.Add(this.btnExportCsv);
|
|
|
+ this.panelRight.Controls.Add(this.btnExportHtml);
|
|
|
+ this.panelRight.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
+ this.panelRight.FillColor = System.Drawing.Color.FromArgb(240, 242, 245);
|
|
|
+ this.panelRight.Location = new System.Drawing.Point(260, 40);
|
|
|
+ this.panelRight.Name = "panelRight";
|
|
|
+ this.panelRight.Size = new System.Drawing.Size(740, 760);
|
|
|
+ this.panelRight.TabIndex = 2;
|
|
|
+ this.panelRight.Paint += new System.Windows.Forms.PaintEventHandler(this.panelRight_Paint);
|
|
|
+
|
|
|
+ // dgvDisciplines
|
|
|
+ this.dgvDisciplines.AllowUserToAddRows = false;
|
|
|
+ this.dgvDisciplines.AllowUserToDeleteRows = false;
|
|
|
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.White;
|
|
|
+ this.dgvDisciplines.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
|
|
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
|
|
|
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
|
|
|
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
|
+ this.dgvDisciplines.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
|
|
+ this.dgvDisciplines.ColumnHeadersHeight = 40;
|
|
|
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
+ dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
|
|
|
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(64, 64, 64);
|
|
|
+ dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(229, 241, 251);
|
|
|
+ dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.Black;
|
|
|
+ dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
+ this.dgvDisciplines.DefaultCellStyle = dataGridViewCellStyle3;
|
|
|
+ this.dgvDisciplines.GridColor = System.Drawing.Color.FromArgb(230, 230, 230);
|
|
|
+ this.dgvDisciplines.Location = new System.Drawing.Point(20, 420);
|
|
|
+ this.dgvDisciplines.Name = "dgvDisciplines";
|
|
|
+ this.dgvDisciplines.ReadOnly = true;
|
|
|
+ this.dgvDisciplines.RowHeadersVisible = false;
|
|
|
+ this.dgvDisciplines.RowTemplate.Height = 30;
|
|
|
+ this.dgvDisciplines.Size = new System.Drawing.Size(700, 220);
|
|
|
+ this.dgvDisciplines.TabIndex = 1;
|
|
|
+ this.dgvDisciplines.SelectionChanged += new System.EventHandler(this.dgvDisciplines_SelectionChanged);
|
|
|
+
|
|
|
+ // dgvSchedule
|
|
|
+ this.dgvSchedule.AllowUserToAddRows = false;
|
|
|
+ this.dgvSchedule.AllowUserToDeleteRows = false;
|
|
|
+ dataGridViewCellStyle4.BackColor = System.Drawing.Color.White;
|
|
|
+ this.dgvSchedule.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
|
|
|
+ dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
+ dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
|
|
|
+ dataGridViewCellStyle5.ForeColor = System.Drawing.Color.White;
|
|
|
+ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(52, 73, 94);
|
|
|
+ dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
|
+ this.dgvSchedule.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
|
|
|
+ this.dgvSchedule.ColumnHeadersHeight = 40;
|
|
|
+ dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
+ dataGridViewCellStyle6.BackColor = System.Drawing.Color.White;
|
|
|
+ dataGridViewCellStyle6.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(64, 64, 64);
|
|
|
+ dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(229, 241, 251);
|
|
|
+ dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.Black;
|
|
|
+ dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
+ this.dgvSchedule.DefaultCellStyle = dataGridViewCellStyle6;
|
|
|
+ this.dgvSchedule.GridColor = System.Drawing.Color.FromArgb(230, 230, 230);
|
|
|
+ this.dgvSchedule.Location = new System.Drawing.Point(20, 20);
|
|
|
+ this.dgvSchedule.Name = "dgvSchedule";
|
|
|
+ this.dgvSchedule.ReadOnly = true;
|
|
|
+ this.dgvSchedule.RowHeadersVisible = false;
|
|
|
+ this.dgvSchedule.RowTemplate.Height = 30;
|
|
|
+ this.dgvSchedule.Size = new System.Drawing.Size(700, 300);
|
|
|
+ this.dgvSchedule.TabIndex = 0;
|
|
|
+
|
|
|
+ // btnExportCsv
|
|
|
+ this.btnExportCsv.BorderRadius = 8;
|
|
|
+ this.btnExportCsv.FillColor = System.Drawing.Color.FromArgb(40, 167, 69);
|
|
|
+ this.btnExportCsv.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnExportCsv.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnExportCsv.Location = new System.Drawing.Point(20, 340);
|
|
|
+ this.btnExportCsv.Name = "btnExportCsv";
|
|
|
+ this.btnExportCsv.Size = new System.Drawing.Size(130, 40);
|
|
|
+ this.btnExportCsv.TabIndex = 2;
|
|
|
+ this.btnExportCsv.Text = "📎 Экспорт CSV";
|
|
|
+ this.btnExportCsv.Click += new System.EventHandler(this.btnExportCsv_Click);
|
|
|
+
|
|
|
+ // btnExportHtml
|
|
|
+ this.btnExportHtml.BorderRadius = 8;
|
|
|
+ this.btnExportHtml.FillColor = System.Drawing.Color.FromArgb(0, 123, 255);
|
|
|
+ this.btnExportHtml.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
|
+ this.btnExportHtml.ForeColor = System.Drawing.Color.White;
|
|
|
+ this.btnExportHtml.Location = new System.Drawing.Point(170, 340);
|
|
|
+ this.btnExportHtml.Name = "btnExportHtml";
|
|
|
+ this.btnExportHtml.Size = new System.Drawing.Size(130, 40);
|
|
|
+ this.btnExportHtml.TabIndex = 3;
|
|
|
+ this.btnExportHtml.Text = "🌐 Экспорт HTML";
|
|
|
+ this.btnExportHtml.Click += new System.EventHandler(this.btnExportHtml_Click);
|
|
|
+
|
|
|
+ // MainForm
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
+ this.BackColor = System.Drawing.Color.FromArgb(240, 242, 245);
|
|
|
+ this.ClientSize = new System.Drawing.Size(1000, 800);
|
|
|
+ this.Controls.Add(this.panelRight);
|
|
|
+ this.Controls.Add(this.panelLeft);
|
|
|
+ this.Controls.Add(this.panelTop);
|
|
|
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
|
|
+ this.Name = "MainForm";
|
|
|
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
+ this.Text = "Деканат";
|
|
|
+ this.panelTop.ResumeLayout(false);
|
|
|
+ this.panelLeft.ResumeLayout(false);
|
|
|
+ this.panelLeft.PerformLayout();
|
|
|
+ this.gbDisciplines.ResumeLayout(false);
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.numHours)).EndInit();
|
|
|
+ this.panelRight.ResumeLayout(false);
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDisciplines)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.dgvSchedule)).EndInit();
|
|
|
+ this.ResumeLayout(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ // Объявления компонентов
|
|
|
+ private Guna.UI2.WinForms.Guna2Panel panelTop;
|
|
|
+ private Guna.UI2.WinForms.Guna2ControlBox controlBox;
|
|
|
+ private Guna.UI2.WinForms.Guna2Panel panelLeft;
|
|
|
+ private Guna.UI2.WinForms.Guna2ComboBox cmbGroups;
|
|
|
+ private Guna.UI2.WinForms.Guna2RadioButton rbAsc;
|
|
|
+ private Guna.UI2.WinForms.Guna2RadioButton rbDesc;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnLoad;
|
|
|
+ private Guna.UI2.WinForms.Guna2GroupBox gbDisciplines;
|
|
|
+ private Guna.UI2.WinForms.Guna2TextBox txtDiscName;
|
|
|
+ private Guna.UI2.WinForms.Guna2NumericUpDown numHours;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnAdd;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnUpdate;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnDelete;
|
|
|
+ private Guna.UI2.WinForms.Guna2Panel panelRight;
|
|
|
+ private Guna.UI2.WinForms.Guna2DataGridView dgvSchedule;
|
|
|
+ private Guna.UI2.WinForms.Guna2DataGridView dgvDisciplines;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnExportCsv;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnExportHtml;
|
|
|
+ private Guna.UI2.WinForms.Guna2ComboBox cmbTeachers;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnStudents;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnUsers;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnGrades;
|
|
|
+ private Guna.UI2.WinForms.Guna2Button btnAssignments;
|
|
|
+ }
|
|
|
+}
|