Forráskód Böngészése

Добавьте файлы проекта.

sasha 2 éve
szülő
commit
0545383dca

+ 25 - 0
praktika_2.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32901.215
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "praktika_2", "praktika_2\praktika_2.csproj", "{CACD5001-A7BC-4224-963C-D7AC7DB4252C}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{CACD5001-A7BC-4224-963C-D7AC7DB4252C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{CACD5001-A7BC-4224-963C-D7AC7DB4252C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{CACD5001-A7BC-4224-963C-D7AC7DB4252C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{CACD5001-A7BC-4224-963C-D7AC7DB4252C}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {2A1BC192-0F33-4F39-BEF8-7C2407EF5C6B}
+	EndGlobalSection
+EndGlobal

+ 23 - 0
praktika_2/App.config

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <configSections>
+    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+  </configSections>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+  </startup>
+  <entityFramework>
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+      <parameters>
+        <parameter value="mssqllocaldb" />
+      </parameters>
+    </defaultConnectionFactory>
+    <providers>
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
+    </providers>
+  </entityFramework>
+  <connectionStrings>
+    <add name="praktiksss" connectionString="data source=DESKTOP-CG8S2H8;initial catalog=praktika;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
+  </connectionStrings>
+</configuration>

+ 9 - 0
praktika_2/App.xaml

@@ -0,0 +1,9 @@
+<Application x:Class="praktika_2.App"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:local="clr-namespace:praktika_2"
+             StartupUri="Spisok_cennix_mc.xaml">
+    <Application.Resources>
+         
+    </Application.Resources>
+</Application>

+ 17 - 0
praktika_2/App.xaml.cs

@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace praktika_2
+{
+    /// <summary>
+    /// Логика взаимодействия для App.xaml
+    /// </summary>
+    public partial class App : Application
+    {
+    }
+}

+ 43 - 0
praktika_2/MainWindow.xaml

@@ -0,0 +1,43 @@
+<Window x:Class="praktika_2.MainWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:praktika_2"
+        mc:Ignorable="d"
+         Title="Ввод данных поступления" Height="600" Width="800"  WindowStartupLocation="CenterScreen">
+    <Grid  Background="#00BFFF">
+        <Grid.RowDefinitions>
+            <RowDefinition Height="47*"/>
+            <RowDefinition Height="26*"/>
+        </Grid.RowDefinitions>
+        <TextBlock Text="Материальная ценность:" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="15,0,635,0"/>
+        <ComboBox  x:Name="mat_cen" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="15,20,435,0"/>
+        <TextBlock Text="Количество:" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="375,0,275,0"/>
+        <TextBox x:Name="count"  Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="375,20,325,0"/>
+        <TextBlock Text="Номер и дата документа:" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="575,0,75,0"/>
+        <TextBox x:Name="Number_doc"  Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="490,20,10,0"/>
+        <TextBlock Text="Организация:" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="15,50,635,0"/>
+        <ComboBox  Name="Organization" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="15,70,335,0"/>
+        <TextBlock Text="Стоимость за 1 ед:" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="575,50,75,0"/>
+        <TextBox  Name="Stoimost" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="490,70,10,0"/>
+        <TextBlock Text="Размер:" Height="20" VerticalAlignment="Top" Margin="15,101,635,0"/>
+        <TextBox x:Name="Size"  Height="20" VerticalAlignment="Top" Margin="15,121,685,0"/>
+        <TextBlock Text="Ширина:" Height="20" VerticalAlignment="Top" Margin="125,101,525,0"/>
+        <TextBox x:Name="Wigth"  Height="20" VerticalAlignment="Top" Margin="125,121,575,0"/>
+        <TextBlock Text="Длина:" Height="20" VerticalAlignment="Top" Margin="236,101,414,0"/>
+        <TextBox x:Name="Length"  Height="20" VerticalAlignment="Top" Margin="235,121,465,0"/>
+        <TextBlock Text="Высота:" Height="20" VerticalAlignment="Top" Margin="350,101,300,0"/>
+        <TextBox Name="Heigth"  Height="20" VerticalAlignment="Top" Margin="348,121,352,0"/>
+        <TextBlock Text="Серийный номер:" Height="20" VerticalAlignment="Top" Margin="465,101,185,0"/>
+        <TextBox Name="Series_number"  Height="20" VerticalAlignment="Top" Margin="465,121,185,0"/>
+        <TextBlock Text="Примечание" Height="20" Grid.Row="0" VerticalAlignment="Top" Margin="15,150,635,0"/>
+        <TextBox Name="Prim" Grid.Row="0" Margin="15,173,585,173" Height="150"/>
+
+        <Button Grid.Row="1" Height="50" Width="250" Margin="-475 -100 0 0" Content="оформить запись учета" Click="Zapis"/>
+        <Button Grid.Row="1" Height="50" Width="250" Margin="100 -100 0 0" Content="открыть инвентарную карточку"/>
+        <Button Grid.Row="1" Height="30" Width="50" Margin="500 -100 0 0"/>
+        <Button Grid.Row="1" Height="30" Width="50" Margin="650 -100 0 0"/>
+        <TextBlock Text="Если категория МЦ не относится к расходным материалам, то при сохранении записи будут доступны кнопки «оформить запись учёта» и «открыть инвентарную карточку»" TextWrapping="Wrap" Grid.Row="1" FontSize="14" Margin="10 150 0 0"/>
+    </Grid>
+</Window>

