You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
6.8 KiB
95 lines
6.8 KiB
<UserControl x:Class="SunlightCentralizedControlManagement_SCCM_.View.ProductionPlanningView "
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.View"
|
|
xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties"
|
|
xmlns:ConvertMoels="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ConvertMoels"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:viewmodel="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ViewModel"
|
|
xmlns:Ngantt="clr-namespace:nGantt;assembly=nGantt"
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:MainWindowViewModel}"
|
|
mc:Ignorable="d" Loaded="UserControl_Loaded"
|
|
d:DesignHeight="900" d:DesignWidth="1800">
|
|
<UserControl.Resources>
|
|
<ConvertMoels:RowToIndexConverter x:Key="RowToIndexConverter"/>
|
|
</UserControl.Resources>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="60"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Ngantt:GanttControl x:Name="GanttChart"/>
|
|
<ContentControl x:Name="Picture" HorizontalAlignment="Right" />
|
|
</Grid>
|
|
|
|
<StackPanel Grid.Row="1" Height="60" Background="#FF00204E" Orientation="Horizontal">
|
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
|
<ListViewItem Height="60" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Horizontal" >
|
|
<materialDesign:PackIcon Kind="DateRange" Width="40" Height="30" Margin="10" VerticalAlignment="Center"/>
|
|
<TextBlock Text="{x:Static lang:Resources.SelectDate}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
<DatePicker x:Name="Sdatepicker" Width="150" FontSize="20" Height="40" FontWeight="Bold" Padding="1,1,0,1"
|
|
Focusable="False" Text="{x:Static lang:Resources.Startdate}" SelectedDateChanged="Sdatepicker_SelectedDateChanged" />
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
</ListView>
|
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_Before" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Horizontal" >
|
|
<materialDesign:PackIcon Kind="NavigateBefore" Width="40" Height="30" Margin="10" VerticalAlignment="Center"/>
|
|
<TextBlock Text="{x:Static lang:Resources.Before}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
</ListView>
|
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_Today" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Horizontal" >
|
|
<materialDesign:PackIcon Kind="NavigationVariantOutline" Width="40" Height="30" Margin="10" VerticalAlignment="Center"/>
|
|
<TextBlock Text="{x:Static lang:Resources.Today}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
</ListView>
|
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
|
<ListViewItem Height="60" MouseLeftButtonUp="ListViewItem_DayAfter" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Horizontal" >
|
|
<materialDesign:PackIcon Kind="NavigateNext" Width="40" Height="30" Margin="10" VerticalAlignment="Center"/>
|
|
<TextBlock Text="{x:Static lang:Resources.DayAfter}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
</ListView>
|
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
|
<ListViewItem Height="60" x:Name="WNumder">
|
|
<StackPanel Orientation="Horizontal" >
|
|
<materialDesign:PackIcon Kind="Number0CircleOutline" Width="40" Height="30" VerticalAlignment="Center"/>
|
|
<TextBlock Text="{x:Static lang:Resources.WorkOrderNumder}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
<TextBox x:Name="Select_WorkOrderNumder" Width="300" Background="White" FontSize="20" VerticalAlignment="Center" Height="40" />
|
|
<Button Width="80" Height="40" VerticalAlignment="Center" Click="WorkOrderNumder_Click" Content="{x:Static lang:Resources.Search}"/>
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
</ListView>
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Height="60" Background="#FF00204E" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
|
<ListViewItem Width="150" MouseLeftButtonUp="ListViewItem_Plan" IsEnabled="{Binding USER_Capacity[5]}">
|
|
<StackPanel Orientation="Horizontal" >
|
|
<materialDesign:PackIcon Kind="MoonNew" Width="40" Height="30" Margin="10" VerticalAlignment="Center" Foreground="#FF1368BD"/>
|
|
<TextBlock Text="{x:Static lang:Resources.Plan}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
</ListView>
|
|
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD">
|
|
<ListViewItem Width="150" MouseLeftButtonUp="ListViewItem_New" x:Name="Quit" IsEnabled="{Binding USER_Capacity[5]}">
|
|
<StackPanel Orientation="Horizontal" >
|
|
<materialDesign:PackIcon Kind="NewBox" Width="40" Height="30" Margin="10" VerticalAlignment="Center" Foreground="#FF1368BD"/>
|
|
<TextBlock Text="{x:Static lang:Resources.New}" VerticalAlignment="Center" Margin="20 10" Foreground="White"/>
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
</ListView>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|
|
|