|
@@ -0,0 +1,132 @@
|
|
|
+<Window x:Class="SkladProject.WorkerWindow"
|
|
|
+ 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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
+ xmlns:local="clr-namespace:SkladProject"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ Title="WorkerWindow" Height="450" Width="800" Icon="Image/icon.png" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" AllowsTransparency="True" Background="Transparent" Loaded="Window_Loaded">
|
|
|
+ <Grid MouseDown="Grid_MouseDown">
|
|
|
+ <Border Name="background" Background="#FFBEBDBF" CornerRadius="20,20,20,20"/>
|
|
|
+ <TextBlock Name="idusertxt" Visibility="Hidden"/>
|
|
|
+ <TextBlock Name="timetxt" TextAlignment="Center" HorizontalAlignment="Center" Foreground="#010101" FontFamily="Century Gothic" Margin="464,48,87,0" TextWrapping="Wrap" FontSize="22" VerticalAlignment="Top" Height="28" Width="249"/>
|
|
|
+ <StackPanel Margin="0,76,571,111.6" x:Name="panelka">
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="10">
|
|
|
+ <materialDesign:PackIcon Kind="User" Width="25" Height="32" Foreground="#010101"/>
|
|
|
+ <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Личный кабинет" Width="167" Click="UserInform"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="10">
|
|
|
+ <materialDesign:PackIcon Kind="Abacus" Width="25" Height="32" Foreground="#010101"/>
|
|
|
+ <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Продукция" Width="167" Click="Production"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="10">
|
|
|
+ <materialDesign:PackIcon Kind="Book" Width="25" Height="32" Foreground="#010101"/>
|
|
|
+ <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Документы" Width="167" Click="Document"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="10">
|
|
|
+ <materialDesign:PackIcon Kind="SwapHorizontalCircle" Width="25" Height="32" Foreground="#010101"/>
|
|
|
+ <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Движение" Width="167" Click="Traffic"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="10">
|
|
|
+ <materialDesign:PackIcon Kind="Information" Width="25" Height="32" Foreground="#010101"/>
|
|
|
+ <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Инф. Склад" Width="167" Click="SkladInfo"/>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ <Image HorizontalAlignment="Left" Source="Image/icon.png" Stretch="UniformToFill" Height="68" Margin="84,0,0,0" VerticalAlignment="Top" Width="72"/>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Margin="10,10,742,391.6" Click="Back">
|
|
|
+ <materialDesign:PackIcon Kind="Backburger" Foreground="#010101"/>
|
|
|
+ </Button>
|
|
|
+ <Button x:Name="WinMin" Style="{StaticResource MaterialDesignIconButton}" Margin="694,10,58,391.6" Click="WinMin_Click">
|
|
|
+ <materialDesign:PackIcon Kind="WindowMinimize" Foreground="#010101"/>
|
|
|
+ </Button>
|
|
|
+ <Button x:Name="Exit" Style="{StaticResource MaterialDesignIconButton}" Margin="742,10,10,391.6" Click="Exit_Click">
|
|
|
+ <materialDesign:PackIcon Kind="WindowClose" Foreground="#010101"/>
|
|
|
+ </Button>
|
|
|
+ <Grid Name="gridlich" Margin="229,76,10,9.6" Visibility="Hidden">
|
|
|
+ <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
|
|
|
+ <Label Content="Личный кабинет" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,26,0,285"/>
|
|
|
+ <StackPanel Margin="10,114,266,61" Orientation="Vertical">
|
|
|
+ <TextBlock Name="lastnametxt" Margin="10,0,0,0" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Height="30"/>
|
|
|
+ <TextBlock Name="firstnametxt" Margin="10,15,0,0" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Height="30"/>
|
|
|
+ <TextBlock Name="middlename" Margin="10,15,0,0" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Height="30"/>
|
|
|
+ <TextBlock Name="logintxt" Margin="10,15,0,0" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Height="30"/>
|
|
|
+ </StackPanel>
|
|
|
+ <Image Source="Image/kladmen.png" Margin="271,86,24,38"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Name="gridproduct" Margin="229,76,10,9.6" Visibility="Hidden">
|
|
|
+ <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
|
|
|
+ <Label Content="Продукция" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,26,0,285"/>
|
|
|
+ <TextBlock Name="idproducttxt" Visibility="Hidden"/>
|
|
|
+ <TextBox Name="productnametxt" Margin="10,122,301,197" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" MaxLength="25"
|
|
|
+ materialDesign:HintAssist.Hint="Наименование продукта" materialDesign:TextFieldAssist.UnderlineBrush="#010101" TextChanged="productnametxt_TextChanged"/>
|
|
|
+ <DatePicker Name="dateproduct" Foreground="#010101" Margin="10,172,301,144" Style="{StaticResource MaterialDesignFloatingHintDatePicker}" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontFamily="Century Gothic" SelectedDateFormat="Short" materialDesign:HintAssist.Hint="Срок хранения" Height="48"/>
|
|
|
+ <DataGrid Name="dataproduct" BorderBrush="#010101" BorderThickness="1" IsReadOnly="True" HorizontalAlignment="Left" Height="206" Margin="275,122,0,0" VerticalAlignment="Top" Width="268" SelectionChanged="dataproduct_SelectionChanged"/>
|
|
|
+ <StackPanel Margin="10,245,297,58" Orientation="Horizontal">
|
|
|
+ <Button x:Name="Add" Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="25,0,0,0" Click="Add_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Add" />
|
|
|
+ </Button>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="25,0,0,0" Click="Update_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Edit" />
|
|
|
+ </Button>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="25,0,0,0" Click="Delete_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Delete" />
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="495,74,18,242" Click="Refresh_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Refresh" />
|
|
|
+ </Button>
|
|
|
+ </Grid>
|
|
|
+ <Grid Name="gridprivet" Visibility="Hidden" Margin="287,76,36,83.6">
|
|
|
+ <Label Content="Склад готовой продукции" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="477" Margin="0,18,0,216"/>
|
|
|
+ <Image Source="Image/privet.png" Stretch="UniformToFill" Margin="10,-37,20,-66"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Name="gridskladinfo" Margin="229,76,10,9.6" Visibility="Hidden">
|
|
|
+ <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
|
|
|
+ <Label Content="Информация о складе" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,26,0,285"/>
|
|
|
+ <TextBlock Margin="10,171,131,121" TextWrapping="Wrap" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101"><Run Text="Юридический адрес: Томская обл., г.Томск, "/><LineBreak/><Run Text=" ул.Мелиоративная 12"/></TextBlock>
|
|
|
+ <TextBlock Margin="9,102,131,190" TextWrapping="Wrap" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101"><Run Text="Полное наименование: Склад готовой "/><LineBreak/><Run Text=" продукции"/></TextBlock>
|
|
|
+ <TextBlock Margin="9,243,114,49" TextWrapping="Wrap" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Text="Директор: Александров Дмитрий Даниилович"/>
|
|
|
+ <TextBlock Margin="9,292,114,0" TextWrapping="Wrap" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Text="Контактный телефон: 8(3822)4-15-66"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Name="griddocument" Margin="229,76,10,9.6" Visibility="Hidden">
|
|
|
+ <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
|
|
|
+ <Label Content="Документы" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,10,0,301"/>
|
|
|
+ <TextBlock Name="iddocumenttxt" Visibility="Hidden"/>
|
|
|
+ <TextBox Name="lastnamepost" Margin="9,54,334,274" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontWeight="Bold" FontFamily="Century Gothic" Foreground="#010101" MaxLength="25"
|
|
|
+ materialDesign:HintAssist.Hint="Фамилия поставщика" TextChanged="lastnamepost_TextChanged"/>
|
|
|
+ <TextBox Name="firstnamepost" Margin="9,90,334,239" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontWeight="Bold" FontFamily="Century Gothic" Foreground="#010101" MaxLength="15"
|
|
|
+ materialDesign:HintAssist.Hint="Имя поставщика" TextChanged="firstnamepost_TextChanged"/>
|
|
|
+ <TextBox Name="middlenamepost" Margin="9,127,334,202" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontWeight="Bold" FontFamily="Century Gothic" Foreground="#010101" MaxLength="25"
|
|
|
+ materialDesign:HintAssist.Hint="Отчество поставщика" TextChanged="middlenamepost_TextChanged"/>
|
|
|
+ <ComboBox Name="productcombo" Margin="230,45,111,274" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Style="{StaticResource MaterialDesignFloatingHintComboBox}"
|
|
|
+ materialDesign:HintAssist.Hint="Продукция" Height="45"/>
|
|
|
+ <TextBox Name="quantitydocument" Margin="232,90,111,239" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontWeight="Bold" FontFamily="Century Gothic" Foreground="#010101"
|
|
|
+ materialDesign:HintAssist.Hint="Количество" TextChanged="quantitydocument_TextChanged"/>
|
|
|
+ <DatePicker Name="datedocument" Foreground="#010101" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontWeight="Bold" Margin="230,115,111,202" Style="{StaticResource MaterialDesignFloatingHintDatePicker}" FontSize="18" FontFamily="Century Gothic" SelectedDateFormat="Short" materialDesign:HintAssist.Hint="Дата документа" Height="47"/>
|
|
|
+ <DataGrid Name="datadocument" BorderBrush="#010101" BorderThickness="1" IsReadOnly="True" HorizontalAlignment="Left" Height="135" Margin="10,174,0,0" VerticalAlignment="Top" Width="483" SelectionChanged="datadocument_SelectionChanged"/>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="503,166,10,150" Click="RefreshDocument_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Refresh" />
|
|
|
+ </Button>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="503,214,10,102" Click="AddDocument_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Add" />
|
|
|
+ </Button>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="503,262,10,54" Click="DeleteDocument_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Delete" />
|
|
|
+ </Button>
|
|
|
+ <TextBlock Name="vsegotxt" Margin="10,315,158,10" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101"/>
|
|
|
+ </Grid>
|
|
|
+ <Grid Name="gridtraffic" Margin="229,76,10,9.6" Visibility="Hidden">
|
|
|
+ <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
|
|
|
+ <Label Content="Движение" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,26,0,285"/>
|
|
|
+ <TextBlock Name="idtraffictxt" Visibility="Hidden"/>
|
|
|
+ <DataGrid Name="datatraffic" IsReadOnly="True" BorderBrush="#010101" BorderThickness="1" HorizontalAlignment="Left" Height="241" Margin="10,113,0,0" VerticalAlignment="Top" Width="493" SelectionChanged="datatraffic_SelectionChanged"/>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="508,192,5,124" Click="RefreshTraffic_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Delete" />
|
|
|
+ </Button>
|
|
|
+ <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="508,144,5,172" Click="DeleteTraffic_Click">
|
|
|
+ <materialDesign:PackIcon Kind="Refresh" />
|
|
|
+ </Button>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+</Window>
|