From 2bfd5d4ba6de60d11796788c6ce3a58edfe42c04 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 8 Apr 2023 17:25:12 +0400 Subject: [PATCH] DataModels --- FactoryView/FactoryBusinessLogic/Class1.cs | 7 - FactoryView/FactoryContracts/Class1.cs | 7 - FactoryView/FactoryDataModels/Class1.cs | 7 - FactoryView/FactoryDataModels/IId.cs | 13 ++ .../Models/IComponentModel.cs | 13 ++ .../Models/IEngenierModel.cs | 19 +++ .../Models/ILatheBusyModel.cs | 17 +++ .../FactoryDataModels/Models/ILatheModel.cs | 16 +++ .../FactoryDataModels/Models/IMasterModel.cs | 18 +++ .../FactoryDataModels/Models/IPlanModel.cs | 19 +++ .../Models/IReinforcedModel.cs | 15 +++ .../FactoryDataModels/Models/IStageModel.cs | 15 +++ .../FactoryDatabaseImplement/Class1.cs | 7 - FactoryView/FactoryView/Form1.Designer.cs | 39 ------ FactoryView/FactoryView/Form1.cs | 10 -- FactoryView/FactoryView/Form1.resx | 120 ------------------ FactoryView/FactoryView/Program.cs | 17 --- 17 files changed, 145 insertions(+), 214 deletions(-) delete mode 100644 FactoryView/FactoryBusinessLogic/Class1.cs delete mode 100644 FactoryView/FactoryContracts/Class1.cs delete mode 100644 FactoryView/FactoryDataModels/Class1.cs create mode 100644 FactoryView/FactoryDataModels/IId.cs create mode 100644 FactoryView/FactoryDataModels/Models/IComponentModel.cs create mode 100644 FactoryView/FactoryDataModels/Models/IEngenierModel.cs create mode 100644 FactoryView/FactoryDataModels/Models/ILatheBusyModel.cs create mode 100644 FactoryView/FactoryDataModels/Models/ILatheModel.cs create mode 100644 FactoryView/FactoryDataModels/Models/IMasterModel.cs create mode 100644 FactoryView/FactoryDataModels/Models/IPlanModel.cs create mode 100644 FactoryView/FactoryDataModels/Models/IReinforcedModel.cs create mode 100644 FactoryView/FactoryDataModels/Models/IStageModel.cs delete mode 100644 FactoryView/FactoryDatabaseImplement/Class1.cs delete mode 100644 FactoryView/FactoryView/Form1.Designer.cs delete mode 100644 FactoryView/FactoryView/Form1.cs delete mode 100644 FactoryView/FactoryView/Form1.resx delete mode 100644 FactoryView/FactoryView/Program.cs diff --git a/FactoryView/FactoryBusinessLogic/Class1.cs b/FactoryView/FactoryBusinessLogic/Class1.cs deleted file mode 100644 index c3e8018..0000000 --- a/FactoryView/FactoryBusinessLogic/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace FactoryBusinessLogic -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/FactoryView/FactoryContracts/Class1.cs b/FactoryView/FactoryContracts/Class1.cs deleted file mode 100644 index ff0bc9a..0000000 --- a/FactoryView/FactoryContracts/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace FactoryContracts -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/FactoryView/FactoryDataModels/Class1.cs b/FactoryView/FactoryDataModels/Class1.cs deleted file mode 100644 index 399e2aa..0000000 --- a/FactoryView/FactoryDataModels/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace FactoryDataModels -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/FactoryView/FactoryDataModels/IId.cs b/FactoryView/FactoryDataModels/IId.cs new file mode 100644 index 0000000..24137d0 --- /dev/null +++ b/FactoryView/FactoryDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/FactoryView/FactoryDataModels/Models/IComponentModel.cs b/FactoryView/FactoryDataModels/Models/IComponentModel.cs new file mode 100644 index 0000000..0fc4756 --- /dev/null +++ b/FactoryView/FactoryDataModels/Models/IComponentModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels.Models +{ + public interface IComponentModel : IId + { + string ComponentName { get; } + } +} diff --git a/FactoryView/FactoryDataModels/Models/IEngenierModel.cs b/FactoryView/FactoryDataModels/Models/IEngenierModel.cs new file mode 100644 index 0000000..70014aa --- /dev/null +++ b/FactoryView/FactoryDataModels/Models/IEngenierModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels.Models +{ + public interface IEngenierModel : IId + { + string Password { get; } + + string Fio { get; } + + string Email { get; } + + } +} diff --git a/FactoryView/FactoryDataModels/Models/ILatheBusyModel.cs b/FactoryView/FactoryDataModels/Models/ILatheBusyModel.cs new file mode 100644 index 0000000..4203386 --- /dev/null +++ b/FactoryView/FactoryDataModels/Models/ILatheBusyModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels.Models +{ + public interface ILatheBusyModel : IId + { + int Percent { get; } + + DateTime Date { get; } + + + } +} diff --git a/FactoryView/FactoryDataModels/Models/ILatheModel.cs b/FactoryView/FactoryDataModels/Models/ILatheModel.cs new file mode 100644 index 0000000..fc35738 --- /dev/null +++ b/FactoryView/FactoryDataModels/Models/ILatheModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels.Models +{ + public interface ILatheModel : IId + { + string LatheName { get; } + int MasterId { get; } + int BusyId { get; } + Dictionary LatheReinforcedes { get; } + } +} diff --git a/FactoryView/FactoryDataModels/Models/IMasterModel.cs b/FactoryView/FactoryDataModels/Models/IMasterModel.cs new file mode 100644 index 0000000..5040ce8 --- /dev/null +++ b/FactoryView/FactoryDataModels/Models/IMasterModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels.Models +{ + public interface IMasterModel : IId + { + string Password { get; } + + string Fio { get; } + + string Email { get; } + + } +} diff --git a/FactoryView/FactoryDataModels/Models/IPlanModel.cs b/FactoryView/FactoryDataModels/Models/IPlanModel.cs new file mode 100644 index 0000000..33faaf1 --- /dev/null +++ b/FactoryView/FactoryDataModels/Models/IPlanModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels.Models +{ + public interface IPlanModel : IId + { + string PlanName { get; } + + Dictionary PlanLathes { get; } + + Dictionary PlanComponents { get; } + + DateTime date { get; } + } +} diff --git a/FactoryView/FactoryDataModels/Models/IReinforcedModel.cs b/FactoryView/FactoryDataModels/Models/IReinforcedModel.cs new file mode 100644 index 0000000..798e90b --- /dev/null +++ b/FactoryView/FactoryDataModels/Models/IReinforcedModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels.Models +{ + public interface IReinforcedModel : IId + { + string ReinforcedName { get; } + int EngenierId { get; } + Dictionary ReinforcedComponents { get; } + } +} diff --git a/FactoryView/FactoryDataModels/Models/IStageModel.cs b/FactoryView/FactoryDataModels/Models/IStageModel.cs new file mode 100644 index 0000000..7505755 --- /dev/null +++ b/FactoryView/FactoryDataModels/Models/IStageModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FactoryDataModels.Models +{ + public interface IStageModel : IId + { + public int PlanId { get; } + + public int ReinforsedId { get; } + } +} diff --git a/FactoryView/FactoryDatabaseImplement/Class1.cs b/FactoryView/FactoryDatabaseImplement/Class1.cs deleted file mode 100644 index e63ef13..0000000 --- a/FactoryView/FactoryDatabaseImplement/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace FactoryDatabaseImplement -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/FactoryView/FactoryView/Form1.Designer.cs b/FactoryView/FactoryView/Form1.Designer.cs deleted file mode 100644 index fd5edba..0000000 --- a/FactoryView/FactoryView/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace FactoryView -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "Form1"; - } - - #endregion - } -} \ No newline at end of file diff --git a/FactoryView/FactoryView/Form1.cs b/FactoryView/FactoryView/Form1.cs deleted file mode 100644 index 12b89ab..0000000 --- a/FactoryView/FactoryView/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace FactoryView -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/FactoryView/FactoryView/Form1.resx b/FactoryView/FactoryView/Form1.resx deleted file mode 100644 index 1af7de1..0000000 --- a/FactoryView/FactoryView/Form1.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/FactoryView/FactoryView/Program.cs b/FactoryView/FactoryView/Program.cs deleted file mode 100644 index 066005f..0000000 --- a/FactoryView/FactoryView/Program.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace FactoryView -{ - internal static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - // To customize application configuration such as set high DPI settings or default font, - // see https://aka.ms/applicationconfiguration. - ApplicationConfiguration.Initialize(); - Application.Run(new Form1()); - } - } -} \ No newline at end of file