+ 35 - 0
praktika_2/MainWindow.xaml.cs

@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace praktika_2
+{
+    /// <summary>
+    /// Логика взаимодействия для MainWindow.xaml
+    /// </summary>
+    public partial class MainWindow : Window
+    {
+        public MainWindow()
+        {
+            InitializeComponent();
+        }
+
+        private void Zapis(object sender, RoutedEventArgs e)
+        {
+            zapiss zap = new zapiss();
+            zap.Show();
+            Close();
+        }
+    }
+}

+ 15 - 0
praktika_2/Menu.xaml

@@ -0,0 +1,15 @@
+<Window x:Class="praktika_2.Menu"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:praktika_2"
+        mc:Ignorable="d"
+        Title="Главное меню" Height="250" Width="250" WindowStartupLocation="CenterScreen">
+    <Grid Background="#00BFFF">
+        <Button x:Name="G" Content="Ввод данных поступления" Margin="0,10,0,169" HorizontalAlignment="Center" Width="158" Click="G_Click"/>
+        <Button x:Name="a" Content="Список ценных МЦ" Margin="0,85,0,94" HorizontalAlignment="Center" Width="158" Click="a_Click"/>
+        <Button x:Name="A3" Content="Общий список поступивших МЦ" Margin="0,156,0,23" HorizontalAlignment="Center" Width="158" Click="a3_Click"/>
+
+    </Grid>
+</Window>

+ 42 - 0
praktika_2/Menu.xaml.cs

@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace praktika_2
+{
+    /// <summary>
+    /// Логика взаимодействия для Menu.xaml
+    /// </summary>
+    public partial class Menu : Window
+    {
+        public Menu()
+        {
+            InitializeComponent();
+        }
+
+        private void a_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void G_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void a3_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+    }
+}

+ 55 - 0
praktika_2/Properties/AssemblyInfo.cs

@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набор атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
+// связанные со сборкой.
+[assembly: AssemblyTitle("praktika_2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("praktika_2")]
+[assembly: AssemblyCopyright("Copyright ©  2022")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// из модели COM, установите атрибут ComVisible для этого типа в значение true.
+[assembly: ComVisible(false)]
+
+//Чтобы начать создание локализуемых приложений, задайте
+//<UICulture>CultureYouAreCodingWith</UICulture> в файле .csproj
+//в <PropertyGroup>. Например, при использовании английского (США)
+//в своих исходных файлах установите <UICulture> в en-US.  Затем отмените преобразование в комментарий
+//атрибута NeutralResourceLanguage ниже.  Обновите "en-US" в
+//строка внизу для обеспечения соответствия настройки UICulture в файле проекта.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+    ResourceDictionaryLocation.None, //где расположены словари ресурсов по конкретным тематикам
+                                     //(используется, если ресурс не найден на странице,
+                                     // или в словарях ресурсов приложения)
+    ResourceDictionaryLocation.SourceAssembly //где расположен словарь универсальных ресурсов
+                                              //(используется, если ресурс не найден на странице,
+                                              // в приложении или в каких-либо словарях ресурсов для конкретной темы)
+)]
+
+
+// Сведения о версии для сборки включают четыре следующих значения:
+//
+//      Основной номер версии
+//      Дополнительный номер версии
+//      Номер сборки
+//      Номер редакции
+//
+// Можно задать все значения или принять номера сборки и редакции по умолчанию 
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 71 - 0
praktika_2/Properties/Resources.Designer.cs

@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код был создан программным средством.
+//     Версия среды выполнения: 4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
+//     код создан повторно.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace praktika_2.Properties
+{
+
+
+    /// <summary>
+    ///   Класс ресурсов со строгим типом для поиска локализованных строк и пр.
+    /// </summary>
+    // Этот класс был автоматически создан при помощи 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()
+        {
+        }
+
+        /// <summary>
+        ///   Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
+        /// </summary>
+        [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("praktika_2.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+
+        /// <summary>
+        ///   Переопределяет свойство CurrentUICulture текущего потока для всех
+        ///   подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture
+        {
+            get
+            {
+                return resourceCulture;
+            }
+            set
+            {
+                resourceCulture = value;
+            }
+        }
+    }
+}

+ 117 - 0
praktika_2/Properties/Resources.resx

@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 30 - 0
praktika_2/Properties/Settings.Designer.cs

@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     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.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace praktika_2.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;
+            }
+        }
+    }
+}

