240 lines
9.8 KiB
C#
240 lines
9.8 KiB
C#
namespace moduleExamen.Forms
|
|
{
|
|
partial class OrderListForm
|
|
{
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
components.Dispose();
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
headerPanel = new Panel();
|
|
logoPictureBox = new PictureBox();
|
|
titleLabel = new Label();
|
|
backButton = new Button();
|
|
buttonPanel = new Panel();
|
|
addButton = new Button();
|
|
deleteButton = new Button();
|
|
orderGrid = new DataGridView();
|
|
idColumn = new DataGridViewTextBoxColumn();
|
|
articleColumn = new DataGridViewTextBoxColumn();
|
|
userColumn = new DataGridViewTextBoxColumn();
|
|
statusColumn = new DataGridViewTextBoxColumn();
|
|
addressColumn = new DataGridViewTextBoxColumn();
|
|
dateStartColumn = new DataGridViewTextBoxColumn();
|
|
dateEndColumn = new DataGridViewTextBoxColumn();
|
|
itemsColumn = new DataGridViewTextBoxColumn();
|
|
headerPanel.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)logoPictureBox).BeginInit();
|
|
buttonPanel.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)orderGrid).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// headerPanel
|
|
//
|
|
headerPanel.BackColor = Color.FromArgb(133, 242, 189);
|
|
headerPanel.Controls.Add(logoPictureBox);
|
|
headerPanel.Controls.Add(titleLabel);
|
|
headerPanel.Controls.Add(backButton);
|
|
headerPanel.Dock = DockStyle.Top;
|
|
headerPanel.Location = new Point(0, 0);
|
|
headerPanel.Name = "headerPanel";
|
|
headerPanel.Size = new Size(884, 60);
|
|
headerPanel.TabIndex = 2;
|
|
//
|
|
// logoPictureBox
|
|
//
|
|
logoPictureBox.Location = new Point(10, 5);
|
|
logoPictureBox.Name = "logoPictureBox";
|
|
logoPictureBox.Size = new Size(50, 50);
|
|
logoPictureBox.SizeMode = PictureBoxSizeMode.Zoom;
|
|
logoPictureBox.TabIndex = 0;
|
|
logoPictureBox.TabStop = false;
|
|
//
|
|
// titleLabel
|
|
//
|
|
titleLabel.AutoSize = true;
|
|
titleLabel.Font = new Font("Comic Sans MS", 14F, FontStyle.Bold);
|
|
titleLabel.ForeColor = Color.Black;
|
|
titleLabel.Location = new Point(70, 15);
|
|
titleLabel.Name = "titleLabel";
|
|
titleLabel.Size = new Size(211, 27);
|
|
titleLabel.TabIndex = 1;
|
|
titleLabel.Text = "Sport Farm - Заказы";
|
|
//
|
|
// backButton
|
|
//
|
|
backButton.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
backButton.BackColor = Color.FromArgb(180, 180, 180);
|
|
backButton.Cursor = Cursors.Hand;
|
|
backButton.FlatAppearance.BorderSize = 0;
|
|
backButton.FlatStyle = FlatStyle.Flat;
|
|
backButton.Font = new Font("Comic Sans MS", 9F);
|
|
backButton.ForeColor = Color.Black;
|
|
backButton.Location = new Point(792, 24);
|
|
backButton.Name = "backButton";
|
|
backButton.Size = new Size(70, 30);
|
|
backButton.TabIndex = 2;
|
|
backButton.Text = "Назад";
|
|
backButton.UseVisualStyleBackColor = false;
|
|
backButton.Click += BackButton_Click;
|
|
//
|
|
// buttonPanel
|
|
//
|
|
buttonPanel.Controls.Add(addButton);
|
|
buttonPanel.Controls.Add(deleteButton);
|
|
buttonPanel.Dock = DockStyle.Bottom;
|
|
buttonPanel.Location = new Point(0, 461);
|
|
buttonPanel.Name = "buttonPanel";
|
|
buttonPanel.Padding = new Padding(10);
|
|
buttonPanel.Size = new Size(884, 50);
|
|
buttonPanel.TabIndex = 1;
|
|
//
|
|
// addButton
|
|
//
|
|
addButton.BackColor = Color.FromArgb(255, 0, 0);
|
|
addButton.Cursor = Cursors.Hand;
|
|
addButton.FlatAppearance.BorderSize = 0;
|
|
addButton.FlatStyle = FlatStyle.Flat;
|
|
addButton.Font = new Font("Comic Sans MS", 10F, FontStyle.Bold);
|
|
addButton.ForeColor = Color.White;
|
|
addButton.Location = new Point(10, 7);
|
|
addButton.Name = "addButton";
|
|
addButton.Size = new Size(150, 35);
|
|
addButton.TabIndex = 0;
|
|
addButton.Text = "Добавить заказ";
|
|
addButton.UseVisualStyleBackColor = false;
|
|
addButton.Click += AddButton_Click;
|
|
//
|
|
// deleteButton
|
|
//
|
|
deleteButton.BackColor = Color.FromArgb(200, 60, 60);
|
|
deleteButton.Cursor = Cursors.Hand;
|
|
deleteButton.FlatAppearance.BorderSize = 0;
|
|
deleteButton.FlatStyle = FlatStyle.Flat;
|
|
deleteButton.Font = new Font("Comic Sans MS", 10F);
|
|
deleteButton.ForeColor = Color.White;
|
|
deleteButton.Location = new Point(170, 7);
|
|
deleteButton.Name = "deleteButton";
|
|
deleteButton.Size = new Size(150, 35);
|
|
deleteButton.TabIndex = 1;
|
|
deleteButton.Text = "Удалить заказ";
|
|
deleteButton.UseVisualStyleBackColor = false;
|
|
deleteButton.Click += DeleteButton_Click;
|
|
//
|
|
// orderGrid
|
|
//
|
|
orderGrid.AllowUserToAddRows = false;
|
|
orderGrid.AllowUserToDeleteRows = false;
|
|
orderGrid.BackgroundColor = Color.White;
|
|
orderGrid.BorderStyle = BorderStyle.None;
|
|
orderGrid.Columns.AddRange(new DataGridViewColumn[] { idColumn, articleColumn, userColumn, statusColumn, addressColumn, dateStartColumn, dateEndColumn, itemsColumn });
|
|
orderGrid.Dock = DockStyle.Fill;
|
|
orderGrid.Font = new Font("Comic Sans MS", 9F);
|
|
orderGrid.Location = new Point(0, 60);
|
|
orderGrid.Name = "orderGrid";
|
|
orderGrid.ReadOnly = true;
|
|
orderGrid.RowHeadersVisible = false;
|
|
orderGrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
orderGrid.Size = new Size(884, 401);
|
|
orderGrid.TabIndex = 0;
|
|
orderGrid.CellDoubleClick += OrderGrid_CellDoubleClick;
|
|
//
|
|
// idColumn
|
|
//
|
|
idColumn.HeaderText = "ID";
|
|
idColumn.Name = "idColumn";
|
|
idColumn.ReadOnly = true;
|
|
idColumn.Width = 50;
|
|
//
|
|
// articleColumn
|
|
//
|
|
articleColumn.HeaderText = "Артикул";
|
|
articleColumn.Name = "articleColumn";
|
|
articleColumn.ReadOnly = true;
|
|
//
|
|
// userColumn
|
|
//
|
|
userColumn.HeaderText = "Клиент";
|
|
userColumn.Name = "userColumn";
|
|
userColumn.ReadOnly = true;
|
|
userColumn.Width = 150;
|
|
//
|
|
// statusColumn
|
|
//
|
|
statusColumn.HeaderText = "Статус";
|
|
statusColumn.Name = "statusColumn";
|
|
statusColumn.ReadOnly = true;
|
|
statusColumn.Width = 110;
|
|
//
|
|
// addressColumn
|
|
//
|
|
addressColumn.HeaderText = "Адрес пункта выдачи";
|
|
addressColumn.Name = "addressColumn";
|
|
addressColumn.ReadOnly = true;
|
|
addressColumn.Width = 180;
|
|
//
|
|
// dateStartColumn
|
|
//
|
|
dateStartColumn.HeaderText = "Дата заказа";
|
|
dateStartColumn.Name = "dateStartColumn";
|
|
dateStartColumn.ReadOnly = true;
|
|
//
|
|
// dateEndColumn
|
|
//
|
|
dateEndColumn.HeaderText = "Дата выдачи";
|
|
dateEndColumn.Name = "dateEndColumn";
|
|
dateEndColumn.ReadOnly = true;
|
|
//
|
|
// itemsColumn
|
|
//
|
|
itemsColumn.HeaderText = "Товаров";
|
|
itemsColumn.Name = "itemsColumn";
|
|
itemsColumn.ReadOnly = true;
|
|
itemsColumn.Width = 70;
|
|
//
|
|
// OrderListForm
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
BackColor = Color.FromArgb(192, 237, 215);
|
|
ClientSize = new Size(884, 511);
|
|
Controls.Add(orderGrid);
|
|
Controls.Add(buttonPanel);
|
|
Controls.Add(headerPanel);
|
|
MinimumSize = new Size(750, 450);
|
|
Name = "OrderListForm";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "Sport Farm - Заказы";
|
|
headerPanel.ResumeLayout(false);
|
|
headerPanel.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)logoPictureBox).EndInit();
|
|
buttonPanel.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)orderGrid).EndInit();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
private Panel headerPanel;
|
|
private PictureBox logoPictureBox;
|
|
private Label titleLabel;
|
|
private Button backButton;
|
|
private Panel buttonPanel;
|
|
private Button addButton;
|
|
private Button deleteButton;
|
|
private DataGridView orderGrid;
|
|
private DataGridViewTextBoxColumn idColumn;
|
|
private DataGridViewTextBoxColumn articleColumn;
|
|
private DataGridViewTextBoxColumn userColumn;
|
|
private DataGridViewTextBoxColumn statusColumn;
|
|
private DataGridViewTextBoxColumn addressColumn;
|
|
private DataGridViewTextBoxColumn dateStartColumn;
|
|
private DataGridViewTextBoxColumn dateEndColumn;
|
|
private DataGridViewTextBoxColumn itemsColumn;
|
|
}
|
|
}
|