clear code, rename russian names
This commit is contained in:
parent
8b6c4644c1
commit
ad6d1d1bcb
@ -29,32 +29,32 @@
|
|||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
menuStrip = new MenuStrip();
|
menuStrip = new MenuStrip();
|
||||||
справочникиToolStripMenuItem = new ToolStripMenuItem();
|
EntitiesToolStripMenuItem = new ToolStripMenuItem();
|
||||||
CustomersToolStripMenuItem = new ToolStripMenuItem();
|
CustomersToolStripMenuItem = new ToolStripMenuItem();
|
||||||
ExecutorsToolStripMenuItem = new ToolStripMenuItem();
|
ExecutorsToolStripMenuItem = new ToolStripMenuItem();
|
||||||
ServicesToolStripMenuItem = new ToolStripMenuItem();
|
ServicesToolStripMenuItem = new ToolStripMenuItem();
|
||||||
операцииToolStripMenuItem = new ToolStripMenuItem();
|
OperationsToolStripMenuItem = new ToolStripMenuItem();
|
||||||
CustomerContractReviewsToolStripMenuItem = new ToolStripMenuItem();
|
CustomerContractReviewsToolStripMenuItem = new ToolStripMenuItem();
|
||||||
контрактыToolStripMenuItem = new ToolStripMenuItem();
|
ContractsToolStripMenuItem = new ToolStripMenuItem();
|
||||||
отчетыToolStripMenuItem = new ToolStripMenuItem();
|
ReportsToolStripMenuItem = new ToolStripMenuItem();
|
||||||
menuStrip.SuspendLayout();
|
menuStrip.SuspendLayout();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// menuStrip
|
// menuStrip
|
||||||
//
|
//
|
||||||
menuStrip.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem, операцииToolStripMenuItem, отчетыToolStripMenuItem });
|
menuStrip.Items.AddRange(new ToolStripItem[] { EntitiesToolStripMenuItem, OperationsToolStripMenuItem, ReportsToolStripMenuItem });
|
||||||
menuStrip.Location = new Point(0, 0);
|
menuStrip.Location = new Point(0, 0);
|
||||||
menuStrip.Name = "menuStrip";
|
menuStrip.Name = "menuStrip";
|
||||||
menuStrip.Size = new Size(734, 24);
|
menuStrip.Size = new Size(734, 24);
|
||||||
menuStrip.TabIndex = 0;
|
menuStrip.TabIndex = 0;
|
||||||
menuStrip.Text = "menuStrip1";
|
menuStrip.Text = "menuStrip1";
|
||||||
//
|
//
|
||||||
// справочникиToolStripMenuItem
|
// EntitiesToolStripMenuItem
|
||||||
//
|
//
|
||||||
справочникиToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { CustomersToolStripMenuItem, ExecutorsToolStripMenuItem, ServicesToolStripMenuItem });
|
EntitiesToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { CustomersToolStripMenuItem, ExecutorsToolStripMenuItem, ServicesToolStripMenuItem });
|
||||||
справочникиToolStripMenuItem.Name = "справочникиToolStripMenuItem";
|
EntitiesToolStripMenuItem.Name = "EntitiesToolStripMenuItem";
|
||||||
справочникиToolStripMenuItem.Size = new Size(94, 20);
|
EntitiesToolStripMenuItem.Size = new Size(94, 20);
|
||||||
справочникиToolStripMenuItem.Text = "Справочники";
|
EntitiesToolStripMenuItem.Text = "Справочники";
|
||||||
//
|
//
|
||||||
// CustomersToolStripMenuItem
|
// CustomersToolStripMenuItem
|
||||||
//
|
//
|
||||||
@ -77,12 +77,12 @@
|
|||||||
ServicesToolStripMenuItem.Text = "Услуги";
|
ServicesToolStripMenuItem.Text = "Услуги";
|
||||||
ServicesToolStripMenuItem.Click += ServicesToolStripMenuItem_Click;
|
ServicesToolStripMenuItem.Click += ServicesToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// операцииToolStripMenuItem
|
// OperationsToolStripMenuItem
|
||||||
//
|
//
|
||||||
операцииToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { CustomerContractReviewsToolStripMenuItem, контрактыToolStripMenuItem });
|
OperationsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { CustomerContractReviewsToolStripMenuItem, ContractsToolStripMenuItem });
|
||||||
операцииToolStripMenuItem.Name = "операцииToolStripMenuItem";
|
OperationsToolStripMenuItem.Name = "OperationsToolStripMenuItem";
|
||||||
операцииToolStripMenuItem.Size = new Size(75, 20);
|
OperationsToolStripMenuItem.Size = new Size(75, 20);
|
||||||
операцииToolStripMenuItem.Text = "Операции";
|
OperationsToolStripMenuItem.Text = "Операции";
|
||||||
//
|
//
|
||||||
// CustomerContractReviewsToolStripMenuItem
|
// CustomerContractReviewsToolStripMenuItem
|
||||||
//
|
//
|
||||||
@ -91,18 +91,18 @@
|
|||||||
CustomerContractReviewsToolStripMenuItem.Text = "Отзывы заказчиков";
|
CustomerContractReviewsToolStripMenuItem.Text = "Отзывы заказчиков";
|
||||||
CustomerContractReviewsToolStripMenuItem.Click += CustomerContractReviewsToolStripMenuItem_Click;
|
CustomerContractReviewsToolStripMenuItem.Click += CustomerContractReviewsToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// контрактыToolStripMenuItem
|
// ContractsToolStripMenuItem
|
||||||
//
|
//
|
||||||
контрактыToolStripMenuItem.Name = "контрактыToolStripMenuItem";
|
ContractsToolStripMenuItem.Name = "ContractsToolStripMenuItem";
|
||||||
контрактыToolStripMenuItem.Size = new Size(181, 22);
|
ContractsToolStripMenuItem.Size = new Size(181, 22);
|
||||||
контрактыToolStripMenuItem.Text = "Контракты";
|
ContractsToolStripMenuItem.Text = "Контракты";
|
||||||
контрактыToolStripMenuItem.Click += ContractsToolStripMenuItem_Click;
|
ContractsToolStripMenuItem.Click += ContractsToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// отчетыToolStripMenuItem
|
// ReportsToolStripMenuItem
|
||||||
//
|
//
|
||||||
отчетыToolStripMenuItem.Name = "отчетыToolStripMenuItem";
|
ReportsToolStripMenuItem.Name = "ReportsToolStripMenuItem";
|
||||||
отчетыToolStripMenuItem.Size = new Size(60, 20);
|
ReportsToolStripMenuItem.Size = new Size(60, 20);
|
||||||
отчетыToolStripMenuItem.Text = "Отчеты";
|
ReportsToolStripMenuItem.Text = "Отчеты";
|
||||||
//
|
//
|
||||||
// FormItCompany
|
// FormItCompany
|
||||||
//
|
//
|
||||||
@ -125,13 +125,13 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private MenuStrip menuStrip;
|
private MenuStrip menuStrip;
|
||||||
private ToolStripMenuItem справочникиToolStripMenuItem;
|
private ToolStripMenuItem EntitiesToolStripMenuItem;
|
||||||
private ToolStripMenuItem CustomersToolStripMenuItem;
|
private ToolStripMenuItem CustomersToolStripMenuItem;
|
||||||
private ToolStripMenuItem ExecutorsToolStripMenuItem;
|
private ToolStripMenuItem ExecutorsToolStripMenuItem;
|
||||||
private ToolStripMenuItem операцииToolStripMenuItem;
|
private ToolStripMenuItem OperationsToolStripMenuItem;
|
||||||
private ToolStripMenuItem отчетыToolStripMenuItem;
|
private ToolStripMenuItem ReportsToolStripMenuItem;
|
||||||
private ToolStripMenuItem CustomerContractReviewsToolStripMenuItem;
|
private ToolStripMenuItem CustomerContractReviewsToolStripMenuItem;
|
||||||
private ToolStripMenuItem контрактыToolStripMenuItem;
|
private ToolStripMenuItem ContractsToolStripMenuItem;
|
||||||
private ToolStripMenuItem ServicesToolStripMenuItem;
|
private ToolStripMenuItem ServicesToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
|||||||
|
|
||||||
comboBoxContractExecutorId.DataSource = executorRepository.ReadExecutors();
|
comboBoxContractExecutorId.DataSource = executorRepository.ReadExecutors();
|
||||||
comboBoxContractExecutorId.DisplayMember = "Name";
|
comboBoxContractExecutorId.DisplayMember = "Name";
|
||||||
comboBoxContractExecutorId.ValueMember= "Id";
|
comboBoxContractExecutorId.ValueMember = "Id";
|
||||||
|
|
||||||
ColumnServiceDescription.DataSource = serviceRepository.ReadServices();
|
ColumnServiceDescription.DataSource = serviceRepository.ReadServices();
|
||||||
ColumnServiceDescription.DisplayMember = "Description";
|
ColumnServiceDescription.DisplayMember = "Description";
|
||||||
|
@ -41,7 +41,7 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Forms
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(richTextBoxServiceDescription.Text))
|
if (string.IsNullOrEmpty(richTextBoxServiceDescription.Text))
|
||||||
throw new Exception("Имеются незаполненные поля");
|
throw new Exception("Имеются незаполненные поля");
|
||||||
|
|
||||||
_serviceRepository.CreateService(Service.CreateEntity(0,
|
_serviceRepository.CreateService(Service.CreateEntity(0,
|
||||||
richTextBoxServiceDescription.Text));
|
richTextBoxServiceDescription.Text));
|
||||||
|
|
||||||
|
@ -8,9 +8,9 @@ public interface IServiceRepository
|
|||||||
|
|
||||||
Service ReadServiceById(int id);
|
Service ReadServiceById(int id);
|
||||||
|
|
||||||
void CreateService(Service Service);
|
void CreateService(Service service);
|
||||||
|
|
||||||
void UpdateService(Service Service);
|
void UpdateService(Service service);
|
||||||
|
|
||||||
void DeleteService(int id);
|
void DeleteService(int id);
|
||||||
}
|
}
|
@ -4,7 +4,7 @@ namespace PIbd_23_Gutorov_I.A._IT_Company.Repositories.Implementations;
|
|||||||
|
|
||||||
internal class ServiceRepository : IServiceRepository
|
internal class ServiceRepository : IServiceRepository
|
||||||
{
|
{
|
||||||
public void CreateService(Service Service)
|
public void CreateService(Service service)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ internal class ServiceRepository : IServiceRepository
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateService(Service Service)
|
public void UpdateService(Service service)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user