Все сущности и формы к ним

This commit is contained in:
145Game 2024-11-11 14:19:42 +04:00
parent c4e70dafce
commit 5cd0b34340
17 changed files with 13 additions and 121 deletions

View File

@ -1,8 +1,4 @@
 
using System.Runtime.CompilerServices;
using System.Security.Policy;
using System.Web;
using Travel_Agency.Entities.Enums; using Travel_Agency.Entities.Enums;
namespace Travel_Agency.Entities; namespace Travel_Agency.Entities;

View File

@ -1,6 +1,5 @@
 
namespace Travel_Agency.Entities; namespace Travel_Agency.Entities;
public class Contract public class Contract
{ {
public int Id { get; private set; } public int Id { get; private set; }
@ -26,5 +25,4 @@ public class Contract
Tours = tours Tours = tours
}; };
} }
} }

View File

@ -1,6 +1,5 @@
 
namespace Travel_Agency.Entities; namespace Travel_Agency.Entities;
public class Contract_Tour public class Contract_Tour
{ {
public int Id { get; private set; } public int Id { get; private set; }

View File

@ -1,6 +1,5 @@
 
namespace Travel_Agency.Entities; namespace Travel_Agency.Entities;
public class Payment public class Payment
{ {
public int Id { get; private set; } public int Id { get; private set; }

View File

@ -1,6 +1,5 @@
 
namespace Travel_Agency.Entities; namespace Travel_Agency.Entities;
public class Route public class Route
{ {
public int Id { get; private set; } public int Id { get; private set; }

View File

@ -1,8 +1,4 @@
using System; 
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Travel_Agency.Entities.Enums; using Travel_Agency.Entities.Enums;
namespace Travel_Agency.Entities; namespace Travel_Agency.Entities;
@ -22,6 +18,5 @@ public class Tour
TypeOfTour = typeOfTour, TypeOfTour = typeOfTour,
Price = price Price = price
}; };
} }
} }

View File

@ -1,4 +1,4 @@
using System.ComponentModel;
using Travel_Agency.Forms; using Travel_Agency.Forms;
using Unity; using Unity;
@ -25,7 +25,6 @@ namespace Travel_Agency
MessageBox.Show(ex.Message, "Îøèáêà ïðè çàãðóçêå", MessageBox.Show(ex.Message, "Îøèáêà ïðè çàãðóçêå",
MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
private void ToursToolStripMenuItem_Click(object sender, EventArgs e) private void ToursToolStripMenuItem_Click(object sender, EventArgs e)
@ -39,7 +38,6 @@ namespace Travel_Agency
MessageBox.Show(ex.Message, "Îøèáêà ïðè çàãðóçêå", MessageBox.Show(ex.Message, "Îøèáêà ïðè çàãðóçêå",
MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
private void RoutesToolStripMenuItem_Click(object sender, EventArgs e) private void RoutesToolStripMenuItem_Click(object sender, EventArgs e)

View File

@ -1,12 +1,4 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Entities; using Travel_Agency.Entities;
using Travel_Agency.Entities.Enums; using Travel_Agency.Entities.Enums;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
@ -53,7 +45,6 @@ namespace Travel_Agency.Forms
ArgumentNullException(nameof(clientRepository)); ArgumentNullException(nameof(clientRepository));
comboBoxPosition.DataSource = comboBoxPosition.DataSource =
Enum.GetValues(typeof(PositionInSociety)); Enum.GetValues(typeof(PositionInSociety));
} }
private void ButtonSave_Click(object sender, EventArgs e) private void ButtonSave_Click(object sender, EventArgs e)
@ -82,7 +73,6 @@ namespace Travel_Agency.Forms
MessageBox.Show(ex.Message, "Ошибка при сохранении", MessageBox.Show(ex.Message, "Ошибка при сохранении",
MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
private void ButtonCencel_Click(object sender, EventArgs e) => Close(); private void ButtonCencel_Click(object sender, EventArgs e) => Close();

View File

@ -1,14 +1,5 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
using Travel_Agency.Repositories.Implementations;
using Unity; using Unity;
namespace Travel_Agency.Forms namespace Travel_Agency.Forms

View File

@ -1,12 +1,4 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Entities; using Travel_Agency.Entities;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;

View File

@ -1,14 +1,5 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
using Travel_Agency.Repositories.Implementations;
using Unity; using Unity;
namespace Travel_Agency.Forms namespace Travel_Agency.Forms

View File

@ -1,12 +1,4 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Entities; using Travel_Agency.Entities;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
@ -44,11 +36,8 @@ namespace Travel_Agency.Forms
MessageBox.Show(ex.Message, "Ошибка при сохранении", MessageBox.Show(ex.Message, "Ошибка при сохранении",
MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
private void ButtonCencel_Click(object sender, EventArgs e) => Close(); private void ButtonCencel_Click(object sender, EventArgs e) => Close();
} }
} }

View File

@ -1,12 +1,4 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
using Unity; using Unity;

View File

@ -1,15 +1,6 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Entities; using Travel_Agency.Entities;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
using Travel_Agency.Repositories.Implementations;
namespace Travel_Agency.Forms namespace Travel_Agency.Forms
{ {

View File

@ -1,12 +1,4 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
using Unity; using Unity;
@ -110,6 +102,5 @@ namespace Travel_Agency.Forms
Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value); Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value);
return true; return true;
} }
} }
} }

View File

@ -1,17 +1,7 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.VisualBasic.FileIO;
using Travel_Agency.Entities; using Travel_Agency.Entities;
using Travel_Agency.Entities.Enums; using Travel_Agency.Entities.Enums;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
using Travel_Agency.Repositories.Implementations;
namespace Travel_Agency.Forms namespace Travel_Agency.Forms
{ {

View File

@ -1,14 +1,5 @@
using System; 
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Travel_Agency.Repositories; using Travel_Agency.Repositories;
using Travel_Agency.Repositories.Implementations;
using Unity; using Unity;
namespace Travel_Agency.Forms namespace Travel_Agency.Forms