+ 7 - 0
praktika_2/Properties/Settings.settings

@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

+ 14 - 0
praktika_2/Spisok_mc.xaml

@@ -0,0 +1,14 @@
+<Window x:Class="praktika_2.Spisok_mc"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:praktika_2"
+        mc:Ignorable="d"
+        Title="Список материальных ценностей" WindowState="Maximized" WindowStartupLocation="CenterScreen">
+    <Grid Background="#00BFFF">
+        <DataGrid Name="loxpussy" AutoGenerateColumns="True" Background="#00BFFF">
+            
+        </DataGrid>
+    </Grid>
+</Window>

+ 42 - 0
praktika_2/Spisok_mc.xaml.cs

@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace praktika_2
+{
+    /// <summary>
+    /// Логика взаимодействия для Spisok_mc.xaml
+    /// </summary>
+    public partial class Spisok_mc : Window
+    {
+        public Spisok_mc()
+        {
+            
+            InitializeComponent();
+            SqlConnection connection = new SqlConnection("server=DESKTOP-CG8S2H8; Trusted_Connection=YES; DataBase=praktika;");
+            connection.Open();
+            //string cmd = "select * from material_value";
+            string cmd = " select material_value.mat_value as 'Материальная ценность', material_value.[count] as 'Количество',organizations.name as 'Источник поступления', material_value.number_document as '№ и дата документа', material_value.Invent_number as 'Инвент № ', material_value.info as 'Описание:' from material_value, organizations where organizations.id_org = material_value.ID_org ";
+            SqlCommand createcommand = new SqlCommand(cmd, connection);
+            createcommand.ExecuteNonQuery();
+
+            SqlDataAdapter sql = new SqlDataAdapter(createcommand);
+            DataTable dt = new DataTable("material_value");
+            sql.Fill(dt);
+            loxpussy.ItemsSource = dt.DefaultView;
+            connection.Close();
+        }
+    }
+}

+ 28 - 0
praktika_2/act_repair.cs

@@ -0,0 +1,28 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class act_repair
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public act_repair()
+        {
+            repair = new HashSet<repair>();
+        }
+
+        [Key]
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id_act { get; set; }
+
+        [Required]
+        [StringLength(50)]
+        public string name_act { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<repair> repair { get; set; }
+    }
+}

+ 33 - 0
praktika_2/building.cs

@@ -0,0 +1,33 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    [Table("building")]
+    public partial class building
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public building()
+        {
+            employye = new HashSet<employye>();
+            info_move = new HashSet<info_move>();
+        }
+
+        [Key]
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id_building { get; set; }
+
+        [Required]
+        [StringLength(50)]
+        public string name { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<employye> employye { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<info_move> info_move { get; set; }
+    }
+}

+ 32 - 0
praktika_2/category.cs

@@ -0,0 +1,32 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    [Table("category")]
+    public partial class category
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public category()
+        {
+            material_value = new HashSet<material_value>();
+            material_value_pod_pechat = new HashSet<material_value_pod_pechat>();
+        }
+
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        [Required]
+        [StringLength(50)]
+        public string name_cat { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<material_value> material_value { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<material_value_pod_pechat> material_value_pod_pechat { get; set; }
+    }
+}

+ 34 - 0
praktika_2/employye.cs

@@ -0,0 +1,34 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    [Table("employye")]
+    public partial class employye
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public employye()
+        {
+            info_move = new HashSet<info_move>();
+            material_value_pod_pechat = new HashSet<material_value_pod_pechat>();
+        }
+
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        public string FIO { get; set; }
+
+        public int? id_build { get; set; }
+
+        public virtual building building { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<info_move> info_move { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<material_value_pod_pechat> material_value_pod_pechat { get; set; }
+    }
+}

+ 28 - 0
praktika_2/equipment.cs

@@ -0,0 +1,28 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    [Table("equipment")]
+    public partial class equipment
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public equipment()
+        {
+            material_value_pod_pechat = new HashSet<material_value_pod_pechat>();
+        }
+
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        [Required]
+        [StringLength(20)]
+        public string name { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<material_value_pod_pechat> material_value_pod_pechat { get; set; }
+    }
+}

