Алёна Плотникова 3 år sedan
förälder
incheckning
3d99895465

BIN
kursach_2.0/Images/home.png


+ 1 - 1
kursach_2.0/MainWindow.xaml

@@ -34,6 +34,6 @@
                FontFamily="Montserrat Light" FontSize="16"/>
         <Button Grid.Row="6"
                Content="Войти" 
-               Margin="45, 30" FontFamily="Montserrat Medium" FontSize="20"/>
+               Margin="45, 30" FontFamily="Montserrat Medium" FontSize="20" Click="Button_Click"/>
     </Grid>
 </Window>

+ 7 - 0
kursach_2.0/MainWindow.xaml.cs

@@ -24,5 +24,12 @@ namespace kursach_2._0
         {
             InitializeComponent();
         }
+
+        private void Button_Click(object sender, RoutedEventArgs e)
+        {
+            Windows.Menu menu = new Windows.Menu();
+            menu.Show();
+            Close();
+        }
     }
 }

+ 72 - 0
kursach_2.0/Windows/Invoices.xaml

@@ -0,0 +1,72 @@
+<Window x:Class="kursach_2._0.Windows.Invoices"
+        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:kursach_2._0.Windows"
+        mc:Ignorable="d"
+        Title="Дилерская компания" Height="800" Width="600" 
+        MinHeight="400" MinWidth="600" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="0.125*"/>
+            <RowDefinition/>
+        </Grid.RowDefinitions>
+        <Grid Grid.Row="0">
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition/>
+                <ColumnDefinition Width="0.2*"/>
+            </Grid.ColumnDefinitions>
+            <Rectangle Fill="#8aabdd" Grid.Row="0" Grid.ColumnSpan="2" Stroke="Gray"/>
+        <Label Content="Накладные" Grid.Row="0" 
+               FontFamily="Montserrat Medium" FontSize="36"
+               Margin="15, 0" VerticalAlignment="Center" />
+            <Image Source="/Images/home.png" Grid.Row="0" Grid.Column="1" Margin="15"/>
+        </Grid>
+        <TabControl Grid.Row="1">
+            <TabItem Header="История" FontFamily="Montserrat Medium" >
+                <Grid Background="#FFE5E5E5">
+                    <Grid.RowDefinitions>
+                        <RowDefinition Height="0.2*"/>
+                        <RowDefinition Height="0.1*"/>
+                        <RowDefinition/>
+                        <RowDefinition Height="0.2*"/>
+                    </Grid.RowDefinitions>
+                    <Grid Grid.Row="0">
+                        <Grid.ColumnDefinitions>
+                            <ColumnDefinition Width="0.3*"/>
+                            <ColumnDefinition/>
+                        </Grid.ColumnDefinitions>
+                        <Label Content="Поиск" Grid.Column="0"
+                               FontFamily="Montserrat Light" FontSize="20" 
+                               HorizontalAlignment="Right" VerticalAlignment="Center"/>
+                        <TextBox Grid.Column="1"
+                                 Margin="20, 30, 70, 30"/>
+                    </Grid>
+                    <TextBlock Grid.Row="1"
+                               Text="для просмотра подробной информации нажмите дважды на нужную строку" 
+                               FontFamily="Montserrat Light" FontSize="14" 
+                               VerticalAlignment="Center" HorizontalAlignment="Center"/>
+                    <DataGrid Grid.Row="2" AutoGenerateColumns="False">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn Header="№" Width="Auto"/>
+                            <DataGridTextColumn Header="Тип" Width="*"/>
+                            <DataGridTextColumn Header="Дата" Width="*"/>
+                            <DataGridTextColumn Header="Сотрудник" Width="*"/>
+                        </DataGrid.Columns>
+                    </DataGrid>
+                    <Grid Grid.Row="3">
+                        <Grid.ColumnDefinitions>
+                            <ColumnDefinition/>
+                            <ColumnDefinition/>
+                            <ColumnDefinition/>
+                        </Grid.ColumnDefinitions>
+                    </Grid>
+                </Grid>
+            </TabItem>
+            <TabItem Header="Добавление" FontFamily="Montserrat Medium" >
+                <Grid Background="#FFE5E5E5"/>
+            </TabItem>
+        </TabControl>
+    </Grid>
+</Window>

