132 lines
5.6 KiB
XML
132 lines
5.6 KiB
XML
<EgtFloating:EgtFloatingPanel x:Class="OptionPanelSlabV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtWpfLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
xmlns:EgtFloating="clr-namespace:EgtWPFLib5.EgtFloating;assembly=EgtWPFLib5"
|
|
xmlns:EgtPHOTOLib="clr-namespace:EgtPHOTOLib"
|
|
Width="268" TitleBarOrientation="Vertical" IsToolBar="True"
|
|
Style="{StaticResource Option_EgtFloatingPanel}">
|
|
|
|
|
|
<EgtFloating:EgtFloatingPanel.Resources>
|
|
<EgtPHOTOLib:StateIndexConverter x:Key="StateIndexConverter"/>
|
|
</EgtFloating:EgtFloatingPanel.Resources>
|
|
|
|
<!-- il cmd "enter" viene intercettato da LostFocus.. -->
|
|
<EgtFloating:EgtFloatingPanel.InputBindings>
|
|
<KeyBinding Key="Enter" Command="{Binding RefreshPhoto_Command}"/>
|
|
</EgtFloating:EgtFloatingPanel.InputBindings>
|
|
|
|
<Button Command="{Binding PhotoCommand}"
|
|
Grid.Column="1"
|
|
Margin="5,0,5,5"
|
|
Visibility="{Binding PhotoCommand_Visibility}">
|
|
<Button.Style>
|
|
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource OptionPanel_Button}">
|
|
<EventSetter Event="MouseRightButtonDown" Handler="Photo_RightClick"/>
|
|
</Style>
|
|
</Button.Style>
|
|
<Image Source="/Resources/DetailPage/Photo.png" Stretch="Uniform"/>
|
|
</Button>
|
|
|
|
<UniformGrid Columns="2" Margin="5,0,5,0" IsEnabled="{Binding EnableParameters}">
|
|
|
|
<TextBlock Text="{Binding IdMsg}"/>
|
|
<TextBox Text="{Binding SelSlab.sNbrID, UpdateSourceTrigger=PropertyChanged}"
|
|
IsEnabled="{Binding EnableSlabId}"
|
|
CharacterCasing="{Binding SelSlab.CapsLock}"
|
|
Margin="13,0,0,5"
|
|
TextAlignment="Right"/>
|
|
|
|
<TextBlock Text="{Binding BlockMsg}" Visibility="{Binding VisibilityBlock}"/>
|
|
<TextBox Text="{Binding SelSlab.sNameBlock, UpdateSourceTrigger=PropertyChanged}"
|
|
Visibility="{Binding VisibilityBlock}"
|
|
CharacterCasing="{Binding SelSlab.CapsLock}"
|
|
Margin="13,0,0,5"
|
|
TextAlignment="Right"/>
|
|
|
|
<TextBlock Text="{Binding StateMsg}"/>
|
|
<ComboBox Name="ComboState"
|
|
ItemsSource="{Binding StateList}"
|
|
DisplayMemberPath="Name"
|
|
SelectedItem="{Binding SelState}"
|
|
Margin="13,0,0,5">
|
|
</ComboBox>
|
|
<!--<ComboBox.SelectedIndex>
|
|
<MultiBinding Converter="{StaticResource StateIndexConverter}">
|
|
<Binding Path="SelSlab.State" />
|
|
<Binding Path="StateList"/>
|
|
</MultiBinding>
|
|
</ComboBox.SelectedIndex>-->
|
|
|
|
|
|
<TextBlock Text="{Binding ProjectAssignedToMsg}"/>
|
|
<TextBox Text="{Binding SelSlab.ProjectAssignedTo}"
|
|
CharacterCasing="{Binding SelSlab.CapsLock}"
|
|
Margin="13,0,0,5"
|
|
TextAlignment="Right"/>
|
|
|
|
<TextBlock Text="{Binding MaterialMsg}"/>
|
|
<ComboBox ItemsSource="{Binding MaterialList}"
|
|
SelectedItem="{Binding SelSlab.Material}"
|
|
Margin="13,0,0,5"/>
|
|
|
|
<TextBlock Text="{Binding ThicknessMsg}"/>
|
|
<TextBox Text="{Binding SelSlab.Thickness, UpdateSourceTrigger=LostFocus}"
|
|
CharacterCasing="{Binding SelSlab.CapsLock}"
|
|
Margin="13,0,0,5"
|
|
TextAlignment="Right"/>
|
|
|
|
<TextBlock Text="{Binding WarehousePositionMsg}"/>
|
|
<TextBox Text="{Binding SelSlab.WarehousePosition}"
|
|
CharacterCasing="{Binding SelSlab.CapsLock}"
|
|
Margin="13,0,0,5"
|
|
TextAlignment="Right" />
|
|
<!--<EgtWpfLib5:EgtTextBox Text="{Binding SelSlab.WarehousePosition}"
|
|
Margin="13,0,0,5"
|
|
TextAlignment="Right"/>-->
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
<Button Command="{Binding Remove_Command}"
|
|
Content="{Binding RemoveMsg}"
|
|
Visibility="{Binding Remove_Visibility}"
|
|
Style="{StaticResource OptionPanel_TextButton}"
|
|
Margin="5,0,5,5"/>
|
|
|
|
<UniformGrid Columns="2" Margin="5,0,5,0">
|
|
|
|
<!--esci dalla finestra corrente senza salvare-->
|
|
<Button Command="{Binding Cancel_Command}"
|
|
Content="{Binding CancelMsg}"
|
|
Margin="0,0,2.5,5"
|
|
Style="{StaticResource OptionPanel_TextButton}"/>
|
|
|
|
<!--Salva le modificche della pagina-->
|
|
<Button Command="{Binding Ok_Command}"
|
|
Content="{Binding OkMsg}"
|
|
Visibility="{Binding OkMsg_Visibility}"
|
|
IsEnabled="{Binding Ok_IsEnabled}"
|
|
Margin="2.5,0,0,5"
|
|
Style="{StaticResource OptionPanel_TextButton}"/>
|
|
|
|
<!--Seleziona la lastra in OmagOFFICE-->
|
|
<Button Command="{Binding Selected_Command}"
|
|
Content="{Binding SelectMsg}"
|
|
Visibility="{Binding Select_Visibility}"
|
|
IsEnabled="{Binding Select_IsEnabled}"
|
|
Margin="0,0,2.5,5"
|
|
Style="{StaticResource OptionPanel_TextButton}"/>
|
|
<!--Stampa le info del pezzo in OmagPHOTO-->
|
|
<Button Command="{Binding Print_Command}"
|
|
Content="{Binding PrintMsg}"
|
|
Visibility="{Binding Print_Visibility}"
|
|
IsEnabled="{Binding Ok_IsEnabled}"
|
|
Margin="0,0,2.5,5"
|
|
Style="{StaticResource OptionPanel_TextButton}"/>
|
|
|
|
</UniformGrid>
|
|
|
|
</EgtFloating:EgtFloatingPanel>
|