+ 24 - 0
praktika_2/ind_characteristic.cs

@@ -0,0 +1,24 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class ind_characteristic
+    {
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        public int? id_material_value { get; set; }
+
+        public int count { get; set; }
+
+        [Required]
+        [StringLength(255)]
+        public string characteristic { get; set; }
+
+        public virtual material_value material_value { get; set; }
+    }
+}

+ 29 - 0
praktika_2/info_move.cs

@@ -0,0 +1,29 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class info_move
+    {
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        [Required]
+        [StringLength(20)]
+        public string type { get; set; }
+
+        [Column(TypeName = "money")]
+        public decimal? price { get; set; }
+
+        public int? id_employye { get; set; }
+
+        public int? id_build { get; set; }
+
+        public virtual building building { get; set; }
+
+        public virtual employye employye { get; set; }
+    }
+}

+ 54 - 0
praktika_2/material_value.cs

@@ -0,0 +1,54 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class material_value
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public material_value()
+        {
+            ind_characteristic = new HashSet<ind_characteristic>();
+            material_value_accounting = new HashSet<material_value_accounting>();
+            material_value_pod_pechat = new HashSet<material_value_pod_pechat>();
+        }
+
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        [Required]
+        [StringLength(50)]
+        public string mat_value { get; set; }
+
+        public int? id_category { get; set; }
+
+        [Required]
+        [StringLength(20)]
+        public string unit_of_meas { get; set; }
+
+        public int? count { get; set; }
+
+        [StringLength(50)]
+        public string number_document { get; set; }
+
+        public string Invent_number { get; set; }
+
+        public string info { get; set; }
+
+        public int? ID_org { get; set; }
+
+        public virtual category category { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<ind_characteristic> ind_characteristic { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<material_value_accounting> material_value_accounting { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<material_value_pod_pechat> material_value_pod_pechat { get; set; }
+    }
+}

+ 46 - 0
praktika_2/material_value_accounting.cs

@@ -0,0 +1,46 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class material_value_accounting
+    {
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        public int? id_material_value { get; set; }
+
+        public int count { get; set; }
+
+        [Required]
+        [StringLength(50)]
+        public string number_document { get; set; }
+
+        public int? id_organization { get; set; }
+
+        [Column(TypeName = "money")]
+        public decimal? price { get; set; }
+
+        public int? size_mat_val { get; set; }
+
+        public int? width { get; set; }
+
+        public int? lenght { get; set; }
+
+        public int? height { get; set; }
+
+        [Required]
+        [StringLength(20)]
+        public string number_series { get; set; }
+
+        [StringLength(120)]
+        public string note { get; set; }
+
+        public virtual material_value material_value { get; set; }
+
+        public virtual organizations organizations { get; set; }
+    }
+}

+ 66 - 0
praktika_2/material_value_pod_pechat.cs

@@ -0,0 +1,66 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class material_value_pod_pechat
+    {
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        public int? id_material_value { get; set; }
+
+        public int? id_equipment { get; set; }
+
+        [Required]
+        [StringLength(50)]
+        public string number_card { get; set; }
+
+        [Column(TypeName = "date")]
+        public DateTime data_pod_pechat { get; set; }
+
+        public int inventory_number { get; set; }
+
+        [Column(TypeName = "date")]
+        public DateTime data_vvoda { get; set; }
+
+        [Column(TypeName = "money")]
+        public decimal? price { get; set; }
+
+        public int? id_employye { get; set; }
+
+        public int term_used { get; set; }
+
+        [StringLength(50)]
+        public string number_document { get; set; }
+
+        public int count { get; set; }
+
+        public int size_material { get; set; }
+
+        public int width { get; set; }
+
+        public int lenght { get; set; }
+
+        public int height { get; set; }
+
+        public int series_number { get; set; }
+
+        public int? id_category { get; set; }
+
+        [Required]
+        [StringLength(250)]
+        public string description { get; set; }
+
+        public virtual category category { get; set; }
+
+        public virtual employye employye { get; set; }
+
+        public virtual equipment equipment { get; set; }
+
+        public virtual material_value material_value { get; set; }
+    }
+}

+ 28 - 0
praktika_2/organizations.cs

@@ -0,0 +1,28 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class organizations
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public organizations()
+        {
+            material_value_accounting = new HashSet<material_value_accounting>();
+        }
+
+        [Key]
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id_org { get; set; }
+
+        [Required]
+        [StringLength(50)]
+        public string name { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<material_value_accounting> material_value_accounting { get; set; }
+    }
+}

