WorkerWindow.xaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <Window x:Class="SkladProject.WorkerWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  7. xmlns:local="clr-namespace:SkladProject"
  8. mc:Ignorable="d"
  9. Title="WorkerWindow" Height="450" Width="800" Icon="Image/icon.png" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" AllowsTransparency="True" Background="Transparent" Loaded="Window_Loaded">
  10. <Grid MouseDown="Grid_MouseDown">
  11. <Border Name="background" Background="#FFBEBDBF" CornerRadius="20,20,20,20"/>
  12. <TextBlock Name="idusertxt" Visibility="Hidden"/>
  13. <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"/>
  14. <StackPanel Margin="0,76,571,111.6" x:Name="panelka">
  15. <StackPanel Orientation="Horizontal" Margin="10">
  16. <materialDesign:PackIcon Kind="User" Width="25" Height="32" Foreground="#010101"/>
  17. <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Личный кабинет" Width="167" Click="UserInform"/>
  18. </StackPanel>
  19. <StackPanel Orientation="Horizontal" Margin="10">
  20. <materialDesign:PackIcon Kind="Abacus" Width="25" Height="32" Foreground="#010101"/>
  21. <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Продукция" Width="167" Click="Production"/>
  22. </StackPanel>
  23. <StackPanel Orientation="Horizontal" Margin="10">
  24. <materialDesign:PackIcon Kind="Book" Width="25" Height="32" Foreground="#010101"/>
  25. <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Документы" Width="167" Click="Document"/>
  26. </StackPanel>
  27. <StackPanel Orientation="Horizontal" Margin="10">
  28. <materialDesign:PackIcon Kind="SwapHorizontalCircle" Width="25" Height="32" Foreground="#010101"/>
  29. <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Движение" Width="167" Click="Traffic"/>
  30. </StackPanel>
  31. <StackPanel Orientation="Horizontal" Margin="10">
  32. <materialDesign:PackIcon Kind="Information" Width="25" Height="32" Foreground="#010101"/>
  33. <Button FontFamily="Century Gothic" materialDesign:ButtonAssist.CornerRadius="10" Background="#010101" Margin="5 0" BorderThickness="0" Content="Инф. Склад" Width="167" Click="SkladInfo"/>
  34. </StackPanel>
  35. </StackPanel>
  36. <Image HorizontalAlignment="Left" Source="Image/icon.png" Stretch="UniformToFill" Height="68" Margin="84,0,0,0" VerticalAlignment="Top" Width="72"/>
  37. <Button Style="{StaticResource MaterialDesignIconButton}" Margin="10,10,742,391.6" Click="Back">
  38. <materialDesign:PackIcon Kind="Backburger" Foreground="#010101"/>
  39. </Button>
  40. <Button x:Name="WinMin" Style="{StaticResource MaterialDesignIconButton}" Margin="694,10,58,391.6" Click="WinMin_Click">
  41. <materialDesign:PackIcon Kind="WindowMinimize" Foreground="#010101"/>
  42. </Button>
  43. <Button x:Name="Exit" Style="{StaticResource MaterialDesignIconButton}" Margin="742,10,10,391.6" Click="Exit_Click">
  44. <materialDesign:PackIcon Kind="WindowClose" Foreground="#010101"/>
  45. </Button>
  46. <Grid Name="gridlich" Margin="229,76,10,9.6" Visibility="Hidden">
  47. <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
  48. <Label Content="Личный кабинет" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,26,0,285"/>
  49. <StackPanel Margin="10,114,266,61" Orientation="Vertical">
  50. <TextBlock Name="lastnametxt" Margin="10,0,0,0" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Height="30"/>
  51. <TextBlock Name="firstnametxt" Margin="10,15,0,0" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Height="30"/>
  52. <TextBlock Name="middlename" Margin="10,15,0,0" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Height="30"/>
  53. <TextBlock Name="logintxt" Margin="10,15,0,0" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Height="30"/>
  54. </StackPanel>
  55. <Image Source="Image/kladmen.png" Margin="271,86,24,38"/>
  56. </Grid>
  57. <Grid Name="gridproduct" Margin="229,76,10,9.6" Visibility="Hidden">
  58. <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
  59. <Label Content="Продукция" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,26,0,285"/>
  60. <TextBlock Name="idproducttxt" Visibility="Hidden"/>
  61. <TextBox Name="productnametxt" Margin="10,122,301,197" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" MaxLength="25"
  62. materialDesign:HintAssist.Hint="Наименование продукта" materialDesign:TextFieldAssist.UnderlineBrush="#010101" TextChanged="productnametxt_TextChanged"/>
  63. <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"/>
  64. <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"/>
  65. <StackPanel Margin="10,245,297,58" Orientation="Horizontal">
  66. <Button x:Name="Add" Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="25,0,0,0" Click="Add_Click">
  67. <materialDesign:PackIcon Kind="Add" />
  68. </Button>
  69. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="25,0,0,0" Click="Update_Click">
  70. <materialDesign:PackIcon Kind="Edit" />
  71. </Button>
  72. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="25,0,0,0" Click="Delete_Click">
  73. <materialDesign:PackIcon Kind="Delete" />
  74. </Button>
  75. </StackPanel>
  76. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="495,74,18,242" Click="Refresh_Click">
  77. <materialDesign:PackIcon Kind="Refresh" />
  78. </Button>
  79. </Grid>
  80. <Grid Name="gridprivet" Visibility="Hidden" Margin="287,76,36,83.6">
  81. <Label Content="Склад готовой продукции" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="477" Margin="0,18,0,216"/>
  82. <Image Source="Image/privet.png" Stretch="UniformToFill" Margin="10,-37,20,-66"/>
  83. </Grid>
  84. <Grid Name="gridskladinfo" Margin="229,76,10,9.6" Visibility="Hidden">
  85. <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
  86. <Label Content="Информация о складе" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,26,0,285"/>
  87. <TextBlock Margin="10,171,131,121" TextWrapping="Wrap" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101"><Run Text="Юридический адрес: Томская обл., г.Томск, "/><LineBreak/><Run Text=" ул.Мелиоративная 12"/></TextBlock>
  88. <TextBlock Margin="9,102,131,190" TextWrapping="Wrap" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101"><Run Text="Полное наименование: Склад готовой "/><LineBreak/><Run Text=" продукции"/></TextBlock>
  89. <TextBlock Margin="9,243,114,49" TextWrapping="Wrap" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Text="Директор: Александров Дмитрий Даниилович"/>
  90. <TextBlock Margin="9,292,114,0" TextWrapping="Wrap" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Text="Контактный телефон: 8(3822)4-15-66"/>
  91. </Grid>
  92. <Grid Name="griddocument" Margin="229,76,10,9.6" Visibility="Hidden">
  93. <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
  94. <Label Content="Документы" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,10,0,301"/>
  95. <TextBlock Name="iddocumenttxt" Visibility="Hidden"/>
  96. <TextBox Name="lastnamepost" Margin="9,54,334,274" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontWeight="Bold" FontFamily="Century Gothic" Foreground="#010101" MaxLength="25"
  97. materialDesign:HintAssist.Hint="Фамилия поставщика" TextChanged="lastnamepost_TextChanged"/>
  98. <TextBox Name="firstnamepost" Margin="9,90,334,239" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontWeight="Bold" FontFamily="Century Gothic" Foreground="#010101" MaxLength="15"
  99. materialDesign:HintAssist.Hint="Имя поставщика" TextChanged="firstnamepost_TextChanged"/>
  100. <TextBox Name="middlenamepost" Margin="9,127,334,202" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontWeight="Bold" FontFamily="Century Gothic" Foreground="#010101" MaxLength="25"
  101. materialDesign:HintAssist.Hint="Отчество поставщика" TextChanged="middlenamepost_TextChanged"/>
  102. <ComboBox Name="productcombo" Margin="230,45,111,274" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101" Style="{StaticResource MaterialDesignFloatingHintComboBox}"
  103. materialDesign:HintAssist.Hint="Продукция" Height="45"/>
  104. <TextBox Name="quantitydocument" Margin="232,90,111,239" materialDesign:TextFieldAssist.UnderlineBrush="#010101" FontSize="18" FontWeight="Bold" FontFamily="Century Gothic" Foreground="#010101"
  105. materialDesign:HintAssist.Hint="Количество" TextChanged="quantitydocument_TextChanged"/>
  106. <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"/>
  107. <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"/>
  108. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="503,166,10,150" Click="RefreshDocument_Click">
  109. <materialDesign:PackIcon Kind="Refresh" />
  110. </Button>
  111. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="503,214,10,102" Click="AddDocument_Click">
  112. <materialDesign:PackIcon Kind="Add" />
  113. </Button>
  114. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="503,262,10,54" Click="DeleteDocument_Click">
  115. <materialDesign:PackIcon Kind="Delete" />
  116. </Button>
  117. <TextBlock Name="vsegotxt" Margin="10,315,158,10" FontWeight="Bold" FontSize="18" FontFamily="Century Gothic" Foreground="#010101"/>
  118. </Grid>
  119. <Grid Name="gridtraffic" Margin="229,76,10,9.6" Visibility="Hidden">
  120. <Border BorderBrush="#010101" BorderThickness="1" CornerRadius="20,20,20,20"/>
  121. <Label Content="Движение" FontWeight="Bold" HorizontalContentAlignment="Center" Foreground="#010101" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Width="561" Margin="0,26,0,285"/>
  122. <TextBlock Name="idtraffictxt" Visibility="Hidden"/>
  123. <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"/>
  124. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="508,192,5,124" Click="RefreshTraffic_Click">
  125. <materialDesign:PackIcon Kind="Delete" />
  126. </Button>
  127. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="#010101" Margin="508,144,5,172" Click="DeleteTraffic_Click">
  128. <materialDesign:PackIcon Kind="Refresh" />
  129. </Button>
  130. </Grid>
  131. </Grid>
  132. </Window>