From dc5b9b76534d5fb02db77a1e8527a9a4993c6286 Mon Sep 17 00:00:00 2001 From: ParovozTomas <116494706+ParovozTomas@users.noreply.github.com> Date: Sat, 11 Oct 2025 02:41:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D1=8C=D1=82?= =?UTF-8?q?=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B5=D0=BA=D1=82=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TZotGPT.sln | 25 ++ TZotGPT/App.config | 6 + TZotGPT/Form1.Designer.cs | 287 +++++++++++++++++++++++ TZotGPT/Form1.cs | 20 ++ TZotGPT/Form1.resx | 120 ++++++++++ TZotGPT/Program.cs | 22 ++ TZotGPT/Properties/AssemblyInfo.cs | 33 +++ TZotGPT/Properties/Resources.Designer.cs | 71 ++++++ TZotGPT/Properties/Resources.resx | 117 +++++++++ TZotGPT/Properties/Settings.Designer.cs | 30 +++ TZotGPT/Properties/Settings.settings | 7 + TZotGPT/TZotGPT.csproj | 83 +++++++ 12 files changed, 821 insertions(+) create mode 100644 TZotGPT.sln create mode 100644 TZotGPT/App.config create mode 100644 TZotGPT/Form1.Designer.cs create mode 100644 TZotGPT/Form1.cs create mode 100644 TZotGPT/Form1.resx create mode 100644 TZotGPT/Program.cs create mode 100644 TZotGPT/Properties/AssemblyInfo.cs create mode 100644 TZotGPT/Properties/Resources.Designer.cs create mode 100644 TZotGPT/Properties/Resources.resx create mode 100644 TZotGPT/Properties/Settings.Designer.cs create mode 100644 TZotGPT/Properties/Settings.settings create mode 100644 TZotGPT/TZotGPT.csproj diff --git a/TZotGPT.sln b/TZotGPT.sln new file mode 100644 index 0000000..2558e74 --- /dev/null +++ b/TZotGPT.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36518.9 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TZotGPT", "TZotGPT\TZotGPT.csproj", "{E280EF71-3642-4923-95D2-AF41F5DC7F55}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E280EF71-3642-4923-95D2-AF41F5DC7F55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E280EF71-3642-4923-95D2-AF41F5DC7F55}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E280EF71-3642-4923-95D2-AF41F5DC7F55}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E280EF71-3642-4923-95D2-AF41F5DC7F55}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {00AE2BC4-C142-478E-BBA8-39F5110CF93F} + EndGlobalSection +EndGlobal diff --git a/TZotGPT/App.config b/TZotGPT/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/TZotGPT/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/TZotGPT/Form1.Designer.cs b/TZotGPT/Form1.Designer.cs new file mode 100644 index 0000000..b1f06be --- /dev/null +++ b/TZotGPT/Form1.Designer.cs @@ -0,0 +1,287 @@ +namespace TZotGPT +{ + partial class Form1 + { + /// + /// Обязательная переменная конструктора. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Освободить все используемые ресурсы. + /// + /// истинно, если управляемый ресурс должен быть удален; иначе ложно. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Код, автоматически созданный конструктором форм Windows + + /// + /// Требуемый метод для поддержки конструктора — не изменяйте + /// содержимое этого метода с помощью редактора кода. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label2 = new System.Windows.Forms.Label(); + this.benz92 = new System.Windows.Forms.TextBox(); + this.benz95 = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.benzDT = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.maslo = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.tipTS = new System.Windows.Forms.ComboBox(); + this.label6 = new System.Windows.Forms.Label(); + this.markaTS = new System.Windows.Forms.TextBox(); + this.modelTS = new System.Windows.Forms.TextBox(); + this.label7 = new System.Windows.Forms.Label(); + this.vin = new System.Windows.Forms.TextBox(); + this.label8 = new System.Windows.Forms.Label(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.label9 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label10 = new System.Windows.Forms.Label(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(13, 12); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(43, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Тип ТС"; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.maslo); + this.groupBox1.Controls.Add(this.label5); + this.groupBox1.Controls.Add(this.benzDT); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.benz95); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.benz92); + this.groupBox1.Controls.Add(this.label2); + this.groupBox1.Location = new System.Drawing.Point(301, 9); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(129, 194); + this.groupBox1.TabIndex = 1; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Стоимость"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(7, 20); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(106, 13); + this.label2.TabIndex = 0; + this.label2.Text = "Бензин 92 (за литр)"; + // + // benz92 + // + this.benz92.Location = new System.Drawing.Point(7, 37); + this.benz92.Name = "benz92"; + this.benz92.Size = new System.Drawing.Size(106, 20); + this.benz92.TabIndex = 1; + // + // benz95 + // + this.benz95.Location = new System.Drawing.Point(7, 80); + this.benz95.Name = "benz95"; + this.benz95.Size = new System.Drawing.Size(106, 20); + this.benz95.TabIndex = 3; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(7, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(106, 13); + this.label3.TabIndex = 2; + this.label3.Text = "Бензин 95 (за литр)"; + // + // benzDT + // + this.benzDT.Location = new System.Drawing.Point(7, 121); + this.benzDT.Name = "benzDT"; + this.benzDT.Size = new System.Drawing.Size(106, 20); + this.benzDT.TabIndex = 5; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(7, 104); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(70, 13); + this.label4.TabIndex = 4; + this.label4.Text = "ДТ (за литр)"; + // + // maslo + // + this.maslo.Location = new System.Drawing.Point(7, 162); + this.maslo.Name = "maslo"; + this.maslo.Size = new System.Drawing.Size(106, 20); + this.maslo.TabIndex = 7; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(7, 145); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(40, 13); + this.label5.TabIndex = 6; + this.label5.Text = "Масло"; + // + // tipTS + // + this.tipTS.FormattingEnabled = true; + this.tipTS.Location = new System.Drawing.Point(163, 9); + this.tipTS.Name = "tipTS"; + this.tipTS.Size = new System.Drawing.Size(121, 21); + this.tipTS.TabIndex = 2; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(13, 36); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(40, 13); + this.label6.TabIndex = 3; + this.label6.Text = "Марка"; + // + // markaTS + // + this.markaTS.Location = new System.Drawing.Point(163, 33); + this.markaTS.Name = "markaTS"; + this.markaTS.Size = new System.Drawing.Size(121, 20); + this.markaTS.TabIndex = 4; + // + // modelTS + // + this.modelTS.Location = new System.Drawing.Point(163, 59); + this.modelTS.Name = "modelTS"; + this.modelTS.Size = new System.Drawing.Size(121, 20); + this.modelTS.TabIndex = 6; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(13, 62); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(46, 13); + this.label7.TabIndex = 5; + this.label7.Text = "Модель"; + // + // vin + // + this.vin.Location = new System.Drawing.Point(163, 85); + this.vin.Name = "vin"; + this.vin.Size = new System.Drawing.Size(121, 20); + this.vin.TabIndex = 8; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(13, 88); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(25, 13); + this.label8.TabIndex = 7; + this.label8.Text = "VIN"; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(163, 111); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(121, 20); + this.textBox4.TabIndex = 10; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(13, 114); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(71, 13); + this.label9.TabIndex = 9; + this.label9.Text = "Год выпуска"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(163, 137); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(121, 20); + this.textBox1.TabIndex = 12; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(13, 140); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(79, 13); + this.label10.TabIndex = 11; + this.label10.Text = "Пробег за год"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(451, 235); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label10); + this.Controls.Add(this.textBox4); + this.Controls.Add(this.label9); + this.Controls.Add(this.vin); + this.Controls.Add(this.label8); + this.Controls.Add(this.modelTS); + this.Controls.Add(this.label7); + this.Controls.Add(this.markaTS); + this.Controls.Add(this.label6); + this.Controls.Add(this.tipTS); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.label1); + this.MaximizeBox = false; + this.Name = "Form1"; + this.ShowIcon = false; + this.Text = "Учёт транспорта в автопарке"; + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.TextBox maslo; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox benzDT; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TextBox benz95; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox benz92; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.ComboBox tipTS; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.TextBox markaTS; + private System.Windows.Forms.TextBox modelTS; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.TextBox vin; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label10; + } +} + diff --git a/TZotGPT/Form1.cs b/TZotGPT/Form1.cs new file mode 100644 index 0000000..b76bef8 --- /dev/null +++ b/TZotGPT/Form1.cs @@ -0,0 +1,20 @@ +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; + +namespace TZotGPT +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/TZotGPT/Form1.resx b/TZotGPT/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TZotGPT/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/TZotGPT/Program.cs b/TZotGPT/Program.cs new file mode 100644 index 0000000..3c67956 --- /dev/null +++ b/TZotGPT/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace TZotGPT +{ + internal static class Program + { + /// + /// Главная точка входа для приложения. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/TZotGPT/Properties/AssemblyInfo.cs b/TZotGPT/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..6ebb767 --- /dev/null +++ b/TZotGPT/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанных со сборкой. +[assembly: AssemblyTitle("TZotGPT")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TZotGPT")] +[assembly: AssemblyCopyright("Copyright © 2025")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// COM, следует установить атрибут ComVisible в TRUE для этого типа. +[assembly: ComVisible(false)] + +// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM +[assembly: Guid("e280ef71-3642-4923-95d2-af41f5dc7f55")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Редакция +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TZotGPT/Properties/Resources.Designer.cs b/TZotGPT/Properties/Resources.Designer.cs new file mode 100644 index 0000000..e75cf88 --- /dev/null +++ b/TZotGPT/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программным средством. +// Версия среды выполнения: 4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если +// код создан повторно. +// +//------------------------------------------------------------------------------ + +namespace TZotGPT.Properties +{ + + + /// + /// Класс ресурсов со строгим типом для поиска локализованных строк и пр. + /// + // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder + // класс с помощью таких средств, как ResGen или Visual Studio. + // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen + // с параметром /str или заново постройте свой VS-проект. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TZotGPT.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Переопределяет свойство CurrentUICulture текущего потока для всех + /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/TZotGPT/Properties/Resources.resx b/TZotGPT/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/TZotGPT/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TZotGPT/Properties/Settings.Designer.cs b/TZotGPT/Properties/Settings.Designer.cs new file mode 100644 index 0000000..389da3c --- /dev/null +++ b/TZotGPT/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace TZotGPT.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/TZotGPT/Properties/Settings.settings b/TZotGPT/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/TZotGPT/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/TZotGPT/TZotGPT.csproj b/TZotGPT/TZotGPT.csproj new file mode 100644 index 0000000..e7e43b7 --- /dev/null +++ b/TZotGPT/TZotGPT.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {E280EF71-3642-4923-95D2-AF41F5DC7F55} + WinExe + TZotGPT + TZotGPT + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file