+ 5 - 0
praktika_2/packages.config

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+  <package id="EntityFramework" version="6.2.0" targetFramework="net472" />
+  <package id="EntityFramework.ru" version="6.2.0" targetFramework="net472" />
+</packages>

+ 151 - 0
praktika_2/praktika_2.csproj

@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{CACD5001-A7BC-4224-963C-D7AC7DB4252C}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>praktika_2</RootNamespace>
+    <AssemblyName>praktika_2</AssemblyName>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <WarningLevel>4</WarningLevel>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+    <Deterministic>true</Deterministic>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+      <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
+    </Reference>
+    <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+      <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.ComponentModel.DataAnnotations" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Runtime.Serialization" />
+    <Reference Include="System.Security" />
+    <Reference Include="System.Xml" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="System.Net.Http" />
+    <Reference Include="System.Xaml">
+      <RequiredTargetFramework>4.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="WindowsBase" />
+    <Reference Include="PresentationCore" />
+    <Reference Include="PresentationFramework" />
+  </ItemGroup>
+  <ItemGroup>
+    <ApplicationDefinition Include="App.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </ApplicationDefinition>
+    <Compile Include="act_repair.cs" />
+    <Compile Include="building.cs" />
+    <Compile Include="category.cs" />
+    <Compile Include="employye.cs" />
+    <Compile Include="equipment.cs" />
+    <Compile Include="ind_characteristic.cs" />
+    <Compile Include="info_move.cs" />
+    <Compile Include="material_value.cs" />
+    <Compile Include="material_value_accounting.cs" />
+    <Compile Include="material_value_pod_pechat.cs" />
+    <Compile Include="Menu.xaml.cs">
+      <DependentUpon>Menu.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="organizations.cs" />
+    <Compile Include="praktiksss.cs" />
+    <Compile Include="repair.cs" />
+    <Compile Include="spisok_cennix_mc.xaml.cs">
+      <DependentUpon>spisok_cennix_mc.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Spisok_mc.xaml.cs">
+      <DependentUpon>Spisok_mc.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="sysdiagrams.cs" />
+    <Compile Include="tape_work.cs" />
+    <Compile Include="zapiss.xaml.cs">
+      <DependentUpon>zapiss.xaml</DependentUpon>
+    </Compile>
+    <Page Include="MainWindow.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Compile Include="App.xaml.cs">
+      <DependentUpon>App.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="MainWindow.xaml.cs">
+      <DependentUpon>MainWindow.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Page Include="Menu.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="spisok_cennix_mc.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Spisok_mc.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="zapiss.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Properties\AssemblyInfo.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+    <None Include="packages.config" />
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 105 - 0
praktika_2/praktiksss.cs

