международный день вафель
This commit is contained in:
parent
48a39a209f
commit
9ce4882940
116
AircraftPlant/AircraftPlantView/FormShop.Designer.cs
generated
116
AircraftPlant/AircraftPlantView/FormShop.Designer.cs
generated
@ -28,46 +28,47 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.labelName = new System.Windows.Forms.Label();
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.labelAddress = new System.Windows.Forms.Label();
|
||||||
this.label3 = new System.Windows.Forms.Label();
|
this.labelDate = new System.Windows.Forms.Label();
|
||||||
this.textBoxName = new System.Windows.Forms.TextBox();
|
this.textBoxName = new System.Windows.Forms.TextBox();
|
||||||
this.textBoxAddress = new System.Windows.Forms.TextBox();
|
this.textBoxAddress = new System.Windows.Forms.TextBox();
|
||||||
this.dateTimePicker = new System.Windows.Forms.DateTimePicker();
|
this.dateTimePicker = new System.Windows.Forms.DateTimePicker();
|
||||||
this.dataGridView = new System.Windows.Forms.DataGridView();
|
this.dataGridViewShop = new System.Windows.Forms.DataGridView();
|
||||||
this.buttonSave = new System.Windows.Forms.Button();
|
this.buttonSave = new System.Windows.Forms.Button();
|
||||||
this.buttonCancel = new System.Windows.Forms.Button();
|
this.buttonCancel = new System.Windows.Forms.Button();
|
||||||
this.Plane = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.ColumnID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.Count = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.ColumnPlane = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
|
this.ColumnCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dataGridViewShop)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// label1
|
// labelName
|
||||||
//
|
//
|
||||||
this.label1.AutoSize = true;
|
this.labelName.AutoSize = true;
|
||||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
this.labelName.Location = new System.Drawing.Point(12, 9);
|
||||||
this.label1.Name = "label1";
|
this.labelName.Name = "labelName";
|
||||||
this.label1.Size = new System.Drawing.Size(62, 15);
|
this.labelName.Size = new System.Drawing.Size(62, 15);
|
||||||
this.label1.TabIndex = 0;
|
this.labelName.TabIndex = 0;
|
||||||
this.label1.Text = "Название:";
|
this.labelName.Text = "Название:";
|
||||||
//
|
//
|
||||||
// label2
|
// labelAddress
|
||||||
//
|
//
|
||||||
this.label2.AutoSize = true;
|
this.labelAddress.AutoSize = true;
|
||||||
this.label2.Location = new System.Drawing.Point(12, 39);
|
this.labelAddress.Location = new System.Drawing.Point(12, 39);
|
||||||
this.label2.Name = "label2";
|
this.labelAddress.Name = "labelAddress";
|
||||||
this.label2.Size = new System.Drawing.Size(43, 15);
|
this.labelAddress.Size = new System.Drawing.Size(43, 15);
|
||||||
this.label2.TabIndex = 1;
|
this.labelAddress.TabIndex = 1;
|
||||||
this.label2.Text = "Адрес:";
|
this.labelAddress.Text = "Адрес:";
|
||||||
//
|
//
|
||||||
// label3
|
// labelDate
|
||||||
//
|
//
|
||||||
this.label3.AutoSize = true;
|
this.labelDate.AutoSize = true;
|
||||||
this.label3.Location = new System.Drawing.Point(12, 74);
|
this.labelDate.Location = new System.Drawing.Point(12, 74);
|
||||||
this.label3.Name = "label3";
|
this.labelDate.Name = "labelDate";
|
||||||
this.label3.Size = new System.Drawing.Size(90, 15);
|
this.labelDate.Size = new System.Drawing.Size(90, 15);
|
||||||
this.label3.TabIndex = 2;
|
this.labelDate.TabIndex = 2;
|
||||||
this.label3.Text = "Дата открытия:";
|
this.labelDate.Text = "Дата открытия:";
|
||||||
//
|
//
|
||||||
// textBoxName
|
// textBoxName
|
||||||
//
|
//
|
||||||
@ -90,17 +91,18 @@
|
|||||||
this.dateTimePicker.Size = new System.Drawing.Size(200, 23);
|
this.dateTimePicker.Size = new System.Drawing.Size(200, 23);
|
||||||
this.dateTimePicker.TabIndex = 5;
|
this.dateTimePicker.TabIndex = 5;
|
||||||
//
|
//
|
||||||
// dataGridView
|
// dataGridViewShop
|
||||||
//
|
//
|
||||||
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
this.dataGridViewShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
this.dataGridViewShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||||
this.Plane,
|
this.ColumnID,
|
||||||
this.Count});
|
this.ColumnPlane,
|
||||||
this.dataGridView.Location = new System.Drawing.Point(26, 118);
|
this.ColumnCount});
|
||||||
this.dataGridView.Name = "dataGridView";
|
this.dataGridViewShop.Location = new System.Drawing.Point(26, 118);
|
||||||
this.dataGridView.RowTemplate.Height = 25;
|
this.dataGridViewShop.Name = "dataGridViewShop";
|
||||||
this.dataGridView.Size = new System.Drawing.Size(446, 325);
|
this.dataGridViewShop.RowTemplate.Height = 25;
|
||||||
this.dataGridView.TabIndex = 6;
|
this.dataGridViewShop.Size = new System.Drawing.Size(446, 325);
|
||||||
|
this.dataGridViewShop.TabIndex = 6;
|
||||||
//
|
//
|
||||||
// buttonSave
|
// buttonSave
|
||||||
//
|
//
|
||||||
@ -122,16 +124,22 @@
|
|||||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||||
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
|
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
|
||||||
//
|
//
|
||||||
// Plane
|
// ColumnID
|
||||||
//
|
//
|
||||||
this.Plane.HeaderText = "Изделие";
|
this.ColumnID.HeaderText = "ID";
|
||||||
this.Plane.Name = "Plane";
|
this.ColumnID.Name = "ColumnID";
|
||||||
this.Plane.Width = 300;
|
this.ColumnID.Visible = false;
|
||||||
//
|
//
|
||||||
// Count
|
// ColumnPlane
|
||||||
//
|
//
|
||||||
this.Count.HeaderText = "Количество";
|
this.ColumnPlane.HeaderText = "Изделие";
|
||||||
this.Count.Name = "Count";
|
this.ColumnPlane.Name = "ColumnPlane";
|
||||||
|
this.ColumnPlane.Width = 300;
|
||||||
|
//
|
||||||
|
// ColumnCount
|
||||||
|
//
|
||||||
|
this.ColumnCount.HeaderText = "Количество";
|
||||||
|
this.ColumnCount.Name = "ColumnCount";
|
||||||
//
|
//
|
||||||
// FormShop
|
// FormShop
|
||||||
//
|
//
|
||||||
@ -140,17 +148,17 @@
|
|||||||
this.ClientSize = new System.Drawing.Size(481, 470);
|
this.ClientSize = new System.Drawing.Size(481, 470);
|
||||||
this.Controls.Add(this.buttonCancel);
|
this.Controls.Add(this.buttonCancel);
|
||||||
this.Controls.Add(this.buttonSave);
|
this.Controls.Add(this.buttonSave);
|
||||||
this.Controls.Add(this.dataGridView);
|
this.Controls.Add(this.dataGridViewShop);
|
||||||
this.Controls.Add(this.dateTimePicker);
|
this.Controls.Add(this.dateTimePicker);
|
||||||
this.Controls.Add(this.textBoxAddress);
|
this.Controls.Add(this.textBoxAddress);
|
||||||
this.Controls.Add(this.textBoxName);
|
this.Controls.Add(this.textBoxName);
|
||||||
this.Controls.Add(this.label3);
|
this.Controls.Add(this.labelDate);
|
||||||
this.Controls.Add(this.label2);
|
this.Controls.Add(this.labelAddress);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.labelName);
|
||||||
this.Name = "FormShop";
|
this.Name = "FormShop";
|
||||||
this.Text = "Магазин";
|
this.Text = "Магазин";
|
||||||
this.Load += new System.EventHandler(this.FormShop_Load);
|
this.Load += new System.EventHandler(this.FormShop_Load);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.dataGridViewShop)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
@ -169,5 +177,13 @@
|
|||||||
private DataGridViewTextBoxColumn Count;
|
private DataGridViewTextBoxColumn Count;
|
||||||
private Button buttonSave;
|
private Button buttonSave;
|
||||||
private Button buttonCancel;
|
private Button buttonCancel;
|
||||||
|
private Label labelName;
|
||||||
|
private Label labelAddress;
|
||||||
|
private Label labelDate;
|
||||||
|
private DataGridView dataGridViewShops;
|
||||||
|
private DataGridViewTextBoxColumn ColumnID;
|
||||||
|
private DataGridViewTextBoxColumn ColumnPlane;
|
||||||
|
private DataGridViewTextBoxColumn ColumnCount;
|
||||||
|
private DataGridView dataGridViewShop;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -141,10 +141,10 @@ namespace AircraftPlantView
|
|||||||
{
|
{
|
||||||
if (_shopPlanes != null)
|
if (_shopPlanes != null)
|
||||||
{
|
{
|
||||||
dataGridView.Rows.Clear();
|
dataGridViewShop.Rows.Clear();
|
||||||
foreach (var elem in _shopPlanes)
|
foreach (var elem in _shopPlanes)
|
||||||
{
|
{
|
||||||
dataGridView.Rows.Add(new object[]
|
dataGridViewShop.Rows.Add(new object[]
|
||||||
{
|
{
|
||||||
elem.Key,
|
elem.Key,
|
||||||
elem.Value.Item1.PlaneName,
|
elem.Value.Item1.PlaneName,
|
||||||
|
@ -57,16 +57,13 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="Plane.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="ColumnID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="Count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="ColumnPlane.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="Plane.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="ColumnCount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="Count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
</root>
|
</root>
|
@ -28,22 +28,22 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.dataGridView = new System.Windows.Forms.DataGridView();
|
this.dataGridViewShops = new System.Windows.Forms.DataGridView();
|
||||||
this.buttonAdd = new System.Windows.Forms.Button();
|
this.buttonAdd = new System.Windows.Forms.Button();
|
||||||
this.buttonUpdate = new System.Windows.Forms.Button();
|
this.buttonUpdate = new System.Windows.Forms.Button();
|
||||||
this.buttonDelete = new System.Windows.Forms.Button();
|
this.buttonDelete = new System.Windows.Forms.Button();
|
||||||
this.buttonRefresh = new System.Windows.Forms.Button();
|
this.buttonRefresh = new System.Windows.Forms.Button();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.dataGridViewShops)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// dataGridView
|
// dataGridViewShops
|
||||||
//
|
//
|
||||||
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
this.dataGridViewShops.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
this.dataGridView.Location = new System.Drawing.Point(0, 0);
|
this.dataGridViewShops.Location = new System.Drawing.Point(0, 0);
|
||||||
this.dataGridView.Name = "dataGridView";
|
this.dataGridViewShops.Name = "dataGridViewShops";
|
||||||
this.dataGridView.RowTemplate.Height = 25;
|
this.dataGridViewShops.RowTemplate.Height = 25;
|
||||||
this.dataGridView.Size = new System.Drawing.Size(495, 449);
|
this.dataGridViewShops.Size = new System.Drawing.Size(495, 449);
|
||||||
this.dataGridView.TabIndex = 0;
|
this.dataGridViewShops.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// buttonAdd
|
// buttonAdd
|
||||||
//
|
//
|
||||||
@ -94,11 +94,11 @@
|
|||||||
this.Controls.Add(this.buttonDelete);
|
this.Controls.Add(this.buttonDelete);
|
||||||
this.Controls.Add(this.buttonUpdate);
|
this.Controls.Add(this.buttonUpdate);
|
||||||
this.Controls.Add(this.buttonAdd);
|
this.Controls.Add(this.buttonAdd);
|
||||||
this.Controls.Add(this.dataGridView);
|
this.Controls.Add(this.dataGridViewShops);
|
||||||
this.Name = "FormShops";
|
this.Name = "FormShops";
|
||||||
this.Text = "Магазины";
|
this.Text = "Магазины";
|
||||||
this.Load += new System.EventHandler(this.FormShops_Load);
|
this.Load += new System.EventHandler(this.FormShops_Load);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.dataGridViewShops)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -110,5 +110,6 @@
|
|||||||
private Button buttonUpdate;
|
private Button buttonUpdate;
|
||||||
private Button buttonDelete;
|
private Button buttonDelete;
|
||||||
private Button buttonRefresh;
|
private Button buttonRefresh;
|
||||||
|
private DataGridView dataGridViewShops;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -67,12 +67,12 @@ namespace AircraftPlantView
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void buttonUpdate_Click(object sender, EventArgs e)
|
private void buttonUpdate_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (dataGridView.SelectedRows.Count == 1)
|
if (dataGridViewShops.SelectedRows.Count == 1)
|
||||||
{
|
{
|
||||||
var service = Program.ServiceProvider?.GetService(typeof(FormShop));
|
var service = Program.ServiceProvider?.GetService(typeof(FormShop));
|
||||||
if (service is FormShop form)
|
if (service is FormShop form)
|
||||||
{
|
{
|
||||||
form.Id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value);
|
form.Id = Convert.ToInt32(dataGridViewShops.SelectedRows[0].Cells["Id"].Value);
|
||||||
if (form.ShowDialog() == DialogResult.OK)
|
if (form.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
LoadData();
|
LoadData();
|
||||||
@ -87,11 +87,11 @@ namespace AircraftPlantView
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void buttonDelete_Click(object sender, EventArgs e)
|
private void buttonDelete_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (dataGridView.SelectedRows.Count == 1)
|
if (dataGridViewShops.SelectedRows.Count == 1)
|
||||||
{
|
{
|
||||||
if (MessageBox.Show("Удалить запись?", "Вопрос", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (MessageBox.Show("Удалить запись?", "Вопрос", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
int id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value);
|
int id = Convert.ToInt32(dataGridViewShops.SelectedRows[0].Cells["Id"].Value);
|
||||||
_logger.LogInformation("Удаление магазина");
|
_logger.LogInformation("Удаление магазина");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -128,10 +128,10 @@ namespace AircraftPlantView
|
|||||||
var list = _logic.ReadList(null);
|
var list = _logic.ReadList(null);
|
||||||
if (list != null)
|
if (list != null)
|
||||||
{
|
{
|
||||||
dataGridView.DataSource = list;
|
dataGridViewShops.DataSource = list;
|
||||||
dataGridView.Columns["Id"].Visible = false;
|
dataGridViewShops.Columns["Id"].Visible = false;
|
||||||
dataGridView.Columns["ShopName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
dataGridViewShops.Columns["ShopName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||||
dataGridView.Columns["ShopPlanes"].Visible = false;
|
dataGridViewShops.Columns["ShopPlanes"].Visible = false;
|
||||||
}
|
}
|
||||||
_logger.LogInformation("Загрузка магазинов");
|
_logger.LogInformation("Загрузка магазинов");
|
||||||
}
|
}
|
||||||
|
@ -49,10 +49,12 @@ namespace AircraftPlantView
|
|||||||
services.AddTransient<IComponentStorage, ComponentStorage>();
|
services.AddTransient<IComponentStorage, ComponentStorage>();
|
||||||
services.AddTransient<IOrderStorage, OrderStorage>();
|
services.AddTransient<IOrderStorage, OrderStorage>();
|
||||||
services.AddTransient<IPlaneStorage, PlaneStorage>();
|
services.AddTransient<IPlaneStorage, PlaneStorage>();
|
||||||
|
services.AddTransient<IShopStorage, ShopStorage>();
|
||||||
|
|
||||||
services.AddTransient<IComponentLogic, ComponentLogic>();
|
services.AddTransient<IComponentLogic, ComponentLogic>();
|
||||||
services.AddTransient<IOrderLogic, OrderLogic>();
|
services.AddTransient<IOrderLogic, OrderLogic>();
|
||||||
services.AddTransient<IPlaneLogic, PlaneLogic>();
|
services.AddTransient<IPlaneLogic, PlaneLogic>();
|
||||||
|
services.AddTransient<IShopLogic, ShopLogic>();
|
||||||
|
|
||||||
services.AddTransient<FormMain>();
|
services.AddTransient<FormMain>();
|
||||||
services.AddTransient<FormComponent>();
|
services.AddTransient<FormComponent>();
|
||||||
@ -61,6 +63,9 @@ namespace AircraftPlantView
|
|||||||
services.AddTransient<FormPlane>();
|
services.AddTransient<FormPlane>();
|
||||||
services.AddTransient<FormPlaneComponent>();
|
services.AddTransient<FormPlaneComponent>();
|
||||||
services.AddTransient<FormPlanes>();
|
services.AddTransient<FormPlanes>();
|
||||||
|
services.AddTransient<FormShops>();
|
||||||
|
services.AddTransient<FormShop>();
|
||||||
|
services.AddTransient<FormSupply>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user