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

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;
namespace Travel_Agency.Entities;

View File

@ -1,6 +1,5 @@

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

View File

@ -1,6 +1,5 @@

namespace Travel_Agency.Entities;
public class Contract_Tour
{
public int Id { get; private set; }

View File

@ -1,6 +1,5 @@

namespace Travel_Agency.Entities;
public class Payment
{
public int Id { get; private set; }

View File

@ -1,6 +1,5 @@

namespace Travel_Agency.Entities;
public class Route
{
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;
namespace Travel_Agency.Entities;
@ -21,7 +17,6 @@ public class Tour
Name = name,
TypeOfTour = typeOfTour,
Price = price
};
};
}
}

View File

@ -1,4 +1,4 @@
using System.ComponentModel;
using Travel_Agency.Forms;
using Unity;
@ -25,7 +25,6 @@ namespace Travel_Agency
MessageBox.Show(ex.Message, "Îøèáêà ïðè çàãðóçêå",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void ToursToolStripMenuItem_Click(object sender, EventArgs e)
@ -39,7 +38,6 @@ namespace Travel_Agency
MessageBox.Show(ex.Message, "Îøèáêà ïðè çàãðóçêå",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
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.Enums;
using Travel_Agency.Repositories;
@ -53,7 +45,6 @@ namespace Travel_Agency.Forms
ArgumentNullException(nameof(clientRepository));
comboBoxPosition.DataSource =
Enum.GetValues(typeof(PositionInSociety));
}
private void ButtonSave_Click(object sender, EventArgs e)
@ -82,7 +73,6 @@ namespace Travel_Agency.Forms
MessageBox.Show(ex.Message, "Ошибка при сохранении",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
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.Implementations;
using Unity;
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.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.Implementations;
using Unity;
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.Repositories;
@ -44,11 +36,8 @@ namespace Travel_Agency.Forms
MessageBox.Show(ex.Message, "Ошибка при сохранении",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
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 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.Repositories;
using Travel_Agency.Repositories.Implementations;
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 Unity;
@ -110,6 +102,5 @@ namespace Travel_Agency.Forms
Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value);
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.Enums;
using Travel_Agency.Repositories;
using Travel_Agency.Repositories.Implementations;
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.Implementations;
using Unity;
namespace Travel_Agency.Forms