@@ -0,0 +1,105 @@
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Data.Entity;
+using System.Linq;
+
+namespace praktika_2
+{
+    public partial class praktiksss : DbContext
+    {
+        public praktiksss()
+            : base("name=praktiksss")
+        {
+        }
+
+        public virtual DbSet<act_repair> act_repair { get; set; }
+        public virtual DbSet<building> building { get; set; }
+        public virtual DbSet<category> category { get; set; }
+        public virtual DbSet<employye> employye { get; set; }
+        public virtual DbSet<equipment> equipment { get; set; }
+        public virtual DbSet<ind_characteristic> ind_characteristic { get; set; }
+        public virtual DbSet<info_move> info_move { get; set; }
+        public virtual DbSet<material_value> material_value { get; set; }
+        public virtual DbSet<material_value_accounting> material_value_accounting { get; set; }
+        public virtual DbSet<material_value_pod_pechat> material_value_pod_pechat { get; set; }
+        public virtual DbSet<organizations> organizations { get; set; }
+        public virtual DbSet<repair> repair { get; set; }
+        public virtual DbSet<sysdiagrams> sysdiagrams { get; set; }
+        public virtual DbSet<tape_work> tape_work { get; set; }
+
+        protected override void OnModelCreating(DbModelBuilder modelBuilder)
+        {
+            modelBuilder.Entity<building>()
+                .HasMany(e => e.employye)
+                .WithOptional(e => e.building)
+                .HasForeignKey(e => e.id_build);
+
+            modelBuilder.Entity<building>()
+                .HasMany(e => e.info_move)
+                .WithOptional(e => e.building)
+                .HasForeignKey(e => e.id_build);
+
+            modelBuilder.Entity<category>()
+                .HasMany(e => e.material_value)
+                .WithOptional(e => e.category)
+                .HasForeignKey(e => e.id_category);
+
+            modelBuilder.Entity<category>()
+                .HasMany(e => e.material_value_pod_pechat)
+                .WithOptional(e => e.category)
+                .HasForeignKey(e => e.id_category);
+
+            modelBuilder.Entity<employye>()
+                .HasMany(e => e.info_move)
+                .WithOptional(e => e.employye)
+                .HasForeignKey(e => e.id_employye);
+
+            modelBuilder.Entity<employye>()
+                .HasMany(e => e.material_value_pod_pechat)
+                .WithOptional(e => e.employye)
+                .HasForeignKey(e => e.id_employye);
+
+            modelBuilder.Entity<equipment>()
+                .HasMany(e => e.material_value_pod_pechat)
+                .WithOptional(e => e.equipment)
+                .HasForeignKey(e => e.id_equipment);
+
+            modelBuilder.Entity<info_move>()
+                .Property(e => e.price)
+                .HasPrecision(19, 4);
+
+            modelBuilder.Entity<material_value>()
+                .HasMany(e => e.ind_characteristic)
+                .WithOptional(e => e.material_value)
+                .HasForeignKey(e => e.id_material_value);
+
+            modelBuilder.Entity<material_value>()
+                .HasMany(e => e.material_value_accounting)
+                .WithOptional(e => e.material_value)
+                .HasForeignKey(e => e.id_material_value);
+
+            modelBuilder.Entity<material_value>()
+                .HasMany(e => e.material_value_pod_pechat)
+                .WithOptional(e => e.material_value)
+                .HasForeignKey(e => e.id_material_value);
+
+            modelBuilder.Entity<material_value_accounting>()
+                .Property(e => e.price)
+                .HasPrecision(19, 4);
+
+            modelBuilder.Entity<material_value_pod_pechat>()
+                .Property(e => e.price)
+                .HasPrecision(19, 4);
+
+            modelBuilder.Entity<organizations>()
+                .HasMany(e => e.material_value_accounting)
+                .WithOptional(e => e.organizations)
+                .HasForeignKey(e => e.id_organization);
+
+            modelBuilder.Entity<tape_work>()
+                .HasMany(e => e.repair)
+                .WithOptional(e => e.tape_work)
+                .HasForeignKey(e => e.id_type_repair);
+        }
+    }
+}

+ 30 - 0
praktika_2/repair.cs

@@ -0,0 +1,30 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    [Table("repair")]
+    public partial class repair
+    {
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        public int? id_type_repair { get; set; }
+
+        [Column(TypeName = "date")]
+        public DateTime date_repair { get; set; }
+
+        [Required]
+        [StringLength(50)]
+        public string description { get; set; }
+
+        public int? id_act { get; set; }
+
+        public virtual act_repair act_repair { get; set; }
+
+        public virtual tape_work tape_work { get; set; }
+    }
+}

+ 123 - 0
praktika_2/spisok_cennix_mc.xaml