+ 27 - 0
kursach_2.0/Windows/Invoices.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 kursach_2._0.Windows
+{
+    /// <summary>
+    /// Логика взаимодействия для Invoices.xaml
+    /// </summary>
+    public partial class Invoices : Window
+    {
+        public Invoices()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 37 - 0
kursach_2.0/Windows/Menu.xaml

@@ -0,0 +1,37 @@
+<Window x:Class="kursach_2._0.Windows.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:kursach_2._0.Windows"
+        mc:Ignorable="d"
+        Title="Дилерская компания" Height="350" Width="550" MinHeight="350" MinWidth="550" WindowStartupLocation="CenterScreen" >
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="0.7*"/>
+            <RowDefinition Height="0.4*"/>
+            <RowDefinition/>
+            <RowDefinition/>
+            <RowDefinition Height="0.4*"/>
+        </Grid.RowDefinitions>
+        <Grid.ColumnDefinitions>
+            <ColumnDefinition Width="0.4*"/>
+            <ColumnDefinition/>
+            <ColumnDefinition/>
+            <ColumnDefinition Width="0.4*"/>
+        </Grid.ColumnDefinitions>
+
+        <Rectangle Fill="#8aabdd" Grid.Row="0" Grid.ColumnSpan="4" Stroke="Gray"/>
+        <Label Content="Главное меню" Grid.Row="0" Grid.ColumnSpan="4" VerticalAlignment="Center"
+               Margin="15, 0" FontFamily="Montserrat Medium" FontSize="36" />
+        <Button Content="Накладные" Grid.Column="1" Grid.Row="2"
+                Margin="10, 20" FontFamily="Montserrat Light" FontSize="20" Click="InvoicesClick"/>
+        <Button Content="Справочники" Grid.Column="1" Grid.Row="3"
+                Margin="10, 20" FontFamily="Montserrat Light" FontSize="20"/>
+        <Button Content="Профиль" Grid.Column="2" Grid.Row="2"
+                Margin="10, 20" FontFamily="Montserrat Light" FontSize="20"/>
+        <Button Content="Выход" Grid.Column="2" Grid.Row="3"
+                Margin="10, 20" FontFamily="Montserrat Light" FontSize="20"/>
+    </Grid>
+    
+</Window>

+ 34 - 0
kursach_2.0/Windows/Menu.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 kursach_2._0.Windows
+{
+    /// <summary>
+    /// Логика взаимодействия для Menu.xaml
+    /// </summary>
+    public partial class Menu : Window
+    {
+        public Menu()
+        {
+            InitializeComponent();
+        }
+
+        private void InvoicesClick(object sender, RoutedEventArgs e)
+        {
+            Windows.Invoices inv = new Windows.Invoices();
+            inv.Show();
+            Close();
+        }
+    }
+}

+ 17 - 1
kursach_2.0/kursach_2.0.csproj

@@ -55,6 +55,12 @@
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </ApplicationDefinition>
+    <Compile Include="Windows\Invoices.xaml.cs">
+      <DependentUpon>Invoices.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Windows\Menu.xaml.cs">
+      <DependentUpon>Menu.xaml</DependentUpon>
+    </Compile>
     <Page Include="MainWindow.xaml">
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
@@ -67,6 +73,14 @@
       <DependentUpon>MainWindow.xaml</DependentUpon>
       <SubType>Code</SubType>
     </Compile>
+    <Page Include="Windows\Invoices.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Windows\Menu.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
   </ItemGroup>
   <ItemGroup>
     <Compile Include="Properties\AssemblyInfo.cs">
@@ -96,6 +110,8 @@
   <ItemGroup>
     <None Include="App.config" />
   </ItemGroup>
-  <ItemGroup />
+  <ItemGroup>
+    <Resource Include="Images\home.png" />
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>