Osnova.xaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <Window x:Class="Inventory.SystemAdminWindow"
  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:Inventory"
  8. mc:Ignorable="d"
  9. Title="SystemAdminWindow" WindowStartupLocation="CenterScreen" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ResizeMode="NoResize" Icon="Image/logo.png" Height="600" Width="1000" Loaded="Window_Loaded">
  10. <Grid MouseDown="Grid_MouseDown">
  11. <Border BorderThickness="0" Background="#516DF6" CornerRadius="35"/>
  12. <Border BorderThickness="0" Background="#F6F8FC" BorderBrush="Black" CornerRadius="35" Margin="16,86,694,54"/>
  13. <Label Content="Инвентаризация" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="36" Foreground="#F6F8FC" Width="307" Margin="117,16,576,538" Height="46"/>
  14. <Grid Margin="16,120,694,237">
  15. <StackPanel Orientation="Vertical" VerticalAlignment="Top" Margin="0,0,0,-175" Height="275">
  16. <Button Uid="0" Content="Главная" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
  17. <Button Uid="1" Content="Кабинеты" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
  18. <Button Uid="2" Content="Оборудование" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
  19. <Button Uid="3" Content="Учёт" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
  20. <Button Uid="4" Content="Настройки" FontFamily="Century Gothic" materialDesign:RippleAssist.Feedback="#516DF6" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Click="Button_Click" Margin="0,0,-0.4,0"/>
  21. </StackPanel>
  22. </Grid>
  23. <Grid x:Name="GridCursor" Width="8" Background="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="298,120,0,0" RenderTransformOrigin="0.5,0.5" Height="50">
  24. </Grid>
  25. <Image Source="Image/logo.png" Margin="50,399,733,76"/>
  26. <Button Content="{materialDesign:PackIcon Backburger, Size=50}" Background="Transparent" BorderThickness="0" Height="Auto" Margin="10,10,914,527" Click="Back"/>
  27. <Button Content="{materialDesign:PackIcon ExitToApp, Size=50}" Background="Transparent" BorderThickness="0" Height="Auto" Margin="904,10,10,527" Click="Exit"/>
  28. <Button Content="{materialDesign:PackIcon Kind=WindowMinimize, Size=50}" Background="Transparent" BorderThickness="0" Height="Auto" Margin="818,10,96,527" Click="Minimized"/>
  29. <TextBlock Name="timetxt" HorizontalAlignment="Center" FontFamily="Century Gothic" Margin="517,23,210,0" TextWrapping="Wrap" Foreground="White" FontSize="28" VerticalAlignment="Top" Height="46" Width="273"/>
  30. <Grid x:Name="gridglav" Visibility="Visible">
  31. <Image HorizontalAlignment="Left" Height="299" Margin="398,230,0,0" Source="Image/person.png" VerticalAlignment="Top" Width="352"/>
  32. <Image HorizontalAlignment="Left" Height="211" Margin="501,87,0,0" VerticalAlignment="Top" Width="284" Source="Image/dialog.png"/>
  33. <Label Name="labelpriv" Foreground="Black" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Century Gothic" FontSize="15" Margin="501,140,215,424" Width="284" Height="36" FontWeight="Bold"/>
  34. </Grid>
  35. <Grid x:Name="gridoborot" Visibility="Hidden">
  36. <TextBlock x:Name="idoborodtxt" Visibility="Hidden"/>
  37. <Border Background="White" BorderThickness="0" BorderBrush="Black" CornerRadius="35" Margin="330,86,10,54"/>
  38. <Label Content="Оборудование" HorizontalContentAlignment="Center" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="36" Foreground="Black" Width="307" Margin="515,96,178,458" Height="46"/>
  39. <TextBox x:Name="oborydname" Margin="345,201,285,354" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Наименование оборудования" materialDesign:TextFieldAssist.UnderlineBrush="Black" FontSize="18" MaxLength="25" TextChanged="Rus_TextChanged" KeyDown="oborydname_KeyDown"/>
  40. <Border Background="Black" Margin="330,181,10,418"/>
  41. <TextBox x:Name="poiskoboryd" Margin="735,201,95,354" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Поиск" materialDesign:TextFieldAssist.UnderlineBrush="Black" MaxLength="25" FontSize="18" TextChanged="poiskoboryd_TextChanged"/>
  42. <Image Source="Image/oboryd.png" Margin="356,284,270,30"/>
  43. <StackPanel Margin="356,267,285,263" Orientation="Horizontal">
  44. <Button x:Name="AddOborot" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="50,0,0,0" Click="Addoborod">
  45. <materialDesign:PackIcon Kind="Add" Width="30" Height="30"/>
  46. </Button>
  47. <Button x:Name="UpdateOborot" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0" Click="Updateoborod">
  48. <materialDesign:PackIcon Kind="Edit" Width="30" Height="30" />
  49. </Button>
  50. <Button x:Name="DeleteOborot" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0" Click="Deleteoborod">
  51. <materialDesign:PackIcon Kind="Delete" Width="30" Height="30" />
  52. </Button>
  53. </StackPanel>
  54. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" Margin="926,201,26,351" materialDesign:RippleAssist.Feedback="#516DF6" Click="Refreshoborod">
  55. <materialDesign:PackIcon Kind="Refresh" Height="30" Width="30"/>
  56. </Button>
  57. <DataGrid Name="dataoborod" HorizontalAlignment="Left" IsReadOnly="True" BorderThickness="1" BorderBrush="Black" Height="241" Margin="735,267,0,0" VerticalAlignment="Top" Width="239" SelectionChanged="dataoborod_SelectionChanged"/>
  58. </Grid>
  59. <Grid x:Name="gridkabinet" Visibility="Hidden">
  60. <TextBlock x:Name="idkabinettxt" Visibility="Hidden"/>
  61. <Border Background="White" BorderThickness="0" BorderBrush="Black" CornerRadius="35" Margin="330,86,10,54"/>
  62. <Label Content="Кабинеты" HorizontalContentAlignment="Center" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="36" Foreground="Black" Width="307" Margin="515,96,178,458" Height="46"/>
  63. <Border Background="Black" Margin="330,181,10,418"/>
  64. <TextBox x:Name="kabinetname" Margin="345,201,285,354" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Наименование кабинета" materialDesign:TextFieldAssist.UnderlineBrush="Black" FontSize="18" MaxLength="25" TextChanged="Rus_TextChanged" KeyDown="kabinetname_KeyDown"/>
  65. <TextBox x:Name="poiskabinet" Margin="735,201,95,354" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Поиск" materialDesign:TextFieldAssist.UnderlineBrush="Black" MaxLength="25" FontSize="18" TextChanged="poiskabinet_TextChanged"/>
  66. <Image Source="Image/kabinet.png" Margin="373,321,324,54"/>
  67. <StackPanel Margin="356,267,285,263" Orientation="Horizontal">
  68. <Button x:Name="AddKabinet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="50,0,0,0" Click="AddKabinet_Click">
  69. <materialDesign:PackIcon Kind="Add" Width="30" Height="30"/>
  70. </Button>
  71. <Button x:Name="UpdateKabinet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0" Click="UpdateKabinet_Click">
  72. <materialDesign:PackIcon Kind="Edit" Width="30" Height="30" />
  73. </Button>
  74. <Button x:Name="DeleteKabinet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0" Click="DeleteKabinet_Click">
  75. <materialDesign:PackIcon Kind="Delete" Width="30" Height="30" />
  76. </Button>
  77. </StackPanel>
  78. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" Margin="926,201,26,351" materialDesign:RippleAssist.Feedback="#516DF6" Click="RefreshKabinet">
  79. <materialDesign:PackIcon Kind="Refresh" Height="30" Width="30"/>
  80. </Button>
  81. <DataGrid Name="datakabinet" HorizontalAlignment="Left" IsReadOnly="True" BorderThickness="1" BorderBrush="Black" Height="241" Margin="735,267,0,0" VerticalAlignment="Top" Width="239" SelectionChanged="datakabinet_SelectionChanged"/>
  82. </Grid>
  83. <Grid Name="gridychet" Visibility="Hidden">
  84. <TextBlock x:Name="idychettxt" Visibility="Hidden"/>
  85. <Border Background="White" BorderThickness="0" BorderBrush="Black" CornerRadius="35" Margin="330,86,10,54"/>
  86. <Label Content="Учёт" HorizontalContentAlignment="Center" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="36" Foreground="Black" Width="307" Margin="515,96,178,458" Height="46"/>
  87. <Label Content="Сортировать по:" HorizontalContentAlignment="Left" HorizontalAlignment="Center" FontFamily="Century Gothic" VerticalAlignment="Center" FontSize="24" Foreground="Black" Width="207" Margin="348,216,445,338" Height="46"/>
  88. <Border Background="Black" Margin="330,267,10,332"/>
  89. <ComboBox Name="combocabinet" Margin="348,281,377,283" Height="36" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Кабинет" FontSize="18" materialDesign:TextFieldAssist.UnderlineBrush="Black"/>
  90. <ComboBox Name="combooboryd" Margin="348,335,377,229" Height="36" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Оборудование" FontSize="18" materialDesign:TextFieldAssist.UnderlineBrush="Black"/>
  91. <TextBox x:Name="kolvoychet" Margin="348,390,377,165" FontFamily="Century Gothic" Foreground="Black" materialDesign:HintAssist.Hint="Количество оборудования" materialDesign:TextFieldAssist.UnderlineBrush="Black" FontSize="18" MaxLength="5"/>
  92. <StackPanel Margin="348,447,377,83" Orientation="Horizontal">
  93. <Button x:Name="Addychet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="20,0,0,0">
  94. <materialDesign:PackIcon Kind="Add" Width="30" Height="30"/>
  95. </Button>
  96. <Button x:Name="Updateychet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0">
  97. <materialDesign:PackIcon Kind="Edit" Width="30" Height="30" />
  98. </Button>
  99. <Button x:Name="Deleteychet" Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" materialDesign:RippleAssist.Feedback="#516DF6" Margin="45,0,0,0">
  100. <materialDesign:PackIcon Kind="Delete" Width="30" Height="30" />
  101. </Button>
  102. </StackPanel>
  103. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="Black" Margin="926,201,26,351" materialDesign:RippleAssist.Feedback="#516DF6">
  104. <materialDesign:PackIcon Kind="Refresh" Height="30" Width="30"/>
  105. </Button>
  106. <DataGrid Name="dataychet" HorizontalAlignment="Left" IsReadOnly="True" BorderThickness="1" BorderBrush="Black" Height="252" Margin="632,281,0,0" VerticalAlignment="Top" Width="346" SelectionChanged="datakabinet_SelectionChanged"/>
  107. </Grid>
  108. </Grid>
  109. </Window>