@@ -0,0 +1,123 @@
+<Window x:Class="praktika_2.spisok_cennix_mc"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:praktika_2"
+        mc:Ignorable="d"
+        Title="Список ценных МЦ" Height="800" Width="800" WindowStartupLocation="CenterScreen">
+    <Grid Background="#00BFFF">
+        <Grid.RowDefinitions>
+            <RowDefinition Height="65*"/>
+            <RowDefinition Height="40*"/>
+            <RowDefinition Height="35*"/>
+            <RowDefinition Height="35*"/>
+        </Grid.RowDefinitions>
+        <StackPanel Grid.Row="0">
+            <TextBlock Text="Наименование МЦ:" Margin="15 10 0 0"/>
+            <ComboBox Name="MC" Width="300" Margin="-480 5 0 0">
+                <TextBlock>компьютер персональный (шт)</TextBlock>
+            </ComboBox>
+            <TextBlock Text="Вид оборудования" Margin="330 -70 0 0" Height="15"/>
+            <ComboBox Name="Vid_obor" Width="300" Margin="150 -23 0 0">
+                <TextBlock> учебное</TextBlock>
+            </ComboBox>
+            <TextBlock Text="№ инвентарной карточки:" Margin="15 0 0 0"/>
+            <TextBox Width="250" Height="20" Margin="-530 0 0 0"/>
+            <TextBlock Text="Дата составления:" Margin="280 -35 0 0"/>
+            <TextBox Width="200" Height="20" Margin="-50 -20 0 0"/>
+            <TextBlock Text="Инвентарный №" Margin="500 -35 0 0"/>
+            <TextBox Width="100" Height="20" Margin="300 -20 0 0"/>
+            <TextBlock Text="Дата ввода в эксплуатацию:" Margin="15 0 0 0"/>
+            <TextBox Width="250" Height="20" Margin="-530 0 0 0"/>
+            <TextBlock Text="Первоначальная стоимость:" Margin="280 -35 0 0"/>
+            <TextBox Width="200" Height="20" Margin="-50 -20 0 0"/>
+            <TextBlock Text="Принял МЦ:" Margin="490 -35 0 0"/>
+            <ComboBox Width="300" Margin="480 -20 0 0">
+                <TextBlock>Пытель Наталья Андреевна - зам. директора по АХЧ</TextBlock>
+            </ComboBox>
+            <TextBlock Text="Срок полезного использования (мес):" Margin="15 0 0 0"/>
+            <TextBox Width="250" Height="20" Margin="-530 0 0 0"/>
+            <TextBlock Text="Номер и дата документа:" Margin="280 -35 0 0"/>
+            <TextBox Width="200" Height="20" Margin="-50 -20 0 0"/>
+            <TextBlock Text="Количество" Margin="500 -35 0 0"/>
+            <TextBox Width="100" Height="20" Margin="300 -20 0 0"/>
+            <Button Content="печать карточки" Width="100" Height="25" Margin="600 -20 0 0"/>
+            <TextBlock Text="Размер:" Height="20"  Margin="10 0 0 0"/>
+            <TextBox x:Name="Size"  Height="20" Width="100"  Margin="-680 0 0 0"/>
+            <TextBlock Text="Ширина:" Height="20" Margin="120 -60 0 0"/>
+            <TextBox x:Name="Wigth"  Height="20"  Width="100" Margin="-460 -20 0 0"/>
+            <TextBlock Text="Длина:" Height="20"  Margin="240 -60 0 0"/>
+            <TextBox x:Name="Length"  Height="20"  Width="100" Margin="-240 -20 0 0"/>
+            <TextBlock Text="Высота:" Height="20"  Margin="340 -60 0 0"/>
+            <TextBox Name="Heigth"  Height="20"  Width="100" Margin="-30 -20 0 0"/>
+            <TextBlock Text="Серийный номер:" Height="20"  Margin="440 -60 0 0"/>
+            <TextBox Name="Serial_nomer"  Height="20"  Width="100" Margin="190 -20 0 0"/>
+            <TextBlock Text="Категория МЦ" Height="20" Margin="560 -55 0 0"/>
+            <ComboBox Width="200" Margin="520 -20 0 0 ">
+                <TextBlock>ценная мц</TextBlock>
+            </ComboBox>
+            <TextBlock Text="Описание" Margin="10 0 0 0"/>
+            <TextBox Width="750" Margin="-30 0 0 0"/>
+        </StackPanel>
+        <ScrollViewer Grid.Row="1">
+            <StackPanel Grid.Row="1">
+                <TextBlock Text="Наименование конструкнивного элемента:" Margin="10 0 0 0"/>
+                <TextBox Width="250" Margin="-515 0 0 0"/>
+                <TextBlock Text="Код:" Margin="280 -35 0 0"/>
+                <TextBox Width="50" Margin="-190 -18 0 0"/>
+                <TextBlock Text="Характеристика элемента:" Margin="480 -35 0 0"/>
+                <TextBox Width="400" Height="40" Margin="320 -18 0 0"/>
+                <TextBox Width="250" Margin="-515 5 0 0"/>
+                <TextBox Width="50" Margin="-190 -18 0 0"/>
+                <TextBox Width="400" Height="40" Margin="320 -18 0 0"/>
+                <TextBox Width="250" Margin="-515 5 0 0"/>
+                <TextBox Width="50" Margin="-190 -18 0 0"/>
+                <TextBox Width="400" Height="40" Margin="320 -18 0 0"/>
+            </StackPanel>
+        </ScrollViewer>
+        <ScrollViewer Grid.Row="2">
+            <StackPanel Grid.Row="2">
+                <TextBlock Text="Вид операции:" Margin="10 0 0 0"/>
+                <ComboBox Width="100" Margin="-670 0 0 0">
+                    <TextBlock>приемка</TextBlock>
+                </ComboBox>
+                <TextBlock Text="Остат. стоимость:" Margin="120 -35 0 0"/>
+                <TextBox Width="100" Margin="-450 -18 0 0"/>
+                <TextBlock Text="МОЛ:" Margin="230 -35 0 0"/>
+                <ComboBox Width="250" Margin="-90 -20 0 0">
+                    <TextBlock>Петрова Ольга Викторовна - учитель информатики</TextBlock>
+                </ComboBox>
+                <TextBlock Text="Помещение:" Margin="480 -35 0 0"/>
+                <ComboBox Width="250" Margin="420 -19 0 0">
+                    <TextBlock>кабинет информатики</TextBlock>
+                </ComboBox>
+                <ComboBox Width="100" Margin="-670 0 0 0"/>
+                <TextBox Width="100" Margin="-450 -18 0 0"/>
+                <ComboBox Width="250" Margin="-90 -20 0 0"/>
+                <ComboBox Width="250" Margin="420 -19 0 0"/>
+            </StackPanel>
+        </ScrollViewer>
+        <ScrollViewer Grid.Row="3">
+            <StackPanel Grid.Row="3">
+                <TextBlock Text="Вид работ:" Margin="10 0 0 0"/>
+                <ComboBox Width="250" Margin="-515 0 0 0">
+                    <TextBlock>замена дисковода</TextBlock>
+                </ComboBox>
+                <TextBlock Text="Дата:" Margin="270 -35 0 0"/>
+                <TextBox Width="100" Margin="-150 -18 0 0"/>
+                <TextBlock Text="Описание:" Margin="378 -35 0 0"/>
+                <ComboBox Width="200" Margin="170 -20 0 0"/>
+                <TextBlock Text="Акт работы:" Margin="590 -35 0 0"/>
+                <ComboBox Width="100" Margin="480 -19 0 0">
+                    <TextBlock>№56-1 от 09.02.2019</TextBlock>
+                </ComboBox>
+                
+                <ComboBox Width="250" Margin="-515 0 0 0"/>
+                <TextBox Width="100" Margin="-150 -18 0 0"/>
+                <ComboBox Width="200" Margin="170 -20 0 0"/>
+                <ComboBox Width="100" Margin="480 -19 0 0"/>
+            </StackPanel>
+        </ScrollViewer>
+    </Grid>
+</Window>

