-
Notifications
You must be signed in to change notification settings - Fork 6
/
MainWindow.xaml
153 lines (139 loc) · 11.8 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<Window x:Class="posk.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:posk"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:Converters="clr-namespace:MaterialDesignThemes.Wpf.Converters;assembly=MaterialDesignThemes.Wpf"
mc:Ignorable="d"
Height="800" Width="980"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="#FF080808"
AllowsTransparency="True" WindowStyle="None" WindowState="Maximized"
Title="">
<Grid>
<!-- AllowsTransparency="True" WindowStyle="None" WindowState="Maximized" -->
<Frame DockPanel.Dock="Right" x:Name="menuFrame" NavigationUIVisibility="Hidden" />
<Grid>
<Button x:Name="btnMenu" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FFA00A1E" Height="38" Width="60" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="4,6,0,0">
<materialDesign:PackIcon Kind="Menu" Height="30" Width="30" Foreground="#FFB8B8B8" />
</Button>
<DockPanel>
<Border DockPanel.Dock="Left">
<Expander
x:Name="expMenu"
ExpandDirection="Left"
Background="#FF00030C"
Foreground="#FFDFE8FF"
BorderBrush="Black"
BorderThickness="0"
HorizontalAlignment="Left"
HorizontalContentAlignment="Left"
Style="{DynamicResource ExpanderStyleSinHeader}">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel x:Name="spMenu" Orientation="Horizontal">
<StackPanel>
<StackPanel Margin="0 16 0 8">
<Ellipse Width="120" Height="112" Margin="16 0 16 0">
<Ellipse.Fill>
<ImageBrush x:Name="fotoUsuario"/>
</Ellipse.Fill>
</Ellipse>
<Label x:Name="lbNombreUsuario" Content="Christopher Kiessling" HorizontalContentAlignment="Center" FontSize="12" Foreground="#FFDFE8FF"/>
<Label x:Name="lbRol" Content="Administrador" HorizontalContentAlignment="Center" FontSize="10" Foreground="#FFDFE8FF"/>
</StackPanel>
<MenuItem x:Name="miVenta" Header="Venta" Height="54" FontSize="22"/>
<MenuItem x:Name="miMesas" Header="Mesas" Height="54" FontSize="22"/>
<Separator Height="8" Width="100" Background="#FF000104"/>
<Separator Height="8" Width="100" Background="#FF000104"/>
<StackPanel x:Name="spJornada" Orientation="Horizontal">
<MenuItem x:Name="miJornada" Header="Mi jornada" Height="36" FontSize="12"/>
<materialDesign:PackIcon Kind="MenuRight" VerticalAlignment="Center" Margin="-16 0 0 0"/>
</StackPanel>
<StackPanel x:Name="spStock" Orientation="Horizontal">
<MenuItem x:Name="miStock" Header="Stock" Height="36" FontSize="12"/>
<materialDesign:PackIcon Kind="MenuRight" VerticalAlignment="Center" Margin="-16 0 0 0"/>
</StackPanel>
<Separator Height="8" Width="100" Background="#FF000104"/>
<StackPanel x:Name="spAdmin">
<Separator Height="8" Width="100" Background="#FF000104"/>
<StackPanel x:Name="spEstadisticas" Orientation="Horizontal">
<MenuItem x:Name="miEstadisticas" Header="Estadísticas" Height="36" FontSize="12"/>
<materialDesign:PackIcon Kind="MenuRight" VerticalAlignment="Center" Margin="-16 0 0 0"/>
</StackPanel>
<StackPanel x:Name="spAdministrar" Orientation="Horizontal">
<MenuItem x:Name="miAdministrar" Header="Administrar" Height="36" FontSize="12"/>
<materialDesign:PackIcon Kind="MenuRight" VerticalAlignment="Center" Margin="-16 0 0 0"/>
</StackPanel>
</StackPanel>
<Separator Height="8" Width="100" Background="#FF000104"/>
<Separator Height="8" Width="100" Background="#FF000104"/>
<MenuItem x:Name="miOpciones" Header="Opciones" Height="36" FontSize="12"/>
<MenuItem x:Name="miInicio" Header="Cambiar usuario" Height="36" FontSize="12"/>
<Separator Height="8" Width="100" Background="#FF000104"/>
<MenuItem x:Name="miIniciarTerminarJornada" Header="Terminar jornada" Height="36" FontSize="12" Foreground="#FFE48505" Panel.ZIndex="100"/>
<Label x:Name="lbHoraInicioJornada" Content="Inició a las 00:00 hrs." Margin="18 -16 0 0" FontSize="8" Foreground="#FFE48505"/>
<Separator Height="8" Width="100" Background="#FF000104"/>
<Button x:Name="btnCerrar" Content="Cerrar sistema" FontSize="12" Style="{StaticResource BtnClear}" Background="{x:Null}" HorizontalAlignment="Left" Foreground="#FFB72511" Margin="24 0 0 0" />
</StackPanel>
<Expander x:Name="expMenuJornadaExtension" Style="{StaticResource ExpMenu}" Background="{x:Null}" ExpandDirection="Right">
<StackPanel x:Name="spMenuJornadaExtension">
<Separator Height="178" Width="100" Background="#F2080808" Visibility="Hidden"/>
<MenuItem x:Name="miJornadaResumen" Header="Resúmen" Height="36" FontSize="12"/>
<Separator Height="8" Width="100" Background="#FF000104"/>
<MenuItem x:Name="miGasto" Header="Gasto" Height="36" FontSize="12"/>
<MenuItem x:Name="miJornadaVentas" Header="Ventas realizadas" Height="36" FontSize="12" Visibility="Hidden"/>
</StackPanel>
</Expander>
<Expander x:Name="expMenuStockExtension" Style="{StaticResource ExpMenu}" Background="{x:Null}" ExpandDirection="Right">
<StackPanel x:Name="spMenuStockExtension">
<Separator Height="178" Width="100" Background="#F2080808" Visibility="Hidden"/>
<MenuItem x:Name="miCompra" Header="Compra" Height="36" FontSize="12"/>
<MenuItem x:Name="miDevolucion" Header="Devolución" Height="32" FontSize="12"/>
<MenuItem x:Name="miMerma" Header="Merma" Height="36" FontSize="12"/>
</StackPanel>
</Expander>
<Expander x:Name="expMenuAdministrarExtension" Style="{StaticResource ExpMenu}" Background="{x:Null}" ExpandDirection="Right">
<StackPanel x:Name="spMenuAdministrarExtension">
<Separator Height="178" Width="100" Background="#F2080808" Visibility="Hidden"/>
<MenuItem x:Name="miAdministrarProducto" Header="Item Venta" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarMateriaPrima" Header="Materia Prima" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarUsuario" Header="Usuarios" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarCliente" Header="Clientes" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarBoletas" Header="Boletas" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarSectoresCategorias" Header="Sectores y Categorias" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarRelaciones" Header="Relaciones de Categorias" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarPromociones" Header="Promociones" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarStock" Header="Stock" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarTipoDeProducto" Header="Tipo de Producto" Height="36" FontSize="12"/>
<MenuItem x:Name="miAdministrarRelacionesTipoDeProducto" Header="Relaciones Tipo de Producto" Height="36" FontSize="12"/>
</StackPanel>
</Expander>
<Expander x:Name="expMenuAdministrarExtensionEstadisticas" Style="{StaticResource ExpMenu}" Background="{x:Null}" ExpandDirection="Right">
<StackPanel x:Name="spMenuAdministrarExtensionEstadisticas">
<Separator Height="178" Width="100" Background="#F2080808" Visibility="Hidden"/>
<MenuItem x:Name="miEstadisticasRangoFechas" Header="Rango de Fechas" Height="36" FontSize="12"/>
<MenuItem x:Name="miEstadisticasJornada" Header="Jornada" Height="0" FontSize="12" Visibility="Hidden"/>
<MenuItem x:Name="miEstadisticasGlobalIngresos" Header="Global" Height="36" FontSize="12"/>
<MenuItem x:Name="miEstadisticasFecha" Header="Fecha" Height="0" FontSize="12" Visibility="Hidden"/>
<MenuItem x:Name="miEstadisticasStock" Header="Stock" Height="36" FontSize="12"/>
<MenuItem x:Name="miEstadisticasCliente" Header="Cliente" Height="36" FontSize="12" Visibility="Hidden"/>
<MenuItem x:Name="miEstadisticasUsuario" Header="Usuario" Height="36" FontSize="12" Visibility="Hidden"/>
</StackPanel>
</Expander>
</StackPanel>
</ScrollViewer>
</Expander>
</Border>
<Border DockPanel.Dock="Right">
<Grid x:Name="gridOverlay" Background="#33001855" Visibility="Hidden" Cursor="Hand" Opacity="0"/>
</Border>
</DockPanel>
</Grid>
</Grid>
</Window>