+ 27 - 0
praktika_2/spisok_cennix_mc.xaml.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace praktika_2
+{
+    /// <summary>
+    /// Логика взаимодействия для spisok_cennix_mc.xaml
+    /// </summary>
+    public partial class spisok_cennix_mc : Window
+    {
+        public spisok_cennix_mc()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 24 - 0
praktika_2/sysdiagrams.cs

@@ -0,0 +1,24 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class sysdiagrams
+    {
+        [Required]
+        [StringLength(128)]
+        public string name { get; set; }
+
+        public int principal_id { get; set; }
+
+        [Key]
+        public int diagram_id { get; set; }
+
+        public int? version { get; set; }
+
+        public byte[] definition { get; set; }
+    }
+}

+ 25 - 0
praktika_2/tape_work.cs

@@ -0,0 +1,25 @@
+namespace praktika_2
+{
+    using System;
+    using System.Collections.Generic;
+    using System.ComponentModel.DataAnnotations;
+    using System.ComponentModel.DataAnnotations.Schema;
+    using System.Data.Entity.Spatial;
+
+    public partial class tape_work
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public tape_work()
+        {
+            repair = new HashSet<repair>();
+        }
+
+        [DatabaseGenerated(DatabaseGeneratedOption.None)]
+        public int id { get; set; }
+
+        public string name_type { get; set; }
+
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<repair> repair { get; set; }
+    }
+}

+ 20 - 0
praktika_2/zapiss.xaml

@@ -0,0 +1,20 @@
+<Window x:Class="praktika_2.zapiss"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:praktika_2"
+        mc:Ignorable="d"
+        Title="Учет МЦ: форма" Height="150" Width="450" WindowStartupLocation="CenterScreen">
+    <Grid Background="#00BFFF">
+        <TextBlock Text="Выбрать категорию:" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="-250 -80 0 0"/>
+        <ComboBox Height="20" Width="150" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20 -80 0 0">
+            <TextBlock>Ценная МЦ</TextBlock>
+            <TextBlock>Малоценная МЦ</TextBlock>
+            <TextBlock>Спецодежда</TextBlock>
+
+        </ComboBox>
+        <Button Name="back" Content="Назад" Height="20" Width="50" Margin="350 100 0 0" Click="back_click"/>
+    </Grid>
+</Window>
+

+ 34 - 0
praktika_2/zapiss.xaml.cs

@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace praktika_2
+{
+    /// <summary>
+    /// Логика взаимодействия для zapiss.xaml
+    /// </summary>
+    public partial class zapiss : Window
+    {
+        public zapiss()
+        {
+            InitializeComponent();
+        }
+
+        private void back_click(object sender, RoutedEventArgs e)
+        {
+            MainWindow MW = new MainWindow();
+            MW.Show();
+            Close();
+        }
+    }
+}