Compare commits
60 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 056a3f009b | |||
| 51ad8f4c0a | |||
| 5154f2e379 | |||
| 5041aeafcb | |||
| 4d3b6f192c | |||
| 2a148d350c | |||
| cd3cf4bf64 | |||
| b042a6cfe3 | |||
| f7e8dc441d | |||
| 18a9bd1f32 | |||
| db2c643630 | |||
| a41ff0801b | |||
| 83e9970c54 | |||
| 13656be1fc | |||
| 61e124af02 | |||
| 0e32a15f3b | |||
| ab9f90727c | |||
| 9af16ee1d4 | |||
| 5619e2af37 | |||
| 022aeb8595 | |||
| 7f4d94376d | |||
| 48d498ed2f | |||
| 68f501b064 | |||
| afe74550ff | |||
| 6e7f68745e | |||
| b5388c02b5 | |||
| 9c159da137 | |||
| 76165af2e7 | |||
| 779afbe2ff | |||
| d079301d7a | |||
| 2625bb4737 | |||
| fa3cfed5ac | |||
| 9c04a5f011 | |||
| 2cad0e5db0 | |||
| d96b68932f | |||
| 227f289b5a | |||
| 5afe7bf01a | |||
| 5db3d10fe4 | |||
| 9f991c2c55 | |||
| a57298e7ad | |||
| 6f78f45664 | |||
| e713c03389 | |||
| 6996586dd5 | |||
| 505311b315 | |||
| 9197e1294d | |||
| bdf7909381 | |||
| 338a53eec4 | |||
| 52cb5f19ad | |||
| 70959caf16 | |||
| e17392de71 | |||
| 7de59fd9e1 | |||
| 18246ddfc7 | |||
| ffe809cdb2 | |||
| 06879aaba4 | |||
| e557fb0338 | |||
| ef74d3a9e7 | |||
| 4166ecdfa9 | |||
| 9223c978ec | |||
| bf648b14fe | |||
| 789e3c64cc |
@@ -8,38 +8,47 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Style="{StaticResource List_StackPanel}">
|
||||
<StackPanel Orientation="Vertical"
|
||||
Margin="5,5,5,0">
|
||||
<GroupBox Header="{Binding CurrentLanguage_Msg}"
|
||||
Style="{StaticResource Warehouse_GroupBox}">
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource Optimizer_GroupBox}">
|
||||
<UniformGrid Rows="2"
|
||||
Style="{StaticResource General_UniformGrid}">
|
||||
Margin="3">
|
||||
<ComboBox ItemsSource="{Binding LanguageList, Mode=OneWay}"
|
||||
SelectedItem="{Binding SelectedLanguage}"
|
||||
DisplayMemberPath="Name"
|
||||
Style="{StaticResource General_ComboBox}"/>
|
||||
Height="25"
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<TextBlock Text="{Binding LanguageAdvert_Msg}"
|
||||
Style="{StaticResource General_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
TextWrapping="Wrap"/>
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
<UniformGrid Columns="2"
|
||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
||||
Margin="0,0,0,5">
|
||||
<TextBlock Text="{Binding MMUnits_Msg}"
|
||||
Style="{StaticResource MMUnits_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"/>
|
||||
<ComboBox ItemsSource="{Binding UnitMeasureList, Mode=OneWay}"
|
||||
SelectedIndex="{Binding SelMeasureUnit}"
|
||||
Style="{StaticResource UnitMeasureList_ComboBox}"/>
|
||||
Height="25"
|
||||
Margin="0,5,0,0"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
</UniformGrid>
|
||||
<GroupBox Header="{Binding Nesting_Msg}"
|
||||
Style="{StaticResource Warehouse_GroupBox}">
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource Optimizer_GroupBox}">
|
||||
<StackPanel>
|
||||
<UniformGrid Columns="2"
|
||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
||||
Margin="0,5,0,5">
|
||||
<TextBlock Text="{Binding SectionTime_Msg}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding SectionTime, UpdateSourceTrigger=Explicit}"/>
|
||||
</UniformGrid>
|
||||
<UniformGrid Columns="2"
|
||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
||||
Margin="0,0,0,5">
|
||||
<TextBlock Grid.Row="1" Text="{Binding PartTime_Msg}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
@@ -48,11 +57,12 @@
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<UniformGrid Columns="2"
|
||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
||||
Margin="0,0,0,5">
|
||||
<TextBlock Text="{Binding PrintLabel_Msg}"
|
||||
Style="{StaticResource MMUnits_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"/>
|
||||
<CheckBox IsChecked="{Binding bPrintLabel_IsChecked}"
|
||||
Style="{StaticResource General_CheckBox}"/>
|
||||
Margin="0,5,0,0"/>
|
||||
</UniformGrid>
|
||||
<GroupBox Header="{Binding BackupRestore_Msg}"
|
||||
Style="{StaticResource Optimizer_GroupBox}">
|
||||
@@ -63,33 +73,36 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Style="{StaticResource General_Grid}">
|
||||
<Grid Margin="0,2,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<CheckBox x:Name="ExternalBackup_CheckBox"
|
||||
IsChecked="{Binding bExternalBackupActive}"
|
||||
Style="{StaticResource PParameters_CheckBox}"/>
|
||||
VerticalAlignment="Center"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding External_Msg}"
|
||||
Style="{StaticResource Ext_TextBlock}"/>
|
||||
VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1"
|
||||
Style="{StaticResource General_Grid}">
|
||||
Margin="0,2,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox Text="{Binding ExternalBackupFolderPath}"
|
||||
IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
|
||||
Style="{StaticResource General_TextBox}"/>
|
||||
Margin="0,0,2.5,0"/>
|
||||
<Button Grid.Column="1"
|
||||
Content="..."
|
||||
Foreground="{StaticResource BeamWall_White}"
|
||||
Command="{Binding ChooseExternalBackupFolderPath_Command}"
|
||||
IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
|
||||
Style="{StaticResource General_Button}"/>
|
||||
Foreground="{StaticResource BeamWall_White}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Margin="2.5,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</Grid>
|
||||
<Grid Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -100,39 +113,24 @@
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding ReminderList}"
|
||||
SelectedItem="{Binding SelReminder}"
|
||||
Style="{StaticResource GeneralConfiguration_ComboBox}" />
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
</Grid>
|
||||
<StackPanel Grid.Row="3"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
<Button Content="{Binding Backup_Msg}"
|
||||
Command="{Binding Backup_Command}"
|
||||
Style="{StaticResource MovePartInRawPartWnd_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="{Binding Restore_Msg}"
|
||||
Command="{Binding Restore_Command}"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<!--<UniformGrid Columns="2"
|
||||
Style="{StaticResource GeneralConfiguration_UniformGrid}">
|
||||
<TextBlock Text="{Binding Import_Msg}"
|
||||
Style="{StaticResource MMUnits_TextBlock}"/>
|
||||
<CheckBox IsChecked="{Binding bVerifyImportBTL_IsChecked}"
|
||||
Style="{StaticResource General_CheckBox}"/>
|
||||
</UniformGrid>
|
||||
<GroupBox Header="{Binding Tema_Msg}"
|
||||
Style="{StaticResource Warehouse_GroupBox}">
|
||||
<UniformGrid Rows="2"
|
||||
Style="{StaticResource General_UniformGrid}">
|
||||
<ComboBox ItemsSource="{Binding Themes, Mode=OneWay}"
|
||||
SelectedItem="{Binding SelectedTheme}"
|
||||
DisplayMemberPath="Name"
|
||||
Style="{StaticResource General_ComboBox}"/>
|
||||
<TextBlock Text="{Binding TemaAdvert_Msg}"
|
||||
Style="{StaticResource General_TextBlock}"/>
|
||||
</UniformGrid>
|
||||
</GroupBox>-->
|
||||
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
@@ -14,36 +14,38 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<GroupBox Style="{StaticResource MachineConfiguration_GroupBox}">
|
||||
<GroupBox Padding="5,10,5,5"
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<EgtBEAMWALLCORE:MachinePanelV DataContext="{Binding MachinePanelVM}" VerticalAlignment="Center"/>
|
||||
</GroupBox>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="1"
|
||||
Visibility="{Binding MachineParameter_Visibility}"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
<ItemsControl ItemsSource="{Binding ConfigMachTableList}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<StackPanel x:Name="GroupStackPanel"
|
||||
Style="{StaticResource PartManager_StackPanel}"/>
|
||||
Orientation="Horizontal"/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<GroupBox Header="{Binding sName}"
|
||||
Style="{StaticResource MachineParam_GroupBox}">
|
||||
VerticalAlignment="Top"
|
||||
Style="{StaticResource Optimizer_GroupBox}">
|
||||
<ItemsControl Name="MachParamsItemsControl"
|
||||
ItemsSource="{Binding MachParamList}"
|
||||
Style="{StaticResource MachinePanel_ItemsControl}">
|
||||
Margin="0,5,0,0">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Style="{StaticResource Project_WrapPanel}"/>
|
||||
<WrapPanel Orientation="Vertical"/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Style="{StaticResource MachParam_Grid}">
|
||||
<Grid Margin="0,0,5,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
@@ -51,14 +53,18 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding sName}"
|
||||
ToolTip="{Binding sName}"
|
||||
Style="{StaticResource MachinePanel_TextBlock}"/>
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Width="150"
|
||||
Style="{StaticResource MachParam_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||
Style="{StaticResource MachineConfiguration_TextBox}"/>
|
||||
Width="60"/>
|
||||
<TextBlock Grid.Column="2"
|
||||
Text="{Binding sDescription}"
|
||||
ToolTip="{Binding sDescription}"
|
||||
Style="{StaticResource Description_TextBlock}"/>
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Width="148"
|
||||
Style="{StaticResource MachParam_TextBlock}"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
@@ -73,9 +79,14 @@
|
||||
Command="{Binding SaveCommand}"
|
||||
ToolTip="{Binding SaveToolTip}"
|
||||
Visibility="{Binding Machine_Visibility}"
|
||||
Style="{StaticResource SaveMachinePanel_Button}">
|
||||
<Image Source="{StaticResource Save_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Bottom"
|
||||
Height="50"
|
||||
Width="50"
|
||||
Margin="50"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="/Resources/ProjectManager/Save.png"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -56,8 +56,8 @@
|
||||
<Reference Include="EgwProxy.LiMan, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EgwProxy.LiMan.1.0.2408.718\lib\EgwProxy.LiMan.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EgwWPFBaseLib, Version=3.1.1.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EgwWPFBaseLib.3.1.1.2\lib\EgwWPFBaseLib.dll</HintPath>
|
||||
<Reference Include="EgwWPFBaseLib, Version=3.1.7.3, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EgwWPFBaseLib.3.1.7.3\lib\EgwWPFBaseLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||
@@ -182,7 +182,7 @@
|
||||
<Compile Include="OpenProjectFileDialog\OpenProjectFileDialogV.xaml.vb">
|
||||
<DependentUpon>OpenProjectFileDialogV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OptmizerWindow\OptimizerWindow.vb" />
|
||||
<Compile Include="OptimizerWindow\OptimizerWindow.vb" />
|
||||
<Compile Include="TitleBar\TitleBarV.xaml.vb">
|
||||
<DependentUpon>TitleBarV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
||||
@@ -10,30 +10,32 @@
|
||||
Width="750" Height="450"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TabControl>
|
||||
<TabItem Header="{Binding BasicColor_Msg}">
|
||||
<Grid Style="{StaticResource EgtColorPicker_Grid}">
|
||||
<Grid HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<ListBox ItemsSource="{Binding BasicColors}"
|
||||
SelectedItem="{Binding SelColor}"
|
||||
Style="{StaticResource EgtColorPicker_ListBox}">
|
||||
HorizontalAlignment="Center"
|
||||
BorderThickness="0">
|
||||
<ListBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<UniformGrid Columns="13"/>
|
||||
@@ -42,7 +44,11 @@
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Rectangle Fill="{Binding Fill}"
|
||||
Style="{StaticResource EgtColorPicker_Rectangle}"/>
|
||||
Stroke="{StaticResource BeamWall_Black}"
|
||||
StrokeThickness="0.5"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Margin="2"/>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
<ListBox.ItemContainerStyle>
|
||||
@@ -77,14 +83,15 @@
|
||||
</EgtWPFLib5:EgtHexList>
|
||||
</TabItem>
|
||||
<TabItem Header="{Binding ColorPickerTheme_Msg}">
|
||||
<Grid Style="{StaticResource EgtColorPicker_Grid}">
|
||||
<Grid HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<ListBox ItemsSource="{Binding BasicColorsTheme}"
|
||||
SelectedItem="{Binding SelColorTheme}"
|
||||
Style="{StaticResource BasicColor_ListBox}">
|
||||
BorderThickness="0">
|
||||
<ListBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<UniformGrid Columns="13"/>
|
||||
@@ -93,7 +100,11 @@
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Rectangle Fill="{Binding Fill}"
|
||||
Style="{StaticResource EgtColorPicker_Rectangle}"/>
|
||||
Stroke="{StaticResource BeamWall_Black}"
|
||||
StrokeThickness="0.5"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Margin="2"/>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
<ListBox.ItemContainerStyle>
|
||||
@@ -108,14 +119,16 @@
|
||||
</TabControl>
|
||||
</Grid>
|
||||
<Grid Grid.Column="1"
|
||||
Style="{StaticResource CustomerColor_Grid}">
|
||||
Margin="5,0,0,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding CustomColor_Msg}"
|
||||
Style="{StaticResource EgtColorPicker_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
Margin="5,18,5,10"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -123,7 +136,9 @@
|
||||
</Grid.RowDefinitions>
|
||||
<ListBox ItemsSource="{Binding CustomColors}"
|
||||
SelectedItem="{Binding SelCustomColor}"
|
||||
Style="{StaticResource CustomerColor_ListBox}">
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
HorizontalAlignment="Center">
|
||||
<ListBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<UniformGrid Columns="13"/>
|
||||
@@ -132,7 +147,11 @@
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Rectangle Fill="{Binding Fill}"
|
||||
Style="{StaticResource EgtColorPicker_Rectangle}"/>
|
||||
Stroke="{StaticResource BeamWall_Black}"
|
||||
StrokeThickness="0.5"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Margin="2"/>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
<ListBox.ItemContainerStyle>
|
||||
@@ -144,23 +163,29 @@
|
||||
</ListBox>
|
||||
</Grid>
|
||||
<Grid Grid.Row="2"
|
||||
Style="{StaticResource CurrColor_Grid}">
|
||||
Margin="0,20,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Style="{StaticResource AddColor_Grid}">
|
||||
<Grid HorizontalAlignment="Left"
|
||||
Margin="0,10,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Rectangle Fill="{Binding CurrColor}"
|
||||
Style="{StaticResource CurrColor_Rectangle}"/>
|
||||
Stroke="{StaticResource BeamWall_Black}"
|
||||
StrokeThickness="0.5"
|
||||
Height="70"
|
||||
Width="100"
|
||||
Margin="0"/>
|
||||
<Button Grid.Row="1"
|
||||
x:Name="SaveColor"
|
||||
Content="{Binding AddCColor_Msg}"
|
||||
Command="{Binding SaveColor_Command}"
|
||||
Style="{StaticResource EgtColorPicker_TextButton}"/>
|
||||
Height="30"
|
||||
Margin="0,10,0,0"/>
|
||||
</Grid>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -174,45 +199,79 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding Red_Msg}"
|
||||
Style="{StaticResource RedColor_TextBlock}"/>
|
||||
HorizontalAlignment="Right"
|
||||
Margin="0,10,5,0"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Red, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource RedColor_TextBox}"/>
|
||||
IsReadOnly="False"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalContentAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="65"
|
||||
Margin="0,5,5,0"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding Green_Msg}"
|
||||
Style="{StaticResource GreenColor_TextBlock}"/>
|
||||
HorizontalAlignment="Right"
|
||||
Margin="5,5,5,0"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBox Grid.Column="1"
|
||||
Grid.Row="1"
|
||||
Text="{Binding Green, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource GreenColor_TextBox}"/>
|
||||
IsReadOnly="False"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalContentAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="65"
|
||||
Margin="5,5,5,0"/>
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="{Binding Blu_Msg}"
|
||||
Style="{StaticResource GreenColor_TextBlock}"/>
|
||||
HorizontalAlignment="Right"
|
||||
Margin="5,5,5,0"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBox Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Blue, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource GreenColor_TextBox}"/>
|
||||
IsReadOnly="False"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalContentAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="65"
|
||||
Margin="5,5,5,0"/>
|
||||
<TextBlock Grid.Row="3"
|
||||
Text="{Binding Hexadecimal_Msg}"
|
||||
Style="{StaticResource GreenColor_TextBlock}"/>
|
||||
HorizontalAlignment="Right"
|
||||
Margin="5,5,5,0"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBox Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Hexadecimal}"
|
||||
Style="{StaticResource GreenColor_TextBox}"/>
|
||||
IsReadOnly="False"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalContentAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="65"
|
||||
Margin="5,5,5,0"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<UniformGrid Grid.Row="2"
|
||||
Rows="1"
|
||||
Style="{StaticResource EgtColorPicker_UniformGrid}">
|
||||
Margin="10,10,10,5">
|
||||
<Button IsDefault="True"
|
||||
Content="OK"
|
||||
Command="{Binding Ok_Command}"
|
||||
Style="{StaticResource EgtColorPicker_HalfRound_Button}"/>
|
||||
Height="24"
|
||||
Width="64"
|
||||
Margin="2.5,0,2.5,2"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="Cancel"
|
||||
Command="{Binding Cancel_Command}"
|
||||
Style="{StaticResource EgtColorPicker_HalfRound_Button}"/>
|
||||
Height="24"
|
||||
Width="64"
|
||||
Margin="2.5,0,2.5,2"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -9,66 +9,86 @@
|
||||
Height="650" Width="1000"
|
||||
Style="{StaticResource OptimizerWindow.Dialog}">
|
||||
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Command="{Binding GoBack_Command}"
|
||||
Style="{StaticResource RightPanel_Button}">
|
||||
<Image Source="{DynamicResource Restore_Image}"
|
||||
Style="{StaticResource Button_Image}"/>
|
||||
HorizontalAlignment="Right"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="1"
|
||||
Height="24"
|
||||
Width="64"
|
||||
FontSize="12"
|
||||
Margin="2.5,0,5,0">
|
||||
<Image Source="{StaticResource Restore_Image}"
|
||||
Height="15"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding sSelPath}"
|
||||
Style="{StaticResource EgtManageDialog_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
Margin="5"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<ComboBox Grid.Column="2"
|
||||
ItemsSource="{Binding ViewModeList}"
|
||||
SelectedItem="{Binding SelViewMode}"
|
||||
Style="{StaticResource EgtManageDialog_ComboBox}">
|
||||
HorizontalAlignment="Right"
|
||||
BorderThickness="1"
|
||||
Height="25"
|
||||
Width="200"
|
||||
IsSynchronizedWithCurrentItem="True"
|
||||
Margin="2.5,5,2.5,5">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Source="{Binding Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
<TextBlock Text="{Binding Name}"
|
||||
Style="{StaticResource ComboManageDialog_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
Margin="10,0,0,0"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1"
|
||||
Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
Margin="5,5,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="4*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TreeView x:Name="FileTree"
|
||||
ItemsSource="{Binding RootList}"
|
||||
Style="{StaticResource EgtManageDialog_TreeView}">
|
||||
BorderBrush="{StaticResource BeamWall_White}"
|
||||
FontSize="15"
|
||||
Margin="10">
|
||||
<TreeView.Resources>
|
||||
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:EgtFolder}"
|
||||
ItemsSource="{Binding TreeItemList_View}">
|
||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Source="{Binding sIconSource}"
|
||||
Style="{StaticResource Button_Image}"/>
|
||||
Height="15"
|
||||
Stretch="Uniform"/>
|
||||
<TextBlock Text="{Binding sName}"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</StackPanel>
|
||||
</HierarchicalDataTemplate>
|
||||
<DataTemplate DataType="{x:Type EgtWPFLib5:EgtItem}">
|
||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Image Source="{Binding sIconSource}"
|
||||
Style="{StaticResource Button_Image}"/>
|
||||
Height="15"
|
||||
Stretch="Uniform"/>
|
||||
<TextBlock Text="{Binding sName}"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</StackPanel>
|
||||
@@ -83,7 +103,9 @@
|
||||
</TreeView>
|
||||
<TabControl Grid.Column="1"
|
||||
SelectedIndex="{Binding nSelTab}"
|
||||
Style="{StaticResource EgtManageDialog_TabControl}">
|
||||
Background="Transparent"
|
||||
BorderBrush="{StaticResource BeamWall_White}"
|
||||
BorderThickness="0">
|
||||
<TabControl.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type TabItem}">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
@@ -97,13 +119,15 @@
|
||||
<ListBox.Resources>
|
||||
<DataTemplate x:Key="ListTemplateView"
|
||||
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||
<Grid Style="{StaticResource EgtManageDialog_Grid}">
|
||||
<Grid Height="20"
|
||||
Margin="5,5,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Source="{Binding sIconSource}"
|
||||
Style="{StaticResource Button_Image}"/>
|
||||
Height="15"
|
||||
Stretch="Uniform"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding sName}"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
@@ -111,28 +135,38 @@
|
||||
</DataTemplate>
|
||||
<DataTemplate x:Key="TilesTemplateView"
|
||||
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||
<Grid Style="{StaticResource EgtDirectory_Grid}">
|
||||
<Grid Height="50"
|
||||
Width="250"
|
||||
Margin="5,5,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Source="{Binding sIconSource}"
|
||||
Style="{StaticResource Button_Image}"/>
|
||||
Height="15"
|
||||
Stretch="Uniform"/>
|
||||
<UniformGrid Grid.Column="1"
|
||||
Rows="3"
|
||||
Style="{StaticResource EgtManageDialog_UniformGrid}">
|
||||
Margin="2.5,0,2.5,5">
|
||||
<TextBlock Text="{Binding sName}"
|
||||
Style="{StaticResource Info_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
TextAlignment="Left"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBlock Text="{Binding ghTypeItem}"
|
||||
Style="{StaticResource Info_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
TextAlignment="Left"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBlock Text="{Binding sDimension}"
|
||||
Style="{StaticResource Info_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
TextAlignment="Left"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
<DataTemplate x:Key="ContentTemplateView"
|
||||
DataType="{x:Type EgtWPFLib5:EgtDirectory}">
|
||||
<Grid Style="{StaticResource ContentTemplate_Grid}">
|
||||
<Grid Height="50"
|
||||
Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -144,26 +178,36 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Source="{Binding sIconSource}"
|
||||
Style="{StaticResource Button_Image}"/>
|
||||
Height="15"
|
||||
Stretch="Uniform"/>
|
||||
<UniformGrid Grid.Column="1"
|
||||
Rows="2"
|
||||
Style="{StaticResource EgtManageDialog_UniformGrid}">
|
||||
Margin="2.5,0,2.5,5">
|
||||
<TextBlock Text="{Binding sName}"
|
||||
Style="{StaticResource Info_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
TextAlignment="Left"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBlock Text="{Binding ghTypeItem}"
|
||||
Style="{StaticResource Info_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
TextAlignment="Left"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</UniformGrid>
|
||||
<UniformGrid Grid.Column="2"
|
||||
Rows="2"
|
||||
Style="{StaticResource EgtManageDialog_UniformGrid}">
|
||||
Margin="2.5,0,2.5,5">
|
||||
<TextBlock Text="{Binding sLastModifyDate}"
|
||||
Style="{StaticResource Info_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
TextAlignment="Left"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBlock Text="{Binding sDimension}"
|
||||
Style="{StaticResource Info_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
TextAlignment="Left"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
<Border Grid.Row="1"
|
||||
Style="{StaticResource EgtManageDialog_Border}"/>
|
||||
BorderBrush="{StaticResource Border.Static.Alto.Border}"
|
||||
BorderThickness="1"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.Resources>
|
||||
@@ -207,7 +251,7 @@
|
||||
<Setter Property="ItemsPanel">
|
||||
<Setter.Value>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Style="{StaticResource Project_WrapPanel}"/>
|
||||
<WrapPanel Orientation="Vertical"/>
|
||||
</ItemsPanelTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
@@ -219,7 +263,7 @@
|
||||
<Setter Property="ItemsPanel">
|
||||
<Setter.Value>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Style="{StaticResource ProjectH_WrapPanel}"/>
|
||||
<WrapPanel Orientation="Horizontal"/>
|
||||
</ItemsPanelTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
@@ -231,7 +275,8 @@
|
||||
<Setter Property="ItemsPanel">
|
||||
<Setter.Value>
|
||||
<ItemsPanelTemplate>
|
||||
<StackPanel Style="{StaticResource EgtManageDialog_StackPanel}"/>
|
||||
<StackPanel Orientation="Vertical"
|
||||
HorizontalAlignment="Stretch"/>
|
||||
</ItemsPanelTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
@@ -269,10 +314,13 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Source="{Binding sIconSource}"
|
||||
Style="{StaticResource Source_Image}"/>
|
||||
Height="15"
|
||||
Stretch="Uniform"
|
||||
Margin="2.5,0,2.5,0"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding sName}"
|
||||
Style="{StaticResource NameImage_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="2.5,0,0,0"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
@@ -313,33 +361,55 @@
|
||||
</TabControl>
|
||||
</Grid>
|
||||
<Grid Grid.Row="2"
|
||||
Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
Margin="5,5,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding FileName_Msg}"
|
||||
Style="{StaticResource FileName_TextBlock}"/>
|
||||
HorizontalAlignment="Right"
|
||||
Margin="5"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding sSaveFileName, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
||||
Style="{StaticResource SaveFileName_TextBox}"/>
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
TextAlignment="Left"
|
||||
FontWeight="Normal"
|
||||
FontFamily="12"
|
||||
Height="22"
|
||||
Margin="2.5,2.5,2.5,5"/>
|
||||
<ComboBox Grid.Column="2"
|
||||
ItemsSource="{Binding FilterList}"
|
||||
SelectedItem="{Binding SelFilter, Mode=OneWayToSource}"
|
||||
DisplayMemberPath="sNameExstension"
|
||||
Style="{StaticResource FilterList_ComboBox}"/>
|
||||
HorizontalAlignment="Right"
|
||||
BorderThickness="1"
|
||||
Height="25"
|
||||
Width="200"
|
||||
IsSynchronizedWithCurrentItem="True"
|
||||
Margin="10,2.5,2.5,5"/>
|
||||
</Grid>
|
||||
<UniformGrid Grid.Row="3"
|
||||
Rows="1"
|
||||
Style="{StaticResource Command_UniformGrid}">
|
||||
Margin="2.5,0,2.5,2.5">
|
||||
<Button IsDefault="True"
|
||||
Content="OK"
|
||||
Command="{Binding Ok_Command}"
|
||||
Style="{StaticResource EgtManageDialogOK_HalfRound_Button}"/>
|
||||
HorizontalAlignment="Right"
|
||||
Height="24"
|
||||
Width="64"
|
||||
Margin="15,0,2.5,2"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="Cancel"
|
||||
Command="{Binding Cancel_Command}"
|
||||
Style="{StaticResource EgtManageDialogCancel_HalfRound_Button}"/>
|
||||
HorizontalAlignment="Left"
|
||||
Height="24"
|
||||
Width="64"
|
||||
Margin="2.5,0,0,2"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
ShowInTaskbar="False"
|
||||
Style="{StaticResource OptimizerWindow.Dialog}">
|
||||
|
||||
<Grid Style="{StaticResource EgtMessageBox_Grid}">
|
||||
<Grid Margin="2.5,2.5,2.5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Style="{StaticResource MessageBox_Grid}">
|
||||
<Grid Margin="20">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -22,11 +22,13 @@
|
||||
<Image Source="{Binding sIconSource}"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding sMessage}"
|
||||
Style="{StaticResource EgtMessageBox_TextBlock}"/>
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</Grid>
|
||||
<ItemsControl Grid.Row="1"
|
||||
ItemsSource="{Binding ButtonList}"
|
||||
Style="{StaticResource EgtMessageBox_ItemsControl}">
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,10">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<UniformGrid Rows="1"/>
|
||||
@@ -37,7 +39,10 @@
|
||||
<Button IsDefault="{Binding bIsDefault}"
|
||||
Content="{Binding sMessage}"
|
||||
Command="{Binding Command_Command}"
|
||||
Style="{StaticResource EgtColorPicker_HalfRound_Button}"/>
|
||||
Height="24"
|
||||
Width="64"
|
||||
Margin="2.5,0,2.5,2"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
|
||||
@@ -23,27 +23,37 @@
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding TotText_Msg}"
|
||||
Style="{StaticResource MessageBox_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="{Binding StepText_Msg}"
|
||||
Visibility="{Binding StepText_Visibility}"
|
||||
Style="{StaticResource MessageBox_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<Grid Grid.Row="3"
|
||||
Visibility="{Binding StepProgress_Visibility}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Style="{StaticResource EgtManageDialog_Grid}"/>
|
||||
<Grid Height="20"
|
||||
Margin="5,5,5,0"/>
|
||||
<ProgressBar Grid.Row="1"
|
||||
Value="{Binding StepProgress_Value}"
|
||||
Style="{StaticResource NestingRunningWndV_ProgressBar}"/>
|
||||
Minimum="0"
|
||||
Maximum="100"
|
||||
Height="20"
|
||||
Margin="40,0,40,0"/>
|
||||
</Grid>
|
||||
<ProgressBar Grid.Row="5"
|
||||
Value="{Binding TotProgress_Value}"
|
||||
Style="{StaticResource NestingRunningWndV_ProgressBar}"/>
|
||||
Minimum="0"
|
||||
Maximum="100"
|
||||
Height="20"
|
||||
Margin="40,0,40,0"/>
|
||||
<TextBlock Grid.Row="7"
|
||||
Text="{Binding TotProgress_Msg}"
|
||||
Style="{StaticResource MessageBox_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</Grid>
|
||||
</EgtWPFLib5:EgtCustomWindow>
|
||||
|
||||
@@ -400,7 +400,7 @@ Public MustInherit Class MyMachGroupVM
|
||||
Get
|
||||
Select Case nProduction_State
|
||||
Case ItemState.ND
|
||||
Return Brushes.White
|
||||
Return Brushes.Transparent ' Brushes.White
|
||||
Case ItemState.Assigned
|
||||
Return Brushes.LightGray
|
||||
Case ItemState.Confirmed
|
||||
|
||||
@@ -468,7 +468,7 @@ Public MustInherit Class PartVM
|
||||
Get
|
||||
Select Case nProduction_State
|
||||
Case ItemState.ND
|
||||
Return Brushes.White
|
||||
Return Brushes.Transparent ' Brushes.White
|
||||
Case ItemState.Assigned
|
||||
Return Brushes.LightGray
|
||||
Case ItemState.Confirmed
|
||||
|
||||
@@ -8,34 +8,50 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Style="{StaticResource CalcPanel_Grid}">
|
||||
<Grid Margin="0,0,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Macchina corrente"
|
||||
Style="{StaticResource CurrMach_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,5,0"/>
|
||||
<!--Combobox per selezionare la macchina corrente-->
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding Path=MachineList}" DisplayMemberPath="Name"
|
||||
SelectedItem="{Binding Path=SelectedMachine}" SelectedValuePath="Name"
|
||||
Style="{StaticResource CalcPanel_ComboBox}"/>
|
||||
ItemsSource="{Binding Path=MachineList}"
|
||||
SelectedItem="{Binding Path=SelectedMachine}"
|
||||
DisplayMemberPath="Name"
|
||||
SelectedValuePath="Name"
|
||||
Height="22"
|
||||
Width="150"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
</Grid>
|
||||
<StackPanel Grid.Column="1"
|
||||
Style="{StaticResource MachinePanel_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center">
|
||||
<Button Content="{Binding ToolDBMsg}"
|
||||
ToolTip="{Binding ToolDBToolTip}"
|
||||
Command="{Binding ToolDbCommand}"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="{Binding SetUpMsg}"
|
||||
Command="{Binding SetUpCommand}"
|
||||
ToolTip="{Binding SetUpToolTip}"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"
|
||||
Visibility="{Binding SetUp_Visibility}"/>
|
||||
Visibility="{Binding SetUp_Visibility}"
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="{Binding ParameterMachineMsg}"
|
||||
ToolTip="{Binding ParameterMachineMsg}"
|
||||
Command="{Binding ParameterMachine_Command}"
|
||||
Style="{StaticResource ParameterMachine_Button}"/>
|
||||
Height="30"
|
||||
Width="140"
|
||||
Margin="5,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -38,23 +38,29 @@
|
||||
Command="{Binding NewCommand}"
|
||||
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
||||
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}"
|
||||
Style="{StaticResource MachiningDB_Button}"/>
|
||||
Height="30"
|
||||
Width="64"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="{Binding SaveMsg}"
|
||||
Command="{Binding SaveCommand}"
|
||||
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
||||
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}"
|
||||
Style="{StaticResource MachiningDB_Button}"/>
|
||||
Height="30"
|
||||
Width="64"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="{Binding RemoveMsg}"
|
||||
Command="{Binding RemoveCommand}"
|
||||
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
||||
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}"
|
||||
Style="{StaticResource MachiningDB_Button}"/>
|
||||
Height="30"
|
||||
Width="64"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</UniformGrid>
|
||||
|
||||
<TreeView Grid.Row="1"
|
||||
Name="MachiningsTreeView"
|
||||
ItemsSource="{Binding Path=MachiningsList}"
|
||||
Style="{StaticResource MachiningDB_TreeView}">
|
||||
Background="{StaticResource TreeView.Static.Background}">
|
||||
<TreeView.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type TreeViewItem}">
|
||||
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
|
||||
@@ -65,24 +71,29 @@
|
||||
<TreeView.Resources>
|
||||
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyMachiningTreeViewItem}"
|
||||
ItemsSource="{Binding Items}">
|
||||
<Grid Style="{StaticResource MachiningDB_Grid}">
|
||||
<Grid Height="20">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Source="{Binding PictureString}"
|
||||
Style="{StaticResource MachiningDB_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Margin="0,0,5,0"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding Name}"
|
||||
Style="{StaticResource MachiningDB_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
FontSize="15"
|
||||
Margin="0,-2,5,0"/>
|
||||
<Ellipse Grid.Column="2"
|
||||
Fill="{Binding FamilyColor}"
|
||||
Style="{StaticResource SetUp_Ellipse}"/>
|
||||
Height="20"
|
||||
Width="20"/>
|
||||
</Grid>
|
||||
</HierarchicalDataTemplate>
|
||||
<DataTemplate DataType="{x:Type EgtWPFLib5:MachiningTreeViewItem}">
|
||||
<Grid Style="{StaticResource MachiningDB_Grid}">
|
||||
<Grid Height="20">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -90,10 +101,13 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding NamePar}"
|
||||
Style="{StaticResource MachiningDB_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
FontSize="15"
|
||||
Margin="0,-2,5,0"/>
|
||||
<Ellipse Grid.Column="2"
|
||||
Fill="{Binding ToolColor}"
|
||||
Style="{StaticResource SetUp_Ellipse}"/>
|
||||
Height="20"
|
||||
Width="20"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</TreeView.Resources>
|
||||
@@ -103,14 +117,20 @@
|
||||
Columns="3">
|
||||
<Button Content="{Binding ImportMsg}"
|
||||
Command="{Binding ImportCommand}"
|
||||
Style="{StaticResource MachiningDB_Button}"/>
|
||||
Height="30"
|
||||
Width="64"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="{Binding ExportMsg}"
|
||||
Command="{Binding ExportCommand}"
|
||||
Style="{StaticResource MachiningDB_Button}"/>
|
||||
Height="30"
|
||||
Width="64"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="{Binding ResetMsg}"
|
||||
Command="{Binding ReloadMachiningCommand}"
|
||||
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"
|
||||
Style="{StaticResource MachiningDB_Button}"/>
|
||||
Height="30"
|
||||
Width="64"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</UniformGrid>
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -38,5 +38,5 @@ Imports System.Windows
|
||||
' by using the '*' as shown below:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("3.1.7.2")>
|
||||
<Assembly: AssemblyFileVersion("3.1.7.2")>
|
||||
<Assembly: AssemblyVersion("3.1.8.2")>
|
||||
<Assembly: AssemblyFileVersion("3.1.8.2")>
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
|
||||
<GroupBox Header="{Binding Filters_Msg}"
|
||||
Visibility="{Binding Filters_Visibility}"
|
||||
Style="{StaticResource NewOpenProjectFile_GroupBox}">
|
||||
Margin="5"
|
||||
Style="{StaticResource Optimizer_GroupBox}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -38,21 +39,32 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<ComboBox ItemsSource="{Binding BTLDateTypeList}"
|
||||
SelectedIndex="{Binding SelBTLDateType}"
|
||||
Style="{StaticResource BTLDateTypeList_ComboBox}"/>
|
||||
Height="22"
|
||||
MinWidth="55"
|
||||
Width="105"
|
||||
Margin="5"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<StackPanel Grid.Column="1"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
<ComboBox ItemsSource="{Binding DayTypeList}"
|
||||
SelectedIndex="{Binding SelDayType}"
|
||||
Style="{StaticResource DayTypeList_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="105"
|
||||
Margin="0,0,2.5,0"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<StackPanel Visibility="{Binding Date_Visibility}"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding From_Msg}"
|
||||
Style="{StaticResource Filter_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="2.5,0,2.5,0"/>
|
||||
<DatePicker SelectedDate="{Binding dtStartDate}"
|
||||
CalendarStyle="{StaticResource Filter_Calendar}"
|
||||
Style="{StaticResource Filter_DatePicker}"/>
|
||||
<TextBlock Text="{Binding To_Msg}"
|
||||
Style="{StaticResource Filter_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="2.5,0,2.5,0"/>
|
||||
<DatePicker SelectedDate="{Binding dtEndDate}"
|
||||
CalendarStyle="{StaticResource Filter_Calendar}"
|
||||
Style="{StaticResource Filter_DatePicker}"/>
|
||||
@@ -61,7 +73,7 @@
|
||||
<CheckBox Grid.Column="2"
|
||||
IsChecked="{Binding bViewArchived}"
|
||||
Content="{Binding ViewArchived_Msg}"
|
||||
Style="{StaticResource PParameters_CheckBox}"/>
|
||||
VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -71,25 +83,35 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<ComboBox ItemsSource="{Binding FilterTypeList}"
|
||||
SelectedItem="{Binding SelFilterType}"
|
||||
Style="{StaticResource NewOpenProjectFile_ComboBox}"/>
|
||||
Height="25"
|
||||
Width="105"
|
||||
Margin="5"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding SearchText}"
|
||||
Visibility="{Binding SearchText_Visibility}"
|
||||
Style="{StaticResource NewSearchText_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Margin="5"/>
|
||||
<StackPanel Grid.Column="2"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding Rows_Msg}"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<ComboBox ItemsSource="{Binding RowQuantityList}"
|
||||
SelectedIndex="{Binding SelRowQuantity}"
|
||||
Style="{StaticResource OpenProjectFileDialog_ComboBox}"/>
|
||||
Height="22"
|
||||
MinWidth="55"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<Border Grid.Row="1"
|
||||
Style="{StaticResource NewOpenProjectFileDialog_Border}"/>
|
||||
Margin="1"
|
||||
Style="{StaticResource Optimizer_Border}"/>
|
||||
|
||||
<EgwWPFBaseLib:EgwDataGrid Grid.Row="1"
|
||||
x:Name="MainDataGrid"
|
||||
@@ -125,9 +147,22 @@
|
||||
<TextBlock Text="{Binding Path=DataContext.Name_Msg,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"/>
|
||||
<ToggleButton Grid.Column="1"
|
||||
IsChecked="{Binding Path=DataContext.bIsEditNameActive,RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"
|
||||
Style="{StaticResource Small_ToggleButton}">
|
||||
<Image Source="{StaticResource Edit_Image}"
|
||||
Style="{StaticResource Lock_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Margin="5,0,0,0">
|
||||
<Image Source="/Resources/PartManager/Locked.png"
|
||||
Height="15"
|
||||
Stretch="Uniform">
|
||||
<Image.Style>
|
||||
<Style TargetType="{x:Type Image}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding IsEnabled,RelativeSource={RelativeSource self}}" Value="False">
|
||||
<Setter Property="Source" Value="/Resources/PartManager/Unlocked.png"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Image.Style>
|
||||
</Image>
|
||||
</ToggleButton>
|
||||
</Grid>
|
||||
</DataGridTextColumn.Header>
|
||||
@@ -148,9 +183,11 @@
|
||||
<DataGridTemplateColumn x:Key="colARCHIVED">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Image Source="{StaticResource Archived_Image}"
|
||||
<Image Source="\Resources\OpenProjectFileDialog\Archived.png"
|
||||
Visibility="{Binding Archived_Visibility}"
|
||||
Style="{StaticResource Archived_Image}"/>
|
||||
Height="15"
|
||||
Width="15"
|
||||
Stretch="UniformToFill"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
<DataGridTemplateColumn.Header>
|
||||
@@ -167,11 +204,15 @@
|
||||
</DataGrid.RowStyle>
|
||||
<DataGrid.RowDetailsTemplate>
|
||||
<DataTemplate>
|
||||
<ItemsControl ItemsSource="{Binding ProjFileList}" HorizontalAlignment="Left" Margin="50,-1,0,0"
|
||||
Style="{StaticResource ProjFileList_ItemsControl}">
|
||||
<ItemsControl ItemsSource="{Binding ProjFileList}"
|
||||
HorizontalAlignment="Left"
|
||||
BorderThickness="0"
|
||||
Padding="0"
|
||||
Margin="50,-1,0,0">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Style="{StaticResource ProjFileList_Grid}">
|
||||
<Grid TextBlock.FontWeight="Normal"
|
||||
TextBlock.FontSize="12">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="{Binding Path=DataContext.ProdColumns[0].ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -181,10 +222,11 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid Grid.ColumnSpan="2"
|
||||
Style="{StaticResource Gray_Grid}"/>
|
||||
Background="{StaticResource BeamWall_Gray}"
|
||||
Margin="40,0,40,0"/>
|
||||
<Grid Grid.Column="1"
|
||||
Grid.Row="1"
|
||||
Style="{StaticResource NewOpenProjectFile_Grid}">
|
||||
Margin="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -196,18 +238,21 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding Path=DataContext.BTLFileName_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"
|
||||
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.DarkGray.Foreground}"
|
||||
Margin="0,0,20,0"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding sBTLFileName}"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding Path=DataContext.ListName_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"
|
||||
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.DarkGray.Foreground}"
|
||||
Margin="0,0,20,0"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding sListName}"/>
|
||||
<TextBlock Grid.Column="2"
|
||||
Text="{Binding Path=DataContext.ExportDate_Msg, RelativeSource={RelativeSource AncestorType={x:Type EgtBEAMWALLCORE:NewOpenProjectFileDialogV}}}"
|
||||
Style="{StaticResource OpenWnd_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.DarkGray.Foreground}"
|
||||
Margin="0,0,20,0"/>
|
||||
<TextBlock Grid.Column="3"
|
||||
Text="{Binding dtExportDate}"/>
|
||||
</Grid>
|
||||
@@ -221,22 +266,26 @@
|
||||
|
||||
<UniformGrid Grid.Row="2"
|
||||
Columns="4"
|
||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
||||
Margin="0,0,0,5">
|
||||
<Button Name="OpenBtn"
|
||||
IsDefault="True"
|
||||
Content="{Binding Open_Msg}"
|
||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Content="{Binding Archive_Msg}"
|
||||
Command="{Binding Archive_Command}"
|
||||
IsEnabled="{Binding bArchived_IsEnabled}"
|
||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Content="{Binding Delete_Msg}"
|
||||
Command="{Binding Delete_Command}"
|
||||
IsEnabled="{Binding bDelete_IsEnabled}"
|
||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Command="{Binding Cancel_Command}"
|
||||
Content="{Binding Cancel_Msg}"
|
||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</UniformGrid>
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -544,7 +544,8 @@ Public MustInherit Class NewOpenProjectFileDialogVM
|
||||
m_colProdFile_Name = m_ProdColumns.FirstOrDefault(Function(x) x.Key = COL_NAME)
|
||||
m_colArchived_Name = m_ProdColumns.FirstOrDefault(Function(x) x.Key = COL_ARCHIVED)
|
||||
' leggo valori per filtri
|
||||
m_SelDayType = GetMainPrivateProfileInt(S_OPENFILEDIALOG, K_DAYTYPE, 0)
|
||||
Dim IniDayType As DayTypes = GetMainPrivateProfileInt(S_OPENFILEDIALOG, K_DAYTYPE, 0)
|
||||
m_SelDayType = If(IniDayType <> DayTypes.PERIOD, IniDayType, DayTypes.LASTMONTH)
|
||||
Select Case m_SelDayType
|
||||
Case DayTypes.LASTMONTH
|
||||
m_dtEndDate = DateTime.Today + TimeSpan.FromDays(1)
|
||||
@@ -555,7 +556,7 @@ Public MustInherit Class NewOpenProjectFileDialogVM
|
||||
Case DayTypes.LAST6MONTHS
|
||||
m_dtEndDate = DateTime.Today + TimeSpan.FromDays(1)
|
||||
m_dtStartDate = m_dtEndDate - TimeSpan.FromDays(30.5 * 6)
|
||||
Case DayTypes.PERIOD
|
||||
Case Else ' DayTypes.LASTMONTH
|
||||
Dim sStartDate As String = "0"
|
||||
Dim lStartDate As Long = 0
|
||||
GetMainPrivateProfileString(S_OPENFILEDIALOG, K_STARTDATE, 0, sStartDate)
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
|
||||
<GroupBox Header="Filters"
|
||||
Visibility="{Binding Filters_Visibility}"
|
||||
Style="{StaticResource OpenProjectFile_GroupBox}">
|
||||
BorderBrush="{StaticResource BeamWall_RegentStBlue}"
|
||||
Margin="5">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -37,21 +38,31 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<ComboBox ItemsSource="{Binding BTLDateTypeList}"
|
||||
SelectedIndex="{Binding SelBTLDateType}"
|
||||
Style="{StaticResource NewOpenProjectFile_ComboBox}"/>
|
||||
Height="25"
|
||||
Width="105"
|
||||
Margin="5"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<StackPanel Grid.Column="1"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
<ComboBox ItemsSource="{Binding DayTypeList}"
|
||||
SelectedIndex="{Binding SelDayType}"
|
||||
Style="{StaticResource OpenProjectFile_ComboBox}"/>
|
||||
Height="25"
|
||||
Width="105"
|
||||
Margin="0,0,2.5,0"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<StackPanel Visibility="{Binding Date_Visibility}"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding From_Msg}"
|
||||
Style="{StaticResource Filter_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="2.5,0,2.5,0"/>
|
||||
<DatePicker SelectedDate="{Binding dtStartDate}"
|
||||
CalendarStyle="{StaticResource Filter_Calendar}"
|
||||
Style="{StaticResource Filter_DatePicker}"/>
|
||||
<TextBlock Text="{Binding To_Msg}"
|
||||
Style="{StaticResource Filter_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="2.5,0,2.5,0"/>
|
||||
<DatePicker SelectedDate="{Binding dtEndDate}"
|
||||
CalendarStyle="{StaticResource Filter_Calendar}"
|
||||
Style="{StaticResource Filter_DatePicker}"/>
|
||||
@@ -66,25 +77,34 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<ComboBox ItemsSource="{Binding FilterTypeList}"
|
||||
SelectedItem="{Binding SelFilterType}"
|
||||
Style="{StaticResource NewOpenProjectFile_ComboBox}"/>
|
||||
Height="25"
|
||||
Width="105"
|
||||
Margin="5"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding SearchText}"
|
||||
Visibility="{Binding SearchText_Visibility}"
|
||||
Style="{StaticResource NewSearchText_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Margin="5"/>
|
||||
<StackPanel Grid.Column="2"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
<TextBlock Text="Rows"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<ComboBox ItemsSource="{Binding RowQuantityList}"
|
||||
SelectedIndex="{Binding SelRowQuantity}"
|
||||
Style="{StaticResource RowQTY_ComboBox}"/>
|
||||
Width="55"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<Border Grid.Row="1"
|
||||
Style="{StaticResource NewOpenProjectFileDialog_Border}"/>
|
||||
Margin="1"
|
||||
Style="{StaticResource Optimizer_Border}"/>
|
||||
|
||||
<EgwWPFBaseLib:EgwDataGrid Grid.Row="1"
|
||||
ItemsSource="{Binding ProjectList}"
|
||||
@@ -175,17 +195,20 @@
|
||||
|
||||
<UniformGrid Grid.Row="2"
|
||||
Columns="3"
|
||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
||||
Margin="0,0,0,5">
|
||||
<Button Name="OpenBtn"
|
||||
IsDefault="True"
|
||||
Content="{Binding Open_Msg}"
|
||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Content="{Binding Delete_Msg}"
|
||||
Command="{Binding Delete_Command}"
|
||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button IsCancel="True"
|
||||
Content="{Binding Cancel_Msg}"
|
||||
Style="{DynamicResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</UniformGrid>
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -422,18 +422,21 @@ Public MustInherit Class OpenProjectFileDialogVM
|
||||
Case DayTypes.LAST6MONTHS
|
||||
m_dtEndDate = DateTime.Today + TimeSpan.FromDays(1)
|
||||
m_dtStartDate = m_dtEndDate - TimeSpan.FromDays(30.5 * 6)
|
||||
Case DayTypes.PERIOD
|
||||
Dim sStartDate As String = "0"
|
||||
Dim lStartDate As Long = 0
|
||||
GetMainPrivateProfileString(S_OPENFILEDIALOG, K_STARTDATE, 0, sStartDate)
|
||||
Long.TryParse(sStartDate, lStartDate)
|
||||
m_dtStartDate = If(lStartDate > 0, DateTime.FromFileTimeUtc(lStartDate), DateTime.Today)
|
||||
Dim sEndDate As String = "0"
|
||||
Dim lEndDate As Long = 0
|
||||
GetMainPrivateProfileString(S_OPENFILEDIALOG, K_ENDDATE, 0, sEndDate)
|
||||
Long.TryParse(sEndDate, lEndDate)
|
||||
m_dtEndDate = If(lEndDate > 0, DateTime.FromFileTimeUtc(lEndDate), DateTime.Today)
|
||||
m_Date_Visibility = Visibility.Visible
|
||||
Case Else 'DayTypes.LASTMONTH
|
||||
m_dtEndDate = DateTime.Today + TimeSpan.FromDays(1)
|
||||
m_dtStartDate = m_dtEndDate - TimeSpan.FromDays(30.5)
|
||||
'Case DayTypes.PERIOD
|
||||
' Dim sStartDate As String = "0"
|
||||
' Dim lStartDate As Long = 0
|
||||
' GetMainPrivateProfileString(S_OPENFILEDIALOG, K_STARTDATE, 0, sStartDate)
|
||||
' Long.TryParse(sStartDate, lStartDate)
|
||||
' m_dtStartDate = If(lStartDate > 0, DateTime.FromFileTimeUtc(lStartDate), DateTime.Today)
|
||||
' Dim sEndDate As String = "0"
|
||||
' Dim lEndDate As Long = 0
|
||||
' GetMainPrivateProfileString(S_OPENFILEDIALOG, K_ENDDATE, 0, sEndDate)
|
||||
' Long.TryParse(sEndDate, lEndDate)
|
||||
' m_dtEndDate = If(lEndDate > 0, DateTime.FromFileTimeUtc(lEndDate), DateTime.Today)
|
||||
' m_Date_Visibility = Visibility.Visible
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
|
||||
+175
-1297
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,9 @@
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.ColumnSpan="6"
|
||||
Style="{StaticResource TitleBar_Border}"/>
|
||||
Background="{StaticResource BeamWall_Casper}"
|
||||
BorderBrush="{StaticResource BeamWall_Casper}"
|
||||
BorderThickness="0"/>
|
||||
<Image MinWidth="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
|
||||
Source="/Resources/EgalwareLogo.ico"/>
|
||||
<ContentControl Grid.Column="1"/>
|
||||
|
||||
@@ -1,49 +1,56 @@
|
||||
<StackPanel x:Class="ViewPanelV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Style="{StaticResource BTLPartManager_StackPanel}">
|
||||
Orientation="Vertical">
|
||||
|
||||
<Button ToolTip="{Binding ZoomAllToolTip}"
|
||||
Style="{StaticResource Mach_Button}"
|
||||
Command="{Binding ZoomAllCommand}">
|
||||
Command="{Binding ZoomAllCommand}"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<Image Source="{StaticResource ZoomAll_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding LookFromTopToolTip}"
|
||||
Style="{StaticResource Mach_Button}"
|
||||
Command="{Binding TopViewCommand}">
|
||||
Command="{Binding TopViewCommand}"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<Image Source="{StaticResource LookFromTOP_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding LookFromFrontToolTip}"
|
||||
Style="{StaticResource Mach_Button}"
|
||||
Command="{Binding FrontViewCommand}">
|
||||
Command="{Binding FrontViewCommand}"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<Image Source="{StaticResource LookFromFRONT_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding LookFromRightToolTip}"
|
||||
Style="{StaticResource Mach_Button}"
|
||||
Command="{Binding RightViewCommand}">
|
||||
Command="{Binding RightViewCommand}"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<Image Source="{StaticResource LookFromRIGHT_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding LookFromBackToolTip}"
|
||||
Style="{StaticResource Mach_Button}"
|
||||
Command="{Binding BackViewCommand}">
|
||||
Command="{Binding BackViewCommand}"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<Image Source="{StaticResource LookFromBACK_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding LookFromLeftToolTip}"
|
||||
Style="{StaticResource Mach_Button}"
|
||||
Command="{Binding LeftViewCommand}">
|
||||
Command="{Binding LeftViewCommand}"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<Image Source="{StaticResource LookFromLEFT_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding LookFromIso_SWToolTip}"
|
||||
Style="{StaticResource Mach_Button}"
|
||||
Command="{Binding IsoViewSWCommand}">
|
||||
Command="{Binding IsoViewSWCommand}"
|
||||
Height="30"
|
||||
Width="30">
|
||||
<Image Source="{StaticResource LookFromISO_SW_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="EgwProxy.LiMan" version="1.0.2408.718" targetFramework="net472" />
|
||||
<package id="EgwWPFBaseLib" version="3.1.1.2" targetFramework="net472" />
|
||||
<package id="EgwWPFBaseLib" version="3.1.7.3" targetFramework="net472" />
|
||||
<package id="Microsoft.Bcl.AsyncInterfaces" version="8.0.0" targetFramework="net472" />
|
||||
<package id="Newtonsoft.Json" version="13.0.4" targetFramework="net472" />
|
||||
<package id="RestSharp" version="111.2.0" targetFramework="net472" />
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("3.1.7.2")]
|
||||
[assembly: AssemblyFileVersion("3.1.7.2")]
|
||||
[assembly: AssemblyVersion("3.1.8.2")]
|
||||
[assembly: AssemblyFileVersion("3.1.8.2")]
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
ShowInTaskbar="False"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
|
||||
<Border Style="{StaticResource AboutBoxV_Border}">
|
||||
<Border BorderBrush="{StaticResource Border.Static.RegentStBlue.Border}"
|
||||
BorderThickness="2">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="0.5*"/>
|
||||
@@ -37,31 +38,46 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.Column="1"
|
||||
Style="{StaticResource AboutBox_Border}">
|
||||
BorderBrush="{StaticResource Border.Static.White.Border}">
|
||||
<Image Source="{StaticResource AboutBox_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
<TextBlock Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Name="DescriptionLbl"
|
||||
Style="{StaticResource AboutBox_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="18"/>
|
||||
<TextBlock Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Name="VersionLbl"
|
||||
Style="{StaticResource AboutBox_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="18"/>
|
||||
<TextBlock Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
Name="CopyrightLbl"
|
||||
Style="{StaticResource Copyright_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="12"/>
|
||||
<TextBox Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
Name="InfoLbl"
|
||||
Style="{StaticResource AboutBox_TextBox}"/>
|
||||
IsReadOnly="True"
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="12"
|
||||
TextWrapping="Wrap"/>
|
||||
<Button Grid.Row="8"
|
||||
Grid.Column="1"
|
||||
Name="ExitBtn"
|
||||
Style="{StaticResource AboutBox_Button}"/>
|
||||
IsCancel="True"
|
||||
Margin="100,0"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Window>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
Title="AddProcess"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource BlockedWnd_Grid}">
|
||||
<Grid Margin="5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -18,12 +18,20 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border Style="{StaticResource AddFeatureWnd_Border}">
|
||||
<Border Background="{StaticResource Border.Static.Kashmir.Background}"
|
||||
CornerRadius="4,0,0,4"
|
||||
Margin="0,2,0,2">
|
||||
<TextBlock Text="{Binding Process_Msg}"
|
||||
Style="{StaticResource List_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="20"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundWhite_TextBlock}"/>
|
||||
</Border>
|
||||
<Border Grid.Row="1"
|
||||
Style="{StaticResource PRCList_Border}">
|
||||
BorderBrush="{StaticResource Border.Static.Glacier.Border}"
|
||||
BorderThickness="2,2,0,2"
|
||||
CornerRadius="4,0,0,4">
|
||||
<ListBox Grid.Row="1"
|
||||
ItemsSource="{Binding PRCListView}"
|
||||
SelectedItem="{Binding nSelPRC}"
|
||||
@@ -34,26 +42,43 @@
|
||||
<TextBlock Text="{Binding ghDesc}"
|
||||
ToolTip="{Binding ghDesc}"
|
||||
Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type ListBox}}}"
|
||||
Style="{StaticResource PRCList_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
TextAlignment="Justify"
|
||||
TextWrapping="Wrap"
|
||||
Margin="10,5,10,0"/>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Border>
|
||||
<Border Grid.Column="1"
|
||||
Style="{StaticResource Custom_Border}">
|
||||
Background="{StaticResource Border.Static.Kashmir.Background}"
|
||||
BorderThickness="0,2,0,2">
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding Custom_Msg}"
|
||||
Style="{StaticResource List_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="20"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundWhite_TextBlock}"/>
|
||||
</Border>
|
||||
<Border Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Style="{StaticResource MacroCustomList_Border}">
|
||||
BorderBrush="{StaticResource Border.Static.Glacier.Border}"
|
||||
BorderThickness="0,2,0,2"
|
||||
CornerRadius="0">
|
||||
<ListBox ItemsSource="{Binding MacroCustomList}"
|
||||
SelectedIndex="{Binding nSelMacroCustom}"
|
||||
Style="{StaticResource MacroCustom_ListBox}">
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Height="610"
|
||||
Width="980"
|
||||
Margin="5"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
||||
<ListBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Style="{StaticResource MacroCustom_WrapPanel}"/>
|
||||
<WrapPanel Orientation="Horizontal"
|
||||
IsItemsHost="True"/>
|
||||
</ItemsPanelTemplate>
|
||||
</ListBox.ItemsPanel>
|
||||
<ListBox.ItemTemplate>
|
||||
@@ -64,23 +89,37 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding sMacroName}"
|
||||
Style="{StaticResource Macro_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontSize="14"
|
||||
Margin="5"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<Image Grid.Row="1"
|
||||
Source="{Binding sMacroDrawPath}"
|
||||
Style="{StaticResource Macro_Image}"/>
|
||||
Width="300"
|
||||
Margin="5,0,5,5"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Border>
|
||||
<Border Grid.Column="2"
|
||||
Style="{StaticResource Default_Border}">
|
||||
Background="{StaticResource Border.Static.Kashmir.Background}"
|
||||
CornerRadius="0,4,4,0"
|
||||
Padding="0,10,0,10"
|
||||
Margin="0,2,0,2">
|
||||
<TextBlock Text="{Binding Default_Msg}"
|
||||
Style="{StaticResource List_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="20"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundWhite_TextBlock}"/>
|
||||
</Border>
|
||||
<Border Grid.Row="1"
|
||||
Grid.Column="2"
|
||||
Style="{StaticResource MacroDefaultList_Border}">
|
||||
BorderBrush="{StaticResource Border.Static.Glacier.Border}"
|
||||
BorderThickness="0,2,2,2"
|
||||
CornerRadius="0,4,4,0">
|
||||
<ListBox ItemsSource="{Binding MacroDefaultList}"
|
||||
SelectedIndex="{Binding nSelMacroDefault}"
|
||||
Style="{StaticResource MacroDefault_ListBox}"
|
||||
@@ -88,7 +127,12 @@
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding sMacroName}"
|
||||
Style="{StaticResource MacroDefault_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
TextAlignment="Justify"
|
||||
Width="239"
|
||||
Margin="2.5"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
@@ -96,14 +140,16 @@
|
||||
<UniformGrid Columns="2"
|
||||
Grid.Row="2"
|
||||
Grid.ColumnSpan="3"
|
||||
Style="{StaticResource AddFeatureWnd_UniformGrid}">
|
||||
Margin="5">
|
||||
<Button Content="{Binding OK_Msg}"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Content="{Binding Cancel_Msg}"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
Title="AddPartWndV"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource AddPartWndV_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -16,19 +16,24 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Style="{StaticResource AddPart_Grid}">
|
||||
<Grid HorizontalAlignment="Center"
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Name"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding sNAM}"
|
||||
Style="{StaticResource NAM_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="200"/>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1"
|
||||
Style="{StaticResource AddPartWnd_Grid}">
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -36,19 +41,31 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="Prod Number"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding nPDN}"
|
||||
Style="{StaticResource Dimension_TextBox}"/>
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="50"/>
|
||||
<TextBlock Grid.Column="2"
|
||||
Text="Count"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="3"
|
||||
Text="{Binding sCNT}"
|
||||
Style="{StaticResource Dimension_TextBox}"/>
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="50"/>
|
||||
</Grid>
|
||||
<Grid Grid.Row="2"
|
||||
Style="{StaticResource AddPartWnd_Grid}">
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -58,34 +75,54 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="W"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding sW}"
|
||||
Style="{StaticResource Dimension_TextBox}"/>
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="50"/>
|
||||
<TextBlock Grid.Column="2"
|
||||
Text="H"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="3"
|
||||
Text="{Binding sH}"
|
||||
Style="{StaticResource Dimension_TextBox}"/>
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="50"/>
|
||||
<TextBlock Grid.Column="4"
|
||||
Text="L"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="5"
|
||||
Text="{Binding sL}"
|
||||
Style="{StaticResource Dimension_TextBox}"/>
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="65"/>
|
||||
</Grid>
|
||||
|
||||
<UniformGrid Grid.Row="3"
|
||||
Columns="2"
|
||||
Style="{StaticResource AddPartWnd_UniformGrid}">
|
||||
Margin="0,5,0,5">
|
||||
<Button Content="Ok"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Content="Cancel"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Title="AddRawPartWnd"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -18,37 +18,46 @@
|
||||
SelectedItem="{Binding SelDimension}"
|
||||
DisplayMemberPath="sDimension"
|
||||
Visibility="{Binding DimensionsList_Visibility}"
|
||||
Style="{StaticResource AddRawPartWnd_ComboBox}"/>
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<ItemsControl Grid.Row="1"
|
||||
ItemsSource="{Binding VariableList}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Style="{StaticResource AddPartWnd_Grid}">
|
||||
<Grid Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding sMsg}"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding sValue}"
|
||||
Style="{StaticResource Value_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="65"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
<UniformGrid Grid.Row="2"
|
||||
Columns="2"
|
||||
Style="{StaticResource AddRawPartWnd_UniformGrid}">
|
||||
Margin="0,0,0,5">
|
||||
<Button Grid.Column="1"
|
||||
Content="Ok"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource AddRawPartWnd_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Grid.Column="3"
|
||||
Content="Cancel"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
|
||||
|
||||
@@ -18,10 +18,17 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Style="{StaticResource MachinePanel_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Center">
|
||||
<ComboBox ItemsSource="{Binding StrategySetupList}"
|
||||
SelectedItem="{Binding SelStrategySetup, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource BTLDataWnd_ComboBox}">
|
||||
Foreground="{StaticResource BeamWall_Black}"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="15"
|
||||
Height="30"
|
||||
Width="160"
|
||||
Margin="0,10,0,10"
|
||||
Style="{StaticResource Optmizer_ComboBox}">
|
||||
<ComboBox.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type ComboBoxItem}">
|
||||
<EventSetter Event="PreviewMouseDown" Handler="ComboBoxItem_PreviewMouseDown"/>
|
||||
@@ -29,7 +36,13 @@
|
||||
</ComboBox.ItemContainerStyle>
|
||||
</ComboBox>
|
||||
<TextBlock Text="{Binding ErrText}"
|
||||
Style="{StaticResource ErrConfig_TextBlock}"/>
|
||||
Foreground="{StaticResource BeamWall_Red}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
TextAlignment="Justify"
|
||||
TextWrapping="Wrap"
|
||||
FontSize="13"
|
||||
Margin="10,0,0,0"/>
|
||||
</StackPanel>
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.RowDefinitions>
|
||||
@@ -44,18 +57,25 @@
|
||||
Tag="{Binding GeneralParametersList}"/>
|
||||
<UniformGrid Grid.Column="1"
|
||||
Columns="2"
|
||||
Style="{StaticResource BTLDataWnd_UniformGrid}">
|
||||
VerticalAlignment="Bottom"
|
||||
Margin="0,0,5,0">
|
||||
<Button Command="{Binding Ok_Command}"
|
||||
ToolTip="{Binding SaveAsToolTip}"
|
||||
Style="{StaticResource OKBTLDataWnd_Button}">
|
||||
Height="40"
|
||||
Width="40"
|
||||
Margin="0,0,5,5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Ok_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding Cancel_Command}"
|
||||
ToolTip="{Binding SaveAsToolTip}"
|
||||
Style="{StaticResource BTLDataWnd_Button}">
|
||||
Height="40"
|
||||
Width="40"
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Delete_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
@@ -66,73 +86,127 @@
|
||||
Columns="6"
|
||||
Rows="7">
|
||||
<TextBlock Text="{Binding PROJNUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sPROJNUM, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PROJNAME_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sPROJNAME, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PROJPART_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sPROJPART, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PROJGUID_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sPROJGUID, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding LISTNAME_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sLISTNAME, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding CUSTOMER_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sCUSTOMER, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ARCHITECT_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sARCHITECT, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EDITOR_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sEDITOR, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding DELIVDATE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding sDELIVDATE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataWndV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EXPDATE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sEXPDATE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EXPTIME_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sEXPTIME, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EXPRELEASE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sEXPRELEASE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding LANGUAGE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sLANGUAGE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding RANGE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataWndV}},
|
||||
Path=Tag.ocRANGE,
|
||||
@@ -140,9 +214,12 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataWndV}},
|
||||
Path=Tag.SelRANGE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding PROCESSINGQUALITY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataWndV}},
|
||||
Path=Tag.ocPROCESSINGQUALITY,
|
||||
@@ -150,29 +227,48 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataWndV}},
|
||||
Path=Tag.SelPROCESSINGQUALITY,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding COMPUTERNAME_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sCOMPUTERNAME, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding USER_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sUSER, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding SRCFILE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sSRCFILE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EXPFILE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sEXPFILE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding RECESS_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataWndV}},
|
||||
Path=Tag.ocRECESS,
|
||||
@@ -180,12 +276,17 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataWndV}},
|
||||
Path=Tag.SelRECESS,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding USERATTRIBUTE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrBTLStructure.sUSERATTRIBUTE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
|
||||
</UniformGrid>
|
||||
</TabItem>
|
||||
|
||||
@@ -1,47 +1,56 @@
|
||||
<dxb:PopupMenu x:Class="BTLPartManagerV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
||||
xmlns:dxi="http://schemas.devexpress.com/winfx/2008/xaml/core/internal"
|
||||
xmlns:dxt="http://schemas.devexpress.com/winfx/2008/xaml/core/themekeys"
|
||||
DataContext="{StaticResource BTLPartManagerVM}"
|
||||
Background="{StaticResource Border.BTLPartManager.Background}"
|
||||
BorderBrush="{StaticResource Border.BTLPartManager.Border}"
|
||||
BorderThickness="2"
|
||||
CornerRadius="5"
|
||||
Margin="0"
|
||||
Padding="0">
|
||||
<Border x:Class="BTLPartManagerV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
DataContext="{StaticResource BTLPartManagerVM}"
|
||||
Background="{StaticResource Border.Static.FountainBlue.Background}"
|
||||
BorderBrush="{StaticResource Border.Static.Teal.Border}"
|
||||
BorderThickness="2"
|
||||
CornerRadius="5"
|
||||
Margin="0"
|
||||
Padding="0">
|
||||
|
||||
<dxb:BarItemMenuHeader ShowContentHeader="False"
|
||||
ItemsOrientation="Horizontal"
|
||||
Margin="0"
|
||||
Padding="0">
|
||||
<dxb:BarButtonItem Command="{Binding CopyPart_Command}"
|
||||
ToolTip="{Binding CopyPart_ToolTip}"
|
||||
IsEnabled="{Binding CopyPart_IsEnabled}"
|
||||
Glyph="{StaticResource CopyPart_Image}"
|
||||
Style="{StaticResource DropDownButton_BarButtonItem}"/>
|
||||
<dxb:BarButtonItem Command="{Binding RemovePart_Command}"
|
||||
ToolTip="{Binding RemovePart_ToolTip}"
|
||||
IsEnabled="{Binding RemovePart_IsEnabled}"
|
||||
Glyph="{StaticResource Remove_Image}"
|
||||
Style="{StaticResource DropDownButton_BarButtonItem}"/>
|
||||
<dxb:BarButtonItem ToolTip="{Binding Simulate_ToolTip}"
|
||||
Command="{Binding Simulate_Command}"
|
||||
IsEnabled="{Binding Simulate_IsEnabled}"
|
||||
Glyph="{StaticResource Simulate_Image}"
|
||||
Style="{StaticResource DropDownButton_BarButtonItem}"/>
|
||||
<dxb:BarButtonItem ToolTip="{Binding Edit_ToolTip}"
|
||||
Command="{Binding Edit_Command}"
|
||||
IsEnabled="{Binding Edit_IsEnabled}"
|
||||
Glyph="{StaticResource Edit_Image}"
|
||||
Style="{StaticResource DropDownButton_BarButtonItem}"/>
|
||||
<dxb:BarButtonItem Command="{Binding ResetCalc_Command}"
|
||||
ToolTip="{Binding ResetCalc_ToolTip}"
|
||||
IsEnabled="{Binding CALCPanel_IsEnabled}"
|
||||
Glyph="{StaticResource ResetCalc_Image}"
|
||||
Style="{StaticResource DropDownButton_BarButtonItem}"/>
|
||||
</dxb:BarItemMenuHeader>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="0">
|
||||
<Button Command="{Binding CopyPart_Command}"
|
||||
ToolTip="{Binding CopyPart_ToolTip}"
|
||||
IsEnabled="{Binding CopyPart_IsEnabled}">
|
||||
<Image Source="{StaticResource CopyPart_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding RemovePart_Command}"
|
||||
ToolTip="{Binding RemovePart_ToolTip}"
|
||||
IsEnabled="{Binding RemovePart_IsEnabled}">
|
||||
<Image Source="{StaticResource Remove_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding Simulate_ToolTip}"
|
||||
Command="{Binding Simulate_Command}"
|
||||
IsEnabled="{Binding Simulate_IsEnabled}">
|
||||
<Image Source="{StaticResource Simulate_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding Edit_ToolTip}"
|
||||
Command="{Binding Edit_Command}"
|
||||
IsEnabled="{Binding Edit_IsEnabled}">
|
||||
<Image Source="{StaticResource Edit_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding ResetCalc_Command}"
|
||||
ToolTip="{Binding ResetCalc_ToolTip}"
|
||||
IsEnabled="{Binding CALCPanel_IsEnabled}">
|
||||
<Image Source="{StaticResource ResetCalc_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
</dxb:PopupMenu>
|
||||
</Border>
|
||||
|
||||
@@ -24,7 +24,7 @@ Public Class BTLPartManagerVM
|
||||
|
||||
Public ReadOnly Property CopyPart_IsEnabled As Boolean
|
||||
Get
|
||||
Return m_BTLPartManager_IsEnabled AndAlso Not IsNothing(Map.refShowBeamPanelVM) AndAlso Not Map.refShowBeamPanelVM.bShowAll AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM) AndAlso Not Map.refProjectVM.BTLStructureVM.SelBTLParts.Count > 1
|
||||
Return m_BTLPartManager_IsEnabled AndAlso Not IsNothing(Map.refShowBeamPanelVM) AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM) AndAlso Not Map.refProjectVM.BTLStructureVM.SelBTLParts.Count > 1
|
||||
End Get
|
||||
End Property
|
||||
|
||||
@@ -312,6 +312,9 @@ Public Class BTLPartManagerVM
|
||||
|
||||
Map.refProjectVM.SetRawPartManagerVisibility(False)
|
||||
Map.refProjectVM.SetFeatureListVisibility(False)
|
||||
Map.refShowBeamPanelVM.SetShowBuilding(False)
|
||||
Map.refProjectVM.SetSceneShowBuldingVisibility(False)
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(False)
|
||||
Map.refProjectVM.SetSelManagerTab(ProjectVM.StrategyManagerTab.FEATUREMANAGER)
|
||||
' Disabilito LeftPanel
|
||||
Map.refProjectVM.SetLeftPanel_IsEnabled(False)
|
||||
@@ -339,10 +342,9 @@ Public Class BTLPartManagerVM
|
||||
If IsNothing(SelPart) Then Return
|
||||
If SelPart.nGlobalState <> CalcStates.NOTCALCULATED Then
|
||||
' Resetto info
|
||||
If MyExecProcessManager.sInfoNgePartList.Count > 0 Then
|
||||
For Each InfoNgePart As String In MyExecProcessManager.sInfoNgePartList
|
||||
Dim sInfoNgePart As String() = InfoNgePart.Split("="c)
|
||||
EgtRemoveInfo(SelPart.nPartId, sInfoNgePart(0))
|
||||
If Map.refProjectVM.InfoNgeValue.Count > 0 Then
|
||||
For Each InfoNgePart As String In Map.refProjectVM.InfoNgeValue
|
||||
EgtRemoveInfo(SelPart.nPartId, InfoNgePart)
|
||||
Next
|
||||
End If
|
||||
SelPart.ResetCalcTotalPart()
|
||||
|
||||
@@ -209,8 +209,9 @@ Public Class BTLFeatureVM
|
||||
Return m_BTLFeatureM.bDO
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
Dim bShowSolid As Boolean = Map.refShowBeamPanelVM.ShowSolid_IsChecked
|
||||
If value <> m_BTLFeatureM.bDO Then
|
||||
Dim bShowSolid As Boolean = Map.refShowBeamPanelVM.ShowSolid_IsChecked
|
||||
If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, False, False)
|
||||
If EgtBeamEnableProcess(nFeatureId, value, Not m_bDO_MultipleUpdate) Then
|
||||
m_BTLFeatureM.bDO = value
|
||||
' setto feature da ricalcolare
|
||||
@@ -224,7 +225,10 @@ Public Class BTLFeatureVM
|
||||
Item.NotifyPropertyChanged(NameOf(Item.sMsg))
|
||||
Next
|
||||
End If
|
||||
If Not IsNothing(m_BTLPartM) AndAlso Map.refProdManagerVM.ListProjAsseBase.Count > 0 Then Map.refProjectVM.UpdatePart(m_BTLPartM.nPartId)
|
||||
If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
If Not m_bDO_MultipleUpdate Then EgtDraw()
|
||||
|
||||
' aggiorno stato abilitazione del bottone modifica free contour
|
||||
Map.refFeatureManagerVM.SetEditIsEnabled()
|
||||
End If
|
||||
@@ -516,6 +520,10 @@ Public Class BTLFeatureVM
|
||||
End Property
|
||||
|
||||
Public Sub Edit()
|
||||
Map.refProjectVM.SetPParametersVisibility(False)
|
||||
' Disabilito pulsante assemblato
|
||||
Map.refShowBeamPanelVM.ShowBuilding_IsEnabled = False
|
||||
Map.refProjectVM.SetSceneShowBuldingVisibility(False)
|
||||
' attivo modalita' contorno libero
|
||||
Map.refFreeContourManagerVM.Open()
|
||||
End Sub
|
||||
@@ -541,6 +549,10 @@ Public Class BTLFeatureVM
|
||||
End Select
|
||||
' disattivo modalita' contorno libero
|
||||
Map.refFreeContourManagerVM.Close(True)
|
||||
Map.refProjectVM.SetPParametersVisibility(True)
|
||||
Map.refShowBeamPanelVM.ShowBuilding_IsEnabled = True
|
||||
EgtSetMark(nFeatureId)
|
||||
EgtDraw()
|
||||
End Sub
|
||||
|
||||
#End Region ' Save_Command
|
||||
@@ -559,6 +571,8 @@ Public Class BTLFeatureVM
|
||||
Public Sub Cancel()
|
||||
' disattivo modalita' contorno libero
|
||||
Map.refFreeContourManagerVM.Close(False)
|
||||
Map.refProjectVM.SetPParametersVisibility(True)
|
||||
Map.refShowBeamPanelVM.ShowBuilding_IsEnabled = True
|
||||
End Sub
|
||||
|
||||
#End Region ' Cancel_Command
|
||||
@@ -577,6 +591,7 @@ Public Class BTLFeatureVM
|
||||
Public Sub Strategy()
|
||||
Map.refProjectVM.SetSelManagerTab(ProjectVM.StrategyManagerTab.STRATEGYMANAGER)
|
||||
' Disabilito LeftPanel
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(False)
|
||||
Map.refProjectVM.SetLeftPanel_IsEnabled(False)
|
||||
Map.refProjectVM.SetLeftPanel_Opacity(0.2)
|
||||
Map.refForcedStrategyPanelVM.Init(BTLFeatureM)
|
||||
@@ -595,14 +610,16 @@ Public Class BTLFeatureVM
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub EditFeature()
|
||||
Friend Sub EditFeature(Feature As BTLFeatureVM)
|
||||
If Not IsNothing(Map.refProjectVM.BTLStructureVM) AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM) Then
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SetSelFeature(Feature)
|
||||
Map.refForcedStrategyPanelVM.Init(Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.BTLFeatureM)
|
||||
End If
|
||||
' se modalità building, la tolgo
|
||||
If Map.refShowBeamPanelVM.ShowBuilding_IsChecked Then
|
||||
Map.refShowBeamPanelVM.ShowBuilding_IsChecked = False
|
||||
End If
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(False)
|
||||
Map.refProjectVM.SetRawPartManagerVisibility(False)
|
||||
Map.refProjectVM.SetSelManagerTab(ProjectVM.StrategyManagerTab.FEATUREMANAGERBTL)
|
||||
Map.refProjectVM.SetSelFeatureManagerTab(ProjectVM.FeatureManagerTab.STRATEGYMANAGERBTL)
|
||||
|
||||
@@ -10,8 +10,6 @@ Public Class BTLPartVM
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
Private DOWN_IMAGE As String = "pack://application:,,,/Resources/NewPage/down.png"
|
||||
|
||||
Private WithEvents m_BTLPartM As BTLPartM
|
||||
Public ReadOnly Property BTLPartM As BTLPartM
|
||||
Get
|
||||
@@ -192,7 +190,7 @@ Public Class BTLPartVM
|
||||
EgtOutLog(nPartId & " non presente")
|
||||
End If
|
||||
End If
|
||||
If EgtBeamGetBuildingIsOn() AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
If EgtBeamGetBuildingIsOn() Then
|
||||
nOrigGroupId = GetOrigFrameGroup(nPartId)
|
||||
End If
|
||||
Dim frBeam As New Frame3d
|
||||
@@ -255,7 +253,7 @@ Public Class BTLPartVM
|
||||
EgtOutLog(nPartId & " non presente")
|
||||
End If
|
||||
End If
|
||||
If EgtBeamGetBuildingIsOn() AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
If EgtBeamGetBuildingIsOn() Then
|
||||
nOrigGroupId = GetOrigFrameGroup(nPartId)
|
||||
End If
|
||||
Dim frBeam As New Frame3d
|
||||
@@ -318,7 +316,7 @@ Public Class BTLPartVM
|
||||
EgtOutLog(nPartId & " non presente")
|
||||
End If
|
||||
End If
|
||||
If EgtBeamGetBuildingIsOn() AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
If EgtBeamGetBuildingIsOn() Then
|
||||
nOrigGroupId = GetOrigFrameGroup(nPartId)
|
||||
End If
|
||||
Dim frBeam As New Frame3d
|
||||
@@ -1429,7 +1427,7 @@ Public Class BTLPartVM
|
||||
Public ReadOnly Property Section As SectionXMaterial
|
||||
Get
|
||||
Dim nOrigGroupId As Integer = nPartId
|
||||
If Map.refMainMenuVM.SelPage = Pages.VIEW AndAlso EgtBeamGetBuildingIsOn() AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
If Map.refMainMenuVM.SelPage = Pages.VIEW AndAlso EgtBeamGetBuildingIsOn() Then
|
||||
nOrigGroupId = GetOrigFrameGroup(nPartId)
|
||||
End If
|
||||
Dim frBeam As New Frame3d
|
||||
@@ -1551,7 +1549,10 @@ Public Class BTLPartVM
|
||||
Return m_SelBTLFeatureVM
|
||||
End Get
|
||||
Set(value As BTLFeatureVM)
|
||||
If Not IsNothing(m_PrevSelBTLFeatureVM) Then m_PrevSelBTLFeatureVM.DeselGeomFeature()
|
||||
If Not IsNothing(m_PrevSelBTLFeatureVM) Then
|
||||
m_PrevSelBTLFeatureVM.DeselGeomFeature()
|
||||
EgtResetMark(m_PrevSelBTLFeatureVM.nFeatureId)
|
||||
End If
|
||||
m_SelBTLFeatureVM = value
|
||||
If Not IsNothing(m_SelBTLFeatureVM) Then
|
||||
m_SelBTLFeatureVM.SelGeomFeature()
|
||||
@@ -1580,9 +1581,6 @@ Public Class BTLPartVM
|
||||
End If
|
||||
End If
|
||||
If Not IsNothing(Map.refFeatureListManagerVM) Then Map.refFeatureListManagerVM.FeatureSelectionChanged()
|
||||
Map.refProdManagerVM.SetBtlImage(DOWN_IMAGE)
|
||||
Map.refProdManagerVM.SetOpenImage(DOWN_IMAGE)
|
||||
Map.refProdManagerVM.SetSaveImage(DOWN_IMAGE)
|
||||
If Not IsNothing(m_SelBTLFeatureVM) Then
|
||||
SetSelFeatureMsg(EgtMsg(5356) & " [" & m_SelBTLFeatureVM.nSelGRP & "-" & m_SelBTLFeatureVM.nPRC.ToString("000") & "] " & m_SelBTLFeatureVM.sName)
|
||||
SetDeselFeatureMsg(EgtMsg(5357) & " [" & m_SelBTLFeatureVM.nSelGRP & "-" & m_SelBTLFeatureVM.nPRC.ToString("000") & "] " & m_SelBTLFeatureVM.sName)
|
||||
@@ -1592,10 +1590,10 @@ Public Class BTLPartVM
|
||||
' se modalità building, la tolgo
|
||||
If Not IsNothing(m_SelBTLFeatureVM) AndAlso Map.refShowBeamPanelVM.ShowBuilding_IsChecked Then
|
||||
Map.refProjectVM.SetSceneShowBuldingVisibility(False)
|
||||
Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
Map.refShowBeamPanelVM.SetShowBuilding(False)
|
||||
Map.refProjectVM.SetManagerTabVisibility(True)
|
||||
If Not IsNothing(Map.refProjectVM.MachGroupPanelVM) Then Map.refProjectVM.SetFeatureListVisibility(True)
|
||||
Map.refProjectVM.SetFeatureListVisibility(False)
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(True)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
@@ -1630,9 +1628,6 @@ Public Class BTLPartVM
|
||||
End If
|
||||
End If
|
||||
If Not IsNothing(Map.refFeatureListManagerVM) Then Map.refFeatureListManagerVM.FeatureSelectionChanged()
|
||||
Map.refProdManagerVM.SetBtlImage(DOWN_IMAGE)
|
||||
Map.refProdManagerVM.SetOpenImage(DOWN_IMAGE)
|
||||
Map.refProdManagerVM.SetSaveImage(DOWN_IMAGE)
|
||||
If Not IsNothing(m_SelBTLFeatureVM) Then
|
||||
SetSelFeatureMsg(EgtMsg(5356) & " [" & m_SelBTLFeatureVM.nSelGRP & "-" & m_SelBTLFeatureVM.nPRC.ToString("000") & "] " & m_SelBTLFeatureVM.sName)
|
||||
SetDeselFeatureMsg(EgtMsg(5357) & " [" & m_SelBTLFeatureVM.nSelGRP & "-" & m_SelBTLFeatureVM.nPRC.ToString("000") & "] " & m_SelBTLFeatureVM.sName)
|
||||
@@ -1669,20 +1664,6 @@ Public Class BTLPartVM
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Private m_bOpenFeatureList As Boolean = False
|
||||
Public Property bOpenFeatureList As Boolean
|
||||
Get
|
||||
Return m_bOpenFeatureList
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
m_bOpenFeatureList = value
|
||||
End Set
|
||||
End Property
|
||||
Friend Sub SetOpenFeatureList(Value As Boolean)
|
||||
m_bOpenFeatureList = Value
|
||||
NotifyPropertyChanged(NameOf(bOpenFeatureList))
|
||||
End Sub
|
||||
|
||||
Public Property IsInverted As Boolean
|
||||
Get
|
||||
Return BTLPartM.nINVERTED = 180
|
||||
@@ -1691,10 +1672,9 @@ Public Class BTLPartVM
|
||||
' eseguo inversione
|
||||
m_BTLPartM.Inversion(Map.refProjectVM.BTLStructureVM.nPROJTYPE)
|
||||
' Resetto info
|
||||
If MyExecProcessManager.sInfoNgePartList.Count > 0 Then
|
||||
For Each InfoNgePart As String In MyExecProcessManager.sInfoNgePartList
|
||||
Dim sInfoNgePart As String() = InfoNgePart.Split("="c)
|
||||
EgtRemoveInfo(Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId, sInfoNgePart(0))
|
||||
If Map.refProjectVM.InfoNgeValue.Count > 0 Then
|
||||
For Each InfoNgePart As String In Map.refProjectVM.InfoNgeValue
|
||||
EgtRemoveInfo(Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId, InfoNgePart)
|
||||
Next
|
||||
End If
|
||||
' setto part e tutte le feature da ricalcolare
|
||||
@@ -1889,10 +1869,9 @@ Public Class BTLPartVM
|
||||
' setto part e tutte le feature da ricalcolare
|
||||
If bResetCalc Then
|
||||
' Resetto info
|
||||
If MyExecProcessManager.sInfoNgePartList.Count > 0 Then
|
||||
For Each InfoNgePart As String In MyExecProcessManager.sInfoNgePartList
|
||||
Dim sInfoNgePart As String() = InfoNgePart.Split("="c)
|
||||
EgtRemoveInfo(Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId, sInfoNgePart(0))
|
||||
If Map.refProjectVM.InfoNgeValue.Count > 0 Then
|
||||
For Each InfoNgePart As String In Map.refProjectVM.InfoNgeValue
|
||||
EgtRemoveInfo(Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId, InfoNgePart)
|
||||
Next
|
||||
End If
|
||||
ResetCalcTotalPart()
|
||||
|
||||
@@ -13,8 +13,6 @@ Public Class BTLStructureVM
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
Private DOWN_IMAGE As String = "pack://application:,,,/Resources/NewPage/down.png"
|
||||
|
||||
' Nome file NGE con i pezzi selezionati per effettuare UpdateBTL
|
||||
Friend Const UPDATEBTL_NGE As String = "UpdateBTL.nge"
|
||||
|
||||
@@ -110,11 +108,11 @@ Public Class BTLStructureVM
|
||||
Map.refProjectVM.MacroFeature_IsEnabled = True
|
||||
' se modalità building, la tolgo
|
||||
If Map.refShowBeamPanelVM.ShowBuilding_IsChecked Then
|
||||
ShowBuilding(False, False)
|
||||
Map.refShowBeamPanelVM.SetShowBuilding(False)
|
||||
Map.refProjectVM.SetSceneShowBuldingVisibility(False)
|
||||
Map.refProjectVM.SetManagerTabVisibility(True)
|
||||
If Not IsNothing(Map.refProjectVM.MachGroupPanelVM) Then Map.refProjectVM.SetFeatureListVisibility(True)
|
||||
Map.refProjectVM.SetFeatureListVisibility(False)
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(True)
|
||||
End If
|
||||
SceneSelPartSelection()
|
||||
' seleziono pezzo in Db geometrico
|
||||
@@ -169,15 +167,9 @@ Public Class BTLStructureVM
|
||||
Next
|
||||
Next
|
||||
Next
|
||||
' aggiorno stato selezionato tutto
|
||||
Map.refShowBeamPanelVM.bShowAll = False
|
||||
Core.ViewPanelVM.BWSetView(If(Core.ViewPanelVM.Type = BWType.BEAM, VT.ISO_SW, VT.TOP), False)
|
||||
EgtZoom(ZM.ALL)
|
||||
Map.refProdManagerVM.SetBtlImage(DOWN_IMAGE)
|
||||
Map.refProdManagerVM.SetOpenImage(DOWN_IMAGE)
|
||||
Map.refProdManagerVM.SetSaveImage(DOWN_IMAGE)
|
||||
NotifyPropertyChanged(NameOf(SelBTLPart))
|
||||
If Not bIsReselect AndAlso m_SelBTLParts.Count = 1 Then BtlPart.SetOpenFeatureList(True)
|
||||
End Sub
|
||||
Private Sub DeselectBTLPart(BtlPart As BTLPartVM)
|
||||
' se necessario tolgo solido dal precedentemente selezionato
|
||||
@@ -193,12 +185,6 @@ Public Class BTLStructureVM
|
||||
BtlPart.SelBTLFeatureVM = Nothing
|
||||
End If
|
||||
EgtDraw()
|
||||
If m_SelBTLParts.Count = 1 Then
|
||||
m_SelBTLParts(0).SetOpenFeatureList(True)
|
||||
End If
|
||||
If BtlPart.bOpenFeatureList Then
|
||||
BtlPart.SetOpenFeatureList(False)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private m_SelBTLPart As BTLPartVM = Nothing
|
||||
@@ -770,6 +756,7 @@ Public Class BTLStructureVM
|
||||
Private m_cmdDeletePart As ICommand
|
||||
Private m_cmdData As ICommand
|
||||
Private m_cmdAddPart As ICommand
|
||||
Private m_cmdChangeParameter As ICommand
|
||||
Private m_cmdUpdateBTL As ICommand
|
||||
|
||||
#Region "Messages"
|
||||
@@ -906,69 +893,6 @@ Public Class BTLStructureVM
|
||||
DisableMgr.ReEnable()
|
||||
End Sub
|
||||
|
||||
Friend Sub ShowAll(Optional bRedraw As Boolean = True, Optional bOnlySelected As Boolean = False)
|
||||
' disabilito impostazione modificato
|
||||
Dim DisableMgr As New DisableModifiedMgr
|
||||
If Not IsNothing(SelBTLPart) Then
|
||||
' se pezzo solido, lo riporto normale
|
||||
Configuration.DeselectSolid()
|
||||
' tolgo pezzo selezionato
|
||||
SelBTLPart.SelBTLFeatureVM = Nothing
|
||||
End If
|
||||
' creo lista id presenti
|
||||
Dim BTLPartIdList As List(Of Integer) = (From Part In BTLPartVMList
|
||||
Select Part.nPartId).ToList()
|
||||
BTLPartIdList.Sort()
|
||||
Dim nGeomPartId As Integer = EgtGetFirstPart()
|
||||
While nGeomPartId <> GDB_ID.NULL
|
||||
Dim CurrPart As BTLPartVM = BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nGeomPartId)
|
||||
If Not IsNothing(CurrPart) AndAlso Not bOnlySelected Then
|
||||
Dim nMode As Integer
|
||||
EgtGetMode(CurrPart.nPartId, nMode)
|
||||
If nMode <> GDB_MD.STD Then
|
||||
EgtSetMode(CurrPart.nPartId, GDB_MD.STD)
|
||||
End If
|
||||
Else
|
||||
EgtSetMode(nGeomPartId, GDB_MD.HIDDEN)
|
||||
End If
|
||||
nGeomPartId = EgtGetNextPart(nGeomPartId)
|
||||
End While
|
||||
' ripristino precedente impostazione modificato
|
||||
DisableMgr.ReEnable()
|
||||
Core.ViewPanelVM.BWSetView(VT.ISO_SW, False)
|
||||
EgtZoom(ZM.ALL, bRedraw)
|
||||
' imposto stato per ShowBeamPanel
|
||||
If Not bOnlySelected Then Map.refShowBeamPanelVM.bShowAll = True
|
||||
End Sub
|
||||
|
||||
Friend Sub HideAll(Optional bRedraw As Boolean = True)
|
||||
' disabilito impostazione modificato
|
||||
Dim DisableMgr As New DisableModifiedMgr
|
||||
If Not IsNothing(SelBTLPart) Then
|
||||
' se pezzo solido, lo riporto normale
|
||||
Configuration.DeselectSolid(GDB_ID.NULL, True)
|
||||
' tolgo pezzo selezionato
|
||||
SelBTLPart.SelBTLFeatureVM = Nothing
|
||||
End If
|
||||
SetSelBTLPart(Nothing)
|
||||
' nascondo tutti i pezzi
|
||||
Dim nPartId As Integer = EgtGetFirstPart()
|
||||
While nPartId <> GDB_ID.NULL
|
||||
Dim nMode As Integer
|
||||
EgtGetMode(nPartId, nMode)
|
||||
If nMode <> GDB_MD.HIDDEN Then
|
||||
EgtSetMode(nPartId, GDB_MD.HIDDEN)
|
||||
End If
|
||||
nPartId = EgtGetNextPart(nPartId)
|
||||
End While
|
||||
' ripristino precedente impostazione modificato
|
||||
DisableMgr.ReEnable()
|
||||
Core.ViewPanelVM.BWSetView(VT.ISO_SW, False)
|
||||
EgtZoom(ZM.ALL, bRedraw)
|
||||
' imposto stato per ShowBeamPanel
|
||||
Map.refShowBeamPanelVM.bShowAll = True
|
||||
End Sub
|
||||
|
||||
Friend Sub ShowBuilding(nIdAsseBase As Integer, bShow As Boolean, Optional bRedraw As Boolean = True)
|
||||
' disabilito impostazione modificato
|
||||
Dim DisableMgr As New DisableModifiedMgr
|
||||
@@ -1229,6 +1153,7 @@ Public Class BTLStructureVM
|
||||
Map.refProjectVM.BTLStructureVM.SetSelBTLPart(Map.refProjectVM.BTLStructureVM.BTLPartVMList_View(FilteredIndex + 1))
|
||||
End If
|
||||
End If
|
||||
EgtDraw()
|
||||
' rimuovo dalla lista pezzi
|
||||
Map.refProjectVM.BTLStructureVM.BTLPartVMList.RemoveAt(Index)
|
||||
End If
|
||||
@@ -1357,6 +1282,53 @@ Public Class BTLStructureVM
|
||||
|
||||
#End Region ' AddPart_Command
|
||||
|
||||
#Region "ChangeParameter"
|
||||
|
||||
Public ReadOnly Property ChangeParameter_Command As ICommand
|
||||
Get
|
||||
If m_cmdChangeParameter Is Nothing Then
|
||||
m_cmdChangeParameter = New Command(AddressOf ChangeParameter)
|
||||
End If
|
||||
Return m_cmdChangeParameter
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub ChangeParameter()
|
||||
If (IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.MachGroupPanelVM)) Then Return
|
||||
Dim ChangeParameterWndVM As New ChangeParameterWndVM
|
||||
Dim ChangeParameterWnd As New ChangeParameterWndV(Application.Current.MainWindow, ChangeParameterWndVM)
|
||||
If ChangeParameterWnd.ShowDialog() Then
|
||||
LoadingWndHelper.OpenLoadingWnd(ActiveIds.CHANGEPARAM, 1, EgtMsg(63014), "", 100) ' Modifying parameters
|
||||
' faccio passare pezzi
|
||||
If Not IsNothing(ChangeParameterWndVM.SelParam) Then
|
||||
For Each Part In Map.refProjectVM.BTLStructureVM.BTLPartVMList
|
||||
For Each Feature In Part.BTLFeatureVMList.Where(Function(x) x.nPRC = ChangeParameterWndVM.SelPRC.nPRC AndAlso CalcBeamPrivateProfileGRP(x.nSelGRP) = ChangeParameterWndVM.SelPRC.nGRP)
|
||||
If ChangeParameterWndVM.SelParam.BTLParamM.nType = BTLParamType.CHECKBOX AndAlso Feature.bDO = ChangeParameterWndVM.SelParam.bActualValue Then
|
||||
Feature.bDO = ChangeParameterWndVM.SelParam.bNewValue
|
||||
Else
|
||||
Dim ParamList As ObservableCollection(Of BTLParamVM) = Feature.PBTLParamVMList
|
||||
For Each Param In ParamList.Where(Function(x) x.sName = ChangeParameterWndVM.SelParam.sName)
|
||||
Select Case Param.nType
|
||||
Case BTLParamType.DOUBLE_, BTLParamType.LENGTH
|
||||
If Math.Abs(Param.dValue - ChangeParameterWndVM.SelParam.dActualValue) < EPS_SMALL Then
|
||||
Param.UpdateParamValue(ChangeParameterWndVM.SelParam.dNewValue, "")
|
||||
End If
|
||||
Case BTLParamType.STRING_
|
||||
If Param.sValue = ChangeParameterWndVM.SelParam.sActualValue Then
|
||||
Param.UpdateParamValue(0, ChangeParameterWndVM.SelParam.sNewValue)
|
||||
End If
|
||||
End Select
|
||||
Next
|
||||
End If
|
||||
Next
|
||||
Next
|
||||
End If
|
||||
LoadingWndHelper.CloseLoadingWnd(ActiveIds.CHANGEPARAM)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' ChangeParameter
|
||||
|
||||
#Region "UpdateBTL_Command"
|
||||
|
||||
Public ReadOnly Property UpdateBTL_Command As ICommand
|
||||
@@ -1384,23 +1356,23 @@ Public Class BTLStructureVM
|
||||
End If
|
||||
|
||||
' se vista tutti i pezzi
|
||||
Dim bShowBuilding As Boolean = False
|
||||
Dim bShowSolid As Boolean = False
|
||||
Dim nSelPartId As Integer = GDB_ID.NULL
|
||||
If Map.refShowBeamPanelVM.bShowAll Then
|
||||
' verifico se assemblato e lo annullo per salvataggio
|
||||
bShowBuilding = Map.refShowBeamPanelVM.ShowBuilding_IsChecked
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
' se vista singolo pezzo
|
||||
Else
|
||||
bShowSolid = Map.refShowBeamPanelVM.ShowSolid_IsChecked
|
||||
If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, False, False)
|
||||
' se pezzo selezionato lo segno e metto vista tutti
|
||||
If Not IsNothing(Map.refProjectVM.BTLStructureVM) AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) Then
|
||||
nSelPartId = Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId
|
||||
End If
|
||||
Map.refProjectVM.BTLStructureVM.ShowAll(False)
|
||||
End If
|
||||
'Dim bShowBuilding As Boolean = False
|
||||
'Dim bShowSolid As Boolean = False
|
||||
'Dim nSelPartId As Integer = GDB_ID.NULL
|
||||
'If Map.refShowBeamPanelVM.bShowAll Then
|
||||
' ' verifico se assemblato e lo annullo per salvataggio
|
||||
' bShowBuilding = Map.refShowBeamPanelVM.ShowBuilding_IsChecked
|
||||
' If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
' ' se vista singolo pezzo
|
||||
'Else
|
||||
' bShowSolid = Map.refShowBeamPanelVM.ShowSolid_IsChecked
|
||||
' If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, False, False)
|
||||
' ' se pezzo selezionato lo segno e metto vista tutti
|
||||
' If Not IsNothing(Map.refProjectVM.BTLStructureVM) AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) Then
|
||||
' nSelPartId = Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId
|
||||
' End If
|
||||
' Map.refProjectVM.BTLStructureVM.ShowAll(False)
|
||||
'End If
|
||||
|
||||
Dim sDir As String = String.Empty
|
||||
GetMainPrivateProfileString(S_GENERAL, K_LASTUPDATEDIR, "", sDir)
|
||||
@@ -1418,15 +1390,15 @@ Public Class BTLStructureVM
|
||||
If BTLDlg.ShowDialog() Then
|
||||
sFile = BTLDlg.FileName
|
||||
Else
|
||||
' se assemblato lo ripristino
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
If nSelPartId <> GDB_ID.NULL Then
|
||||
Dim SelPart As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nSelPartId)
|
||||
If Not IsNothing(SelPart) Then
|
||||
If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
End If
|
||||
End If
|
||||
EgtZoom(ZM.ALL)
|
||||
'' se assemblato lo ripristino
|
||||
'If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
'If nSelPartId <> GDB_ID.NULL Then
|
||||
' Dim SelPart As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nSelPartId)
|
||||
' If Not IsNothing(SelPart) Then
|
||||
' If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
' End If
|
||||
'End If
|
||||
'EgtZoom(ZM.ALL)
|
||||
Return
|
||||
End If
|
||||
End If
|
||||
@@ -1515,6 +1487,9 @@ Public Class BTLStructureVM
|
||||
nAsseBaseSubNodeId = EgtGetNext(nAsseBaseSubNodeId)
|
||||
End While
|
||||
|
||||
' imposto numero del progetto su assebase
|
||||
EgtSetInfo(AsseBaseId, PROJ, nProjId)
|
||||
|
||||
' salvo il file BTL da cui abbiamo rimosso BtlInfo come file NGE
|
||||
EgtSaveFile(Map.refMainWindowVM.MainWindowM.sTempDir & "\" & UPDATEBTL_NGE, NGE.CMPTEXT)
|
||||
|
||||
@@ -1534,16 +1509,16 @@ Public Class BTLStructureVM
|
||||
EgtDeleteContext(nTempCtx)
|
||||
' rileggo la struttura BTL
|
||||
ReloadBTLStructure()
|
||||
' se assemblato lo ripristino
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
If nSelPartId <> GDB_ID.NULL Then
|
||||
Dim SelPart As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nSelPartId)
|
||||
If Not IsNothing(SelPart) Then
|
||||
'SelPart.IsSelected = True
|
||||
If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
End If
|
||||
End If
|
||||
EgtZoom(ZM.ALL)
|
||||
'' se assemblato lo ripristino
|
||||
'If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
'If nSelPartId <> GDB_ID.NULL Then
|
||||
' Dim SelPart As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nSelPartId)
|
||||
' If Not IsNothing(SelPart) Then
|
||||
' 'SelPart.IsSelected = True
|
||||
' If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
' End If
|
||||
'End If
|
||||
'EgtZoom(ZM.ALL)
|
||||
Return
|
||||
End If
|
||||
' salvo lo stato del bottone per accodare
|
||||
@@ -1596,6 +1571,8 @@ Public Class BTLStructureVM
|
||||
While nAddedPartId <> GDB_ID.NULL
|
||||
' incremento il PDN del Part aggiunto rispetto al PDN maggiore attualmente presente
|
||||
EgtSetInfo(nAddedPartId, BTL_PRT_PDN, Map.refProjectVM.BTLStructureVM.BTLStructureM.NewPDN() + nIncrPDN)
|
||||
' scrivo in ogni pezzo ProjId
|
||||
EgtSetInfo(nAddedPartId, BTL_PRT_PROJ, nProjId)
|
||||
' recupero layer del box
|
||||
Dim nBoxLayerId As Integer = EgtGetFirstNameInGroup(nAddedPartId, "Box")
|
||||
' recupero box del layer box
|
||||
@@ -1651,23 +1628,23 @@ Public Class BTLStructureVM
|
||||
' rileggo la struttura BTL
|
||||
ReloadBTLStructure()
|
||||
' se assemblato lo ripristino
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
If nSelPartId <> GDB_ID.NULL Then
|
||||
Dim SelPart As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nSelPartId)
|
||||
If Not IsNothing(SelPart) Then
|
||||
If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
End If
|
||||
End If
|
||||
EgtZoom(ZM.ALL)
|
||||
'If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
'If nSelPartId <> GDB_ID.NULL Then
|
||||
' Dim SelPart As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nSelPartId)
|
||||
' If Not IsNothing(SelPart) Then
|
||||
' If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
' End If
|
||||
'End If
|
||||
'EgtZoom(ZM.ALL)
|
||||
Return
|
||||
End If
|
||||
' sovrascrivo i Part nel progetto aperto con i Part checkati nella lista
|
||||
If UpdateBTLWndVM.BTLPartList.Count > 0 Then
|
||||
' sovrascrivo i Part nel progetto aperto con i Part checkati nella lista
|
||||
Dim BTLPartToOverwriteWithList As New ObservableCollection(Of BTLPartToUpdate)
|
||||
Dim BTLPartToUpdateId As New List(Of Integer)
|
||||
' Elimino dal TempCtx i Part non checkati
|
||||
For Each BTLPartToOverwriteWith In UpdateBTLWndVM.BTLPartList
|
||||
If BTLPartToOverwriteWith.bInsert Then
|
||||
BTLPartToOverwriteWithList.Add(BTLPartToOverwriteWith)
|
||||
BTLPartToUpdateId.Add(BTLPartToOverwriteWith.nPartId)
|
||||
Else
|
||||
' elimino pezzo copia
|
||||
Dim nCurrPartId = EgtGetCurrPart()
|
||||
@@ -1680,37 +1657,20 @@ Public Class BTLStructureVM
|
||||
' nei soli Part checkati del BTL nella finestra UpdateBTLWnd
|
||||
Dim NewAsseBaseSubNodeDict As New Dictionary(Of Integer, Integer)
|
||||
For Each AsseBaseSubNodeItem In AsseBaseSubNodeDict
|
||||
For Each BTLPartToOverwriteWithItem In BTLPartToOverwriteWithList
|
||||
Dim bExitFor As Boolean = False
|
||||
For Each UIDItem In BTLPartToOverwriteWithItem.UIDList
|
||||
If AsseBaseSubNodeItem.Value = UIDItem Then
|
||||
NewAsseBaseSubNodeDict.Add(AsseBaseSubNodeItem.Key, AsseBaseSubNodeItem.Value)
|
||||
bExitFor = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
If bExitFor Then Exit For
|
||||
Next
|
||||
Next
|
||||
' confronto la lista appena costruita con quella originale ed elimino dal contesto i sottonodi con i valori non più presenti
|
||||
For Each AsseBaseSubNodeItem In AsseBaseSubNodeDict
|
||||
If Not NewAsseBaseSubNodeDict.ContainsValue(AsseBaseSubNodeItem.Value) Then
|
||||
Dim Sou As Integer = 0
|
||||
EgtGetInfo(AsseBaseSubNodeItem.Key, "!SOU", Sou)
|
||||
If BTLPartToUpdateId.Contains(Sou) Then
|
||||
NewAsseBaseSubNodeDict.Add(AsseBaseSubNodeItem.Key, AsseBaseSubNodeItem.Value)
|
||||
Else
|
||||
EgtErase(AsseBaseSubNodeItem.Key)
|
||||
End If
|
||||
Next
|
||||
|
||||
' salvo il file NGE inserito a cui abbiamo rimosso i Part non checkati e gli AsseBase non più associati
|
||||
EgtSaveFile(Map.refMainWindowVM.MainWindowM.sTempDir & "\" & UPDATEBTL_NGE, NGE.CMPTEXT)
|
||||
|
||||
' torno sul contesto corrente
|
||||
EgtDeleteContext(nTempCtx)
|
||||
EgtSetCurrentContext(nCurrCtx)
|
||||
|
||||
' aggiungo informazioni su pezzi
|
||||
Dim nPartId As Integer = EgtGetFirstPart(GDB_ID.ROOT)
|
||||
While nPartId <> GDB_ID.NULL
|
||||
' scrivo in ogni pezzo ProjId
|
||||
EgtSetInfo(nPartId, BTL_PRT_PROJ, ProjectManagerVM.CurrProd.nProjId)
|
||||
EgtSetInfo(nPartId, BTL_PRT_PROJ, nProjId)
|
||||
' scrivo Id negli outline
|
||||
Dim nPRId As Integer = 1
|
||||
Dim nOutlineLayer As Integer = EgtGetFirstNameInGroup(nPartId, OUTLINE)
|
||||
@@ -1727,14 +1687,31 @@ Public Class BTLStructureVM
|
||||
End If
|
||||
nPartId = EgtGetNextPart(nPartId)
|
||||
End While
|
||||
' scrivo info proj e type su layer BtlInfo
|
||||
Dim nBTLInfoLayer As Integer = EgtGetLastNameInGroup(GDB_ID.ROOT, BTLINFO)
|
||||
EgtSetInfo(nBTLInfoLayer, BTL_PRT_PROJ, ProjectManagerVM.CurrProd.nProjId)
|
||||
EgtSetInfo(nBTLInfoLayer, BTL_GEN_PROJTYPE, nType)
|
||||
|
||||
' salvo il file NGE inserito a cui abbiamo rimosso i Part non checkati e gli AsseBase non più associati
|
||||
EgtSaveFile(Map.refMainWindowVM.MainWindowM.sTempDir & "\" & UPDATEBTL_NGE, NGE.CMPTEXT)
|
||||
|
||||
' torno sul contesto corrente
|
||||
EgtDeleteContext(nTempCtx)
|
||||
EgtSetCurrentContext(nCurrCtx)
|
||||
|
||||
' rileggo la struttura BTL del progetto corrente per non avere quella del contesto temporaneo ancora presente
|
||||
ReloadBTLStructure()
|
||||
|
||||
' salvo gli id degli AsseBase presenti nel progetto corrente
|
||||
Dim AsseBaseIdList As New List(Of Integer)
|
||||
Dim AsseBaseList As New List(Of Integer)
|
||||
AsseBaseId = EgtGetFirstNameInGroup(GDB_ID.ROOT, ASSEBASE)
|
||||
While AsseBaseId <> GDB_ID.NULL
|
||||
AsseBaseIdList.Add(AsseBaseId)
|
||||
Dim tmpAsseBaseId = EgtGetFirstInGroup(AsseBaseId)
|
||||
While tmpAsseBaseId <> GDB_ID.NULL
|
||||
AsseBaseList.Add(tmpAsseBaseId)
|
||||
tmpAsseBaseId = EgtGetNext(tmpAsseBaseId)
|
||||
End While
|
||||
AsseBaseId = EgtGetNextName(AsseBaseId, ASSEBASE)
|
||||
End While
|
||||
|
||||
' elimino i pezzi da sovrascrivere nel progetto corrente
|
||||
For Each BTLPartToOverwriteWith In UpdateBTLWndVM.BTLPartList
|
||||
If BTLPartToOverwriteWith.bInsert Then
|
||||
@@ -1745,6 +1722,13 @@ Public Class BTLStructureVM
|
||||
Dim nCurrPartId = EgtGetCurrPart()
|
||||
EgtErase(nPartToDeleteId)
|
||||
nCurrPartId = EgtGetCurrPart()
|
||||
For Each AsseBaseListItem As Integer In AsseBaseList
|
||||
Dim Sou As Integer = GDB_ID.NULL
|
||||
EgtGetInfo(AsseBaseListItem, "!SOU", Sou)
|
||||
If Sou = nPartToDeleteId Then
|
||||
EgtErase(AsseBaseListItem)
|
||||
End If
|
||||
Next
|
||||
' verifico se rimuovere sezione dalla lista
|
||||
If Not Map.refProjectVM.BTLStructureVM.BTLPartVMList.Any(Function(x) x IsNot BTLPartToUpdate AndAlso x.Section = BTLPartToUpdate.Section) Then
|
||||
Map.refProjectVM.BTLStructureVM.SectionList.Remove(BTLPartToUpdate.Section)
|
||||
@@ -1757,28 +1741,6 @@ Public Class BTLStructureVM
|
||||
End If
|
||||
Next
|
||||
|
||||
' salvo gli id degli AsseBase presenti nel progetto corrente
|
||||
Dim AsseBaseIdList As New List(Of Integer)
|
||||
AsseBaseId = EgtGetFirstNameInGroup(GDB_ID.ROOT, ASSEBASE)
|
||||
While AsseBaseId <> GDB_ID.NULL
|
||||
AsseBaseIdList.Add(AsseBaseId)
|
||||
' elimino i sottonodi di AsseBase da sovrascrivere
|
||||
AsseBaseId = EgtGetFirstNameInGroup(GDB_ID.ROOT, ASSEBASE)
|
||||
nAsseBaseSubNodeId = EgtGetFirstInGroup(AsseBaseId)
|
||||
'While nAsseBaseSubNodeId <> GDB_ID.NULL
|
||||
' If NewAsseBaseSubNodeDict.ContainsKey(nAsseBaseSubNodeId) Then
|
||||
' ' se sottonodo da cancellare salvo il suo id e ricavo il seguente prima di cancellarlo
|
||||
' Dim nCurrAsseBaseSubNodeId = nAsseBaseSubNodeId
|
||||
' nAsseBaseSubNodeId = EgtGetNext(nCurrAsseBaseSubNodeId)
|
||||
' bOk = EgtErase(nCurrAsseBaseSubNodeId)
|
||||
' Else
|
||||
' ' altrimenti ricavo il seguente e basta
|
||||
' nAsseBaseSubNodeId = EgtGetNext(nAsseBaseSubNodeId)
|
||||
' End If
|
||||
'End While
|
||||
AsseBaseId = EgtGetNextName(AsseBaseId, ASSEBASE)
|
||||
End While
|
||||
|
||||
' calcolo BBox globale del progetto corrente
|
||||
Dim b3Parts As New BBox3d
|
||||
Dim nProjPartId As Integer = EgtGetFirstPart()
|
||||
@@ -1806,7 +1768,7 @@ Public Class BTLStructureVM
|
||||
Dim nAsseBaseToEraseId As Integer = 0
|
||||
EgtGetInfo(nAsseBaseId, BTL_PRT_PROJ, nAsseBaseProjId)
|
||||
' se AsseBase di questo step del ciclo è nuovo e suo ProjId uguale a quello del progetto corrente
|
||||
If Not AsseBaseIdList.Contains(nAsseBaseId) AndAlso nAsseBaseProjId = CurrProd.nProdId Then
|
||||
If Not AsseBaseIdList.Contains(nAsseBaseId) AndAlso nAsseBaseProjId = nProjId Then
|
||||
' riloco i sottonodi del nuovo AsseBase nell'AsseBase del progetto aperto col medesimo ProjId
|
||||
Dim AsseBaseSubNodeId As Integer = EgtGetFirstInGroup(nAsseBaseId)
|
||||
While AsseBaseSubNodeId <> GDB_ID.NULL
|
||||
@@ -1816,7 +1778,7 @@ Public Class BTLStructureVM
|
||||
Dim SameAsseBaseProjId As Integer
|
||||
EgtGetInfo(FindAsseBaseId, BTL_PRT_PROJ, SameAsseBaseProjId)
|
||||
' se l'ho trovato esco dal While (FindAsseBaseId è l'id dell'AsseBase in cui vogliamo rilocare i sottonodi)
|
||||
If SameAsseBaseProjId = CurrProd.nProdId Then Exit While
|
||||
If SameAsseBaseProjId = nProjId Then Exit While
|
||||
FindAsseBaseId = EgtGetNextName(FindAsseBaseId, ASSEBASE)
|
||||
End While
|
||||
' salvo id dell'AsseBase corrente per ottenere il seguente prima di rilocarlo
|
||||
@@ -1879,20 +1841,26 @@ Public Class BTLStructureVM
|
||||
' copio il file originale scelto nel dialog per l'Update nella cartella Proj del progetto corrente
|
||||
If File.Exists(sFile) Then
|
||||
'Dim sDestPath As String = ProjectManagerVM.CurrProj.sProjDirPath & "\" & Path.GetFileNameWithoutExtension(sFile)
|
||||
Dim sDestPath As String = CurrProd.sProdDirPath & "\Projs\" & ProjectManagerVM.CurrProd.nProjIdList(0).ToString("0000") & "\" & Path.GetFileNameWithoutExtension(sFile)
|
||||
While File.Exists(sDestPath & ".btl")
|
||||
sDestPath &= "_1"
|
||||
End While
|
||||
Dim sDestPath As String = CurrProd.sProdDirPath & "\Projs\" & nProjId.ToString("0000") & "\" & Path.GetFileNameWithoutExtension(sFile)
|
||||
If File.Exists(sDestPath & ".btl") Then
|
||||
Dim nIndex As Integer = 1
|
||||
While File.Exists(sDestPath & ".btl")
|
||||
sDestPath &= "_" & nIndex.ToString()
|
||||
End While
|
||||
End If
|
||||
File.Copy(sFile, sDestPath & ".btl", False)
|
||||
End If
|
||||
End If
|
||||
' se assemblato lo ripristino
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
If nSelPartId <> GDB_ID.NULL Then
|
||||
Dim SelPart As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nSelPartId)
|
||||
If Not IsNothing(SelPart) Then
|
||||
If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
End If
|
||||
'' se assemblato lo ripristino
|
||||
'If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
'If nSelPartId <> GDB_ID.NULL Then
|
||||
' Dim SelPart As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nSelPartId)
|
||||
' If Not IsNothing(SelPart) Then
|
||||
' If bShowSolid Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, True, False)
|
||||
' End If
|
||||
'End If
|
||||
If Map.refProjectVM.BTLStructureVM.BTLPartVMList.Count > 0 Then
|
||||
Map.refProjectVM.BTLStructureVM.SelectBTLPart(Map.refProjectVM.BTLStructureVM.BTLPartVMList(0))
|
||||
End If
|
||||
EgtZoom(ZM.ALL)
|
||||
End Sub
|
||||
|
||||
@@ -19,8 +19,10 @@
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding Msg_Text}"
|
||||
Style="{StaticResource Msg_TextBlock}"/>
|
||||
<Grid Style="{StaticResource BlockedWnd_Grid}">
|
||||
TextAlignment="Center"
|
||||
Margin="40,0,40,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<Grid Margin="5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -33,12 +35,14 @@
|
||||
IsDefault="True"
|
||||
Command="{Binding Save_Command}"
|
||||
Visibility="{Binding Buttons_Visibility}"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Grid.Column="3"
|
||||
Content="{Binding DoNotSave_Msg}"
|
||||
Command="{Binding DoNotSave_Command}"
|
||||
Visibility="{Binding Buttons_Visibility}"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ Imports System.IO
|
||||
Imports System.Threading
|
||||
Imports System.Windows.Threading
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports EgtBEAMWALL.Core.CalcIntegration
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib5
|
||||
Imports EgwMultiEngineManager.Data
|
||||
@@ -161,7 +162,7 @@ Public Class CALCPanelVM
|
||||
ProcessResults(e.m_Result)
|
||||
End Sub
|
||||
|
||||
Private Sub Calc_Ended(sender As Object, e As CalcEndEventArgs)
|
||||
Friend Sub Calc_Ended(sender As Object, e As CalcEndEventArgs)
|
||||
If e.End_ = CalcEndEventArgs.Results.ERROR_ OrElse e.End_ = CalcEndEventArgs.Results.NULL Then
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(62540))
|
||||
End If
|
||||
@@ -173,10 +174,31 @@ Public Class CALCPanelVM
|
||||
If e.CmdType = CmdTypes.CHECKGEN Then
|
||||
Map.refProdManagerVM.Save()
|
||||
End If
|
||||
' se modalita' assemblato attiva
|
||||
If Map.refShowBeamPanelVM.ShowBuilding_IsChecked AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
' lo rimonto
|
||||
Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
Map.refProjectVM.SetCalcRunning(False)
|
||||
Map.refMyStatusBarVM.ResetStopProgress()
|
||||
' se lanciato dal produci, eseguo produci
|
||||
If m_FromProduce <> ProduceType.NULL Then
|
||||
Select Case m_FromProduce
|
||||
Case ProduceType.PRODUCE
|
||||
Map.refRawPartManagerVM.ProduceRawPart()
|
||||
Case ProduceType.PRODUCEALL
|
||||
Map.refRawPartManagerVM.ProduceAllRawPart()
|
||||
End Select
|
||||
m_FromProduce = ProduceType.NULL
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Friend Sub Calc_Ended(CmdType As CmdTypes)
|
||||
'If e.End_ = CalcEndEventArgs.Results.ERROR_ OrElse e.End_ = CalcEndEventArgs.Results.NULL Then
|
||||
' EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(62540))
|
||||
'End If
|
||||
If CmdType = CmdTypes.EDIT Then
|
||||
Map.refMyStatusBarVM.SetOutputMessage("Editor closed")
|
||||
m_ReloadEditedFile = True
|
||||
End If
|
||||
' se verify o verifyall, salvo il progetto per conservarne gli stati calcolati
|
||||
If CmdType = CmdTypes.CHECKGEN OrElse CmdType = CmdTypes.CHECKNOSIM Then
|
||||
Map.refProdManagerVM.Save()
|
||||
End If
|
||||
Map.refProjectVM.SetCalcRunning(False)
|
||||
Map.refMyStatusBarVM.ResetStopProgress()
|
||||
@@ -293,16 +315,18 @@ Public Class CALCPanelVM
|
||||
Else
|
||||
' Inizializzo i pezzi del gruppo di lavoro in verifica
|
||||
Dim Machgroup As MyMachGroupVM = GetMachgroupVMFromMachgroupId(nBarId)
|
||||
For Each Part As PartVM In Machgroup.PartVMList
|
||||
Part.CalcPartUpdate(0, 0, "")
|
||||
' Resetto feature in collisione
|
||||
For Each Feature As BTLFeatureVM In Part.FeatureVMList
|
||||
If Feature.nState = CalcStates.COLLISION Then
|
||||
Feature.ResetFeatureError()
|
||||
End If
|
||||
If Not IsNothing(Machgroup) Then
|
||||
For Each Part As PartVM In Machgroup.PartVMList
|
||||
Part.CalcPartUpdate(0, 0, "")
|
||||
' Resetto feature in collisione
|
||||
For Each Feature As BTLFeatureVM In Part.FeatureVMList
|
||||
If Feature.nState = CalcStates.COLLISION Then
|
||||
Feature.ResetFeatureError()
|
||||
End If
|
||||
Next
|
||||
Next
|
||||
Next
|
||||
Machgroup.CalcMachGroupUpdate(0, 0, "")
|
||||
Machgroup.CalcMachGroupUpdate(0, 0, "")
|
||||
End If
|
||||
End If
|
||||
' Ciclo ...
|
||||
Dim nCUTID As Integer = -1
|
||||
@@ -418,9 +442,24 @@ Public Class CALCPanelVM
|
||||
End If
|
||||
|
||||
Else
|
||||
' do errore
|
||||
bErrors = True
|
||||
nLastErr = 25
|
||||
sLastMsg = "Execution Error"
|
||||
' riattivo comunque righe
|
||||
If nProgramPage = ProjectType.PROJ Then
|
||||
Dim BTLPart As BTLPartVM = GetBTLPartVMFromBTLPartId(nBarId)
|
||||
BTLPart.SetIsRowEnabled(True)
|
||||
BTLPart.CalcGlobalUpdate()
|
||||
Else
|
||||
Dim Machgroup As MyMachGroupVM = GetMachgroupVMFromMachgroupId(nBarId)
|
||||
For Each Part In Machgroup.PartVMList
|
||||
Part.CalcGlobalUpdate()
|
||||
Next
|
||||
Machgroup.SetIsRowEnabled(True)
|
||||
Machgroup.CalcGlobalUpdate()
|
||||
End If
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -569,6 +608,7 @@ Public Class CALCPanelVM
|
||||
|
||||
Private Sub VerifyProjWithEngine(CurrPart As BTLPartVM, CmdType As Integer)
|
||||
If Not CurrPart.bDO Then Return
|
||||
CurrPart.SetIsRowEnabled(False)
|
||||
Dim Args As New Dictionary(Of String, String)
|
||||
Args.Add("BarId", CurrPart.nPartId)
|
||||
Args.Add("ProgramPage", ProjectType.PROJ)
|
||||
@@ -619,6 +659,7 @@ Public Class CALCPanelVM
|
||||
Private Sub VerifyProdWithEngine(CurrMachGroup As MyMachGroupVM)
|
||||
' se e' gia' stato assegnato a supervisor, la salto e vado alla prossima barra
|
||||
If CurrMachGroup.nProduction_State >= ItemState.Assigned Then Return
|
||||
CurrMachGroup.SetIsRowEnabled(False)
|
||||
Dim Args As New Dictionary(Of String, String)
|
||||
Args.Add("BarId", CurrMachGroup.Id)
|
||||
Args.Add("ProgramPage", ProjectType.PROD)
|
||||
@@ -815,7 +856,7 @@ Public Class CALCPanelVM
|
||||
Map.refMyStatusBarVM.MaximumValue = Map.refMachGroupPanelVM.MachGroupVMList.Count
|
||||
For PartIndex = 0 To Map.refMachGroupPanelVM.MachGroupVMList.Count - 1
|
||||
' se e' gia' stato assegnato a supervisor, la salto e vado alla prossima barra
|
||||
If DirectCast(Map.refMachGroupPanelVM.MachGroupVMList(PartIndex), MyMachGroupVM).nProduction_State >= ItemState.Assigned Then Return
|
||||
If DirectCast(Map.refMachGroupPanelVM.MachGroupVMList(PartIndex), MyMachGroupVM).nProduction_State >= ItemState.Assigned Then Continue For
|
||||
VerifyProdWithEngine(Map.refMachGroupPanelVM.MachGroupVMList(PartIndex))
|
||||
Next
|
||||
End If
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
<StackPanel x:Class="CalcPanelV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
Orientation="Horizontal">
|
||||
|
||||
<Button ToolTip="{Binding ChooseMachine_ToolTip}"
|
||||
Command="{Binding ChooseMachine_Command}"
|
||||
IsEnabled="{Binding ChooseMachine_IsEnabled}"
|
||||
Visibility="{Binding ChooseMachineBtn_Visibility}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource ChooseMachine_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
<Grid Visibility="{Binding ChooseMachine_Visibility}"
|
||||
Style="{StaticResource CalcPanel_Grid}">
|
||||
Margin="0,0,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -23,11 +26,18 @@
|
||||
DisplayMemberPath="Name"
|
||||
SelectedItem="{Binding Path=SelectedMachine}"
|
||||
SelectedValuePath="Name"
|
||||
Style="{StaticResource CalcPanel_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<Button Grid.Column="1"
|
||||
Content="OK"
|
||||
Command="{Binding Ok_Command}"
|
||||
Style="{StaticResource CalcPanel_Button}"/>
|
||||
FontWeight="Light"
|
||||
FontSize="10"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</Grid>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
@@ -7,14 +7,15 @@
|
||||
Title="ChangeMaterialWnd"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Style="{StaticResource ChangeMaterialWnd_Grid}">
|
||||
<Grid HorizontalAlignment="Center"
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -24,28 +25,41 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding ProjMaterial_Msg}"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding ProjMaterialList}"
|
||||
SelectedItem="{Binding SelProjMaterial}"
|
||||
Style="{StaticResource ProjMaterial_ComboBox}"/>
|
||||
SelectedItem="{Binding SelProjMaterial}"
|
||||
Height="24"
|
||||
MinWidth="55"
|
||||
Width="150"
|
||||
Margin="5,-2,0,5"/>
|
||||
</Grid>
|
||||
<Grid Grid.Row="1"
|
||||
Style="{StaticResource ChangeMaterialWnd_Grid}">
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding WjMaterial_Msg}"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding WhMaterialList}"
|
||||
SelectedItem="{Binding SelWhMaterial}"
|
||||
Style="{StaticResource ProjMaterial_ComboBox}"/>
|
||||
Height="24"
|
||||
MinWidth="55"
|
||||
Width="150"
|
||||
Margin="5,-2,0,5"/>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="2"
|
||||
Style="{StaticResource AddPartWnd_Grid}">
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -57,11 +71,13 @@
|
||||
Content="{Binding Ok_Msg}"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Grid.Column="3"
|
||||
Content="{Binding Cancel_Msg}"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core;assembly=EgtBEAMWALL.Core"
|
||||
SizeToContent="Height"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
Width="300"
|
||||
Width="400"
|
||||
Title="ChangeParameterWnd"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="2*"/>
|
||||
@@ -27,26 +27,41 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="Process"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding PRCList}"
|
||||
SelectedItem="{Binding SelPRC}"
|
||||
DisplayMemberPath="ghDesc"
|
||||
Style="{StaticResource PRCList_ComboBox}"/>
|
||||
HorizontalAlignment="Stretch"
|
||||
Height="24"
|
||||
MinWidth="55"
|
||||
Margin="5,-2,0,5"/>
|
||||
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="Parameter"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<ComboBox Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding ParamList}"
|
||||
SelectedItem="{Binding SelParam}"
|
||||
DisplayMemberPath="sNameAndDescription"
|
||||
Style="{StaticResource PRCList_ComboBox}"/>
|
||||
HorizontalAlignment="Stretch"
|
||||
Height="24"
|
||||
MinWidth="55"
|
||||
Margin="5,-2,0,5"/>
|
||||
|
||||
<TextBlock Grid.Row="4"
|
||||
Text="Actual value"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Text="{Binding SelParam.sActualValue}"
|
||||
@@ -55,11 +70,15 @@
|
||||
Grid.Column="1"
|
||||
IsChecked="{Binding SelParam.bActualValue}"
|
||||
Visibility="{Binding SelParam.IsCheckBox_Visibility}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
<TextBlock Grid.Row="6"
|
||||
Text="New Value"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="6"
|
||||
Grid.Column="1"
|
||||
Text="{Binding SelParam.sNewValue}"
|
||||
@@ -68,11 +87,12 @@
|
||||
Grid.Column="1"
|
||||
IsChecked="{Binding SelParam.bNewValue}"
|
||||
Visibility="{Binding SelParam.IsCheckBox_Visibility}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
<Grid Grid.Row="8"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource AddPartWnd_Grid}">
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -84,11 +104,13 @@
|
||||
Content="Ok"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Grid.Column="3"
|
||||
Content="Cancel"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
DataContext="{DynamicResource ConfigurationPageVM}">
|
||||
DataContext="{StaticResource ConfigurationPageVM}">
|
||||
|
||||
<OPTIMIZER:MachinePanelV DataContext="{Binding MachinePanelVM}"/>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core;assembly=EgtBEAMWALL.Core"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
DataContext="{DynamicResource ConfigurationPageVM}">
|
||||
DataContext="{StaticResource ConfigurationPageVM}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -16,20 +16,34 @@
|
||||
<TabControl Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
SelectedIndex="{Binding SelConfigSubPage}"
|
||||
Style="{StaticResource Optimizer_TabControl}">
|
||||
Background="{StaticResource TabControl.Static.Generic.Background}"
|
||||
TabStripPlacement="Top"
|
||||
Margin="5,5,2.5,5">
|
||||
<TabControl.Style>
|
||||
<Style TargetType="{x:Type TabControl}">
|
||||
<Style.Resources>
|
||||
<Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource Optimizer_TabItem}"/>
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
</TabControl.Style>
|
||||
<TabItem>
|
||||
<TabItem.Header>
|
||||
<TextBlock Text="{Binding General_Msg}"
|
||||
Style="{StaticResource ConfigurationProgram_TextBlock}"/>
|
||||
FontSize="15"/>
|
||||
</TabItem.Header>
|
||||
<TabItem.Content>
|
||||
<StackPanel Style="{StaticResource ConfigurationProgram_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="5">
|
||||
<EgtBEAMWALLCORE:General_ConfigurationPageV/>
|
||||
<Button Command="{Binding SaveCommand}"
|
||||
ToolTip="{Binding SaveToolTip}"
|
||||
Style="{StaticResource SaveConfig_Button}">
|
||||
VerticalAlignment="Top"
|
||||
Height="40"
|
||||
Width="40"
|
||||
Margin="10,15,10,10"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Save_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
@@ -38,15 +52,21 @@
|
||||
</TabItem>
|
||||
<TabItem>
|
||||
<TabItem.Header>
|
||||
<StackPanel Style="{StaticResource ConfigurationProgram_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="5">
|
||||
<TextBlock Text="{Binding PDFEditor_Msg}"
|
||||
Style="{StaticResource ConfigurationProgram_TextBlock}"/>
|
||||
FontSize="15"/>
|
||||
<Button Command="{Binding SaveCommand}"
|
||||
ToolTip="{Binding SaveToolTip}"
|
||||
Visibility="{Binding PDFEditor_Visibility}"
|
||||
Style="{StaticResource SaveOptionPanel_Button}">
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Height="25"
|
||||
Width="25"
|
||||
Margin="5,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Save_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</TabItem.Header>
|
||||
|
||||
@@ -77,6 +77,9 @@
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="EgtBEAMWALL.Core">
|
||||
<HintPath>..\EgtBEAMWALL.Core\bin\Debug\EgtBEAMWALL.Core.dll</HintPath>
|
||||
@@ -196,9 +199,6 @@
|
||||
<Compile Include="Panel\TopPanelV.xaml.vb">
|
||||
<DependentUpon>TopPanelV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PopUp\BTLPartListPopUpV.xaml.vb">
|
||||
<DependentUpon>BTLPartListPopUpV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PopUp\RawPartListPopUpV.xaml.vb">
|
||||
<DependentUpon>RawPartListPopUpV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@@ -249,6 +249,7 @@
|
||||
<Compile Include="SceneHost\SceneHostV.xaml.vb">
|
||||
<DependentUpon>SceneHostV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SceneShowBulding\InstrumentPanelShowBuildingVM.vb" />
|
||||
<Compile Include="SceneShowBulding\SceneBuildingV.xaml.vb">
|
||||
<DependentUpon>SceneBuildingV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@@ -257,7 +258,12 @@
|
||||
<DependentUpon>SceneShowBuldingV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SceneShowBulding\SceneShowBuldingVM.vb" />
|
||||
<Compile Include="SceneShowBulding\ShowPanelShowBuildingVM.vb" />
|
||||
<Compile Include="SceneShowBulding\ViewPanelShowBuildingVM.vb" />
|
||||
<Compile Include="SetUpDB\SetUpDBV.xaml.vb">
|
||||
<DependentUpon>SetUpDBV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SetUpDB\SetUpDBVM.vb" />
|
||||
<Compile Include="SetUp\SetUpSupportClass.vb" />
|
||||
<Compile Include="SetUp\SetUpV.xaml.vb">
|
||||
<DependentUpon>SetUpV.xaml</DependentUpon>
|
||||
@@ -322,6 +328,9 @@
|
||||
<Compile Include="SupervisorCommThread\SupervisorComm.vb" />
|
||||
<Compile Include="SupervisorCommThread\SupervisorCommThread.vb" />
|
||||
<Compile Include="ToolsDbWindow\MyToolDbWindowVM.vb" />
|
||||
<Compile Include="ToolsDbWindow\ToolDbWindowV.xaml.vb">
|
||||
<DependentUpon>ToolDbWindowV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ToolsDbWindow\ToolsUpdate.vb" />
|
||||
<Compile Include="UpdateBTLWnd\UpdateBTLWndV.xaml.vb">
|
||||
<DependentUpon>UpdateBTLWndV.xaml</DependentUpon>
|
||||
@@ -333,6 +342,7 @@
|
||||
<Compile Include="UpdateBTLWnd\UpdateOrAppendWndVM.vb" />
|
||||
<Compile Include="Utility\Configuration.vb" />
|
||||
<Compile Include="Utility\CurrentMachine.vb" />
|
||||
<Compile Include="Utility\CustomDXGridLocalizer.vb" />
|
||||
<Compile Include="Utility\DbControllers.vb" />
|
||||
<Compile Include="Utility\Dictionary.xaml.vb">
|
||||
<DependentUpon>Dictionary.xaml</DependentUpon>
|
||||
@@ -512,6 +522,7 @@
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
</EmbeddedResource>
|
||||
<None Include="app.manifest" />
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
@@ -689,10 +700,6 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="PopUp\BTLPartListPopUpV.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="PopUp\RawPartListPopUpV.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
@@ -749,6 +756,10 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="SetUpDB\SetUpDBV.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="SetUp\SetUpV.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
@@ -813,6 +824,10 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="ToolsDbWindow\ToolDbWindowV.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="UpdateBTLWnd\UpdateBTLWndV.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
@@ -903,7 +918,6 @@
|
||||
<Resource Include="Resources\DrawPanel\Swept.png" />
|
||||
<Resource Include="Resources\DrawPanel\Text.png" />
|
||||
<Resource Include="Resources\DrawPanel\ThickCurve.png" />
|
||||
<Resource Include="Resources\Egalware.ico" />
|
||||
<Resource Include="Resources\EgtBEAMWALL.ico" />
|
||||
<Resource Include="Resources\EgtDialog\Folder.png" />
|
||||
<Resource Include="Resources\EgtDialog\New.png" />
|
||||
@@ -919,9 +933,7 @@
|
||||
<Resource Include="Resources\InstrumentPanel\Analyze.png" />
|
||||
<Resource Include="Resources\InstrumentPanel\ChangeParam.png" />
|
||||
<Resource Include="Resources\InstrumentPanel\GetDist.png" />
|
||||
<Resource Include="Resources\InstrumentPanel\Ott.png" />
|
||||
<Resource Include="Resources\InstrumentPanel\Statistics.png" />
|
||||
<Resource Include="Resources\InstrumentPanel\Vis.png" />
|
||||
<Resource Include="Resources\LeftPanel\AddFeature.png" />
|
||||
<Resource Include="Resources\LeftPanel\AddPart.png" />
|
||||
<Resource Include="Resources\LeftPanel\AddToRawPart.png" />
|
||||
@@ -929,25 +941,12 @@
|
||||
<Resource Include="Resources\LeftPanel\CopyPart.png" />
|
||||
<Resource Include="Resources\LeftPanel\MacroFeature.png" />
|
||||
<Resource Include="Resources\LeftPanel\NewRawPart.png" />
|
||||
<Resource Include="Resources\LeftPanel\NewRawPartAuto.png" />
|
||||
<Resource Include="Resources\LeftPanel\RemoveFeature.png" />
|
||||
<Resource Include="Resources\LeftPanel\RemovePart.png" />
|
||||
<Resource Include="Resources\MainMenu\Send.png" />
|
||||
<Resource Include="Resources\MovePartInRawPart\MoveLeftParts.png" />
|
||||
<Resource Include="Resources\MovePartInRawPart\MoveRightParts.png" />
|
||||
<Resource Include="Resources\OpenProjectFileDialog\Archived.png" />
|
||||
<Resource Include="Resources\OptimizePanel\FlipRot.png" />
|
||||
<Resource Include="Resources\OptimizePanel\UnlockFlip.png" />
|
||||
<Resource Include="Resources\OptimizePanel\UnlockRotation.png" />
|
||||
<Resource Include="Resources\OptimizePanel\Warehouse.png" />
|
||||
<Resource Include="Resources\PartManager\Clock.png" />
|
||||
<Resource Include="Resources\PartManager\LeftInvert.png" />
|
||||
<Resource Include="Resources\PartManager\LeftRotate.png" />
|
||||
<Resource Include="Resources\PartManager\Locked.old.png" />
|
||||
<Resource Include="Resources\PartManager\Locked.png" />
|
||||
<Resource Include="Resources\PartManager\RightInvert.png" />
|
||||
<Resource Include="Resources\PartManager\RightRotate.png" />
|
||||
<Resource Include="Resources\PartManager\Unlocked.old.png" />
|
||||
<Resource Include="Resources\PartManager\Unlocked.png" />
|
||||
<Resource Include="Resources\PDFEditor\Delete.png" />
|
||||
<Resource Include="Resources\PDFEditor\MoveDown.png" />
|
||||
@@ -955,18 +954,8 @@
|
||||
<Resource Include="Resources\PDFEditor\PDFPreview.png" />
|
||||
<Resource Include="Resources\PDFEditor\PrintPDF.png" />
|
||||
<Resource Include="Resources\ProjectManager\AddProj.png" />
|
||||
<Resource Include="Resources\ProjectManager\ExportProject.png" />
|
||||
<Resource Include="Resources\ProjectManager\GoToProd.png" />
|
||||
<Resource Include="Resources\ProjectManager\GoToProj.png" />
|
||||
<Resource Include="Resources\ProjectManager\ImportBTL.png" />
|
||||
<Resource Include="Resources\ProjectManager\ImportProject.png" />
|
||||
<Resource Include="Resources\ProjectManager\New.png" />
|
||||
<Resource Include="Resources\ProjectManager\Open.png" />
|
||||
<Resource Include="Resources\ProjectManager\Options.png" />
|
||||
<Resource Include="Resources\ProjectManager\Save.png" />
|
||||
<Resource Include="Resources\ProjectManager\SaveAs.png" />
|
||||
<Resource Include="Resources\ProjectManager\UpdateBTL.png" />
|
||||
<Resource Include="Resources\ShowBeamPanel\ShowAll.png" />
|
||||
<Resource Include="Resources\ShowBeamPanel\ShowBuilding.png" />
|
||||
<Resource Include="Resources\ShowBeamPanel\ShowSolid.png" />
|
||||
<Resource Include="Resources\ShowPanel\RenderingHL.png" />
|
||||
@@ -975,15 +964,9 @@
|
||||
<Resource Include="Resources\Statistics\CopyToClipboard.png" />
|
||||
<Resource Include="Resources\Statistics\PrintPDF.png" />
|
||||
<Resource Include="Resources\TopPanel\CopyRawPart.png" />
|
||||
<Resource Include="Resources\TopPanel\MoveDownPart.png" />
|
||||
<Resource Include="Resources\TopPanel\MovePartInRawPart.png" />
|
||||
<Resource Include="Resources\TopPanel\MoveUpPart.png" />
|
||||
<Resource Include="Resources\TopPanel\ProduceAllRawPart.png" />
|
||||
<Resource Include="Resources\TopPanel\ProduceRawPart.png" />
|
||||
<Resource Include="Resources\TopPanel\RemoveAllRawPart.png" />
|
||||
<Resource Include="Resources\TopPanel\RemovePart.old.png" />
|
||||
<Resource Include="Resources\TopPanel\RemovePart.png" />
|
||||
<Resource Include="Resources\TopPanel\RemoveRawPart.png" />
|
||||
<Resource Include="Resources\TopPanel\ReorderPart.png" />
|
||||
<Resource Include="Resources\TreeView\Folder.png" />
|
||||
<Resource Include="Resources\ViewPanel\LookFromBACK.png" />
|
||||
@@ -997,8 +980,6 @@
|
||||
<Resource Include="Resources\ViewPanel\LookFromRIGHT.png" />
|
||||
<Resource Include="Resources\ViewPanel\LookFromTOP.png" />
|
||||
<Resource Include="Resources\ViewPanel\ZoomAll.png" />
|
||||
<Resource Include="Resources\ViewPanel\ZoomIn.png" />
|
||||
<Resource Include="Resources\ViewPanel\ZoomOut.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\down.png" />
|
||||
@@ -1023,10 +1004,10 @@
|
||||
<Version>3.1.1.2</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EgwRedmineAPI">
|
||||
<Version>3.1.7.12</Version>
|
||||
<Version>3.1.8.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EgwWPFBaseLib">
|
||||
<Version>3.1.7.1</Version>
|
||||
<Version>3.1.8-beta.4</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EntityFramework">
|
||||
<Version>6.4.4</Version>
|
||||
@@ -1074,9 +1055,6 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\LeftPanel\All_Filter.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\Cancel.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\Ok.png" />
|
||||
</ItemGroup>
|
||||
@@ -1140,21 +1118,9 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\MoveUp.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\MoveLeft.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\MoveRight.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\Inversion.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\deselectall.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\selectall.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\configuration.png" />
|
||||
</ItemGroup>
|
||||
@@ -1167,12 +1133,6 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\padlock-unlock.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\play.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\add.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\diskette.png" />
|
||||
</ItemGroup>
|
||||
@@ -1182,9 +1142,6 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\adjustment.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\up.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\openfolder.png" />
|
||||
</ItemGroup>
|
||||
@@ -1200,15 +1157,6 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\import.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\ViewPanel\ZoomAll+.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\InstrumentPanel\GetDist+.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\modify_adjustment.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\SplashScreen\SplashScreen.png" />
|
||||
</ItemGroup>
|
||||
@@ -1251,6 +1199,13 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\EditIntestazione.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\disketteas.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\MainMenu\TicketManager.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\Aedifica\Aedifica.OptimizerR32.exe
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Imports System.IO
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports EgtBEAMWALL.Core.ConstIni
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib5
|
||||
@@ -87,7 +88,7 @@ Module MyExecProcessManager
|
||||
Integer.TryParse(Answer.Args("BarId"), nBarId)
|
||||
EgtOutLog("Risultato progetto " & nBarId)
|
||||
CALCPanelVM.ProcessResults(sBarPath, nProgramPage, nBarId)
|
||||
If Answer.Args.Count > 4 Then
|
||||
If Answer.Args.Count > 5 Then
|
||||
Dim PartItem As BTLPartVM = Map.refProjectVM.BTLStructureVM.BTLPartVMList.FirstOrDefault(Function(x) x.nPartId = nBarId)
|
||||
Dim nPreInvert As Integer = -1
|
||||
Dim bPreInvert As Boolean = False
|
||||
@@ -114,9 +115,10 @@ Module MyExecProcessManager
|
||||
|
||||
m_sInfoNgePartList = Answer.Args.Where(Function(k) k.Key.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)).Select(Function(k) k.Value).ToList()
|
||||
|
||||
For Each InfoNgePartItem As String In sInfoNgePartList
|
||||
For Each InfoNgePartItem As String In m_sInfoNgePartList
|
||||
Dim sKeyVal() As String = InfoNgePartItem.Trim().Split("="c)
|
||||
EgtSetInfo(PartItem.nPartId, sKeyVal(0), sKeyVal(1))
|
||||
Map.refProjectVM.InfoNgeValue.Add(sKeyVal(0))
|
||||
Next
|
||||
|
||||
End If
|
||||
@@ -127,6 +129,11 @@ Module MyExecProcessManager
|
||||
Dim nRunningProcesses As Integer = BeamManager.nRunningProcesses
|
||||
Map.refMyStatusBarVM.SetLoadingProgress(Map.refMyStatusBarVM.MaximumValue - nQuestionInQueue - (nRunningProcesses - nFreeOrWaitingAnswerProcesses))
|
||||
If nQuestionInQueue = 0 AndAlso nFreeOrWaitingAnswerProcesses = nRunningProcesses Then
|
||||
Dim CmdType As CmdTypes = CmdTypes.CHECKGEN
|
||||
If Answer.Args.ContainsKey("CmdType") Then
|
||||
CmdType = Answer.Args("CmdType")
|
||||
End If
|
||||
Map.refCALCPanelVM.Calc_Ended(CmdType)
|
||||
Map.refMyStatusBarVM.EndLoading(EgtMsg(62577), 2)
|
||||
Map.refSceneShowBuldingVM.SceneShowBulding.Enable(True)
|
||||
Map.refSceneBuildingVM.SetViewPanel_IsEnable(True)
|
||||
|
||||
@@ -1,26 +1,39 @@
|
||||
<StackPanel x:Class="FeatureListManagerV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
DataContext="{StaticResource FeatureListManagerVM}"
|
||||
Style="{StaticResource FeatureListManager_StackPanel}">
|
||||
DataContext="{StaticResource FeatureListManagerVM}"
|
||||
Orientation="Vertical"
|
||||
HorizontalAlignment="Left">
|
||||
|
||||
<Button Command="{Binding CopyFeature_Command}"
|
||||
ToolTip="{Binding CopyFeature_ToolTip}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
FontWeight="Light"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="2.5,2.5,2.5,2.5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource CopyFeature_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding AddFeature_Command}"
|
||||
ToolTip="{Binding AddFeature_ToolTip}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
FontWeight="Light"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="2.5,2.5,2.5,2.5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource AddFeature_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding RemoveFeature_Command}"
|
||||
ToolTip="{Binding RemoveFeature_ToolTip}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
FontWeight="Light"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="2.5,2.5,2.5,2.5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Remove_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
Style="{StaticResource FeatureManager_Grid}">
|
||||
Margin="2,4,0,2">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
<Expander Header="{Binding Face_Msg}"
|
||||
IsEnabled="{Binding FeatureManager_IsEnabled}"
|
||||
Style="{StaticResource FeatureManager_Expander}">
|
||||
Width="80">
|
||||
<ListBox ItemsSource="{Binding Tag.SIDEList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
SelectedItem="{Binding Tag.nSelSIDE, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
IsEnabled="{Binding FeatureManager_IsEnabled}"
|
||||
@@ -30,7 +30,7 @@
|
||||
<Expander Grid.Column="1"
|
||||
Header="{Binding Group_Msg}"
|
||||
IsEnabled="{Binding FeatureManager_IsEnabled}"
|
||||
Style="{StaticResource FeatureManager_Expander}">
|
||||
Width="80">
|
||||
<ListBox ItemsSource="{Binding Tag.GRPList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
SelectedItem="{Binding Tag.nSelGRP, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
IsEnabled="{Binding FeatureManager_IsEnabled}"
|
||||
@@ -41,46 +41,71 @@
|
||||
Text="{Binding Priority_Msg}"
|
||||
IsEnabled="{Binding FeatureManager_IsEnabled}"
|
||||
Visibility="{Binding Priority_Visibility}"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="3"
|
||||
Text="{Binding Tag.sPriority,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}},
|
||||
UpdateSourceTrigger=Explicit}"
|
||||
IsEnabled="{Binding FeatureManager_IsEnabled}"
|
||||
Visibility="{Binding Priority_Visibility}"
|
||||
Style="{StaticResource Dimension_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
VerticalAlignment="Center"
|
||||
Height="25"/>
|
||||
<TextBlock Grid.Column="4"
|
||||
Text="{Binding Tag.sName, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
Style="{StaticResource FeatureManager_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Margin="5,5,0,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="5"
|
||||
ItemsSource="{Binding Tag.VARIANTList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
SelectedItem="{Binding Tag.nSelVARIANT, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
IsEnabled="{Binding FeatureManager_IsEnabled}"
|
||||
Visibility="{Binding Variant_Visibility}"
|
||||
Style="{StaticResource Feature_ComboBox}"/>
|
||||
Height="24"
|
||||
MinWidth="55"
|
||||
Margin="5,-2,0,5"/>
|
||||
<Button Grid.Column="6"
|
||||
Content="{Binding Edit_Msg}"
|
||||
Command="{Binding Tag.Edit_Command, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
Visibility="{Binding Tag.Edit_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
IsEnabled="{Binding Edit_IsEnabled}"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Grid.Column="7"
|
||||
Content="{Binding Save_Msg}"
|
||||
Command="{Binding Tag.Save_Command, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
Visibility="{Binding Tag.SaveCancel_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Grid.Column="8"
|
||||
Content="{Binding Cancel_Msg}"
|
||||
Command="{Binding Tag.Cancel_Command, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
Visibility="{Binding Tag.SaveCancel_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureManagerV}}}"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Grid.Column="9"
|
||||
Command="{Binding MacroFeature_Command}"
|
||||
ToolTip="{Binding MacroFeature_ToolTip}"
|
||||
IsEnabled="{Binding MacroFeature_IsEnabled}"
|
||||
Style="{StaticResource MacroFeaturen_Button}">
|
||||
HorizontalAlignment="Right"
|
||||
FontWeight="Light"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="2.5,2.5,10,2.5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource MacroFeature_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -9,19 +9,24 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.RowSpan="2"
|
||||
Style="{StaticResource ForcedStrategyBTL_Border}">
|
||||
Margin="-9,-8,2,0"
|
||||
Style="{StaticResource Optimizer_Border}">
|
||||
<ListBox ItemsSource="{Binding StrategyList}"
|
||||
SelectedItem="{Binding SelStrategy}"
|
||||
Style="{StaticResource ForcedStrategyBTL_ListBox}">
|
||||
<ListBox.Resources>
|
||||
<DataTemplate DataType="{x:Type Optimizer:Strategy}">
|
||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<RadioButton IsChecked="{Binding IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
|
||||
GroupName="ForcedStrategy"/>
|
||||
<Image Source="{Binding sStrategyImagePath}"
|
||||
Style="{StaticResource ForcedStrategyBTL_Image}"/>
|
||||
Height="100"
|
||||
Width="100"
|
||||
Stretch="Uniform"/>
|
||||
<TextBlock Text="{Binding sStrategyName}"
|
||||
Style="{StaticResource ForcedStrategy_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="13"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.Resources>
|
||||
@@ -29,10 +34,15 @@
|
||||
</Border>
|
||||
|
||||
<GroupBox Grid.Column="1"
|
||||
Style="{StaticResource ForcedStrategyBTL_GroupBox}">
|
||||
Margin="0,-12,-10,0"
|
||||
Style="{StaticResource ProjectParameters_GroupBox}">
|
||||
<GroupBox.Header>
|
||||
<TextBlock Text="{Binding SelStrategy.sStrategyName}"
|
||||
Style="{StaticResource ForcedStrategyBTL_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="13"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</GroupBox.Header>
|
||||
<Optimizer:ParameterStrategyV Tag="{Binding SelStrategy}"/>
|
||||
</GroupBox>
|
||||
|
||||
@@ -12,19 +12,24 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.RowSpan="2"
|
||||
Style="{StaticResource ForcedStrategyBTL_Border}">
|
||||
Margin="-9,0,2,0"
|
||||
Style="{StaticResource Optimizer_Border}">
|
||||
<ListBox ItemsSource="{Binding StrategyList}"
|
||||
SelectedItem="{Binding SelStrategy}"
|
||||
Style="{StaticResource ForcedStrategyBTL_ListBox}">
|
||||
<ListBox.Resources>
|
||||
<DataTemplate DataType="{x:Type OPTIMIZER:Strategy}">
|
||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<RadioButton IsChecked="{Binding IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"
|
||||
GroupName="ForcedStrategy"/>
|
||||
<Image Source="{Binding sStrategyImagePath}"
|
||||
Style="{StaticResource ForcedStrategyBTL_Image}"/>
|
||||
Height="100"
|
||||
Width="100"
|
||||
Stretch="Uniform"/>
|
||||
<TextBlock Text="{Binding sStrategyName}"
|
||||
Style="{StaticResource ForcedStrategy_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="13"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.Resources>
|
||||
@@ -32,28 +37,40 @@
|
||||
</Border>
|
||||
|
||||
<GroupBox Grid.Column="1"
|
||||
Style="{StaticResource ForcedStrategyBTL_GroupBox}">
|
||||
Margin="0"
|
||||
Style="{StaticResource ProjectParameters_GroupBox}">
|
||||
<GroupBox.Header>
|
||||
<TextBlock Text="{Binding SelStrategy.sStrategyName}"
|
||||
Style="{StaticResource ForcedStrategyBTL_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="13"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</GroupBox.Header>
|
||||
<OPTIMIZER:ParameterStrategyV Tag="{Binding SelStrategy}"/>
|
||||
</GroupBox>
|
||||
|
||||
<StackPanel Grid.Row="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource PParameters_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Right">
|
||||
<Button Command="{Binding Ok_Command}"
|
||||
ToolTip="{Binding Ok_Msg}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Ok_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding Cancel_Command}"
|
||||
ToolTip="{Binding Cancel_Msg}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Delete_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
@@ -269,13 +269,22 @@ Public Class ForcedStrategyPanelVM
|
||||
If IsNothing(m_CurrentFeature) Then Return
|
||||
If m_CurrentFeature.nFeatureId < 0 Then Return
|
||||
If IsNothing(m_SelStrategy) Then Return
|
||||
If IsNothing(Map.refProjectVM.BTLStructureVM) Then Return
|
||||
If IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) Then Return
|
||||
If IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM) Then Return
|
||||
If IsNothing(Map.refProjectVM.MachGroupPanelVM) Then Return
|
||||
If IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup) Then Return
|
||||
If IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart) Then Return
|
||||
If IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM) Then Return
|
||||
Dim StrategyType As Integer = 0
|
||||
If TypeOf m_CurrentFeature.ParentPart Is BTLPartM Then
|
||||
StrategyType = 1
|
||||
ElseIf TypeOf m_CurrentFeature.ParentPart Is PartM Then
|
||||
StrategyType = 2
|
||||
Else Return
|
||||
End If
|
||||
If StrategyType = 1 AndAlso
|
||||
(IsNothing(Map.refProjectVM.BTLStructureVM) OrElse
|
||||
IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) OrElse
|
||||
IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM)) Then Return
|
||||
If StrategyType = 2 AndAlso
|
||||
(IsNothing(Map.refProjectVM.MachGroupPanelVM) OrElse
|
||||
IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup) OrElse
|
||||
IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart) OrElse
|
||||
IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM)) Then Return
|
||||
' cancello precedenti valori
|
||||
Dim sPrecStrategyID As String = ""
|
||||
EgtGetInfo(m_CurrentFeature.nFeatureId, ConstBeam.STRATEGY, sPrecStrategyID)
|
||||
@@ -292,14 +301,16 @@ Public Class ForcedStrategyPanelVM
|
||||
m_SelStrategy.SetbIsStrategyModify(False)
|
||||
EgtRemoveInfo(m_CurrentFeature.nFeatureId, ConstBeam.STRATEGY)
|
||||
EgtRemoveInfo(m_CurrentFeature.nFeatureId, ConstBeam.STRATEGY & m_CurrentFeature.nFeatureId & "_FORCED")
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SetStrategyModify_Visibility(False)
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SetbStrategy_Visibility(False)
|
||||
If StrategyType = 1 Then
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SetStrategyModify_Visibility(False)
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SetbStrategy_Visibility(False)
|
||||
End If
|
||||
Else
|
||||
m_SelStrategy.SetbIsStrategyModify(True)
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SetStrategyModify_Visibility(True)
|
||||
If Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM) Then
|
||||
If StrategyType = 1 Then
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SetStrategyModify_Visibility(True)
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SetbStrategy_Visibility(True)
|
||||
ElseIf Not IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM) Then
|
||||
ElseIf StrategyType = 2 Then
|
||||
Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM.SetbStrategy_Visibility(True)
|
||||
End If
|
||||
EgtSetInfo(m_CurrentFeature.nFeatureId, ConstBeam.STRATEGY, SelStrategy.sStrategyId)
|
||||
@@ -368,6 +379,7 @@ Public Class ForcedStrategyPanelVM
|
||||
ForcedStrategy()
|
||||
Map.refProjectVM.SetSelManagerTab(ProjectVM.StrategyManagerTab.RAWPARTMANAGER)
|
||||
' Abilito LeftPanel
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(True)
|
||||
Map.refProjectVM.SetLeftPanel_IsEnabled(True)
|
||||
Map.refProjectVM.SetLeftPanel_Opacity(1)
|
||||
Map.refSceneHostVM.SaveProject()
|
||||
@@ -389,6 +401,7 @@ Public Class ForcedStrategyPanelVM
|
||||
Public Sub Cancel()
|
||||
Map.refProjectVM.SetSelManagerTab(ProjectVM.StrategyManagerTab.RAWPARTMANAGER)
|
||||
' Abilito LeftPanel
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(True)
|
||||
Map.refProjectVM.SetLeftPanel_IsEnabled(True)
|
||||
Map.refProjectVM.SetLeftPanel_Opacity(1)
|
||||
End Sub
|
||||
|
||||
@@ -1,16 +1,35 @@
|
||||
<UserControl x:Class="FreeContourInputV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Style="{StaticResource FreeContourInput_UserControl}">
|
||||
Height="32"
|
||||
Margin="5"
|
||||
VerticalAlignment="Top">
|
||||
|
||||
<StackPanel Style="{StaticResource FreeContourInput_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel.Style>
|
||||
<Style TargetType="{x:Type StackPanel}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding FocusTextBox}" Value="True">
|
||||
<Setter Property="FocusManager.FocusedElement" Value="{Binding ElementName=PropertySearch}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</StackPanel.Style>
|
||||
|
||||
<TextBlock Text="{Binding Message}"
|
||||
Visibility="{Binding Message_Visibility}"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<TextBox Text="{Binding Text, UpdateSourceTrigger=PropertyChanged}"
|
||||
Visibility="{Binding Text_Visibility}"
|
||||
Style="{StaticResource FreeContour_TextBox}">
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="22"
|
||||
Width="200"
|
||||
Margin="5,0,5,0">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter" Command="{Binding Done_Command, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<KeyBinding Key="S" Modifiers="Control" Command="{Binding Show_Command}"/>
|
||||
@@ -19,25 +38,33 @@
|
||||
<CheckBox Content="{Binding CheckBoxText}"
|
||||
IsChecked="{Binding IsChecked}"
|
||||
Visibility="{Binding Check_Visibility}"
|
||||
Style="{StaticResource FreeContourInput_CheckBox}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="5,0,5,0"/>
|
||||
<ComboBox ItemsSource="{Binding ComboItemsList}"
|
||||
SelectedIndex="{Binding ComboSelectedIndex}"
|
||||
Visibility="{Binding Combo_Visibility}"
|
||||
Style="{StaticResource FreeContourInput_ComboBox}"/>
|
||||
<Grid Style="{StaticResource FreeContourInput_Grid}">
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<Grid Margin="5,0,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Command="{Binding Show_Command}"
|
||||
Visibility="{Binding ShowBtn_Visibility}"
|
||||
Content="{Binding ShowMsg}"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
Visibility="{Binding ShowBtn_Visibility}"
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Grid.Column="1"
|
||||
Command="{Binding Done_Command}"
|
||||
Visibility="{Binding DoneBtn_Visibility}"
|
||||
Content="{Binding OkMsg}"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
Visibility="{Binding DoneBtn_Visibility}"
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
|
||||
@@ -1,76 +1,113 @@
|
||||
<StackPanel x:Class="FreeContourManagerV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Style="{StaticResource FreeContourManager_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
Margin="2,5,2,5">
|
||||
|
||||
<ComboBox ItemsSource="{Binding TypeList}"
|
||||
SelectedIndex="{Binding SelType, Delay=1}"
|
||||
Style="{StaticResource ProdType_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="160"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<ComboBox ItemsSource="{Binding PathList}"
|
||||
SelectedIndex="{Binding SelPath}"
|
||||
Visibility="{Binding PathList_Visibility}"
|
||||
Style="{StaticResource ProdPath_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="100"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<Button Command="{Binding Line2P_Command}"
|
||||
ToolTip="{Binding Line2P_ToolTip}"
|
||||
IsEnabled="{Binding Line2P_IsEnabled}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Line2P_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding Delete_Command}"
|
||||
ToolTip="{Binding Delete_ToolTip}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource DeleteD_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding ModifyCurve_Command}"
|
||||
ToolTip="{Binding ModifyCurve_ToolTip}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource ModifyCurve_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding AddPointCurve_Command}"
|
||||
ToolTip="{Binding AddPointCurve_ToolTip}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource AddPointCurve_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding RemovePointCurve_Command}"
|
||||
ToolTip="{Binding RemovePointCurve_ToolTip}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource RemovePointCurve_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding ChangeStart_Command}"
|
||||
ToolTip="{Binding ChangeStart_ToolTip}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource ChangeStart_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding InvertCurve_Command}"
|
||||
ToolTip="{Binding InvertCurve_ToolTip}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource InvertCurve_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding Move_Command}"
|
||||
ToolTip="{Binding Move_ToolTip}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Move_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding Rotate_Command}"
|
||||
ToolTip="{Binding Rotate_ToolTip}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource RotateD_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding TextAngle_Command}"
|
||||
ToolTip="{Binding TextAngle_ToolTip}"
|
||||
Visibility="{Binding TextAngle_Visibility}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Text_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
@@ -301,7 +301,6 @@ Public Class FreeContourManagerVM
|
||||
Map.refPartListVM.SetBTLPartListIsEnabled(False)
|
||||
Map.refPParameterListVM.SetPParameterListIsEnabled(False)
|
||||
Map.refShowBeamPanelVM.SetShowSolid_IsEnabled(False)
|
||||
Map.refShowBeamPanelVM.SetShowAll_IsEnabled(False)
|
||||
'resetto tutte le variabili
|
||||
SelPart = Nothing
|
||||
SelFeature = Nothing
|
||||
@@ -539,7 +538,8 @@ Public Class FreeContourManagerVM
|
||||
Map.refPartListVM.SetBTLPartListIsEnabled(True)
|
||||
Map.refPParameterListVM.SetPParameterListIsEnabled(True)
|
||||
Map.refShowBeamPanelVM.SetShowSolid_IsEnabled(True)
|
||||
Map.refShowBeamPanelVM.SetShowAll_IsEnabled(True)
|
||||
' riabilito assemblato
|
||||
Map.refShowBeamPanelVM.ShowBuilding_IsEnabled = True
|
||||
' reimposto vista normale per pezzo
|
||||
Core.ViewPanelVM.BWSetView(If(Core.ViewPanelVM.Type = BWType.BEAM, VT.ISO_SW, VT.TOP), False)
|
||||
EgtZoom(ZM.ALL)
|
||||
|
||||
@@ -21,12 +21,19 @@
|
||||
<OPTIMIZER:ProjectParametersV Margin="0,10,0,0"/>
|
||||
|
||||
<StackPanel Grid.Row="1"
|
||||
Style="{StaticResource GeneralParametersStrategy_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Right"
|
||||
Margin="10">
|
||||
<Button Command="{Binding Ok_Command}"
|
||||
ToolTip="{Binding SaveAsToolTip}"
|
||||
Style="{StaticResource SaveStrategy_Button}">
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Height="40"
|
||||
Width="40"
|
||||
Margin="5,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Ok_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -880,31 +880,13 @@ Public Class ListGenericParameter
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Private m_AvailableToolList_View As ICollectionView = Nothing
|
||||
Public ReadOnly Property AvailableToolList_View As ICollectionView
|
||||
Private m_ToolList_View As ICollectionView = Nothing
|
||||
Public ReadOnly Property ToolList_View As ICollectionView
|
||||
Get
|
||||
Return m_AvailableToolList_View
|
||||
Return m_ToolList_View
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Private m_ActiveToolList_View As ICollectionView = Nothing
|
||||
Public ReadOnly Property ActiveToolList_View As ICollectionView
|
||||
Get
|
||||
Return m_ActiveToolList_View
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Private m_bAvailableToolListVisibility As Visibility = Visibility.Collapsed
|
||||
Public ReadOnly Property AvailableToolListVisibility As Visibility
|
||||
Get
|
||||
Return m_bAvailableToolListVisibility
|
||||
End Get
|
||||
End Property
|
||||
Friend Sub SetAvailableToolListVisibility(value As Boolean)
|
||||
m_bAvailableToolListVisibility = If(value, Visibility.Visible, Visibility.Collapsed)
|
||||
NotifyPropertyChanged(NameOf(AvailableToolListVisibility))
|
||||
End Sub
|
||||
|
||||
Private m_bOpenToolListIsEnable As Boolean = True
|
||||
Public ReadOnly Property OpenToolListIsEnable As Boolean
|
||||
Get
|
||||
@@ -916,28 +898,6 @@ Public Class ListGenericParameter
|
||||
NotifyPropertyChanged(NameOf(OpenToolListIsEnable))
|
||||
End Sub
|
||||
|
||||
Private m_bActiveToolListIsEnable As Boolean
|
||||
Public ReadOnly Property ActiveToolListIsEnable As Boolean
|
||||
Get
|
||||
Return m_bActiveToolListIsEnable
|
||||
End Get
|
||||
End Property
|
||||
Friend Sub SetActiveToolListIsEnable(value As Boolean)
|
||||
m_bActiveToolListIsEnable = value
|
||||
NotifyPropertyChanged(NameOf(ActiveToolListIsEnable))
|
||||
End Sub
|
||||
|
||||
Private m_bAvailableToolListIsEnable As Boolean
|
||||
Public ReadOnly Property AvailableToolListIsEnable As Boolean
|
||||
Get
|
||||
Return m_bAvailableToolListIsEnable
|
||||
End Get
|
||||
End Property
|
||||
Friend Sub SetAvailableToolListIsEnable(value As Boolean)
|
||||
m_bAvailableToolListIsEnable = value
|
||||
NotifyPropertyChanged(NameOf(AvailableToolListIsEnable))
|
||||
End Sub
|
||||
|
||||
Private m_bListBoxVisibility As Visibility = Visibility.Collapsed
|
||||
Public ReadOnly Property bListBoxVisibility As Visibility
|
||||
Get
|
||||
@@ -963,6 +923,24 @@ Public Class ListGenericParameter
|
||||
NotifyPropertyChanged(NameOf(bIsListModify))
|
||||
End Sub
|
||||
|
||||
Private m_OpenToolList_IsChecked As Boolean
|
||||
Public Property OpenToolList_IsChecked As Boolean
|
||||
Get
|
||||
Return m_OpenToolList_IsChecked
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
m_OpenToolList_IsChecked = value
|
||||
For Each ItemList In m_ListValue
|
||||
If m_OpenToolList_IsChecked Then
|
||||
ItemList.SetTool_Visibility(True)
|
||||
ElseIf Not ItemList.bIsActive Then
|
||||
ItemList.SetTool_Visibility(False)
|
||||
End If
|
||||
Next
|
||||
NotifyPropertyChanged(NameOf(OpenToolList_IsChecked))
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#Region "Messages"
|
||||
|
||||
Public ReadOnly Property SelectAllToolTip As String
|
||||
@@ -991,12 +969,6 @@ Public Class ListGenericParameter
|
||||
|
||||
#End Region ' Messages
|
||||
|
||||
' Definizione comandi
|
||||
Private m_cmdDeselectAll As ICommand
|
||||
Private m_cmdSelectAll As ICommand
|
||||
Private m_cmdOpenToolList As ICommand
|
||||
Private m_cmdCloseToolList As ICommand
|
||||
|
||||
#End Region ' Fields & Properties
|
||||
|
||||
#Region "CONSTRUCTOR"
|
||||
@@ -1014,7 +986,7 @@ Public Class ListGenericParameter
|
||||
While bNext
|
||||
EgtTdbSetCurrTool(sName)
|
||||
EgtTdbGetCurrToolParam(MCH_TP.UUID, sUUID)
|
||||
'm_ListValue.Add(New ToolParameter(sUUID, sName, Me))
|
||||
m_ListValue.Add(New ToolParameter(sUUID, sName, Me))
|
||||
bNext = EgtTdbGetNextTool(nSubType, sName, nType)
|
||||
End While
|
||||
End Sub
|
||||
@@ -1036,116 +1008,26 @@ Public Class ListGenericParameter
|
||||
Return JsonParametersHelper
|
||||
End Function
|
||||
|
||||
Friend Function AvailableToolFilter(Strategy As Object) As Boolean
|
||||
Return DirectCast(Strategy, ToolParameter).bIsActive = False
|
||||
End Function
|
||||
|
||||
Friend Function ActiveToolFilter(Strategy As Object) As Boolean
|
||||
Return DirectCast(Strategy, ToolParameter).bIsActive = True
|
||||
End Function
|
||||
|
||||
Friend Sub CreateToolsViews()
|
||||
m_AvailableToolList_View = New ListCollectionView(m_ListValue)
|
||||
m_AvailableToolList_View.Filter = AddressOf AvailableToolFilter
|
||||
m_ActiveToolList_View = New ListCollectionView(m_ListValue)
|
||||
m_ActiveToolList_View.Filter = AddressOf ActiveToolFilter
|
||||
m_ToolList_View = New ListCollectionView(m_ListValue)
|
||||
m_ToolList_View.SortDescriptions.Add(New SortDescription("bIsActive", ListSortDirection.Descending))
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Funzione per visualizzare le liste available e active tool
|
||||
''' </summary>
|
||||
Friend Sub ToolView()
|
||||
SetActiveToolListIsEnable(If(m_ActiveToolList_View.IsEmpty, False, True))
|
||||
SetAvailableToolListIsEnable(If(m_AvailableToolList_View.IsEmpty, False, True))
|
||||
For Each ItemList In m_ListValue
|
||||
If ItemList.bIsActive AndAlso Not m_OpenToolList_IsChecked Then
|
||||
ItemList.SetTool_Visibility(True)
|
||||
Else
|
||||
ItemList.SetTool_Visibility(False)
|
||||
End If
|
||||
Next
|
||||
End Sub
|
||||
|
||||
#End Region ' Methods
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "OpenToolListCommand"
|
||||
|
||||
Public ReadOnly Property OpenToolListCommand As ICommand
|
||||
Get
|
||||
If m_cmdOpenToolList Is Nothing Then
|
||||
m_cmdOpenToolList = New Command(AddressOf OpenToolList)
|
||||
End If
|
||||
Return m_cmdOpenToolList
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub OpenToolList()
|
||||
SetAvailableToolListVisibility(True)
|
||||
SetOpenToolListIsEnable(False)
|
||||
End Sub
|
||||
|
||||
#End Region ' OpenToolListCommand
|
||||
|
||||
#Region "CloseToolListCommand"
|
||||
|
||||
Public ReadOnly Property CloseToolListCommand As ICommand
|
||||
Get
|
||||
If m_cmdCloseToolList Is Nothing Then
|
||||
m_cmdCloseToolList = New Command(AddressOf CloseToolList)
|
||||
End If
|
||||
Return m_cmdCloseToolList
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub CloseToolList()
|
||||
SetAvailableToolListVisibility(False)
|
||||
SetOpenToolListIsEnable(True)
|
||||
End Sub
|
||||
|
||||
#End Region ' CloseToolListCommand
|
||||
|
||||
#Region "SelectAllCommand"
|
||||
|
||||
Public ReadOnly Property SelectAllCommand As ICommand
|
||||
Get
|
||||
If m_cmdSelectAll Is Nothing Then
|
||||
m_cmdSelectAll = New Command(AddressOf SelectAll)
|
||||
End If
|
||||
Return m_cmdSelectAll
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub SelectAll()
|
||||
'If Not IsNothing(sSubType) Then
|
||||
' For Each ItemTool As ToolParameter In m_ListValue
|
||||
' ItemTool.bIsActive = True
|
||||
' Next
|
||||
'End If
|
||||
SetAvailableToolListIsEnable(False)
|
||||
Map.refStrategyManagerVM.SetbIsModifyStrategy(True)
|
||||
End Sub
|
||||
|
||||
#End Region ' SelectAllCommand
|
||||
|
||||
#Region "DeselectAllCommand"
|
||||
|
||||
Public ReadOnly Property DeselectAllCommand As ICommand
|
||||
Get
|
||||
If m_cmdDeselectAll Is Nothing Then
|
||||
m_cmdDeselectAll = New Command(AddressOf DeselectAll)
|
||||
End If
|
||||
Return m_cmdDeselectAll
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub DeselectAll()
|
||||
'If Not IsNothing(sSubType) Then
|
||||
' For Each ItemTool As ToolParameter In m_ListValue
|
||||
' ItemTool.bIsActive = False
|
||||
' Next
|
||||
'End If
|
||||
SetActiveToolListIsEnable(False)
|
||||
Map.refStrategyManagerVM.SetbIsModifyStrategy(True)
|
||||
End Sub
|
||||
|
||||
#End Region ' DeselectAllCommand
|
||||
|
||||
#End Region ' Commands
|
||||
|
||||
End Class
|
||||
|
||||
Class GroupVisibilityConverter
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
Name="GeneralParametersWnd"
|
||||
Style="{StaticResource OptimizerWindow.Dialog}">
|
||||
|
||||
<Grid Style="{StaticResource GeneralParametersWnd_Grid}">
|
||||
<Grid Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
@@ -22,21 +22,34 @@
|
||||
<ComboBox Grid.ColumnSpan="2"
|
||||
ItemsSource="{Binding StrategySetupList}"
|
||||
SelectedItem="{Binding SelStrategySetup, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource BTLDataWnd_ComboBox}"/>
|
||||
Foreground="{StaticResource BeamWall_Black}"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="15"
|
||||
Height="30"
|
||||
Width="160"
|
||||
Margin="0,10,0,10"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<OPTIMIZER:ProjectParametersV Grid.Row="1"
|
||||
Grid.RowSpan="2"
|
||||
IsEnabled="{Binding GeneralParametersIsEnable}"/>
|
||||
<UniformGrid Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Rows="2"
|
||||
Style="{StaticResource BTLDataWnd_UniformGrid}">
|
||||
Margin="0,0,5,0">
|
||||
<CheckBox IsChecked="{Binding bSaveGeneralParameters, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource BTLDataWnd_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="10,10,0,0"/>
|
||||
<Button Command="{Binding Ok_Command}"
|
||||
ToolTip="{Binding SaveAsToolTip}"
|
||||
Style="{StaticResource GeneralParametersWnd_Button}">
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Bottom"
|
||||
Height="40"
|
||||
Width="40"
|
||||
Margin="5,0,0,5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Ok_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
|
||||
@@ -147,52 +147,43 @@ Public Class GeneralParametersWndVM
|
||||
For Each GeneralParameter In m_GeneralParametersList
|
||||
Select Case GeneralParameter.GetType()
|
||||
Case GetType(BooleanGenericParameter)
|
||||
SetbSaveGeneralParameters(True)
|
||||
SetGeneralParametersIsEnable(True)
|
||||
SetbParametersEnable(True)
|
||||
Dim sTmpBoolValue As Boolean = DirectCast(GeneralParameter, BooleanGenericParameter).bValue
|
||||
If EgtExistsInfo(nBTLInfoLayerId, GeneralParameter.sNameNge) Then
|
||||
EgtGetInfo(nBTLInfoLayerId, GeneralParameter.sNameNge, DirectCast(GeneralParameter, BooleanGenericParameter).bValue)
|
||||
Else
|
||||
SetbSaveGeneralParameters(False)
|
||||
SetGeneralParametersIsEnable(False)
|
||||
SetbParametersEnable(False)
|
||||
DirectCast(GeneralParameter, BooleanGenericParameter).bValue = sTmpBoolValue
|
||||
End If
|
||||
Case GetType(DoubleGenericParameter)
|
||||
SetbSaveGeneralParameters(True)
|
||||
SetGeneralParametersIsEnable(True)
|
||||
SetbParametersEnable(True)
|
||||
Dim sTmpDoubleValue As String = DirectCast(GeneralParameter, DoubleGenericParameter).sValue
|
||||
If EgtExistsInfo(nBTLInfoLayerId, GeneralParameter.sNameNge) Then
|
||||
EgtGetInfo(nBTLInfoLayerId, GeneralParameter.sNameNge, DirectCast(GeneralParameter, DoubleGenericParameter).sValue)
|
||||
Else
|
||||
SetbSaveGeneralParameters(False)
|
||||
SetGeneralParametersIsEnable(False)
|
||||
SetbParametersEnable(False)
|
||||
DirectCast(GeneralParameter, DoubleGenericParameter).sValue = sTmpDoubleValue
|
||||
End If
|
||||
Case GetType(ComboGenericParameter)
|
||||
SetbSaveGeneralParameters(True)
|
||||
SetGeneralParametersIsEnable(True)
|
||||
SetbParametersEnable(True)
|
||||
Dim sTmpComboValue As String = DirectCast(GeneralParameter, ComboGenericParameter).SelValue.sValue
|
||||
If EgtExistsInfo(nBTLInfoLayerId, GeneralParameter.sNameNge) Then
|
||||
EgtGetInfo(nBTLInfoLayerId, GeneralParameter.sNameNge, DirectCast(GeneralParameter, ComboGenericParameter).SelValue.sValue)
|
||||
Else
|
||||
DirectCast(GeneralParameter, ComboGenericParameter).SelValue.sValue = sTmpComboValue
|
||||
SetbSaveGeneralParameters(False)
|
||||
SetGeneralParametersIsEnable(False)
|
||||
SetbParametersEnable(False)
|
||||
End If
|
||||
Case GetType(StringGenericParameter)
|
||||
SetbSaveGeneralParameters(True)
|
||||
SetGeneralParametersIsEnable(True)
|
||||
SetbParametersEnable(True)
|
||||
Dim sTmpStringValue As String = DirectCast(GeneralParameter, StringGenericParameter).sValue
|
||||
If EgtExistsInfo(nBTLInfoLayerId, GeneralParameter.sNameNge) Then
|
||||
EgtGetInfo(nBTLInfoLayerId, GeneralParameter.sNameNge, DirectCast(GeneralParameter, StringGenericParameter).sValue)
|
||||
Else
|
||||
SetbSaveGeneralParameters(False)
|
||||
SetGeneralParametersIsEnable(False)
|
||||
SetbParametersEnable(False)
|
||||
DirectCast(GeneralParameter, StringGenericParameter).sValue = sTmpStringValue
|
||||
End If
|
||||
Case GetType(ListGenericParameter)
|
||||
SetbSaveGeneralParameters(True)
|
||||
SetGeneralParametersIsEnable(True)
|
||||
SetbParametersEnable(True)
|
||||
For Each Item As ToolParameter In DirectCast(GeneralParameter, ListGenericParameter).ListValue
|
||||
If Item.bIsActive Then
|
||||
sInfo &= Item.sUUID & "," & Item.sName & ";"
|
||||
@@ -200,8 +191,7 @@ Public Class GeneralParametersWndVM
|
||||
If EgtExistsInfo(nBTLInfoLayerId, GeneralParameter.sNameNge) Then
|
||||
EgtGetInfo(nBTLInfoLayerId, GeneralParameter.sNameNge, sInfo)
|
||||
Else
|
||||
SetbSaveGeneralParameters(False)
|
||||
SetGeneralParametersIsEnable(False)
|
||||
SetbParametersEnable(False)
|
||||
sInfo = sTmpInfo
|
||||
End If
|
||||
End If
|
||||
@@ -246,6 +236,11 @@ Public Class GeneralParametersWndVM
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Private Sub SetbParametersEnable(bValue As Boolean)
|
||||
SetbSaveGeneralParameters(bValue)
|
||||
SetGeneralParametersIsEnable(bValue)
|
||||
End Sub
|
||||
|
||||
#End Region ' Methods
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<UserControl x:Class="ProjectParametersV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer">
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
|
||||
<UserControl.Resources>
|
||||
<OPTIMIZER:GroupVisibilityConverter x:Key="GroupVisibilityConverter"/>
|
||||
<CollectionViewSource x:Key="GroupedParameters" Source="{Binding GeneralParametersList}">
|
||||
@@ -14,10 +15,14 @@
|
||||
<GroupBox Style="{StaticResource ProjectParameters_GroupBox}">
|
||||
<GroupBox.Header>
|
||||
<TextBlock Text="GENERAL PARAMETERS"
|
||||
Style="{StaticResource ProjectParameters_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
FontWeight="Bold"
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</GroupBox.Header>
|
||||
<ItemsControl ItemsSource="{Binding Source={StaticResource GroupedParameters}}"
|
||||
Style="{StaticResource ParameterStrategy_ItemsControl}">
|
||||
Margin="5,10,0,0"
|
||||
Style="{StaticResource UsersControl_ItemsControl}">
|
||||
<ItemsControl.GroupStyle>
|
||||
<GroupStyle>
|
||||
<GroupStyle.Panel>
|
||||
@@ -30,10 +35,15 @@
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type GroupItem}">
|
||||
<GroupBox Style="{StaticResource Item_GroupBox}">
|
||||
<GroupBox BorderThickness="1"
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource ProjectParameters_GroupBox}">
|
||||
<GroupBox.Header>
|
||||
<TextBlock Text="{Binding Name}"
|
||||
Style="{StaticResource ProjectParameters_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
FontWeight="Bold"
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</GroupBox.Header>
|
||||
<ItemsPresenter />
|
||||
<GroupBox.Visibility>
|
||||
@@ -53,129 +63,111 @@
|
||||
<DataTemplate DataType="{x:Type OPTIMIZER:BooleanGenericParameter}">
|
||||
<UniformGrid Columns="2"
|
||||
Visibility="{Binding bBooleanVisibility}"
|
||||
Style="{StaticResource ProjectParameters_UniformGrid}">
|
||||
Margin="2,2,2,5">
|
||||
<TextBlock Text="{Binding sDescriptionShort}"
|
||||
Style="{StaticResource ProjectParameters_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
FontWeight="Bold"
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<CheckBox IsChecked="{Binding bValue, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
</UniformGrid>
|
||||
</DataTemplate>
|
||||
<DataTemplate DataType="{x:Type OPTIMIZER:DoubleGenericParameter}">
|
||||
<UniformGrid Columns="2"
|
||||
Visibility="{Binding bDoubleVisibility}"
|
||||
Style="{StaticResource ProjectParameters_UniformGrid}">
|
||||
Margin="2,2,2,5">
|
||||
<TextBlock Text="{Binding sDescriptionShort}"
|
||||
Style="{StaticResource ProjectParameters_TextBlock}"/>
|
||||
<TextBox Text="{Binding sValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||
HorizontalAlignment="Left"
|
||||
FontWeight="Bold"
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox2 Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||
Style="{StaticResource ParameterList_TextBox2}"/>
|
||||
</UniformGrid>
|
||||
</DataTemplate>
|
||||
<DataTemplate DataType="{x:Type OPTIMIZER:ComboGenericParameter}">
|
||||
<UniformGrid Columns="2"
|
||||
Visibility="{Binding bComboBoxVisibility}"
|
||||
Style="{StaticResource ProjectParameters_UniformGrid}">
|
||||
Margin="2,2,2,5">
|
||||
<TextBlock Text="{Binding sDescriptionShort}"
|
||||
Style="{StaticResource ProjectParameters_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
FontWeight="Bold"
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<ComboBox ItemsSource="{Binding ComboList}"
|
||||
SelectedItem="{Binding SelValue}"
|
||||
DisplayMemberPath="sValue"
|
||||
Style="{StaticResource ProjectParameters_ComboBox}">
|
||||
Foreground="{StaticResource BeamWall_Black}"
|
||||
Height="22"
|
||||
Width="150"
|
||||
Margin="0">
|
||||
</ComboBox>
|
||||
</UniformGrid>
|
||||
</DataTemplate>
|
||||
<DataTemplate DataType="{x:Type OPTIMIZER:StringGenericParameter}">
|
||||
<UniformGrid Columns="2"
|
||||
Visibility="{Binding bStringVisibility}"
|
||||
Style="{StaticResource ProjectParameters_UniformGrid}">
|
||||
Margin="2,2,2,5">
|
||||
<TextBlock Text="{Binding sDescriptionShort}"
|
||||
Style="{StaticResource ProjectParameters_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
FontWeight="Bold"
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<TextBox Text="{Binding sValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource ColorPicker_TextBox}"/>
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalContentAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="65"/>
|
||||
</UniformGrid>
|
||||
</DataTemplate>
|
||||
<DataTemplate DataType="{x:Type OPTIMIZER:ListGenericParameter}">
|
||||
<Grid Visibility="{Binding bListBoxVisibility}"
|
||||
Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.3*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding sDescriptionShort}"
|
||||
Style="{StaticResource ListProjectParameters_TextBlock}"/>
|
||||
<StackPanel Grid.Column="1"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Style="{StaticResource ProjectParameters_StackPanel}">
|
||||
<Button ToolTip="{Binding OpenToolListToolTip}"
|
||||
IsEnabled="{Binding OpenToolListIsEnable}"
|
||||
Command="{Binding OpenToolListCommand}"
|
||||
Style="{StaticResource ProjectParameters_Button}">
|
||||
<Image Source="{StaticResource Plus_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding DeselectAllToolTip}"
|
||||
IsEnabled="{Binding ActiveToolListIsEnable}"
|
||||
Command="{Binding DeselectAllCommand}"
|
||||
Style="{StaticResource CloseProjectParameters_Button}">
|
||||
<Image Source="{StaticResource DeselectAll_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<Border Style="{StaticResource ForcedStrategyBTL_Border}">
|
||||
<ItemsControl ItemsSource="{Binding ActiveToolList_View}"
|
||||
Style="{StaticResource ProjectParameters_ItemsControl}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Style="{StaticResource List_StackPanel}">
|
||||
<CheckBox IsChecked="{Binding bIsActive, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource FreeContourInput_CheckBox}"/>
|
||||
<TextBlock Text="{Binding sName}"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Visibility="{Binding AvailableToolListVisibility}"
|
||||
Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Style="{StaticResource ProjectParameters_StackPanel}">
|
||||
<Button ToolTip="{Binding CloseToolListToolTip}"
|
||||
Command="{Binding CloseToolListCommand}"
|
||||
Style="{StaticResource ProjectParameters_Button}">
|
||||
<Image Source="{StaticResource Delete_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding SelectAllToolTip}"
|
||||
IsEnabled="{Binding AvailableToolListIsEnable}"
|
||||
Command="{Binding SelectAllCommand}"
|
||||
Style="{StaticResource ProjectParameters_Button}">
|
||||
<Image Source="{StaticResource SelectAll_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<Border Style="{StaticResource ProjectParamters_Border}">
|
||||
<ItemsControl ItemsSource="{Binding AvailableToolList_View}"
|
||||
Style="{StaticResource AvailableToolList_ItemsControl}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Style="{StaticResource List_StackPanel}">
|
||||
<CheckBox IsChecked="{Binding bIsActive, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource FreeContourInput_CheckBox}"/>
|
||||
<TextBlock Text="{Binding sName}"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<UniformGrid Columns="3"
|
||||
Visibility="{Binding bListBoxVisibility}"
|
||||
Margin="5,2,5,0">
|
||||
<TextBlock Text="{Binding sDescriptionShort}"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="Normal"
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
<ToggleButton Grid.Column="1"
|
||||
ToolTip="{Binding OpenToolListToolTip}"
|
||||
IsChecked="{Binding OpenToolList_IsChecked}"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Width="50"
|
||||
Height="30"
|
||||
Margin="0,0,0,5">
|
||||
<Image Source="{StaticResource Plus_Image}"
|
||||
Stretch="Uniform"/>
|
||||
</ToggleButton>
|
||||
<Border Grid.Column="2"
|
||||
Margin="2,5,2,0"
|
||||
Style="{StaticResource Optimizer_Border}">
|
||||
<ItemsControl ItemsSource="{Binding ToolList_View}"
|
||||
BorderThickness="0"
|
||||
Height="200"
|
||||
Width="180"
|
||||
Style="{StaticResource UsersControl_ItemsControl}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="5,5,5,0">
|
||||
<CheckBox IsChecked="{Binding bIsActive, UpdateSourceTrigger=PropertyChanged}"
|
||||
Visibility="{Binding Tool_Visibility}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="5,0,5,0"/>
|
||||
<TextBlock Text="{Binding sName}"
|
||||
Visibility="{Binding Tool_Visibility}"
|
||||
Style="{StaticResource DialogWindow_TextBlock}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</Border>
|
||||
</UniformGrid>
|
||||
</DataTemplate>
|
||||
</ItemsControl.Resources>
|
||||
</ItemsControl>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
Title="InputPwdWndV"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -15,13 +15,16 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding PasswordMsg}"
|
||||
Style="{StaticResource PasswordMsg_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<PasswordBox Grid.Row="1"
|
||||
x:Name="PwdBox"
|
||||
PasswordChanged="PasswordBox_PasswordChanged"/>
|
||||
|
||||
<Grid Grid.Row="2"
|
||||
Style="{StaticResource AddPartWnd_Grid}">
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -33,11 +36,17 @@
|
||||
Content="Ok"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Grid.Column="3"
|
||||
Content="Cancel"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
<StackPanel x:Class="InstrumentPanelV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Style="{StaticResource BTLPartManager_StackPanel}">
|
||||
Orientation="Vertical">
|
||||
|
||||
<ToggleButton ToolTip="{Binding GetDistToolTip}"
|
||||
IsChecked="{Binding GetDistIsChecked}"
|
||||
Style="{StaticResource ToolBar_ToggleButton}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2">
|
||||
<Image Source="{StaticResource GetDist_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</ToggleButton>
|
||||
|
||||
<Button ToolTip="{Binding ChangeParam_ToolTip}"
|
||||
Command="{Binding ChangeParameter_Command}"
|
||||
Visibility="{Binding ChangeParam_Visibility}"
|
||||
IsEnabled="{Binding InstrumentPanel_IsEnabled}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
<Image Source="{StaticResource ChangeParam_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
|
||||
<Button Content="MAT"
|
||||
ToolTip="{Binding ChangeMaterial_ToolTip}"
|
||||
Command="{Binding ChangeMaterial_Command}"
|
||||
Visibility="Collapsed"
|
||||
IsEnabled="{Binding InstrumentPanel_IsEnabled}"
|
||||
Style="{StaticResource InstrumentPanel_Button}"/>
|
||||
FontWeight="Light"
|
||||
FontSize="12"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<!--Visibility="{Binding ChangeMaterial_Visibility}"-->
|
||||
</StackPanel>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
Imports System.Collections.ObjectModel
|
||||
Imports EgtUILib
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib5
|
||||
Imports EgtBEAMWALL.Core
|
||||
|
||||
@@ -31,7 +30,6 @@ Public Class MyInstrumentPanelVM
|
||||
End Property
|
||||
|
||||
' Definizione comandi
|
||||
Private m_cmdChangeParameter As ICommand
|
||||
Private m_cmdChangeMaterial As ICommand
|
||||
|
||||
#Region "Messages"
|
||||
@@ -81,53 +79,6 @@ Public Class MyInstrumentPanelVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "ChangeParameter"
|
||||
|
||||
Public ReadOnly Property ChangeParameter_Command As ICommand
|
||||
Get
|
||||
If m_cmdChangeParameter Is Nothing Then
|
||||
m_cmdChangeParameter = New Command(AddressOf ChangeParameter)
|
||||
End If
|
||||
Return m_cmdChangeParameter
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub ChangeParameter()
|
||||
If (IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.MachGroupPanelVM)) Then Return
|
||||
Dim ChangeParameterWndVM As New ChangeParameterWndVM
|
||||
Dim ChangeParameterWnd As New ChangeParameterWndV(Application.Current.MainWindow, ChangeParameterWndVM)
|
||||
If ChangeParameterWnd.ShowDialog() Then
|
||||
LoadingWndHelper.OpenLoadingWnd(ActiveIds.CHANGEPARAM, 1, EgtMsg(63014), "", 100) ' Modifying parameters
|
||||
' faccio passare pezzi
|
||||
If Not IsNothing(ChangeParameterWndVM.SelParam) Then
|
||||
For Each Part In Map.refProjectVM.BTLStructureVM.BTLPartVMList
|
||||
For Each Feature In Part.BTLFeatureVMList.Where(Function(x) x.nPRC = ChangeParameterWndVM.SelPRC.nPRC AndAlso CalcBeamPrivateProfileGRP(x.nSelGRP) = ChangeParameterWndVM.SelPRC.nGRP)
|
||||
If ChangeParameterWndVM.SelParam.BTLParamM.nType = BTLParamType.CHECKBOX AndAlso Feature.bDO = ChangeParameterWndVM.SelParam.bActualValue Then
|
||||
Feature.bDO = ChangeParameterWndVM.SelParam.bNewValue
|
||||
Else
|
||||
Dim ParamList As ObservableCollection(Of BTLParamVM) = Feature.PBTLParamVMList
|
||||
For Each Param In ParamList.Where(Function(x) x.sName = ChangeParameterWndVM.SelParam.sName)
|
||||
Select Case Param.nType
|
||||
Case BTLParamType.DOUBLE_, BTLParamType.LENGTH
|
||||
If Math.Abs(Param.dValue - ChangeParameterWndVM.SelParam.dActualValue) < EPS_SMALL Then
|
||||
Param.UpdateParamValue(ChangeParameterWndVM.SelParam.dNewValue, "")
|
||||
End If
|
||||
Case BTLParamType.STRING_
|
||||
If Param.sValue = ChangeParameterWndVM.SelParam.sActualValue Then
|
||||
Param.UpdateParamValue(0, ChangeParameterWndVM.SelParam.sNewValue)
|
||||
End If
|
||||
End Select
|
||||
Next
|
||||
End If
|
||||
Next
|
||||
Next
|
||||
End If
|
||||
LoadingWndHelper.CloseLoadingWnd(ActiveIds.CHANGEPARAM)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' ChangeParameter
|
||||
|
||||
#Region "ChangeMaterial"
|
||||
|
||||
Public ReadOnly Property ChangeMaterial_Command As ICommand
|
||||
|
||||
@@ -6,88 +6,142 @@
|
||||
|
||||
<UniformGrid Columns="6"
|
||||
Rows="7"
|
||||
Style="{StaticResource AddFeatureWnd_UniformGrid}">
|
||||
Margin="5">
|
||||
|
||||
<TextBlock Text="{Binding PROJNUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sPROJNUM, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PROJNAME_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sPROJNAME, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PROJPART_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sPROJPART, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PROJGUID_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sPROJGUID, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding LISTNAME_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sLISTNAME, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding CUSTOMER_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sCUSTOMER, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ARCHITECT_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sARCHITECT, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EDITOR_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sEDITOR, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding DELIVDATE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sDELIVDATE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EXPDATE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sEXPDATE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EXPTIME_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sEXPTIME, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EXPRELEASE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sEXPRELEASE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding LANGUAGE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sLANGUAGE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding RANGE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}},
|
||||
Path=Tag.ocRANGE,
|
||||
@@ -95,9 +149,12 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}},
|
||||
Path=Tag.SelRANGE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding PROCESSINGQUALITY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}},
|
||||
Path=Tag.ocPROCESSINGQUALITY,
|
||||
@@ -105,33 +162,52 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}},
|
||||
Path=Tag.SelPROCESSINGQUALITY,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding COMPUTERNAME_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sCOMPUTERNAME, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding USER_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sUSER, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding SRCFILE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sSRCFILE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding EXPFILE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sEXPFILE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding RECESS_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}},
|
||||
Path=Tag.ocRECESS,
|
||||
@@ -139,13 +215,18 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}},
|
||||
Path=Tag.SelRECESS,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding USERATTRIBUTE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sUSERATTRIBUTE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLDataV}}}"
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
|
||||
</UniformGrid>
|
||||
|
||||
|
||||
@@ -44,50 +44,72 @@
|
||||
<Button ToolTip="{Binding VerifyAll_ToolTip}"
|
||||
Command="{Binding VerifyAll_Command}"
|
||||
IsEnabled="{Binding VerifyAll_IsEnabled}"
|
||||
Style="{StaticResource Verify_Button}">
|
||||
VerticalAlignment="Top"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="2.5,3,2.5,3"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource VerifyAll_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Grid.Column="1"
|
||||
ToolTip="{Binding VerifyAll_ToolTip}"
|
||||
ToolTip="{Binding VerifyAllFlipRot_ToolTip}"
|
||||
Command="{Binding VerifyAllFlipRot_Command}"
|
||||
IsEnabled="{Binding VerifyAll_IsEnabled}"
|
||||
Style="{StaticResource Verify_Button}">
|
||||
VerticalAlignment="Top"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="2.5,3,2.5,3"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource VerifyAllR_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Grid.Column="2"
|
||||
Command="{Binding ResetCalc_Command}"
|
||||
ToolTip="{Binding ResetCalc_ToolTip}"
|
||||
IsEnabled="{Binding CALCPanel_IsEnabled}"
|
||||
Style="{StaticResource Verify_Button}">
|
||||
VerticalAlignment="Top"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="2.5,3,2.5,3"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource ResetCalc_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Grid.Column="3"
|
||||
Name="FilterAllBtn"
|
||||
ToolTip="{Binding FilterAll_ToolTip}"
|
||||
PreviewMouseDown="FilterAllBtn_PreviewMouseDown"
|
||||
Click="FilterAllBtn_Click"
|
||||
Style="{StaticResource Verify_Button}">
|
||||
VerticalAlignment="Top"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="2.5,3,2.5,3"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource AllFilter_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Popup x:Name="FilterSectxMat_Popup"
|
||||
PlacementTarget="{Binding ElementName=FilterAllBtn}"
|
||||
Style="{StaticResource FilterSect_PopUp}">
|
||||
<Border Style="{StaticResource Filtering_Border}">
|
||||
AllowsTransparency="True"
|
||||
PopupAnimation="Fade"
|
||||
Placement="Bottom"
|
||||
StaysOpen="False">
|
||||
<Border Background="{StaticResource BeamWall_White}"
|
||||
BorderBrush="{StaticResource BeamWall_Silver}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="3"
|
||||
SnapsToDevicePixels="True">
|
||||
<dxfui:CheckedListFilterElement Context="{Binding FilteringContext, ElementName=BTLPart_GridControl}"
|
||||
FieldName="Section.sSectionXMaterial"
|
||||
ShowCounts="True"
|
||||
Style="{StaticResource CheckedListStyle}"/>
|
||||
ShowCounts="True"/>
|
||||
</Border>
|
||||
</Popup>
|
||||
<dxe:SearchControl Grid.Column="5"
|
||||
x:Name="searchControl"
|
||||
ShowSearchPanelNavigationButtons="False"
|
||||
ShowResultInfo="False"
|
||||
Style="{StaticResource SearchControlStyle}"/>
|
||||
Style="{StaticResource SearchControl_Style}"/>
|
||||
</Grid>
|
||||
<dxg:GridControl Grid.Row="1"
|
||||
x:Name="BTLPart_GridControl"
|
||||
@@ -97,8 +119,11 @@
|
||||
SelectionMode="Row"
|
||||
SelectedItems="{Binding Tag.SelBTLParts,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
MasterRowExpanding="GridControl_MasterRowExpanding"
|
||||
PreviewKeyDown="BTLPart_GridControl_PreviewKeyDown">
|
||||
MasterRowExpanding="View_MasterRowExpanding"
|
||||
MasterRowExpanded="View_MasterRowExpanded"
|
||||
MasterRowCollapsed="View_MasterRowCollapsed"
|
||||
PreviewKeyDown="BTLPart_GridControl_PreviewKeyDown"
|
||||
MouseDown="BTLPart_TableView_PreviewMouseDown">
|
||||
<dxg:GridControl.View>
|
||||
<dxg:TableView x:Name="BTLPart_TableView"
|
||||
AllowPerPixelScrolling="True"
|
||||
@@ -116,7 +141,7 @@
|
||||
NavigationStyle="Row"
|
||||
ShowGroupPanel="False"
|
||||
ShowTotalSummary="True"
|
||||
ShowSearchPanelMode="Default"
|
||||
ShowSearchPanelMode="Never"
|
||||
ShowFilterPanelMode="Never"
|
||||
ShowIndicator="False"
|
||||
ShowColumnHeaders="True"
|
||||
@@ -127,21 +152,23 @@
|
||||
ShowSearchPanelResultInfo="True"
|
||||
ShowSearchPanelNavigationButtons="True"
|
||||
UseEvenRowBackground="True"
|
||||
AllowMoveColumnToDropArea="False"
|
||||
|
||||
ShowGridMenu="OnShowGridMenu"
|
||||
PreviewMouseDown="BTLPart_TableView_PreviewMouseDown"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource Header_Style}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImage_Style}"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource HeaderStyle}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImageStyle}"
|
||||
RowStyle="{StaticResource Row_Style}"
|
||||
CellStyle="{StaticResource Cell_Style}"
|
||||
|
||||
RowStyle="{StaticResource RowStyle}"
|
||||
|
||||
Style="{StaticResource TableViewStyle}"
|
||||
SearchControl="{Binding ElementName=searchControl}">
|
||||
Style="{StaticResource TableView_Style}"
|
||||
SearchControl="{Binding ElementName=searchControl}"
|
||||
FocusedRowChanged="View_FocusedRowChanged">
|
||||
<dxg:TableView.GroupRowTemplate>
|
||||
<DataTemplate>
|
||||
<Border Style="{StaticResource TableView_Border}">
|
||||
<Grid Style="{StaticResource TableView_Grid}">
|
||||
<Border Background="{StaticResource Grid.Static.Glacier.Background}">
|
||||
<Grid VerticalAlignment="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition/>
|
||||
@@ -151,30 +178,60 @@
|
||||
Command="{Binding View.Commands.ChangeGroupExpanded}"
|
||||
CommandParameter="{Binding RowHandle.Value}"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding GroupValue.Value, Converter={StaticResource ProjIdToBtlFileName}}"
|
||||
Style="{StaticResource BTLPartList_TextBlock}"/>
|
||||
FontSize="14"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource ForegroundWhite_TextBlock}">
|
||||
<TextBlock.Text>
|
||||
<MultiBinding Converter="{StaticResource ProjIdToBtlFileName}">
|
||||
<Binding Path="GroupValue.Value"/>
|
||||
<Binding Path="DataContext.BTLUpdated"
|
||||
RelativeSource="{RelativeSource AncestorType=dxg:GridControl}"/>
|
||||
</MultiBinding>
|
||||
</TextBlock.Text>
|
||||
</TextBlock>
|
||||
<StackPanel Grid.Column="2"
|
||||
Style="{StaticResource TableView_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
Margin="0,0,5,0">
|
||||
<Button Command="{Binding Tag.Data_Command, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
CommandParameter="{Binding GroupValue.Value}"
|
||||
ToolTip="{Binding Tag.Data_ToolTip, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
Style="{StaticResource BTLPartList_Button}">
|
||||
Height="23.5"
|
||||
Width="25"
|
||||
Margin="5,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Adjustment_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding Tag.AddPart_Command, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
CommandParameter="{Binding GroupValue.Value}"
|
||||
ToolTip="{Binding Tag.AddPart_ToolTip, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
Style="{StaticResource BTLPartList_Button}">
|
||||
Height="23.5"
|
||||
Width="25"
|
||||
Margin="5,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource AddPart_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding Tag.ChangeParam_ToolTip, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
CommandParameter="{Binding GroupValue.Value}"
|
||||
Command="{Binding Tag.ChangeParameter_Command, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
Height="23.5"
|
||||
Width="25"
|
||||
Margin="5,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource ChangeParam_Image}"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
<Button Command="{Binding Tag.UpdateBTL_Command, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
CommandParameter="{Binding GroupValue.Value}"
|
||||
ToolTip="{Binding Tag.UpdateBTL_ToolTip, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
Style="{StaticResource BTLPartList_Button}">
|
||||
Height="23.5"
|
||||
Width="25"
|
||||
Margin="5,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource UpdateBTL_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
@@ -289,7 +346,7 @@
|
||||
</ListBox.ContextMenu>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Style="{StaticResource BTLPartList_Grid}">
|
||||
<Grid Margin="0,0,50,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="50"/>
|
||||
<ColumnDefinition Width="40"/>
|
||||
@@ -298,7 +355,20 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding nPRID}"
|
||||
Style="{StaticResource Prod_TextBlock}"/>
|
||||
TextAlignment="Justify"
|
||||
TextTrimming="CharacterEllipsis">
|
||||
<TextBlock.Style>
|
||||
<Style TargetType="{x:Type TextBlock}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGridCell}}, Path=IsSelected}" Value="True">
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
<Setter Property="Foreground" Value="{StaticResource TextBlock.Static.White.Foreground}"/>
|
||||
<Setter Property="Background" Value="{StaticResource TextBlock.Static.FountainBlue.Background}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</TextBlock.Style>
|
||||
</TextBlock>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -315,28 +385,58 @@
|
||||
<TextBlock Grid.ColumnSpan="2"
|
||||
Text="⭯"
|
||||
Visibility="{Binding CALC_ROT_Visibility}"
|
||||
Style="{StaticResource CALC_ROTFeature_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="10"/>
|
||||
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding CALC_ERR_Letter}"
|
||||
Foreground="{Binding CALC_ERR_Foreground}"
|
||||
Style="{StaticResource CALC_ERR_Letter_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="12"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</Grid>
|
||||
<TextBlock Grid.Column="2"
|
||||
Text="✏"
|
||||
Visibility="{Binding bStrategy_Visibility}"
|
||||
Style="{StaticResource bStrategy_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Normal"
|
||||
FontSize="8"/>
|
||||
</Grid>
|
||||
<CheckBox Grid.Column="2"
|
||||
IsChecked="{Binding bDO, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource BTLPartList_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,5,0"/>
|
||||
<TextBlock Grid.Column="3"
|
||||
Text="{Binding sFeature_Name}"
|
||||
Style="{StaticResource Prod_TextBlock}"/>
|
||||
TextAlignment="Justify"
|
||||
TextTrimming="CharacterEllipsis">
|
||||
<TextBlock.Style>
|
||||
<Style TargetType="{x:Type TextBlock}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGridCell}}, Path=IsSelected}" Value="True">
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
<Setter Property="Foreground" Value="{StaticResource TextBlock.Static.White.Foreground}"/>
|
||||
<Setter Property="Background" Value="{StaticResource TextBlock.Static.FountainBlue.Background}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</TextBlock.Style>
|
||||
</TextBlock>
|
||||
<Button Grid.Column="4"
|
||||
Command="{Binding EditFeature_Command}"
|
||||
Style="{StaticResource EditFeature_Button}">
|
||||
CommandParameter="{Binding}"
|
||||
Height="15"
|
||||
Width="15"
|
||||
Margin="25,0,0,0"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Edit_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -344,16 +444,21 @@
|
||||
</ListBox>
|
||||
<StackPanel Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Style="{StaticResource BTLPartList_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
Margin="0,2,0,0">
|
||||
<TextBlock Text="STATUS:"
|
||||
Style="{StaticResource Status_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
|
||||
<TextBlock Text="{Binding Tag.SelBTLPart.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
Visibility="{Binding Tag.SelBTLPart.CALC_MSG_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
Style="{StaticResource SelBTLPart_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
|
||||
<TextBlock Text="{Binding Tag.SelBTLPart.SelBTLFeatureVM.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"
|
||||
Style="{StaticResource SelBTLPart_TextBlock}"/>
|
||||
HorizontalAlignment="Left"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -361,23 +466,28 @@
|
||||
</dxg:ContentDetailDescriptor>
|
||||
</dxg:GridControl.DetailDescriptor>
|
||||
<dxg:GridColumn FieldName="nPROJ"
|
||||
GroupIndex="0"/>
|
||||
GroupIndex="0"
|
||||
ShowInColumnChooser="False"/>
|
||||
<dxg:GridColumn FieldName="Section.sSectionXMaterial"
|
||||
Visible="False"/>
|
||||
Visible="False"
|
||||
ShowInColumnChooser="False"/>
|
||||
<dxg:GridColumn FieldName="nPDN"
|
||||
DefaultSortOrder="Ascending"
|
||||
Fixed="Left"
|
||||
FilterPopupMode="CheckedList"
|
||||
SortOrder="Ascending"
|
||||
Header="{Binding PDN_Msg}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="GlobalState"
|
||||
Header=""
|
||||
SortFieldName="nGlobalState"
|
||||
AllowColumnFiltering="False">
|
||||
AllowColumnFiltering="False"
|
||||
ShowInColumnChooser="False">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Style="{StaticResource GlobalState_Grid}">
|
||||
<Grid HorizontalAlignment="Center"
|
||||
Margin="2,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -386,29 +496,44 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="↓"
|
||||
Visibility="{Binding RowData.Row.CALC_FALL_Visibility}"
|
||||
Style="{StaticResource RawPartList_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Orange.Foreground}"
|
||||
TextAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="20"
|
||||
Margin="0,-6,0,-2"/>
|
||||
<Border Grid.Column="1"
|
||||
Background="{Binding RowData.Row.Calc_BorderBrush}"
|
||||
Style="{StaticResource Calc_Border}"/>
|
||||
Height="20"
|
||||
Width="20"/>
|
||||
<Grid Grid.Column="2"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_Grid}">
|
||||
HorizontalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="⭯"
|
||||
Visibility="{Binding RowData.Row.CALC_ROT_Visibility}"
|
||||
Style="{StaticResource CALC_ROT_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="12"/>
|
||||
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding RowData.Row.CALC_ERR_Letter}"
|
||||
Foreground="{Binding RowData.Row.CALC_ERR_Foreground}"
|
||||
Style="{StaticResource CALC_ERR_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="12"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</Grid>
|
||||
<TextBlock Grid.Column="3"
|
||||
Text="✏"
|
||||
Visibility="{Binding RowData.Row.StrategyModify_Visibility}"
|
||||
Style="{StaticResource StrategyModify_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Normal"
|
||||
FontSize="11"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -416,7 +541,8 @@
|
||||
<dxg:GridColumn FieldName="bDO"
|
||||
SortFieldName="bDO"
|
||||
Header=""
|
||||
Style="{StaticResource ColumnInfoStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<CheckBox IsChecked="{Binding Path=Tag.bDOALL, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:BTLPartListV}}}"/>
|
||||
@@ -425,61 +551,66 @@
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<dxe:CheckEdit IsChecked="{Binding RowData.Row.bDO}"
|
||||
Style="{StaticResource bDoCheckEditStyle}"/>
|
||||
HorizontalAlignment="Center"/>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="sW"
|
||||
Header="{Binding W_Msg}"
|
||||
SortFieldName="dW"
|
||||
AllowSorting="False"
|
||||
FilterPopupMode="Custom"
|
||||
CustomColumnFilterPopupTemplate="{StaticResource SectMat_Filter}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
FilterPopupMode="Disabled"
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sH"
|
||||
Header="{Binding H_Msg}"
|
||||
SortFieldName="dH"
|
||||
AllowSorting="False"
|
||||
FilterPopupMode="Custom"
|
||||
CustomColumnFilterPopupTemplate="{StaticResource SectMat_Filter}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
FilterPopupMode="Disabled"
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sL"
|
||||
SortFieldName="dL"
|
||||
Header="{Binding L_Msg}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
SortFieldName="dL"
|
||||
FilterPopupMode="Disabled"
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sNAM"
|
||||
Header="{Binding NAM_Msg}"
|
||||
AllowSorting="False"
|
||||
FilterPopupMode="CheckedList"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sMATERIAL"
|
||||
Header="{Binding MAT_Msg}"
|
||||
AllowSorting="False"
|
||||
FilterPopupMode="Custom"
|
||||
CustomColumnFilterPopupTemplate="{StaticResource SectMat_Filter}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
FilterPopupMode="CheckedList"
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sCNT"
|
||||
Header="{Binding CNT_Msg}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sADDED"
|
||||
Header="{Binding ADDED_Msg}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="nINPROD"
|
||||
Header="{Binding INPROD_Msg}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="nDONE"
|
||||
Header="{Binding DONE_Msg}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sGROUP"
|
||||
Header="{Binding GRP_Msg}"
|
||||
AllowSorting="False"
|
||||
FilterPopupMode="CheckedList"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sSTOREY"
|
||||
Header="{Binding STOREY_Msg}"
|
||||
AllowSorting="False"
|
||||
FilterPopupMode="CheckedList"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sROTATED"
|
||||
Header=""
|
||||
AllowSorting="False"
|
||||
@@ -487,7 +618,8 @@
|
||||
Fixed="Right"
|
||||
Image="{StaticResource HeaderRotate_Image}"
|
||||
HeaderToolTip="{Binding ForwardRotation_ToolTip}"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
@@ -496,17 +628,26 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding RowData.Row.sROTATED}"
|
||||
Style="{StaticResource Rotate_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="25"
|
||||
Margin="5,0,5,0"/>
|
||||
<!--segnaposto per avere larghezza colonna-->
|
||||
<TextBlock Text="888°"
|
||||
Visibility="Hidden"
|
||||
Style="{StaticResource Rotate_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="25"
|
||||
Margin="5,0,5,0"/>
|
||||
<Button Grid.Column="1"
|
||||
Command="{Binding RowData.Row.ForwardRotation_Command}"
|
||||
ToolTip="{Binding RowData.Row.ForwardRotation_ToolTip}"
|
||||
IsEnabled="{Binding RowData.Row.RotatePart_IsEnabled}">
|
||||
IsEnabled="{Binding RowData.Row.RotatePart_IsEnabled}"
|
||||
PreviewMouseDown="Button_PreviewMouseDown">
|
||||
<Image Source="{StaticResource Rotate_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -518,11 +659,12 @@
|
||||
AllowColumnFiltering="False"
|
||||
Fixed="Right"
|
||||
Image="{StaticResource HeaderInversion_Image}"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<dxe:CheckEdit IsChecked="{Binding RowData.Row.IsInverted}"
|
||||
Style="{StaticResource bDoCheckEditStyle}"/>
|
||||
HorizontalAlignment="Center"/>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
@@ -533,14 +675,17 @@
|
||||
Fixed="Right"
|
||||
Image="{StaticResource HeaderVerify_Image}"
|
||||
HeaderToolTip="{Binding Verify_ToolTip}"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button IsEnabled="{Binding RowData.Row.Verify_IsEnabled}"
|
||||
Command="{Binding RowData.Row.Verify_Command}"
|
||||
ToolTip="{Binding RowData.Row.Verify_ToolTip}">
|
||||
<Image Source="{StaticResource Verify_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -552,14 +697,17 @@
|
||||
Fixed="Right"
|
||||
Image="{StaticResource HeaderAddToRawPart_Image}"
|
||||
HeaderToolTip="{Binding AddToRawPart_ToolTip}"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button IsEnabled="{Binding RowData.Row.BTLPartManager_IsEnabled}"
|
||||
Command="{Binding RowData.Row.AddToRawPart_Command}"
|
||||
ToolTip="{Binding RowData.Row.AddToRawPart_ToolTip}">
|
||||
<Image Source="{StaticResource AddToRawPart_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -571,17 +719,19 @@
|
||||
Fixed="Right"
|
||||
Image="{StaticResource HeaderSetting_Image}"
|
||||
HeaderToolTip="{Binding Settings_Command_ToolTip}"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<dx:DropDownButton Glyph="{StaticResource Setting_Image}"
|
||||
ToolTip="{Binding RowData.Row.Settings_Command_ToolTip}"
|
||||
Style="{StaticResource DropDownButtonStyle}">
|
||||
<dx:DropDownButton.ArrowGlyph>
|
||||
<DrawingImage/>
|
||||
</dx:DropDownButton.ArrowGlyph>
|
||||
<OPTIMIZER:BTLPartManagerV/>
|
||||
</dx:DropDownButton>
|
||||
<EgwWPFBaseLib:EgwDropdownButton CornerRadius="3">
|
||||
<Image Source="{StaticResource Setting_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
<EgwWPFBaseLib:EgwDropdownButton.DropDownContent>
|
||||
<OPTIMIZER:BTLPartManagerV/>
|
||||
</EgwWPFBaseLib:EgwDropdownButton.DropDownContent>
|
||||
</EgwWPFBaseLib:EgwDropdownButton>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
|
||||
@@ -4,6 +4,7 @@ Imports DevExpress.Data
|
||||
Imports DevExpress.Xpf.Bars
|
||||
Imports DevExpress.Xpf.Core.Serialization
|
||||
Imports DevExpress.Xpf.Grid
|
||||
Imports DevExpress.Xpf.Utils
|
||||
Imports EgtBEAMWALL.Core
|
||||
|
||||
Public Class BTLPartListV
|
||||
@@ -27,6 +28,12 @@ Public Class BTLPartListV
|
||||
|
||||
m_sDataGridLayoutPath = Path.GetDirectoryName(DataGridColumnsIniFile.m_sDataGridColumnsIniFile) & "\DataGridLayoutFile\BTLPart.json"
|
||||
|
||||
' controllo se la directory esiste
|
||||
If Not Directory.Exists(Path.GetDirectoryName(DataGridColumnsIniFile.m_sDataGridColumnsIniFile) & "\DataGridLayoutFile") Then
|
||||
' Se non esiste, la crea
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(DataGridColumnsIniFile.m_sDataGridColumnsIniFile) & "\DataGridLayoutFile")
|
||||
End If
|
||||
|
||||
For Each Column In BTLPart_GridControl.Columns
|
||||
Column.[AddHandler](DXSerializer.AllowPropertyEvent,
|
||||
New AllowPropertyEventHandler(AddressOf OnAllowProperty))
|
||||
@@ -110,7 +117,6 @@ Public Class BTLPartListV
|
||||
' rimozione bottoni
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.GroupBox})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.GroupColumn})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNamesBase.ColumnChooser})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.BestFit})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.BestFitColumns})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNamesBase.FilterEditor})
|
||||
@@ -166,15 +172,64 @@ Public Class BTLPartListV
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub GridControl_MasterRowExpanding(sender As Object, e As DevExpress.Xpf.Grid.RowAllowEventArgs)
|
||||
Dim grid = CType(sender, DevExpress.Xpf.Grid.GridControl)
|
||||
Private _expandedRowHandle As Integer = -1
|
||||
Private Sub View_MasterRowExpanding(sender As Object, e As DevExpress.Xpf.Grid.RowAllowEventArgs)
|
||||
|
||||
' Chiudi solo il precedente
|
||||
If _lastExpanded <> -1 AndAlso _lastExpanded <> e.RowHandle Then
|
||||
grid.SetMasterRowExpanded(_lastExpanded, False)
|
||||
If _expandedRowHandle <> -1 AndAlso _expandedRowHandle <> e.RowHandle Then
|
||||
If BTLPart_GridControl.IsMasterRowExpanded(_expandedRowHandle) Then
|
||||
BTLPart_GridControl.CollapseMasterRow(_expandedRowHandle)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub View_MasterRowExpanded(sender As Object, e As RowEventArgs)
|
||||
_expandedRowHandle = e.RowHandle
|
||||
End Sub
|
||||
|
||||
Private Sub View_MasterRowCollapsed(sender As Object, e As RowEventArgs)
|
||||
If _expandedRowHandle = e.RowHandle Then
|
||||
_expandedRowHandle = -1
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub View_FocusedRowChanged(sender As Object, e As FocusedRowChangedEventArgs)
|
||||
Dim view = CType(sender, TableView)
|
||||
|
||||
' Se c’è una master aperta e la riga selezionata è diversa
|
||||
If _expandedRowHandle <> -1 AndAlso _expandedRowHandle <> BTLPart_TableView.FocusedRowHandle Then
|
||||
|
||||
' Se è ancora espansa (sorting/filtering potrebbe averla chiusa)
|
||||
If BTLPart_GridControl.IsMasterRowExpanded(_expandedRowHandle) Then
|
||||
BTLPart_GridControl.CollapseMasterRow(_expandedRowHandle)
|
||||
End If
|
||||
|
||||
_expandedRowHandle = -1
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub Button_PreviewMouseDown(sender As Object, e As RoutedEventArgs)
|
||||
Dim button = CType(sender, Button)
|
||||
Dim cell = TryCast(button.DataContext, EditGridCellData)
|
||||
Dim BTLPartVM = TryCast(cell.Row, BTLPartVM)
|
||||
|
||||
' 1) Chiudi eventuale master aperta
|
||||
If _expandedRowHandle <> -1 AndAlso BTLPart_GridControl.IsMasterRowExpanded(_expandedRowHandle) Then
|
||||
' Ottieni il RowHandle della riga del bottone
|
||||
Dim expandedRow = BTLPart_GridControl.GetRow(_expandedRowHandle)
|
||||
' Confronto per riferimento: stessa istanza di ViewModel = stessa riga
|
||||
If Not Object.ReferenceEquals(BTLPartVM, expandedRow) Then
|
||||
BTLPart_GridControl.CollapseMasterRow(_expandedRowHandle)
|
||||
_expandedRowHandle = -1
|
||||
End If
|
||||
End If
|
||||
|
||||
_lastExpanded = e.RowHandle
|
||||
' 2) Esegui il comando MVVM della riga
|
||||
If Not IsNothing(BTLPartVM) Then
|
||||
BTLPartVM.ForwardRotation_Command.Execute(Nothing)
|
||||
End If
|
||||
|
||||
' 3) Blocca la gestione del click da parte della grid
|
||||
e.Handled = True
|
||||
End Sub
|
||||
|
||||
Private Sub BTLPart_TableView_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
@@ -205,16 +260,3 @@ Public Class BTLPartListV
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
Public Class SettingsBtnVerticalOffsetMultiConverter
|
||||
Implements IMultiValueConverter
|
||||
|
||||
Public Function Convert(values() As Object, targetType As Type, parameter As Object, culture As Globalization.CultureInfo) As Object Implements IMultiValueConverter.Convert
|
||||
Dim x = 3
|
||||
Return 10
|
||||
End Function
|
||||
|
||||
Public Function ConvertBack(value As Object, targetTypes() As Type, parameter As Object, culture As Globalization.CultureInfo) As Object() Implements IMultiValueConverter.ConvertBack
|
||||
Throw New NotImplementedException()
|
||||
End Function
|
||||
End Class
|
||||
@@ -76,6 +76,17 @@ Public Class BTLPartListVM
|
||||
NotifyPropertyChanged(NameOf(CALCPanel_IsEnabled))
|
||||
End Sub
|
||||
|
||||
Private m_BTLUpdated As Boolean = True
|
||||
Public ReadOnly Property BTLUpdated As Boolean
|
||||
Get
|
||||
Return m_BTLUpdated
|
||||
End Get
|
||||
End Property
|
||||
Friend Sub SetBTLUpdated(bValue As Boolean)
|
||||
m_BTLUpdated = bValue
|
||||
NotifyPropertyChanged(NameOf(BTLUpdated))
|
||||
End Sub
|
||||
|
||||
#Region "Messages"
|
||||
|
||||
Public ReadOnly Property PDN_Msg As String
|
||||
@@ -198,6 +209,30 @@ Public Class BTLPartListVM
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property VerifyAll_ToolTip As String
|
||||
Get
|
||||
Return EgtMsg(61928)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property VerifyAllFlipRot_ToolTip As String
|
||||
Get
|
||||
Return EgtMsg(62000)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property FilterAll_ToolTip As String
|
||||
Get
|
||||
Return EgtMsg(62570)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property ResetCalc_ToolTip As String
|
||||
Get
|
||||
Return EgtMsg(61940)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#End Region ' Messages
|
||||
|
||||
' Definizione comandi
|
||||
@@ -252,9 +287,6 @@ Public Class BTLPartListVM
|
||||
If (IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.BTLStructureVM) OrElse IsNothing(Map.refProjectVM.MachGroupPanelVM)) Then Return
|
||||
' imposto flag per calcolo
|
||||
Map.refCALCPanelVM.SetCalculating(True)
|
||||
For Each BTLPartItem As BTLPartVM In Map.refProjectVM.BTLStructureVM.BTLPartVMList
|
||||
BTLPartItem.SetIsRowEnabled(False)
|
||||
Next
|
||||
Map.refCALCPanelVM.VerifyAll(ProjectType.PROJ, CalcIntegration.CmdTypes.CHECKNOSIM)
|
||||
Return
|
||||
End Sub
|
||||
@@ -276,9 +308,6 @@ Public Class BTLPartListVM
|
||||
If (IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.BTLStructureVM) OrElse IsNothing(Map.refProjectVM.MachGroupPanelVM)) Then Return
|
||||
' imposto flag per calcolo
|
||||
Map.refCALCPanelVM.SetCalculating(True)
|
||||
For Each BTLPartItem As BTLPartVM In Map.refProjectVM.BTLStructureVM.BTLPartVMList
|
||||
BTLPartItem.SetIsRowEnabled(False)
|
||||
Next
|
||||
Map.refCALCPanelVM.VerifyAll(ProjectType.PROJ, CalcIntegration.CmdTypes.FLIP_ROT)
|
||||
Return
|
||||
End Sub
|
||||
@@ -302,6 +331,12 @@ Public Class BTLPartListVM
|
||||
Map.refCALCPanelVM.SetCalculating(False)
|
||||
For Each Part In Map.refProjectVM.BTLStructureVM.BTLPartVMList
|
||||
If Part.nGlobalState <> CalcStates.NOTCALCULATED Then
|
||||
' Resetto info
|
||||
If Map.refProjectVM.InfoNgeValue.Count > 0 Then
|
||||
For Each InfoNgePart As String In Map.refProjectVM.InfoNgeValue
|
||||
EgtRemoveInfo(Part.nPartId, InfoNgePart)
|
||||
Next
|
||||
End If
|
||||
' resetto stato dei calcoli
|
||||
Part.ResetCalcTotalPart()
|
||||
End If
|
||||
@@ -343,17 +378,17 @@ Class DataGridCellBorderThicknessConverter
|
||||
End Class
|
||||
|
||||
Class ProjIdToBtlFileName
|
||||
Implements IValueConverter
|
||||
Implements IMultiValueConverter
|
||||
|
||||
Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object Implements IValueConverter.Convert
|
||||
If TypeOf value IsNot String Then Return ""
|
||||
Dim nProjId As Integer = Integer.Parse(System.Text.RegularExpressions.Regex.Match(value, "\d+").Value)
|
||||
Public Function Convert(values() As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object Implements IMultiValueConverter.Convert
|
||||
If TypeOf values(0) IsNot String Then Return ""
|
||||
Dim nProjId As Integer = Integer.Parse(System.Text.RegularExpressions.Regex.Match(values(0), "\d+").Value)
|
||||
Dim ProjModel As EgtBEAMWALL.DataLayer.DatabaseModels.ProjModel = DbControllers.m_ProjController.FindByProjId(nProjId)
|
||||
If IsNothing(ProjModel) Then Return ""
|
||||
Return ProjModel.BTLFileName
|
||||
End Function
|
||||
|
||||
Public Function ConvertBack(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object Implements IValueConverter.ConvertBack
|
||||
Public Function ConvertBack(value As Object, targetTypes() As Type, parameter As Object, culture As CultureInfo) As Object() Implements IMultiValueConverter.ConvertBack
|
||||
Throw New NotImplementedException()
|
||||
End Function
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
||||
xmlns:dxfui="http://schemas.devexpress.com/winfx/2008/xaml/core/filteringui"
|
||||
xmlns:dxi="http://schemas.devexpress.com/winfx/2008/xaml/core/internal"
|
||||
xmlns:i="http://schemas.devexpress.com/winfx/2008/xaml/mvvm">
|
||||
xmlns:i="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
|
||||
Margin="-7">
|
||||
|
||||
<dxg:GridControl x:Name="FeatureVMList_GridControl"
|
||||
ItemsSource="{Binding Tag.FeatureVMList,
|
||||
@@ -50,18 +51,20 @@
|
||||
ShowSearchPanelNavigationButtons="True"
|
||||
UseEvenRowBackground="True"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource HeaderStyle}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImageStyle}"
|
||||
PreviewMouseDown="FeatureVMList_TableView_PreviewMouseDown"
|
||||
|
||||
RowStyle="{StaticResource RowStyle}"
|
||||
ColumnHeaderStyle="{StaticResource Header_Style}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImage_Style}"
|
||||
|
||||
Style="{StaticResource TableViewStyle}"/>
|
||||
RowStyle="{StaticResource Row_Style}"
|
||||
|
||||
Style="{StaticResource TableView_Style}"/>
|
||||
</dxg:GridControl.View>
|
||||
<dxg:GridColumn FieldName="bDO"
|
||||
AllowSorting="False"
|
||||
Header=""
|
||||
Fixed="Left"
|
||||
Style="{StaticResource ColumnInfoStyle}">
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<CheckBox IsChecked="{Binding Path=Tag.bDOALL, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
||||
@@ -72,7 +75,7 @@
|
||||
<DataTemplate>
|
||||
<dxe:CheckEdit IsChecked="{Binding RowData.Row.bDO}"
|
||||
IsEnabled="{Binding RowData.Row.IsEnabled}"
|
||||
Style="{StaticResource bDoCheckEditStyle}"/>
|
||||
HorizontalAlignment="Center"/>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
@@ -88,20 +91,30 @@
|
||||
<ColumnDefinition Width="12"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Background="{Binding RowData.Row.Calc_Background}"
|
||||
Style="{StaticResource Calc_Border}"/>
|
||||
Height="20"
|
||||
Width="20"/>
|
||||
<Grid Grid.Column="1"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_Grid}">
|
||||
HorizontalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="⭯"
|
||||
Visibility="{Binding RowData.Row.CALC_ROT_Visibility}"
|
||||
Style="{StaticResource CALC_ROT_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="12"
|
||||
Margin="1,-4,0,0"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding RowData.Row.CALC_ERR_Letter}"
|
||||
Foreground="{Binding RowData.Row.CALC_ERR_Foreground}"
|
||||
Style="{StaticResource CALC_ERR_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="12"
|
||||
Margin="-1,-6,1,-3"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -110,23 +123,25 @@
|
||||
<dxg:GridColumn FieldName="sDesc"
|
||||
AllowSorting="False"
|
||||
Header="{Binding Description_Msg}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sPriority"
|
||||
Header="{Binding Priority_Msg}"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="Strategy"
|
||||
AllowSorting="False"
|
||||
Header=""
|
||||
Image="{StaticResource HeaderEdit_Image}"
|
||||
Fixed="Right"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button Command="{Binding RowData.Row.Strategy_Command}"
|
||||
IsEnabled="{Binding RowData.Row.IsEnabled}"
|
||||
ToolTip="{Binding RowData.Row.Strategy_ToolTip}">
|
||||
<Image Source="{StaticResource Edit_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
|
||||
@@ -113,4 +113,15 @@ Public Class FeatureInPartInRawPartListV
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.False
|
||||
End Sub
|
||||
|
||||
Private Sub FeatureVMList_TableView_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
Dim IndexRow As Integer = FeatureVMList_TableView.FocusedRowHandle
|
||||
If IndexRow < 0 Then Return
|
||||
If IsNothing(Map.refProjectVM) Then Return
|
||||
If IsNothing(Map.refProjectVM.MachGroupPanelVM) Then Return
|
||||
If IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup) Then Return
|
||||
If IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart) Then Return
|
||||
If IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM) Then Return
|
||||
Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM = Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.FeatureVMList(IndexRow)
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
xmlns:dxi="http://schemas.devexpress.com/winfx/2008/xaml/core/internal"
|
||||
xmlns:i="http://schemas.devexpress.com/winfx/2008/xaml/mvvm">
|
||||
|
||||
<Grid Style="{StaticResource BlockedWnd_Grid}">
|
||||
<Grid Margin="5">
|
||||
<Grid.Resources>
|
||||
<OPTIMIZER:TrimmedTextBlockVisibilityConverter x:Key="TrimToVisConverter" />
|
||||
</Grid.Resources>
|
||||
@@ -62,40 +62,42 @@
|
||||
UseEvenRowBackground="True"
|
||||
|
||||
ShowGridMenu="OnShowGridMenu"
|
||||
|
||||
PreviewMouseDown="PParameterList_TableView_PreviewMouseDown"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource HeaderStyle}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImageStyle}"
|
||||
ColumnHeaderStyle="{StaticResource Header_Style}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImage_Style}"
|
||||
|
||||
RowStyle="{StaticResource RowStyle}"
|
||||
CellStyle="{StaticResource CellStyle}"
|
||||
RowStyle="{StaticResource Row_Style}"
|
||||
CellStyle="{StaticResource Cell_Style}"
|
||||
|
||||
Style="{StaticResource TableViewStyle}"/>
|
||||
Style="{StaticResource TableView_Style}"/>
|
||||
</dxg:GridControl.View>
|
||||
<dxg:GridColumn FieldName="bCustom"
|
||||
Header="{Binding Custom_Msg}"
|
||||
Fixed="Left"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}">
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<dxe:CheckEdit IsChecked="{Binding RowData.Row.bCustom}"
|
||||
Style="{StaticResource bDoCheckEditStyle}"/>
|
||||
HorizontalAlignment="Center"/>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="sName"
|
||||
Header="{Binding NAM_Msg}"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sDescription"
|
||||
Header="{Binding Description_Msg}"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sValue"
|
||||
SortFieldName="dValue"
|
||||
Header="{Binding Value_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
Style="{StaticResource ColumnInfoStyle}">
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:TextEditSettings HorizontalContentAlignment="Center"/>
|
||||
</dxg:GridColumn.EditSettings>
|
||||
@@ -105,33 +107,41 @@
|
||||
Header="{Binding Min_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sMax"
|
||||
SortFieldName="dMaxn"
|
||||
Header="{Binding Max_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
</dxg:GridControl>
|
||||
|
||||
<Image Grid.Column="1"
|
||||
Source="{Binding sCurrDraw}"
|
||||
Style="{StaticResource CurrDraw_Image}"/>
|
||||
Width="250"
|
||||
Margin="2.5"/>
|
||||
|
||||
<StackPanel Grid.Row="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource PParameters_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Right">
|
||||
<Button Command="{Binding Ok_Command}"
|
||||
ToolTip="{Binding Ok_Msg}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Ok_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding Cancel_Command}"
|
||||
ToolTip="{Binding Cancel_Msg}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Delete_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -112,4 +112,15 @@ Public Class PParameterListV
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.False
|
||||
End Sub
|
||||
|
||||
Private Sub PParameterList_TableView_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
Dim IndexRow As Integer = PParameterList_TableView.FocusedRowHandle
|
||||
If IndexRow < 0 Then Return
|
||||
If IsNothing(Map.refProjectVM) Then Return
|
||||
If IsNothing(Map.refProjectVM.BTLStructureVM) Then Return
|
||||
If IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) Then Return
|
||||
If IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM) Then Return
|
||||
If IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SelPBTLParam) Then Return
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SelPBTLParam = Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.PBTLParamVMList(IndexRow)
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
@@ -151,10 +151,9 @@ Public Class PParameterListVM
|
||||
Public Sub Ok()
|
||||
If Map.refProjectVM.BTLStructureVM.SelBTLPart.nGlobalState <> CalcStates.NOTCALCULATED Then
|
||||
' Resetto info
|
||||
If MyExecProcessManager.sInfoNgePartList.Count > 0 Then
|
||||
For Each InfoNgePart As String In MyExecProcessManager.sInfoNgePartList
|
||||
Dim sInfoNgePart As String() = InfoNgePart.Split("="c)
|
||||
EgtRemoveInfo(Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId, sInfoNgePart(0))
|
||||
If Map.refProjectVM.InfoNgeValue.Count > 0 Then
|
||||
For Each InfoNgePart As String In Map.refProjectVM.InfoNgeValue
|
||||
EgtRemoveInfo(Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId, InfoNgePart)
|
||||
Next
|
||||
End If
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.ResetCalcPart()
|
||||
@@ -167,6 +166,7 @@ Public Class PParameterListVM
|
||||
Map.refProjectVM.SetSelManagerTab(ProjectVM.StrategyManagerTab.RAWPARTMANAGER)
|
||||
Map.refProjectVM.SetSelFeatureManagerTab(ProjectVM.FeatureManagerTab.FEATURERAWPARTMANAGER)
|
||||
' Abilito LeftPanel
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(True)
|
||||
Map.refProjectVM.SetLeftPanel_IsEnabled(True)
|
||||
Map.refProjectVM.SetLeftPanel_Opacity(1)
|
||||
End Sub
|
||||
@@ -190,6 +190,7 @@ Public Class PParameterListVM
|
||||
Map.refProjectVM.SetSelManagerTab(ProjectVM.StrategyManagerTab.RAWPARTMANAGER)
|
||||
Map.refProjectVM.SetSelFeatureManagerTab(ProjectVM.FeatureManagerTab.FEATURERAWPARTMANAGER)
|
||||
' Abilito LeftPanel
|
||||
Map.refOptimizePanelVM.SetOptimizePanelIsEnabled(True)
|
||||
Map.refProjectVM.SetLeftPanel_IsEnabled(True)
|
||||
Map.refProjectVM.SetLeftPanel_Opacity(1)
|
||||
End Sub
|
||||
|
||||
@@ -18,78 +18,123 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<UniformGrid Columns="2"
|
||||
Style="{StaticResource PartParameters_UniformGrid}">
|
||||
Margin="0,0,0,-45">
|
||||
<TextBlock Text="{Binding NAM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sNAM, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding COUNT_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sCNT, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ORDERNUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.nORDERNUM, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PLANINGLEN_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.dPLANINGLEN, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding STARTOFFSET_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.dSTARTOFFSET, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ENDOFFSET_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.dENDOFFSET, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding DESIGN_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sDESIGN, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding GROUP_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sGROUP, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding STOREY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sSTOREY, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ANNOT_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sANNOT, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding MATERIAL_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sMATERIAL, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</UniformGrid>
|
||||
|
||||
<GroupBox Grid.Row="1"
|
||||
Style="{DynamicResource PartParam_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Margin="0,55"
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -99,13 +144,16 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding COLOUR_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<Button Grid.Column="1"
|
||||
Background="{Binding Tag.PartColour, UpdateSourceTrigger=PropertyChanged,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Command="{Binding Tag.PartColour_Command, UpdateSourceTrigger=PropertyChanged,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParameters_Button}"/>
|
||||
Height="20"
|
||||
Width="100"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding TRANSPARENCY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
@@ -113,51 +161,79 @@
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tag.nCOLA, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<UniformGrid Grid.Column="1"
|
||||
Columns="2"
|
||||
Style="{StaticResource PartParameters_UniformGrid}">
|
||||
Margin="0,0,0,-45">
|
||||
<TextBlock Text="{Binding TIMBERGRADE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sTIMBERGRADE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding QUALITYGRADE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sQUALITYGRADE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PACKAGE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sPACKAGE, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
Width="150"
|
||||
Margin="5"
|
||||
Style="{StaticResource EgtOptmizer_TextBox}"/>
|
||||
<TextBlock Text="{Binding ASSEMBLYNUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sASSEMBLYNUM, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ELEMENTNUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sELEMENTNUM, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding MODULENUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sMODULENUM, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PROCESSINGQUALITY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.ocPROCESSINGQUALITY,
|
||||
@@ -165,9 +241,12 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelPROCESSINGQUALITY,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding RECESS_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.ocRECESS,
|
||||
@@ -175,9 +254,12 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelRECESS,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding STOREYTYPE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.ocSTOREYTYPE,
|
||||
@@ -185,25 +267,35 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelSTOREYTYPE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding LAYER_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.nLAYER, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding COMMENT_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.sCOMMENT, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</UniformGrid>
|
||||
|
||||
<GroupBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Style="{DynamicResource PartParam_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Margin="0,55"
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -213,7 +305,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding REFSIDE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.ocREFSIDE,
|
||||
@@ -221,16 +315,20 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelREFSIDE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding REFSIDEALIGN_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<CheckBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
IsChecked="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.bREFSIDEALIGN,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@@ -258,7 +356,7 @@
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -269,27 +367,35 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding GRAINDIRECTION_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding Tag.GrainDirection, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding GRAINDIRALIGN_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<CheckBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
IsChecked="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.bGRAINDIRALIGN,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParameters_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="2"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -299,7 +405,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding CAMBERSIDE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.ocCAMBERSIDE,
|
||||
@@ -307,22 +415,27 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelCAMBERSIDE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding CAMBERPARAMS_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tag.CamberParams, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="4"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -332,7 +445,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding REFSIDEFIXCLAMP_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.ocREFSIDEFIXCLAMP,
|
||||
@@ -340,22 +455,27 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelREFSIDEFIXCLAMP,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding PARTOFFSETPARAMS_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tag.PartOffsetParams, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="6"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -365,7 +485,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding MATERIALTYPEGRP_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.ocMATERIALTYPEGRP,
|
||||
@@ -373,22 +495,27 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelMATERIALTYPEGRP,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding MATERIALTYPESPEC_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tag.sMATERIALTYPESPEC, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="8"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -406,10 +533,13 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelALIGNLOCATION,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding ALIGNENDTYPE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
@@ -418,14 +548,16 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelALIGNENDTYPE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParameters_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"
|
||||
Margin="0,5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="10"
|
||||
Grid.RowSpan="4"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -437,7 +569,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding UID_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.ocUID,
|
||||
@@ -445,31 +579,44 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}},
|
||||
Path=Tag.SelUID,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding TRANSFORIG_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tag.TransfOrig, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="{Binding TRANSFVERSX_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tag.TransfVersX, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Grid.Row="3"
|
||||
Text="{Binding TRANSFVERSY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tag.TransfVersY, UpdateSourceTrigger=Explicit,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersV}}}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
|
||||
@@ -16,10 +16,11 @@
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RawPartListV}}}"
|
||||
SelectionMode="Row"
|
||||
SelectedItem="{Binding Tag.SelectedMachGroup,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RawPartListV}}}"
|
||||
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RawPartListV}},
|
||||
Mode=TwoWay}"
|
||||
MasterRowExpanding="GridControl_MasterRowExpanding"
|
||||
MasterRowExpanded="RawPart_GridControl_MasterRowExpanded">
|
||||
MasterRowExpanded="RawPart_GridControl_MasterRowExpanded"
|
||||
SelectedItemChanged="Grid_SelectedItemChanged">
|
||||
<dxg:GridControl.View>
|
||||
<dxg:TableView x:Name="RawPart_TableView"
|
||||
AllowPerPixelScrolling="True"
|
||||
@@ -37,7 +38,7 @@
|
||||
NavigationStyle="Cell"
|
||||
ShowGroupPanel="False"
|
||||
ShowTotalSummary="True"
|
||||
ShowSearchPanelMode="Default"
|
||||
ShowSearchPanelMode="Never"
|
||||
ShowFilterPanelMode="Never"
|
||||
ShowIndicator="False"
|
||||
ShowColumnHeaders="True"
|
||||
@@ -48,18 +49,20 @@
|
||||
ShowSearchPanelResultInfo="True"
|
||||
ShowSearchPanelNavigationButtons="True"
|
||||
UseEvenRowBackground="True"
|
||||
AllowMoveColumnToDropArea="False"
|
||||
|
||||
ShownEditor="RawPart_TableView_ShownEditor"
|
||||
ShowGridMenu="OnShowGridMenu"
|
||||
PreviewKeyDown="RawPart_TableView_PreviewKeyDown"
|
||||
PreviewMouseDown="RawPart_TableView_PreviewMouseDown"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource HeaderStyle}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImageStyle}"
|
||||
ShowGridMenu="OnShowGridMenu"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource Header_Style}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImage_Style}"
|
||||
|
||||
RowStyle="{StaticResource RowStyle}"
|
||||
CellStyle="{StaticResource CellStyle}"
|
||||
RowStyle="{StaticResource Row_Style}"
|
||||
CellStyle="{StaticResource CellRawPartList_Style}"
|
||||
|
||||
Style="{StaticResource TableViewStyle}">
|
||||
Style="{StaticResource TableView_Style}">
|
||||
</dxg:TableView>
|
||||
</dxg:GridControl.View>
|
||||
<dxg:GridControl.TotalSummary>
|
||||
@@ -70,7 +73,8 @@
|
||||
<dxg:GridControl.DetailDescriptor>
|
||||
<dxg:DataControlDetailDescriptor ItemsSourceBinding="{Binding PartVMList}"
|
||||
Margin="0,0,16,0">
|
||||
<dxg:GridControl x:Name="Part_GridControl" SelectionMode="Row"
|
||||
<dxg:GridControl x:Name="Part_GridControl"
|
||||
SelectionMode="Row"
|
||||
SelectedItem="{Binding Tag.SelectedMachGroup.SelPart,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RawPartListV}}}">
|
||||
<dxg:GridControl.View>
|
||||
@@ -101,17 +105,17 @@
|
||||
ShowSearchPanelResultInfo="True"
|
||||
ShowSearchPanelNavigationButtons="True"
|
||||
UseEvenRowBackground="True"
|
||||
AllowMoveColumnToDropArea="False"
|
||||
|
||||
ShownEditor="Part_TableView_ShownEditor"
|
||||
ShowGridMenu="OnShowGridMenu"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource RawPartHeaderStyle}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImageStyle}"
|
||||
ColumnHeaderStyle="{StaticResource RawPartHeader_Style}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImage_Style}"
|
||||
|
||||
RowStyle="{StaticResource RowStyle}"
|
||||
CellStyle="{StaticResource CellStyle}"
|
||||
RowStyle="{StaticResource Row_Style}"
|
||||
CellStyle="{StaticResource CellRawPartList_Style}"
|
||||
|
||||
Style="{StaticResource TableViewStyle}">
|
||||
Style="{StaticResource TableView_Style}">
|
||||
</dxg:TableView>
|
||||
|
||||
</dxg:GridControl.View>
|
||||
@@ -120,13 +124,15 @@
|
||||
Header="{Binding PDN_Msg}"
|
||||
Fixed="Left"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="GlobalState"
|
||||
AllowSorting="False"
|
||||
Header=""
|
||||
SortFieldName="nGlobalState"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False">
|
||||
AllowEditing="False"
|
||||
ShowInColumnChooser="False">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
@@ -137,23 +143,35 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="↓"
|
||||
Visibility="{Binding RowData.Row.CALC_FALL_Visibility}"
|
||||
Style="{StaticResource RawPartList_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Orange.Foreground}"
|
||||
TextAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="20"
|
||||
Margin="0,-6,0,-2"/>
|
||||
<Border Grid.Column="1"
|
||||
Background="{Binding RowData.Row.Calc_Background}"
|
||||
Style="{StaticResource Calc_Border}"/>
|
||||
Height="20"
|
||||
Width="20"/>
|
||||
<Grid Grid.Column="2"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_Grid}">
|
||||
HorizontalAlignment="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="⭯"
|
||||
Visibility="{Binding RowData.Row.CALC_ROT_Visibility}"
|
||||
Style="{StaticResource CALC_ROT_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="12"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding RowData.Row.CALC_ERR_Letter}"
|
||||
Foreground="{Binding RowData.Row.CALC_ERR_Foreground}"
|
||||
Style="{StaticResource CALC_ERR_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="12"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -164,13 +182,15 @@
|
||||
AllowSorting="False"
|
||||
FilterPopupMode="CheckedList"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sL"
|
||||
AllowSorting="False"
|
||||
Header="{Binding L_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sROTATED"
|
||||
Header=""
|
||||
Image="{StaticResource HeaderRotateRawPart_Image}"
|
||||
@@ -179,7 +199,8 @@
|
||||
AllowSorting="False"
|
||||
Fixed="Right"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
@@ -188,17 +209,25 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding RowData.Row.sROT}"
|
||||
Style="{StaticResource Rotate_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="25"
|
||||
Margin="5,0,5,0"/>
|
||||
<!--segnaposto per avere larghezza colonna-->
|
||||
<TextBlock Text="888°"
|
||||
Visibility="Hidden"
|
||||
Style="{StaticResource Rotate_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
Width="25"
|
||||
Margin="5,0,5,0"/>
|
||||
<Button Grid.Column="1"
|
||||
Command="{Binding RowData.Row.ForwardRotation_Command}"
|
||||
IsEnabled="{Binding RowData.Row.ButtonIsEnabled}"
|
||||
ToolTip="{Binding RowData.Row.ForwardRotation_ToolTip}">
|
||||
<Image Source="{StaticResource Rotate_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -211,12 +240,13 @@
|
||||
Fixed="Right"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<dxe:CheckEdit IsChecked="{Binding RowData.Row.bFLIP}"
|
||||
IsEnabled="{Binding RowData.Row.ButtonIsEnabled}"
|
||||
Style="{StaticResource bDoCheckEditStyle}"/>
|
||||
HorizontalAlignment="Center"/>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
@@ -225,18 +255,21 @@
|
||||
Header="{Binding PosX_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sPOSY"
|
||||
AllowSorting="False"
|
||||
Header="{Binding PosY_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sOffset"
|
||||
AllowSorting="False"
|
||||
Header="{Binding Offset_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
Style="{StaticResource ColumnInfoStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:TextEditSettings HorizontalContentAlignment="Center"/>
|
||||
</dxg:GridColumn.EditSettings>
|
||||
@@ -245,30 +278,34 @@
|
||||
AllowSorting="False"
|
||||
Header="{Binding MAT_Msg}"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sGROUP"
|
||||
Header="{Binding GRP_Msg}"
|
||||
AllowSorting="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sSTOREY"
|
||||
Header="{Binding STOREY_Msg}"
|
||||
AllowSorting="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="MoveUp"
|
||||
Header=""
|
||||
AllowSorting="False"
|
||||
Fixed="Right"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button Command="{Binding RowData.Row.MoveUpPart_Command}"
|
||||
IsEnabled="{Binding RowData.Row.ButtonIsEnabled}"
|
||||
ToolTip="{Binding RowData.Row.MoveUpPart_ToolTip}">
|
||||
<Image Source="{StaticResource MoveUp_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -278,14 +315,17 @@
|
||||
AllowSorting="False"
|
||||
Fixed="Right"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button Command="{Binding RowData.Row.MoveDownPart_Command}"
|
||||
IsEnabled="{Binding RowData.Row.ButtonIsEnabled}"
|
||||
ToolTip="{Binding RowData.Row.MoveDownPart_ToolTip}">
|
||||
<Image Source="{StaticResource MoveDown_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -295,14 +335,17 @@
|
||||
AllowSorting="False"
|
||||
Fixed="Right"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button Command="{Binding RowData.Row.RemovePart_Command}"
|
||||
IsEnabled="{Binding RowData.Row.ButtonIsEnabled}"
|
||||
ToolTip="{Binding RowData.Row.RemovePart_ToolTip}">
|
||||
<Image Source="{StaticResource Remove_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -316,39 +359,50 @@
|
||||
SortFieldName="nName"
|
||||
Fixed="Left"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="GlobalState"
|
||||
Header=""
|
||||
SortFieldName="nGlobalState"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False">
|
||||
AllowEditing="False"
|
||||
ShowInColumnChooser="False">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Style="{StaticResource RawPartList_Grid}">
|
||||
<Grid Margin="5,0,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="15"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="↓"
|
||||
Visibility="{Binding RowData.Row.CALC_FALL_Visibility}"
|
||||
Style="{StaticResource RawPartList_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Orange.Foreground}"
|
||||
TextAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="20"/>
|
||||
<Border Grid.Column="1"
|
||||
Background="{Binding RowData.Row.Calc_Background}"
|
||||
Style="{StaticResource Calc_Border}"/>
|
||||
Height="20"
|
||||
Width="20"/>
|
||||
<Grid Grid.Column="2"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_Grid}">
|
||||
HorizontalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="⭯"
|
||||
Visibility="{Binding RowData.Row.CALC_ROT_Visibility}"
|
||||
Style="{StaticResource CALC_ROT_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="12"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding RowData.Row.CALC_ERR_Letter}"
|
||||
Foreground="{Binding RowData.Row.CALC_ERR_Foreground}"
|
||||
Style="{StaticResource CALC_ERR_TextBlock}"/>
|
||||
Text="{Binding RowData.Row.CALC_ERR_Letter}"
|
||||
Foreground="{Binding RowData.Row.CALC_ERR_Foreground}"
|
||||
VerticalAlignment="Bottom"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -359,7 +413,8 @@
|
||||
Binding="{Binding sStartCut, Mode=TwoWay}"
|
||||
AllowSorting="False"
|
||||
AllowColumnFiltering="False"
|
||||
Style="{StaticResource ColumnInfoStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:TextEditSettings HorizontalContentAlignment="Center"/>
|
||||
</dxg:GridColumn.EditSettings>
|
||||
@@ -370,20 +425,23 @@
|
||||
SortFieldName="dW"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sH"
|
||||
Header="{Binding H_Msg}"
|
||||
Binding="{Binding sH}"
|
||||
SortFieldName="dH"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sL"
|
||||
Header="{Binding L_Msg}"
|
||||
Binding="{Binding sL, Mode=TwoWay}"
|
||||
SortFieldName="dL"
|
||||
AllowColumnFiltering="False"
|
||||
Style="{StaticResource ColumnInfoStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:TextEditSettings HorizontalContentAlignment="Center"/>
|
||||
</dxg:GridColumn.EditSettings>
|
||||
@@ -394,28 +452,30 @@
|
||||
AllowSorting="False"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sMATERIAL"
|
||||
Header="{Binding Material_Msg}"
|
||||
Binding="{Binding sMATERIAL}"
|
||||
AllowSorting="False"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sUsage"
|
||||
Header="{Binding Used_Msg}"
|
||||
Binding="{Binding sUsage}"
|
||||
AllowSorting="False"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sWaste"
|
||||
Header="{Binding Waste_Msg}"
|
||||
Binding="{Binding sWaste}"
|
||||
AllowSorting="False"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfoStyle}"/>
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="Verify"
|
||||
Header=""
|
||||
Image="{StaticResource HeaderVerify_Image}"
|
||||
@@ -424,14 +484,17 @@
|
||||
Fixed="Right"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button IsEnabled="{Binding RowData.Row.ButtonIsEnabled}"
|
||||
Command="{Binding RowData.Row.Verify_Command}"
|
||||
ToolTip="{Binding RowData.Row.Verify_ToolTip}">
|
||||
<Image Source="{StaticResource Verify_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -444,14 +507,17 @@
|
||||
AllowColumnFiltering="False"
|
||||
Fixed="Right"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button IsEnabled="{Binding RowData.Row.Simulate_IsEnabled}"
|
||||
Command="{Binding RowData.Row.Simulate_Command}"
|
||||
ToolTip="{Binding RowData.Row.Simulate_ToolTip}">
|
||||
<Image Source="{StaticResource Simulate_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -464,14 +530,17 @@
|
||||
AllowColumnFiltering="False"
|
||||
Fixed="Right"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button IsEnabled="{Binding RowData.Row.ButtonIsEnabled}"
|
||||
Command="{Binding RowData.Row.ProduceRawPart_Command}"
|
||||
ToolTip="{Binding RowData.Row.ProduceRawPart_ToolTip}">
|
||||
<Image Source="{StaticResource ProduceRawPart_Image}"
|
||||
Style="{StaticResource PDF_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
@@ -484,19 +553,32 @@
|
||||
AllowColumnFiltering="False"
|
||||
Fixed="Right"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnButtonStyle}">
|
||||
ShowInColumnChooser="False"
|
||||
Style="{StaticResource ColumnButton_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<dx:DropDownButton Glyph="{StaticResource Setting_Image}"
|
||||
IsEnabled="{Binding RowData.Row.ButtonIsEnabled}"
|
||||
ToolTip="{Binding RowData.Row.Settings_Command_ToolTip}"
|
||||
Style="{StaticResource DropDownButtonStyle}">
|
||||
Style="{StaticResource DropDownButton_Style}">
|
||||
<dx:DropDownButton.ArrowGlyph>
|
||||
<DrawingImage/>
|
||||
</dx:DropDownButton.ArrowGlyph>
|
||||
<OPTIMIZER:RawPartListPopUpV DataContext="{Binding Tag.SelectedMachGroup,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RawPartListV}}}"/>
|
||||
</dx:DropDownButton>
|
||||
|
||||
<!--<EgwWPFBaseLib:EgwDropdownButton CornerRadius="3">
|
||||
<Image Source="{StaticResource Setting_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
<EgwWPFBaseLib:EgwDropdownButton.DropDownContent>
|
||||
<OPTIMIZER:RawPartListPopUpV DataContext="{Binding Tag.SelectedMachGroup,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RawPartListV}}}"/>
|
||||
</EgwWPFBaseLib:EgwDropdownButton.DropDownContent>
|
||||
</EgwWPFBaseLib:EgwDropdownButton>-->
|
||||
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
|
||||
@@ -3,9 +3,9 @@ Imports DevExpress.Data
|
||||
Imports DevExpress.Xpf.Bars
|
||||
Imports DevExpress.Xpf.Core.Native
|
||||
Imports DevExpress.Xpf.Core.Serialization
|
||||
Imports DevExpress.Xpf.Data
|
||||
Imports DevExpress.Xpf.Grid
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports EgtUILib.EgtInterface
|
||||
|
||||
Public Class RawPartListV
|
||||
|
||||
@@ -113,7 +113,6 @@ Public Class RawPartListV
|
||||
' rimozione bottoni
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.GroupBox})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.GroupColumn})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNamesBase.ColumnChooser})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.BestFit})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.BestFitColumns})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNamesBase.FilterEditor})
|
||||
@@ -208,14 +207,39 @@ Public Class RawPartListV
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub RawPart_TableView_ShownEditor(sender As Object, e As EditorEventArgs)
|
||||
e.Editor.SelectAll()
|
||||
e.Editor.EditValue = ""
|
||||
Private Sub RawPart_TableView_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
Dim IndexRow As Integer = RawPart_TableView.FocusedRowHandle
|
||||
If IndexRow < 0 Then Return
|
||||
If IsNothing(Map.refMachGroupPanelVM) Then Return
|
||||
If IsNothing(Map.refMachGroupPanelVM.SelectedMachGroup) Then Return
|
||||
If Map.refMachGroupPanelVM.SelectedMachGroup.nProduction_State > ItemState.ND Then
|
||||
RawPart_TableView.Grid.Columns("sStartCut").ReadOnly = True
|
||||
RawPart_TableView.Grid.Columns("sStartCut").AllowEditing = DevExpress.Utils.DefaultBoolean.False
|
||||
RawPart_TableView.Grid.Columns("sL").ReadOnly = True
|
||||
RawPart_TableView.Grid.Columns("sL").AllowEditing = DevExpress.Utils.DefaultBoolean.False
|
||||
Part_TableView.Grid.Columns("sOffset").ReadOnly = True
|
||||
Part_TableView.Grid.Columns("sOffset").AllowEditing = DevExpress.Utils.DefaultBoolean.False
|
||||
Else
|
||||
RawPart_TableView.Grid.Columns("sStartCut").ReadOnly = False
|
||||
RawPart_TableView.Grid.Columns("sStartCut").AllowEditing = DevExpress.Utils.DefaultBoolean.True
|
||||
RawPart_TableView.Grid.Columns("sL").ReadOnly = False
|
||||
RawPart_TableView.Grid.Columns("sL").AllowEditing = DevExpress.Utils.DefaultBoolean.True
|
||||
Part_TableView.Grid.Columns("sOffset").ReadOnly = False
|
||||
Part_TableView.Grid.Columns("sOffset").AllowEditing = DevExpress.Utils.DefaultBoolean.True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub Part_TableView_ShownEditor(sender As Object, e As EditorEventArgs)
|
||||
e.Editor.SelectAll()
|
||||
e.Editor.EditValue = ""
|
||||
Private Sub Grid_SelectedItemChanged(sender As Object, e As DevExpress.Xpf.Grid.SelectedItemChangedEventArgs)
|
||||
Dim grid = CType(sender, DevExpress.Xpf.Grid.GridControl)
|
||||
Dim view = CType(grid.View, DevExpress.Xpf.Grid.TableView)
|
||||
|
||||
If e.NewItem Is Nothing Then Return
|
||||
|
||||
' Trova l'indice dell'oggetto nella tua lista
|
||||
Dim index As Integer = CType(grid.ItemsSource, IList).IndexOf(e.NewItem)
|
||||
|
||||
' Sposta il focus sulla riga selezionata
|
||||
view.MoveFocusedRow(index)
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
Style="{StaticResource LeftPanel_Grid}">
|
||||
Background="{StaticResource Optimizer.Background}">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -21,6 +21,6 @@
|
||||
<OPTIMIZER:BTLPartListV Grid.Row="1"
|
||||
DataContext="{StaticResource PartListVM}"
|
||||
Tag="{Binding Tag, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
Margin="4,0,4,0"/>
|
||||
Margin="4,0,4,2.5"/>
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -226,72 +226,72 @@ Public Class LeftPanelVM
|
||||
|
||||
#End Region ' ShowPopUpFilterBtnCommand
|
||||
|
||||
#Region "RotateAll"
|
||||
'#Region "RotateAll"
|
||||
|
||||
Public ReadOnly Property RotateAll_Command As ICommand
|
||||
Get
|
||||
If m_cmdRotateAll Is Nothing Then
|
||||
m_cmdRotateAll = New Command(AddressOf RotateAll)
|
||||
End If
|
||||
Return m_cmdRotateAll
|
||||
End Get
|
||||
End Property
|
||||
' Public ReadOnly Property RotateAll_Command As ICommand
|
||||
' Get
|
||||
' If m_cmdRotateAll Is Nothing Then
|
||||
' m_cmdRotateAll = New Command(AddressOf RotateAll)
|
||||
' End If
|
||||
' Return m_cmdRotateAll
|
||||
' End Get
|
||||
' End Property
|
||||
|
||||
Public Sub RotateAll()
|
||||
If IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.BTLStructureVM) Then Return
|
||||
' salvo sezione impostata
|
||||
Dim CurrSection As SectionXMaterial = Map.refProjectVM.BTLStructureVM.SelSection
|
||||
' se modalita' assemblato
|
||||
Dim bShowBuilding As Boolean = Map.refShowBeamPanelVM.ShowBuilding_IsChecked
|
||||
If bShowBuilding AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
' devo smontarlo prima di calcolare le travi, altrimenti non trova i pezzi
|
||||
Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
End If
|
||||
' ruoto i pezzi selezionati
|
||||
For Each Part In Map.refProjectVM.BTLStructureVM.SelBTLParts
|
||||
Part.BackRotation(False, False)
|
||||
Next
|
||||
' se assemblato lo ripristino
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
' se progetto travi e sezione precedente diversa da vuota (tutti i pezzi)
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.BEAM AndAlso CurrSection <> SectionXMaterial.Empty Then
|
||||
' se esiste, imposto sezione inversa
|
||||
Dim InverseSection As SectionXMaterial = Map.refProjectVM.BTLStructureVM.SectionList.FirstOrDefault(Function(x) x.dH = CurrSection.dW AndAlso x.dW = CurrSection.dH AndAlso x.sMaterial(0) = CurrSection.sMaterial(0))
|
||||
If Not IsNothing(InverseSection) Then Map.refProjectVM.BTLStructureVM.SetSelSection(InverseSection)
|
||||
End If
|
||||
EgtDraw()
|
||||
End Sub
|
||||
' Public Sub RotateAll()
|
||||
' If IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.BTLStructureVM) Then Return
|
||||
' ' salvo sezione impostata
|
||||
' Dim CurrSection As SectionXMaterial = Map.refProjectVM.BTLStructureVM.SelSection
|
||||
' ' se modalita' assemblato
|
||||
' Dim bShowBuilding As Boolean = Map.refShowBeamPanelVM.ShowBuilding_IsChecked
|
||||
' If bShowBuilding AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
' ' devo smontarlo prima di calcolare le travi, altrimenti non trova i pezzi
|
||||
' Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
' End If
|
||||
' ' ruoto i pezzi selezionati
|
||||
' For Each Part In Map.refProjectVM.BTLStructureVM.SelBTLParts
|
||||
' Part.BackRotation(False, False)
|
||||
' Next
|
||||
' ' se assemblato lo ripristino
|
||||
' If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
' ' se progetto travi e sezione precedente diversa da vuota (tutti i pezzi)
|
||||
' If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.BEAM AndAlso CurrSection <> SectionXMaterial.Empty Then
|
||||
' ' se esiste, imposto sezione inversa
|
||||
' Dim InverseSection As SectionXMaterial = Map.refProjectVM.BTLStructureVM.SectionList.FirstOrDefault(Function(x) x.dH = CurrSection.dW AndAlso x.dW = CurrSection.dH AndAlso x.sMaterial(0) = CurrSection.sMaterial(0))
|
||||
' If Not IsNothing(InverseSection) Then Map.refProjectVM.BTLStructureVM.SetSelSection(InverseSection)
|
||||
' End If
|
||||
' EgtDraw()
|
||||
' End Sub
|
||||
|
||||
#End Region ' RotateAll
|
||||
'#End Region ' RotateAll
|
||||
|
||||
#Region "InvertAll"
|
||||
'#Region "InvertAll"
|
||||
|
||||
Public ReadOnly Property InvertAll_Command As ICommand
|
||||
Get
|
||||
If m_cmdInvertAll Is Nothing Then
|
||||
m_cmdInvertAll = New Command(AddressOf InvertAll)
|
||||
End If
|
||||
Return m_cmdInvertAll
|
||||
End Get
|
||||
End Property
|
||||
' Public ReadOnly Property InvertAll_Command As ICommand
|
||||
' Get
|
||||
' If m_cmdInvertAll Is Nothing Then
|
||||
' m_cmdInvertAll = New Command(AddressOf InvertAll)
|
||||
' End If
|
||||
' Return m_cmdInvertAll
|
||||
' End Get
|
||||
' End Property
|
||||
|
||||
Public Sub InvertAll()
|
||||
If IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.BTLStructureVM) Then Return
|
||||
' se modalita' assemblato
|
||||
Dim bShowBuilding As Boolean = Map.refShowBeamPanelVM.ShowBuilding_IsChecked
|
||||
If bShowBuilding AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
' devo smontarlo prima di calcolare le travi, altrimenti non trova i pezzi
|
||||
Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
End If
|
||||
' inverto i pezzi selezionati
|
||||
For Each Part In Map.refProjectVM.BTLStructureVM.SelBTLParts
|
||||
Part.Invert()
|
||||
Next
|
||||
' se assemblato lo ripristino
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
End Sub
|
||||
' Public Sub InvertAll()
|
||||
' If IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.BTLStructureVM) Then Return
|
||||
' ' se modalita' assemblato
|
||||
' Dim bShowBuilding As Boolean = Map.refShowBeamPanelVM.ShowBuilding_IsChecked
|
||||
' If bShowBuilding AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
' ' devo smontarlo prima di calcolare le travi, altrimenti non trova i pezzi
|
||||
' Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
' End If
|
||||
' ' inverto i pezzi selezionati
|
||||
' For Each Part In Map.refProjectVM.BTLStructureVM.SelBTLParts
|
||||
' Part.Invert()
|
||||
' Next
|
||||
' ' se assemblato lo ripristino
|
||||
' If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
' End Sub
|
||||
|
||||
#End Region ' InvertAll
|
||||
'#End Region ' InvertAll
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -27,15 +27,6 @@ Public Class MyMachGroupPanelVM
|
||||
' deevidenzio BTLPart di questo pezzo
|
||||
EgtBeamShowFacesName(False)
|
||||
EgtBeamShowLoadingSide(False, False)
|
||||
' se modalita' assemblato
|
||||
If Map.refShowBeamPanelVM.ShowBuilding_IsChecked Then
|
||||
Map.refProjectVM.SetSceneShowBuldingVisibility(False)
|
||||
' devo smontarlo prima di calcolare le travi, altrimenti non trova i pezzi
|
||||
Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
Map.refShowBeamPanelVM.SetShowBuilding(False)
|
||||
Map.refProjectVM.SetManagerTabVisibility(True)
|
||||
If Not IsNothing(Map.refProjectVM.MachGroupPanelVM) Then Map.refProjectVM.SetFeatureListVisibility(True)
|
||||
End If
|
||||
If Not IsNothing(Map.refProjectVM.BTLStructureVM) Then
|
||||
For BTLPartIndex = 0 To Map.refProjectVM.BTLStructureVM.BTLPartVMList.Count - 1
|
||||
Map.refProjectVM.BTLStructureVM.BTLPartVMList(BTLPartIndex).ResetSearchFound()
|
||||
@@ -55,7 +46,7 @@ Public Class MyMachGroupPanelVM
|
||||
' imposto tipo di grid selezionata
|
||||
Map.refProjectVM.SetLastSelGridType(ProjectVM.GridSelTypes.MACHGROUP)
|
||||
End If
|
||||
If IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) Then
|
||||
If Not IsNothing(SelectedMachGroup) AndAlso IsNothing(SelectedMachGroup.SelPart) Then
|
||||
Map.refProjectVM.SetFeatureListVisibility(False)
|
||||
End If
|
||||
Map.refMyStatusBarVM.SetLoadingProgress(0)
|
||||
@@ -228,8 +219,6 @@ Public Class MyMachGroupPanelVM
|
||||
Else
|
||||
SelectedMachGroup = Nothing
|
||||
EgtResetCurrMachGroup()
|
||||
' nascondo tutti i pezzi
|
||||
Map.refProjectVM.BTLStructureVM.HideAll()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@ Public Class MyMachGroupVM
|
||||
Return m_SelPart
|
||||
End Get
|
||||
Set(value As Core.PartVM)
|
||||
' mostro pezzi selezionati
|
||||
Map.refShowBeamPanelVM.bShowAll = False
|
||||
' se pezzo evidenziato da ultima selezione precedente
|
||||
If Map.refProjectVM.BTLStructureVM.SelBTLParts.Count = 1 Then
|
||||
' deevidenzio MachGroup e Duplo di questo pezzo
|
||||
@@ -54,11 +52,6 @@ Public Class MyMachGroupVM
|
||||
End If
|
||||
Map.refProjectVM.SetFeatureListVisibility(False)
|
||||
End If
|
||||
' se modalita' assemblato
|
||||
If Map.refShowBeamPanelVM.ShowBuilding_IsChecked AndAlso Map.refShowBeamPanelVM.bShowAll Then
|
||||
' devo smontarlo prima di calcolare le travi, altrimenti non trova i pezzi
|
||||
Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
End If
|
||||
m_SelPart = value
|
||||
' seleziono pezzo
|
||||
EgtDeselectAll()
|
||||
@@ -78,14 +71,6 @@ Public Class MyMachGroupVM
|
||||
End If
|
||||
If Not IsNothing(value) Then EgtDraw()
|
||||
NotifyPropertyChanged(NameOf(SelPart))
|
||||
' se modalità building, la tolgo
|
||||
If Map.refShowBeamPanelVM.ShowBuilding_IsChecked Then
|
||||
Map.refProjectVM.SetSceneShowBuldingVisibility(False)
|
||||
Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
Map.refShowBeamPanelVM.SetShowBuilding(False)
|
||||
Map.refProjectVM.SetManagerTabVisibility(True)
|
||||
If Not IsNothing(Map.refProjectVM.MachGroupPanelVM) Then Map.refProjectVM.SetFeatureListVisibility(True)
|
||||
End If
|
||||
Map.refMachGroupPanelVM.SetbSelOnPart(True)
|
||||
End Set
|
||||
End Property
|
||||
@@ -190,6 +175,7 @@ Public Class MyMachGroupVM
|
||||
UpdateUsage()
|
||||
ResetCalcTotalMachGroup()
|
||||
End If
|
||||
EgtZoom(ZM.ALL)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
IsEnabled="{Binding MachPanel_IsEnabled}"
|
||||
Style="{StaticResource MachinePanel_Grid}">
|
||||
Margin="0,10,0,10">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -17,7 +17,52 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Style="{StaticResource CalcPanel_Grid}">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="5,0,0,0">
|
||||
<RadioButton Content="{Binding StrategyManagerMsg}"
|
||||
ToolTip="{Binding ParameterMachineMsg}"
|
||||
IsChecked="{Binding StrategyManagerIsChecked}"
|
||||
Width="140"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource MainMenu_ToggleButton}"/>
|
||||
<!--<RadioButton Content="{Binding ToolDBMsg}"
|
||||
ToolTip="{Binding ToolDBToolTip}"
|
||||
IsChecked="{Binding ToolDBIsChecked}"
|
||||
Width="140"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource MainMenu_ToggleButton}"/>-->
|
||||
<!--<RadioButton Content="{Binding SetUpMsg}"
|
||||
ToolTip="{Binding SetUpToolTip}"
|
||||
IsChecked="{Binding SetUpIsChecked}"
|
||||
Width="140"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource MainMenu_ToggleButton}"/>-->
|
||||
<Button Content="{Binding ToolDBMsg}"
|
||||
Command="{Binding ToolDbCommand}"
|
||||
ToolTip="{Binding ToolDBToolTip}"
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Content="{Binding SetUpMsg}"
|
||||
Command="{Binding SetUpCommand}"
|
||||
ToolTip="{Binding SetUpToolTip}"
|
||||
Visibility="{Binding SetUp_Visibility}"
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<RadioButton Content="{Binding MachineParamsMsg}"
|
||||
ToolTip="{Binding MachineParamsMsg}"
|
||||
IsChecked="{Binding MachineParamsIsChecked}"
|
||||
Width="150"
|
||||
Margin="5,0,10,0"
|
||||
Style="{StaticResource MainMenu_ToggleButton}"/>
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Column="1"
|
||||
HorizontalAlignment="Right"
|
||||
Margin="0,0,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -25,62 +70,69 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding CurrentMachineMsg}"
|
||||
Style="{StaticResource CurrentMachine_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
FontSize="15"
|
||||
Margin="10,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding SelMachineName, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource SelMachine_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="20"
|
||||
Margin="10,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<Button Grid.Column="2"
|
||||
ToolTip="{Binding ChooseMachine_ToolTip}"
|
||||
Command="{Binding ChooseMachine_Command}"
|
||||
Style="{StaticResource ToolBarViewPanel_Button}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource ChooseMachine_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Grid Grid.Column="3"
|
||||
Visibility="{Binding ChooseMachine_Visibility}"
|
||||
Style="{StaticResource CalcPanel_Grid}">
|
||||
Margin="0,0,5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<!--Combobox per selezionare la macchina corrente-->
|
||||
<ComboBox x:Name="SelMachineCombo"
|
||||
ItemsSource="{Binding Path=MachineList}" DisplayMemberPath="Name"
|
||||
SelectedItem="{Binding Path=SelectedMachine}" SelectedValuePath="Name"
|
||||
Style="{StaticResource CalcPanel_ComboBox}"/>
|
||||
ItemsSource="{Binding Path=MachineList}"
|
||||
SelectedItem="{Binding Path=SelectedMachine}"
|
||||
DisplayMemberPath="Name"
|
||||
SelectedValuePath="Name"
|
||||
Height="22"
|
||||
Width="150"
|
||||
Style="{StaticResource Optmizer_ComboBox}"/>
|
||||
<Button Grid.Column="1"
|
||||
Content="OK"
|
||||
Command="{Binding Ok_Command}"
|
||||
Style="{StaticResource CalcPanel_Button}"/>
|
||||
FontWeight="Light"
|
||||
FontSize="10"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<StackPanel Grid.Column="1"
|
||||
Style="{StaticResource PParameters_StackPanel}">
|
||||
<RadioButton Content="{Binding StrategyManagerMsg}"
|
||||
ToolTip="{Binding ParameterMachineMsg}"
|
||||
IsChecked="{Binding StrategyManagerIsChecked}"
|
||||
Style="{StaticResource StrategyManager_ToggleButton}"/>
|
||||
<Button Content="{Binding ToolDBMsg}"
|
||||
ToolTip="{Binding ToolDBToolTip}"
|
||||
Command="{Binding ToolDbCommand}"
|
||||
Click="Button_Click"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"/>
|
||||
<Button Content="{Binding SetUpMsg}"
|
||||
Command="{Binding SetUpCommand}"
|
||||
Click="Button_Click"
|
||||
ToolTip="{Binding SetUpToolTip}"
|
||||
Style="{StaticResource GeneralConfiguration_Button}"
|
||||
Visibility="{Binding SetUp_Visibility}"/>
|
||||
<RadioButton Content="{Binding MachineParamsMsg}"
|
||||
ToolTip="{Binding MachineParamsMsg}"
|
||||
IsChecked="{Binding MachineParamsIsChecked}"
|
||||
Style="{StaticResource MachineParam_ToggleButton}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<TabControl Grid.Row="1"
|
||||
SelectedIndex="{Binding nSelTab}"
|
||||
Style="{StaticResource SelTab_TabControl}">
|
||||
Background="{StaticResource TabControl.Static.Generic.Background}"
|
||||
BorderThickness="0"
|
||||
TabStripPlacement="Top"
|
||||
Margin="5,5,2.5,5">
|
||||
<TabControl.Style>
|
||||
<Style TargetType="{x:Type TabControl}">
|
||||
<Style.Resources>
|
||||
<Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource Optimizer_TabItem}"/>
|
||||
</Style.Resources>
|
||||
</Style>
|
||||
</TabControl.Style>
|
||||
<TabControl.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type TabItem}">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
@@ -90,30 +142,37 @@
|
||||
<TabItem Header="STRATEGIES">
|
||||
<OPTIMIZER:StrategyManagerV DataContext="{StaticResource StrategyManagerVM}" Margin="0,0,0,-25"/>
|
||||
</TabItem>
|
||||
<!--<TabItem Header="TOOLDB">
|
||||
<OPTIMIZER:ToolDbWindowV/>
|
||||
</TabItem>-->
|
||||
<!--<TabItem Header="SETUP">
|
||||
<OPTIMIZER:SetUpDBV/>
|
||||
</TabItem>-->
|
||||
<TabItem Header="PARAMETERS">
|
||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ItemsControl ItemsSource="{Binding SelectedItem.MachTableList, ElementName=SelMachineCombo}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<StackPanel x:Name="GroupStackPanel"
|
||||
Style="{StaticResource PartManager_StackPanel}"/>
|
||||
Orientation="Horizontal"/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<GroupBox Header="{Binding sName}"
|
||||
Style="{StaticResource MachinePanel_GroupBox}">
|
||||
Foreground="{StaticResource BeamWall_Corduroy}"
|
||||
VerticalAlignment="Top">
|
||||
<ItemsControl Name="MachParamsItemsControl"
|
||||
ItemsSource="{Binding MachParamList}"
|
||||
Style="{StaticResource MachinePanel_ItemsControl}">
|
||||
Margin="0,5,0,0">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Style="{StaticResource Project_WrapPanel}"/>
|
||||
<WrapPanel Orientation="Vertical"/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Style="{StaticResource MachParam_Grid}">
|
||||
<Grid Margin="0,0,5,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
@@ -121,14 +180,19 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding sName}"
|
||||
ToolTip="{Binding sName}"
|
||||
Style="{StaticResource MachinePanel_TextBlock}"/>
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Width="150"
|
||||
Style="{StaticResource MachParam_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||
Style="{StaticResource Name_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="60"/>
|
||||
<TextBlock Grid.Column="2"
|
||||
Text="{Binding sDescription}"
|
||||
ToolTip="{Binding sDescription}"
|
||||
Style="{StaticResource Description_TextBlock}"/>
|
||||
TextWrapping="WrapWithOverflow"
|
||||
Width="148"
|
||||
Style="{StaticResource MachParam_TextBlock}"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
Public Class MachinePanelV
|
||||
|
||||
Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
|
||||
Map.refMachinePanelVM.SetStrategyManagerIsChecked(False)
|
||||
Map.refMachinePanelVM.SetMachineParamsIsChecked(False)
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
@@ -2,13 +2,20 @@
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib5
|
||||
Imports Google.Protobuf.WellKnownTypes
|
||||
|
||||
Public Class MachinePanelVM
|
||||
Inherits EgtWPFLib5.MachinePanelVM
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
'Friend Enum ConfigTabs As Integer
|
||||
' EMPTY = 0
|
||||
' STRATEGYMANAGER = 1
|
||||
' TOOLDB = 2
|
||||
' SETUP = 3
|
||||
' MACHINEPARAMS = 4
|
||||
'End Enum
|
||||
|
||||
Friend Enum ConfigTabs As Integer
|
||||
EMPTY = 0
|
||||
STRATEGYMANAGER = 1
|
||||
@@ -16,7 +23,7 @@ Public Class MachinePanelVM
|
||||
End Enum
|
||||
|
||||
' Radice del direttorio delle macchine
|
||||
Private m_sMachinesRoot As String
|
||||
Friend m_sMachinesRoot As String
|
||||
|
||||
' Macchina correntemente selezionata e quindi attiva
|
||||
Private m_SelectedMachine As Machine = Nothing
|
||||
@@ -106,9 +113,58 @@ Public Class MachinePanelVM
|
||||
Friend Sub SetStrategyManagerIsChecked(value As Boolean)
|
||||
m_bStrategyManagerIsChecked = value
|
||||
m_bMachineParamsIsChecked = False
|
||||
SetSelTab(ConfigTabs.STRATEGYMANAGER)
|
||||
m_bToolDBIsChecked = False
|
||||
m_bSetUpIsChecked = False
|
||||
If value Then SetSelTab(ConfigTabs.STRATEGYMANAGER)
|
||||
NotifyPropertyChanged(NameOf(StrategyManagerIsChecked))
|
||||
NotifyPropertyChanged(NameOf(MachineParamsIsChecked))
|
||||
NotifyPropertyChanged(NameOf(ToolDBIsChecked))
|
||||
NotifyPropertyChanged(NameOf(SetUpIsChecked))
|
||||
End Sub
|
||||
|
||||
Private m_bToolDBIsChecked As Boolean = False
|
||||
Public Property ToolDBIsChecked As Boolean
|
||||
Get
|
||||
Return m_bToolDBIsChecked
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
m_bToolDBIsChecked = value
|
||||
SetToolDBIsChecked(m_bToolDBIsChecked)
|
||||
End Set
|
||||
End Property
|
||||
Friend Sub SetToolDBIsChecked(value As Boolean)
|
||||
m_bToolDBIsChecked = value
|
||||
m_bSetUpIsChecked = False
|
||||
m_bMachineParamsIsChecked = False
|
||||
m_bStrategyManagerIsChecked = False
|
||||
'If value Then SetSelTab(ConfigTabs.TOOLDB)
|
||||
NotifyPropertyChanged(NameOf(ToolDBIsChecked))
|
||||
NotifyPropertyChanged(NameOf(MachineParamsIsChecked))
|
||||
NotifyPropertyChanged(NameOf(StrategyManagerIsChecked))
|
||||
NotifyPropertyChanged(NameOf(SetUpIsChecked))
|
||||
End Sub
|
||||
|
||||
Private m_bSetUpIsChecked As Boolean = False
|
||||
Public Property SetUpIsChecked As Boolean
|
||||
Get
|
||||
Return m_bSetUpIsChecked
|
||||
End Get
|
||||
Set(value As Boolean)
|
||||
m_bSetUpIsChecked = value
|
||||
SetSetUpIsChecked(m_bSetUpIsChecked)
|
||||
End Set
|
||||
End Property
|
||||
Friend Sub SetSetUpIsChecked(value As Boolean)
|
||||
m_bSetUpIsChecked = value
|
||||
m_bToolDBIsChecked = False
|
||||
m_bMachineParamsIsChecked = False
|
||||
m_bStrategyManagerIsChecked = False
|
||||
'If value Then SetSelTab(ConfigTabs.SETUP)
|
||||
NotifyPropertyChanged(NameOf(ToolDBIsChecked))
|
||||
NotifyPropertyChanged(NameOf(SetUpIsChecked))
|
||||
NotifyPropertyChanged(NameOf(MachineParamsIsChecked))
|
||||
NotifyPropertyChanged(NameOf(StrategyManagerIsChecked))
|
||||
NotifyPropertyChanged(NameOf(SetUpIsChecked))
|
||||
End Sub
|
||||
|
||||
Private m_bMachineParamsIsChecked As Boolean = False
|
||||
@@ -123,10 +179,14 @@ Public Class MachinePanelVM
|
||||
End Property
|
||||
Friend Sub SetMachineParamsIsChecked(value As Boolean)
|
||||
m_bMachineParamsIsChecked = value
|
||||
m_bSetUpIsChecked = False
|
||||
m_bStrategyManagerIsChecked = False
|
||||
SetSelTab(ConfigTabs.MACHINEPARAMS)
|
||||
m_bToolDBIsChecked = False
|
||||
If value Then SetSelTab(ConfigTabs.MACHINEPARAMS)
|
||||
NotifyPropertyChanged(NameOf(MachineParamsIsChecked))
|
||||
NotifyPropertyChanged(NameOf(StrategyManagerIsChecked))
|
||||
NotifyPropertyChanged(NameOf(ToolDBIsChecked))
|
||||
NotifyPropertyChanged(NameOf(SetUpIsChecked))
|
||||
End Sub
|
||||
|
||||
#Region "Messages"
|
||||
@@ -267,6 +327,8 @@ Public Class MachinePanelVM
|
||||
|
||||
Public Overrides Sub ToolDb(ByVal param As Object)
|
||||
SetSelTab(ConfigTabs.EMPTY)
|
||||
SetStrategyManagerIsChecked(False)
|
||||
SetMachineParamsIsChecked(False)
|
||||
If Not VerifyMachinesDir(m_sMachinesRoot) Then Return
|
||||
' ricarico il database per intercettare eventuali aggiornamenti fatti da altre istanze del programma (se la cartella Machines è condivisa)
|
||||
If Not EgtTdbReload() Then
|
||||
@@ -276,7 +338,7 @@ Public Class MachinePanelVM
|
||||
End If
|
||||
|
||||
Dim ToolDbWindowVM As New MyToolDbWindowVM(CurrentMachine.sMachDir, CurrentMachine.sMachIniFile, Map.refSceneHostVM.MainScene.GetCtx(), "Beam")
|
||||
Dim ToolDbWindowV = New ToolDbWindowV(Application.Current.MainWindow, ToolDbWindowVM)
|
||||
Dim ToolDbWindowV = New EgtWPFLib5.ToolDbWindowV(Application.Current.MainWindow, ToolDbWindowVM)
|
||||
|
||||
If ToolDbWindowVM.MatType <> 0 Then
|
||||
ToolDbWindowV.Height = 640
|
||||
@@ -287,29 +349,10 @@ Public Class MachinePanelVM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Public Overrides Sub MachDb(ByVal param As Object)
|
||||
SetSelTab(ConfigTabs.EMPTY)
|
||||
If Not VerifyMachinesDir(m_sMachinesRoot) Then Return
|
||||
' ricarico il database per intercettare eventuali aggiornamenti fatti da altre istanze del programma (se la cartella Machines è condivisa)
|
||||
If Not EgtMdbReload() Then
|
||||
EgtOutLog("Impossible reloading machining Db")
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(31408), EgtMsg(15001), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
Return
|
||||
End If
|
||||
Dim MachDbWindowVM As New EgtWPFLib5.MachiningDbWindowVM(CurrentMachine.sMachIniFile, Map.refSceneHostVM.MainScene.GetCtx(), "Stone")
|
||||
Dim MachDbWindowV = New EgtWPFLib5.MachiningDbWindowV(Application.Current.MainWindow, MachDbWindowVM)
|
||||
|
||||
If EgtWPFLib5.MachiningTreeViewItem.m_MatType <> 0 Then
|
||||
MachDbWindowV.Height = 768
|
||||
MachDbWindowV.Width = 1024
|
||||
MachDbWindowV.ShowDialog()
|
||||
Else
|
||||
Exit Sub
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Public Overrides Sub SetUp(ByVal param As Object)
|
||||
SetSelTab(ConfigTabs.EMPTY)
|
||||
SetStrategyManagerIsChecked(False)
|
||||
SetMachineParamsIsChecked(False)
|
||||
' verifico che il file di configurazione attrezzaggio (lua) della macchina esista
|
||||
If Not File.Exists(CurrentMachine.sMachDir & "\Scripts\" & SETUP_LUA) Then
|
||||
EgtOutLog("SetUp error: SetUp configuration file doesn't exist ")
|
||||
@@ -383,6 +426,7 @@ Public Class MachinePanelVM
|
||||
|
||||
Friend Sub Ok()
|
||||
SetSelMachineName(m_SelectedMachine.Name)
|
||||
'MapV.refToolDbWindowV.Load()
|
||||
SetChooseMachine_Visibility(False)
|
||||
End Sub
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
WindowStartupLocation="CenterOwner"
|
||||
Title="NewMacroFeature"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource BlockedWnd_Grid}">
|
||||
|
||||
<Grid Margin="5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -20,34 +20,47 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="Feature"
|
||||
Style="{StaticResource Feature_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="5"/>
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding sDescBTLFeature}"
|
||||
Style="{StaticResource DescBTLFeature_TextBlock}"/>
|
||||
Text="{Binding sDescBTLFeature}"
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<CheckBox Grid.Column="2"
|
||||
Content="Default Macro"
|
||||
IsChecked="{Binding bIsCustomChecked}"
|
||||
Visibility="{Binding bCustomVisibility}"
|
||||
Style="{StaticResource DefaultMacro_CheckBox}"/>
|
||||
Margin="0,6,5,0"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="Name"
|
||||
Style="{StaticResource Option_TextBlock}"/>
|
||||
Foreground="{StaticResource TextBlock.Static.Corduroy.Foreground}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,5,10,0"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Text="{Binding sFeatureName}"
|
||||
Style="{StaticResource FeatureName_TextBox}"/>
|
||||
Text="{Binding sFeatureName}"
|
||||
TextWrapping="Wrap"
|
||||
Width="200"
|
||||
Margin="5"/>
|
||||
<UniformGrid Columns="2"
|
||||
Grid.Row="2"
|
||||
Grid.ColumnSpan="3"
|
||||
Style="{StaticResource AddFeatureWnd_UniformGrid}">
|
||||
Margin="5">
|
||||
<Button Content="Ok"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Content="Cancel"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
IsEnabled="{Binding MainMenu_IsEnabled}"
|
||||
DataContext="{DynamicResource MainMenuVM}"
|
||||
DataContext="{StaticResource MainMenuVM}"
|
||||
WindowChrome.IsHitTestVisibleInChrome="True">
|
||||
|
||||
<!--Barra superiore dei comandi-->
|
||||
@@ -30,39 +33,134 @@
|
||||
Content="{Binding Supervisor_Msg}"
|
||||
Command="{Binding Supervisor_Command}"
|
||||
Visibility="{Binding Supervisor_Visibility}"
|
||||
Style="{StaticResource MainMenu_Button}"/>
|
||||
Background="{StaticResource Button.MainMenu.Background}"
|
||||
Foreground="{StaticResource BeamWall_White}"
|
||||
TextBlock.FontWeight="Normal"
|
||||
Height="30"
|
||||
Width="120"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
|
||||
<Button Grid.Column="3"
|
||||
Command="{Binding SendFeedbackCommand}"
|
||||
ToolTip="{Binding SendFeedbackToolTip}"
|
||||
Style="{StaticResource SendFeedback_Button}">
|
||||
<Grid>
|
||||
<Image Source="{StaticResource Send_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
<Border Background="Red"
|
||||
Height="10"
|
||||
Width="10"
|
||||
Margin="5,0,0,0"
|
||||
CornerRadius="5"
|
||||
VerticalAlignment="Top"
|
||||
HorizontalAlignment="Right"
|
||||
Visibility="{Binding BadgeVisibility}">
|
||||
<TextBlock Text="{Binding sBadgeText}"
|
||||
FontSize="7"
|
||||
VerticalAlignment="Center"
|
||||
<EgwWPFBaseLib:EgwSplitButton Grid.Column="3"
|
||||
Command="{Binding SendFeedbackCommand}"
|
||||
ToolTip="{Binding SendFeedbackToolTip}"
|
||||
Background="{StaticResource Button.MainMenu.Background}"
|
||||
BorderBrush="{StaticResource Button.Static.Border}"
|
||||
CornerRadius="3"
|
||||
Height="30"
|
||||
DropDownHorizontalContentAlignment="Stretch"
|
||||
DropDownVerticalContentAlignment="Stretch"
|
||||
DropDownButtonPadding="0">
|
||||
<Image Source="{StaticResource Send_Image}"
|
||||
Stretch="Uniform"
|
||||
Margin="5,0"/>
|
||||
<EgwWPFBaseLib:EgwSplitButton.DropDownButtonContent>
|
||||
<Grid>
|
||||
<TextBlock Text="▼"
|
||||
HorizontalAlignment="Center"
|
||||
Foreground="White"
|
||||
Margin="0,0,0,1"/>
|
||||
VerticalAlignment="Center"/>
|
||||
<Border Background="Red"
|
||||
Height="10"
|
||||
Width="10"
|
||||
Margin="5,2,2,0"
|
||||
CornerRadius="5"
|
||||
VerticalAlignment="Top"
|
||||
HorizontalAlignment="Right"
|
||||
Visibility="{Binding BadgeVisibility}">
|
||||
<TextBlock Text="{Binding sBadgeText}"
|
||||
FontSize="7"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Foreground="White"
|
||||
Margin="0,0,0,1"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
</EgwWPFBaseLib:EgwSplitButton.DropDownButtonContent>
|
||||
<EgwWPFBaseLib:EgwSplitButton.DropDownContent>
|
||||
<Border BorderBrush="{StaticResource Button.Static.Border}"
|
||||
BorderThickness="2"
|
||||
CornerRadius="3"
|
||||
Padding="2"
|
||||
Background="{StaticResource Button.MainMenu.Background}"
|
||||
Margin="0">
|
||||
<Button ToolTip="{Binding TicketManagerToolTip}"
|
||||
Command="{Binding TicketManager_Command}"
|
||||
Background="{StaticResource Button.MainMenu.Background}"
|
||||
Foreground="{StaticResource BeamWall_White}"
|
||||
FontWeight="Normal"
|
||||
Height="30"
|
||||
Width="40"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource TicketManager_Image}"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
</Border>
|
||||
</Grid>
|
||||
</Button>
|
||||
</EgwWPFBaseLib:EgwSplitButton.DropDownContent>
|
||||
</EgwWPFBaseLib:EgwSplitButton>
|
||||
<dx:SplitButton Grid.Column="3"
|
||||
Command="{Binding SendFeedbackCommand}"
|
||||
ToolTip="{Binding SendFeedbackToolTip}"
|
||||
Background="{StaticResource Button.MainMenu.Background}"
|
||||
ArrowBackground="{StaticResource Button.MainMenu.Background}"
|
||||
BorderBrush="{StaticResource Button.Static.Border}"
|
||||
BorderThickness="0"
|
||||
ArrowBorderThickness="0"
|
||||
ArrowPadding="0"
|
||||
Foreground="{StaticResource BeamWall_White}"
|
||||
Height="30"
|
||||
CornerRadius="3"
|
||||
PopupDropAlignment="Bottom"
|
||||
Visibility="Collapsed">
|
||||
<dx:SplitButton.Content>
|
||||
<Grid>
|
||||
<Image Source="{StaticResource Send_Image}"
|
||||
Stretch="Uniform"/>
|
||||
<Border Background="Red"
|
||||
Height="10"
|
||||
Width="10"
|
||||
Margin="5,0,0,0"
|
||||
CornerRadius="5"
|
||||
VerticalAlignment="Top"
|
||||
HorizontalAlignment="Right"
|
||||
Visibility="{Binding BadgeVisibility}">
|
||||
<TextBlock Text="{Binding sBadgeText}"
|
||||
FontSize="7"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Foreground="White"
|
||||
Margin="0,0,0,1"/>
|
||||
</Border>
|
||||
</Grid>
|
||||
</dx:SplitButton.Content>
|
||||
<dxb:PopupControlContainer Background="Transparent"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="0"
|
||||
AllowsTransparency="True">
|
||||
<Button ToolTip="{Binding TicketManagerToolTip}"
|
||||
Command="{Binding TicketManager_Command}"
|
||||
Background="{StaticResource Button.MainMenu.Background}"
|
||||
Foreground="{StaticResource BeamWall_White}"
|
||||
FontWeight="Normal"
|
||||
Height="30"
|
||||
Width="40"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource TicketManager_Image}"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</dxb:PopupControlContainer>
|
||||
|
||||
</dx:SplitButton>
|
||||
|
||||
<RadioButton Grid.Column="4"
|
||||
IsChecked="{Binding ConfigProgram_IsChecked}"
|
||||
ToolTip="{Binding ConfigurationProgramToolTip}"
|
||||
Style="{StaticResource ConfigProgram_ToggleButton}">
|
||||
Background="Transparent"
|
||||
Width="40"
|
||||
Style="{StaticResource MainMenu_ToggleButton}">
|
||||
<Image Source="{Binding sConfigurationImagePath}"
|
||||
Style="{StaticResource ConfigProgram_Image}"/>
|
||||
Height="40"
|
||||
Stretch="Uniform"
|
||||
Margin="0,-6,0,0"/>
|
||||
</RadioButton>
|
||||
|
||||
<OPTIMIZER:UserAdminV Grid.Column="5"/>
|
||||
|
||||
@@ -304,6 +304,12 @@ Public Class MainMenuVM
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property TicketManagerToolTip As String
|
||||
Get
|
||||
Return EgtMsg(30516)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property ConfigurationProgramToolTip As String
|
||||
Get
|
||||
Return EgtMsg(30515)
|
||||
@@ -317,6 +323,7 @@ Public Class MainMenuVM
|
||||
' Definizione comandi
|
||||
Private m_cmdSupervisor As ICommand
|
||||
Private m_cmdSendFeedback As ICommand
|
||||
Private m_cmdTicketManager As ICommand
|
||||
|
||||
#End Region ' Fields & Properties
|
||||
|
||||
@@ -336,7 +343,11 @@ Public Class MainMenuVM
|
||||
AddHandler m_OpenPage_Timer.Tick, AddressOf OpenPage_Tick
|
||||
m_OpenPage_Timer.Start()
|
||||
' verifico se lanciare gestore notifiche
|
||||
If Not IsNothing(Map.refMainWindowVM.MainWindowM.RedmineApi) AndAlso GetMainPrivateProfileInt("Redmine", "EnableNotification", 0) > 0 AndAlso Not IsNothing(Map.refMainWindowVM.MainWindowM.RedmineApi.NotificationManager) Then
|
||||
If GetMainPrivateProfileInt("Redmine", "EnableNotification", 0) = 1 AndAlso
|
||||
Not String.IsNullOrWhiteSpace(Map.refMainWindowVM.MainWindowM.RedmineUrl) AndAlso
|
||||
Not String.IsNullOrWhiteSpace(Map.refMainWindowVM.MainWindowM.RedmineProject) AndAlso
|
||||
Not IsNothing(Map.refMainWindowVM.MainWindowM.RedmineApi) AndAlso
|
||||
Not IsNothing(Map.refMainWindowVM.MainWindowM.RedmineApi.NotificationManager) Then
|
||||
AddHandler Map.refMainWindowVM.MainWindowM.RedmineApi.NotificationManager.OnNotification, AddressOf NotificationManager_OnNotification
|
||||
End If
|
||||
End Sub
|
||||
@@ -719,6 +730,24 @@ Public Class MainMenuVM
|
||||
|
||||
#End Region ' SendFeedbackCommand
|
||||
|
||||
#Region "TicketManager"
|
||||
|
||||
Public ReadOnly Property TicketManager_Command As ICommand
|
||||
Get
|
||||
If m_cmdTicketManager Is Nothing Then
|
||||
m_cmdTicketManager = New Command(AddressOf TicketManager)
|
||||
End If
|
||||
Return m_cmdTicketManager
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public Sub TicketManager(ByVal param As Object)
|
||||
' apro ticket manager
|
||||
Map.refMainWindowVM.MainWindowM.RedmineApi?.OpenTicketList()
|
||||
End Sub
|
||||
|
||||
#End Region ' TicketManager
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
Private Sub NotificationManager_OnNotification(evt As NotificationEvent)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
Imports System.IO
|
||||
Imports System.Math
|
||||
Imports System.Threading
|
||||
Imports DevExpress.Xpf.Grid
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib5
|
||||
@@ -194,8 +195,19 @@ Public Class MainWindowM
|
||||
|
||||
'Private REDMINE_URL As String = "https://redmine.egalware.com/"
|
||||
'Private PROJECT_ID As String = "steamware-stockmat"
|
||||
Private REDMINE_URL As String = "http://172.16.1.71/"
|
||||
Private PROJECT_ID As String = "base-stong"
|
||||
Private m_RedmineUrl As String '= "http://172.16.1.71/"
|
||||
Public ReadOnly Property RedmineUrl As String
|
||||
Get
|
||||
Return m_RedmineUrl
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Private m_RedmineProject As String '= "base-stong"
|
||||
Public ReadOnly Property RedmineProject As String
|
||||
Get
|
||||
Return m_RedmineProject
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Private m_RedmineApi As EgwRedmineAPICore
|
||||
Friend ReadOnly Property RedmineApi As EgwRedmineAPICore
|
||||
@@ -204,11 +216,13 @@ Public Class MainWindowM
|
||||
m_RedmineApi = New EgwRedmineAPICore()
|
||||
m_RedmineApi.SetGetPrivateProfileString(AddressOf EgwWPFBaseLib.GetMainPrivateProfileString)
|
||||
m_RedmineApi.SetWritePrivateProfileString(AddressOf EgwWPFBaseLib.WriteMainPrivateProfileString)
|
||||
m_RedmineApi.SetGetPrivateProfileInt(AddressOf EgwWPFBaseLib.GetMainPrivateProfileInt)
|
||||
m_RedmineApi.SetWinPosFromIniToWindow(AddressOf EgwWPFBaseLib.WinPosFromIniToWindow)
|
||||
m_RedmineApi.SetWinPosFromWindowToIni(AddressOf EgwWPFBaseLib.WinPosFromWindowToIni)
|
||||
If Not m_RedmineApi.Init(REDMINE_URL, PROJECT_ID) Then
|
||||
Dim InitRes = m_RedmineApi.Init(RedmineUrl, RedmineProject)
|
||||
If Not InitRes.bResult Then
|
||||
m_RedmineApi = Nothing
|
||||
MessageBox.Show("Ticketing system initialization failed!", "Error!", MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
MessageBox.Show("Ticketing system initialization failed!" & Environment.NewLine & InitRes.sErrorMessage, "Error!", MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
End If
|
||||
End If
|
||||
Return m_RedmineApi
|
||||
@@ -364,6 +378,8 @@ Public Class MainWindowM
|
||||
If Not EgtLoadMessages(sMsgFilePath) Then
|
||||
EgtOutLog("Error in EgtLoadMessages")
|
||||
End If
|
||||
' Leggo messaggi per GridControl di DevExpress
|
||||
GridControlLocalizer.Active = New CustomDXGridLocalizer()
|
||||
' Leggo e imposto unità di misura per interfaccia utente
|
||||
EgtSetUiUnits(GetMainPrivateProfileInt(S_SCENE, K_MMUNITS, 1) <> 0)
|
||||
' Leggo e imposto livello utilizzatore
|
||||
@@ -394,17 +410,24 @@ Public Class MainWindowM
|
||||
' Info su opzioni chiave
|
||||
EgtOutLog("KeyOptions : " & bKey.ToString() & " " & m_nKeyOptions.ToString())
|
||||
' inizializzo ambiente Redmine
|
||||
m_RedmineApi = New EgwRedmineAPICore()
|
||||
m_RedmineApi.SetGetPrivateProfileString(AddressOf EgwWPFBaseLib.GetMainPrivateProfileString)
|
||||
m_RedmineApi.SetWritePrivateProfileString(AddressOf EgwWPFBaseLib.WriteMainPrivateProfileString)
|
||||
m_RedmineApi.SetGetPrivateProfileInt(AddressOf EgwWPFBaseLib.GetMainPrivateProfileInt)
|
||||
m_RedmineApi.SetWinPosFromIniToWindow(AddressOf EgwWPFBaseLib.WinPosFromIniToWindow)
|
||||
m_RedmineApi.SetWinPosFromWindowToIni(AddressOf EgwWPFBaseLib.WinPosFromWindowToIni)
|
||||
If Not m_RedmineApi.Init(REDMINE_URL, PROJECT_ID) Then
|
||||
m_RedmineApi = Nothing
|
||||
MessageBox.Show("Ticketing system initialization failed!", "Error!", MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
If GetMainPrivateProfileString("Redmine", "Url", "", m_RedmineUrl) > 0 AndAlso
|
||||
GetMainPrivateProfileString("Redmine", "Project", "", m_RedmineProject) > 0 AndAlso
|
||||
Not String.IsNullOrWhiteSpace(m_RedmineUrl) AndAlso
|
||||
Not String.IsNullOrWhiteSpace(m_RedmineProject) Then
|
||||
If GetMainPrivateProfileInt("Redmine", "EnableNotification", 0) = 1 Then
|
||||
m_RedmineApi = New EgwRedmineAPICore()
|
||||
m_RedmineApi.SetGetPrivateProfileString(AddressOf EgwWPFBaseLib.GetMainPrivateProfileString)
|
||||
m_RedmineApi.SetWritePrivateProfileString(AddressOf EgwWPFBaseLib.WriteMainPrivateProfileString)
|
||||
m_RedmineApi.SetGetPrivateProfileInt(AddressOf EgwWPFBaseLib.GetMainPrivateProfileInt)
|
||||
m_RedmineApi.SetWinPosFromIniToWindow(AddressOf EgwWPFBaseLib.WinPosFromIniToWindow)
|
||||
m_RedmineApi.SetWinPosFromWindowToIni(AddressOf EgwWPFBaseLib.WinPosFromWindowToIni)
|
||||
Dim InitRes = m_RedmineApi.Init(RedmineUrl, RedmineProject)
|
||||
If Not InitRes.bResult Then
|
||||
m_RedmineApi = Nothing
|
||||
EgtOutLog("Ticketing system initialization failed!" & Environment.NewLine & InitRes.sErrorMessage)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub ManageInstance()
|
||||
|
||||
@@ -19,20 +19,21 @@
|
||||
DockPanel.Dock="Bottom"/>
|
||||
<!--Progetto corrente-->
|
||||
<TabControl SelectedIndex="{Binding nSelTabPage}"
|
||||
Style="{StaticResource MainWindow_TabControl}">
|
||||
Padding="0"
|
||||
Margin="0,-4,0,0">
|
||||
<TabControl.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type TabItem}">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</Style>
|
||||
</TabControl.ItemContainerStyle>
|
||||
<TabItem>
|
||||
<OPTIMIZER:ProjectV x:Name="ProjectView" DataContext="{StaticResource ProjectVM}"/>
|
||||
<OPTIMIZER:ProjectV DataContext="{StaticResource ProjectVM}"/>
|
||||
</TabItem>
|
||||
<TabItem>
|
||||
<OPTIMIZER:ConfigurationPageV DataContext="{DynamicResource ConfigurationPageVM}"/>
|
||||
<OPTIMIZER:ConfigurationPageV DataContext="{StaticResource ConfigurationPageVM}"/>
|
||||
</TabItem>
|
||||
<TabItem>
|
||||
<OPTIMIZER:ConfigurationProgramV DataContext="{DynamicResource ConfigurationPageVM}"/>
|
||||
<OPTIMIZER:ConfigurationProgramV DataContext="{StaticResource ConfigurationPageVM}"/>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
|
||||
|
||||
@@ -302,6 +302,10 @@ Public Class MainWindowVM
|
||||
If Map.refInstrumentPanelVM.GetDistIsChecked Then
|
||||
Map.refInstrumentPanelVM.SetGetDistance_IsChecked(False)
|
||||
End If
|
||||
' se misura attiva, la disattivo
|
||||
If Map.refInstrumentPanelShowBuildingVM.GetDistIsChecked Then
|
||||
Map.refInstrumentPanelShowBuildingVM.SetGetDistance_IsChecked(False)
|
||||
End If
|
||||
' se Reset Macchina è aperto
|
||||
If Map.refCALCPanelVM.ChooseMachine_Visibility = Visibility.Visible Then
|
||||
Map.refCALCPanelVM.CloseResetMachine()
|
||||
@@ -331,7 +335,7 @@ Public Class MainWindowVM
|
||||
#Region "AboutBoxCommand"
|
||||
|
||||
' Returns a command that manage the MainWindow_Unloaded command
|
||||
Public ReadOnly Property AboutBoxCommand() As ICommand
|
||||
Public ReadOnly Property AboutBox_Command As ICommand
|
||||
Get
|
||||
If m_cmdAboutBox Is Nothing Then
|
||||
m_cmdAboutBox = New Command(AddressOf AboutBox)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
Title="MovePartInRawPartWndV"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -16,7 +16,8 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Style="{StaticResource AddPart_Grid}">
|
||||
<Grid HorizontalAlignment="Center"
|
||||
Margin="0,0,0,5">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -28,50 +29,70 @@
|
||||
|
||||
<TextBlock Grid.ColumnSpan="2"
|
||||
Text="{Binding MoveDirMsg}"
|
||||
Style="{StaticResource MoveDir_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,5"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
|
||||
<RadioButton Grid.Row="1"
|
||||
IsChecked="{Binding LeftIsChecked}"
|
||||
Style="{StaticResource ToolBar_ToggleButton}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2">
|
||||
<RadioButton.Style>
|
||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}"/>
|
||||
</RadioButton.Style>
|
||||
<Image Source="{StaticResource MoveLeftParts_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</RadioButton>
|
||||
<RadioButton Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
IsChecked="{Binding RightIsChecked}"
|
||||
Style="{StaticResource ToolBar_ToggleButton}">
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2">
|
||||
<RadioButton.Style>
|
||||
<Style TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}"/>
|
||||
</RadioButton.Style>
|
||||
<Image Source="{StaticResource MoveRightParts_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</RadioButton>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="1"
|
||||
Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding MoveLenMsg}"
|
||||
Style="{StaticResource MoveDir_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="0,5"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Text="{Binding sMoveLen}"
|
||||
Style="{StaticResource NAM_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="200"/>
|
||||
</Grid>
|
||||
|
||||
<UniformGrid Grid.Row="3"
|
||||
Columns="2"
|
||||
Style="{StaticResource Command_UniformGrid}">
|
||||
|
||||
Margin="5,5,5,0">
|
||||
<Button Grid.Column="1"
|
||||
Content="Ok"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource MovePartInRawPartWnd_Button}"/>
|
||||
Height="30"
|
||||
Width="80"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
<Button Grid.Column="3"
|
||||
Content="Cancel"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
@@ -8,7 +8,7 @@
|
||||
Title="MultiCopyRawPart"
|
||||
Style="{StaticResource OptimizerWindow.Dialog.NoClose}">
|
||||
|
||||
<Grid Style="{StaticResource AddRawPartWnd_Grid}">
|
||||
<Grid Margin="5,5,5,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -16,13 +16,15 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding ChooseQty_Msg}"
|
||||
Style="{StaticResource MultiCopyRawPartWnd_TextBlock}"/>
|
||||
Margin="0,0,0,5"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Text="{Binding nQuantity}"
|
||||
Style="{StaticResource MultiCopyRawPartWnd_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Margin="0,0,0,5"/>
|
||||
|
||||
<Grid Grid.Row="2"
|
||||
Style="{StaticResource AddPartWnd_Grid}">
|
||||
Margin="0,0,0,5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -34,11 +36,13 @@
|
||||
Content="{Binding Ok_Msg}"
|
||||
Command="{Binding Ok_Command}"
|
||||
IsDefault="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
<Button Grid.Column="3"
|
||||
Content="{Binding Cancel_Msg}"
|
||||
IsCancel="True"
|
||||
Style="{StaticResource EgtWPFLib5_Button}"/>
|
||||
Height="30"
|
||||
Width="80"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
|
||||
@@ -67,5 +67,5 @@ Imports System.Windows
|
||||
' Revision
|
||||
'
|
||||
|
||||
<Assembly: AssemblyVersion("3.1.7.2")>
|
||||
<Assembly: AssemblyFileVersion("3.1.7.2")>
|
||||
<Assembly: AssemblyVersion("3.1.8.2")>
|
||||
<Assembly: AssemblyFileVersion("3.1.8.2")>
|
||||
|
||||
@@ -24,25 +24,36 @@
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding Section_Msg}"
|
||||
Style="{StaticResource NestingRunningWndV_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="{Binding Nesting_Msg}"
|
||||
Style="{StaticResource NestingRunningWndV_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ProgressBar Grid.Row="4"
|
||||
Value="{Binding CurrProgress_Value}"
|
||||
Style="{StaticResource NestingRunningWndV_ProgressBar}"/>
|
||||
Minimum="0"
|
||||
Maximum="100"
|
||||
Height="20"
|
||||
Margin="40,0,40,0"/>
|
||||
<ProgressBar Grid.Row="6"
|
||||
Value="{Binding TotProgress_Value}"
|
||||
Style="{StaticResource NestingRunningWndV_ProgressBar}"/>
|
||||
Minimum="0"
|
||||
Maximum="100"
|
||||
Height="20"
|
||||
Margin="40,0,40,0"/>
|
||||
<TextBlock Grid.Row="8"
|
||||
Text="{Binding TotProgress_Msg}"
|
||||
Style="{StaticResource NestingRunningWndV_TextBlock}"/>
|
||||
TextAlignment="Center"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<Button Grid.Row="10"
|
||||
Content="Cancel"
|
||||
IsDefault="False"
|
||||
IsCancel="True"
|
||||
Command="{Binding Cancel_Command}"
|
||||
Style="{StaticResource NestingRunningWndV_Button}"/>
|
||||
Height="30"
|
||||
Width="70"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
</Grid>
|
||||
|
||||
</EgtBEAMWALLCORE:OptimizerWindow>
|
||||
|
||||
@@ -617,10 +617,6 @@ Public Class NestingRunningWndVM
|
||||
Else
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61973), EgtMsg(30007), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
End If
|
||||
' se nessun grezzo, rimetto tutti i pezzi invisibili
|
||||
If Map.refProjectVM.MachGroupPanelVM.MachGroupVMList.Count = 0 Then
|
||||
Map.refProjectVM.BTLStructureVM.HideAll(True)
|
||||
End If
|
||||
Exit While
|
||||
End If
|
||||
' passo al prossimo RawPart
|
||||
|
||||
@@ -1,18 +1,44 @@
|
||||
<StackPanel x:Class="OptimizePanelV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Style="{StaticResource BTLPartManager_StackPanel}">
|
||||
<Border x:Class="OptimizePanelV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
VerticalAlignment="Center"
|
||||
BorderBrush="{StaticResource DataGrid.Static.Teal.Background}"
|
||||
BorderThickness="2"
|
||||
Margin="2,0,2,0"
|
||||
Padding="5"
|
||||
CornerRadius="5">
|
||||
<StackPanel>
|
||||
<Button Content="{Binding Optimize_Msg}"
|
||||
Command="{Binding Optimize_Command}"
|
||||
IsEnabled="{Binding Optimize_IsEnabled}"
|
||||
Width="45"
|
||||
Height="45"
|
||||
Margin="0,0,0,5"
|
||||
Padding="5"
|
||||
Style="{StaticResource Optimizer_Button}"/>
|
||||
|
||||
<Button Content="{Binding Optimize_Msg}"
|
||||
Command="{Binding Optimize_Command}"
|
||||
IsEnabled="{Binding Optimize_IsEnabled}"
|
||||
Style="{StaticResource Optimize_Button}"/>
|
||||
<Button Command="{Binding NewRawPart_Command}"
|
||||
ToolTip="{Binding NewRawPart_ToolTip}"
|
||||
IsEnabled="{Binding Optimize_IsEnabled}"
|
||||
Width="45"
|
||||
Height="45"
|
||||
Margin="0,0,0,5"
|
||||
Padding="5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource NewRawPart_Image}"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
<Button ToolTip="{Binding Warehouse_ToolTip}"
|
||||
Command="{Binding Warehouse_Command}"
|
||||
Style="{StaticResource Warehouse_Button}">
|
||||
<Image Source="{StaticResource Warehouse_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding Warehouse_ToolTip}"
|
||||
Command="{Binding Warehouse_Command}"
|
||||
IsEnabled="{Binding Optimize_IsEnabled}"
|
||||
Width="45"
|
||||
Height="45"
|
||||
Padding="5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Warehouse_Image}"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib5
|
||||
Imports System.IO
|
||||
|
||||
Public Class OptimizePanelVM
|
||||
Inherits VMBase
|
||||
@@ -167,6 +168,12 @@ Public Class OptimizePanelVM
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property NewRawPart_ToolTip As String
|
||||
Get
|
||||
Return EgtMsg(61903)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#End Region ' Messages
|
||||
|
||||
' Definizione comandi
|
||||
@@ -175,6 +182,7 @@ Public Class OptimizePanelVM
|
||||
Private m_cmdUnlockRot As ICommand
|
||||
Private m_cmdUnlockFlip As ICommand
|
||||
Private m_cmdWarehouse As ICommand
|
||||
Private m_cmdNewRawPart As ICommand
|
||||
|
||||
#End Region ' FIELDS & PROPERTIES
|
||||
|
||||
@@ -233,20 +241,9 @@ Public Class OptimizePanelVM
|
||||
Private Sub StartCalcRotFlip(BTLPart As BTLPartVM)
|
||||
' ricalcolo rotflip
|
||||
m_bNestingRunning = True
|
||||
' se vista tutti i pezzi
|
||||
Dim bShowBuilding As Boolean = False
|
||||
'Configuration.ShowAllPieces(bShowBuilding)
|
||||
If Map.refShowBeamPanelVM.bShowAll Then
|
||||
' verifico se assemblato e lo annullo per salvataggio
|
||||
bShowBuilding = Map.refShowBeamPanelVM.ShowBuilding_IsChecked
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(False, False)
|
||||
End If
|
||||
Dim NestingRunningWndVM As New NestingRunningWndVM(m_SelPartType.Id, BTLPart)
|
||||
Dim NestingRunningWnd As New NestingRunningWndV(Application.Current.MainWindow, NestingRunningWndVM)
|
||||
NestingRunningWnd.ShowDialog()
|
||||
' se assemblato lo ripristino
|
||||
If bShowBuilding Then Map.refProjectVM.BTLStructureVM.ShowBuilding(True, False)
|
||||
EgtDraw()
|
||||
m_bNestingRunning = False
|
||||
End Sub
|
||||
|
||||
@@ -451,6 +448,393 @@ Public Class OptimizePanelVM
|
||||
|
||||
#End Region ' Warehouse
|
||||
|
||||
#Region "NewRawPart"
|
||||
|
||||
Public ReadOnly Property NewRawPart_Command As ICommand
|
||||
Get
|
||||
If m_cmdNewRawPart Is Nothing Then
|
||||
m_cmdNewRawPart = New Command(AddressOf NewRawPartCmd)
|
||||
End If
|
||||
Return m_cmdNewRawPart
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public Sub NewRawPartCmd()
|
||||
NewRawPart(False)
|
||||
End Sub
|
||||
|
||||
Public Sub NewRawPart(bLast As Boolean)
|
||||
If IsNothing(ProjectManagerVM.CurrProd) Then Return
|
||||
Dim SelParts As List(Of BTLPartVM) = Map.refProjectVM.BTLStructureVM.SelBTLParts.ToList()
|
||||
If IsNothing(SelParts) OrElse SelParts.Count <= 0 Then Return
|
||||
' se solido attivo, lo riporto normale
|
||||
If Map.refShowBeamPanelVM.ShowSolid_IsChecked Then Map.refProjectVM.BTLStructureVM.ShowSolid(GDB_ID.NULL, False, False)
|
||||
Map.refShowBeamPanelVM.SetShowSolid(False)
|
||||
' verifico che abbiano tutti la stessa sezione
|
||||
Dim dHSection As Double = SelParts(0).dH
|
||||
Dim dWSection As Double = SelParts(0).dW
|
||||
For PartIndex = 0 To SelParts.Count - 1
|
||||
Dim Part As BTLPartVM = SelParts(PartIndex)
|
||||
If Not IsNothing(Part) Then
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.BEAM Then
|
||||
If Part.dH <> dHSection OrElse Part.dW <> dWSection Then
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61970), EgtMsg(30007))
|
||||
Return
|
||||
End If
|
||||
ElseIf Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.WALL Then
|
||||
If Part.dH <> dHSection Then
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61970), EgtMsg(30007))
|
||||
Return
|
||||
End If
|
||||
End If
|
||||
Else
|
||||
SelParts.Remove(Part)
|
||||
End If
|
||||
Next
|
||||
' se pareti e piu' di uno selezionato, esco
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.WALL And SelParts.Count > 1 Then
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61971), EgtMsg(30007))
|
||||
Return
|
||||
End If
|
||||
' verifico se sono gia' stati messi tutti i pezzi richiesti
|
||||
If Not VerifyPartCount(SelParts) Then Return
|
||||
Dim dRawL As Double = SelParts(0).dL
|
||||
Dim dRawW As Double = SelParts(0).dW
|
||||
Dim dStartOffset As Double = 0
|
||||
Dim dKerf As Double = 0
|
||||
Dim dOffset As Double = WarehouseHelper.GetOffset(Map.refProjectVM.BTLStructureVM.nPROJTYPE)
|
||||
' se tipo di definizione grezzo esplicito
|
||||
If WarehouseHelper.GetRawPartDef = 1 OrElse ((Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift AndAlso WarehouseHelper.GetWarehouseType = WarehouseType.BASIC) Then
|
||||
' chiedo lunghezza grezzo
|
||||
Dim sWarehouseIniPath As String = Map.refMainWindowVM.MainWindowM.sWarehouseDir & "\" & WH_BASIC_INI_FILE_NAME
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = MachineType.BEAM Then
|
||||
dStartOffset = WarehouseHelper.GetStartOffset()
|
||||
dRawL += dStartOffset
|
||||
Else
|
||||
dKerf = WarehouseHelper.GetKerf()
|
||||
dRawL += 2 * dKerf
|
||||
dRawW += 2 * dKerf
|
||||
End If
|
||||
Dim AddRawPartWndVM As New AddRawPartWndVM(Map.refProjectVM.BTLStructureVM.nPROJTYPE, dRawL, dRawW, dStartOffset)
|
||||
Dim AddRawPartWnd As Object = New AddRawPartWndV(Application.Current.MainWindow, AddRawPartWndVM)
|
||||
If Not AddRawPartWnd.ShowDialog() Then Return
|
||||
dRawL = AddRawPartWndVM.VariableList(0).dValue
|
||||
dRawW = AddRawPartWndVM.VariableList(1).dValue
|
||||
dStartOffset = AddRawPartWndVM.VariableList(1).dValue
|
||||
' se altrimenti definizione grezzo da warehouse
|
||||
Else
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.BEAM Then
|
||||
dStartOffset = WarehouseHelper.GetStartOffset()
|
||||
Else
|
||||
dKerf = WarehouseHelper.GetKerf()
|
||||
End If
|
||||
' se warehouse basic
|
||||
Select Case WarehouseHelper.GetWarehouseType()
|
||||
Case WarehouseType.BASIC
|
||||
WarehouseHelper.GetCurrentDimensions(Map.refProjectVM.BTLStructureVM.nPROJTYPE, dRawW, dRawL)
|
||||
Case WarehouseType.MEDIUM
|
||||
Dim SectionList As List(Of SParam) = WarehouseHelper.GetSectionList()
|
||||
Dim SParamlist As List(Of SParam) = SectionList.FindAll(Function(x) x.SectXMat = SelParts(0).Section)
|
||||
If bLast Then
|
||||
Dim LastMaterial As SParam = WarehouseHelper.GetLastMaterial(SelParts(0).Section)
|
||||
If Not IsNothing(LastMaterial) Then
|
||||
dRawL = LastMaterial.dL
|
||||
dRawW = LastMaterial.dW
|
||||
ElseIf SParamlist.Count > 0 Then
|
||||
dRawL = SParamlist(0).dL
|
||||
dRawW = SParamlist(0).dW
|
||||
Else
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61975), EgtMsg(30007))
|
||||
Return
|
||||
End If
|
||||
Else
|
||||
If SParamlist.Count = 0 Then
|
||||
' se pareti aumento dimensioni del kerf
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.WALL Then
|
||||
dRawW += (2 * dKerf)
|
||||
dRawL += (2 * dKerf)
|
||||
End If
|
||||
' apro finestra con solo edit
|
||||
If AddRawPartWnd(AddRawPartWndVM.EditTypes.ONLY_TEXT, SParamlist, dRawW, dRawL, dStartOffset, dOffset, dKerf) Then
|
||||
WarehouseHelper.SetOffset(Map.refProjectVM.BTLStructureVM.nPROJTYPE, dOffset)
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.BEAM Then
|
||||
WarehouseHelper.SetStartOffset(dStartOffset)
|
||||
Else
|
||||
WarehouseHelper.SetKerf(dKerf)
|
||||
End If
|
||||
Else
|
||||
Return
|
||||
End If
|
||||
ElseIf SParamlist.Count > 0 Then
|
||||
' imposto finestra con anche edit
|
||||
If AddRawPartWnd(AddRawPartWndVM.EditTypes.TEXT_AND_COMBO, SParamlist, dRawW, dRawL, dStartOffset, dOffset, dKerf) Then
|
||||
WarehouseHelper.SetOffset(Map.refProjectVM.BTLStructureVM.nPROJTYPE, dOffset)
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.BEAM Then
|
||||
WarehouseHelper.SetStartOffset(dStartOffset)
|
||||
Else
|
||||
WarehouseHelper.SetKerf(dKerf)
|
||||
End If
|
||||
Else
|
||||
Return
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Select
|
||||
End If
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = MachineType.BEAM Then
|
||||
' verifico se lunghezza barra e' maggiore della lunghezza dei pezzi
|
||||
Dim dTotLen As Double = WarehouseHelper.GetStartOffset()
|
||||
For PartIndex = 0 To SelParts.Count - 1
|
||||
If PartIndex <> 0 Then
|
||||
dTotLen += WarehouseHelper.GetOffset(BWType.BEAM)
|
||||
End If
|
||||
dTotLen += SelParts(PartIndex).dL
|
||||
Next
|
||||
If dTotLen > dRawL Then
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61972), EgtMsg(30007))
|
||||
Return
|
||||
End If
|
||||
End If
|
||||
' creo nuovo gruppo di lavorazione
|
||||
Map.refMachGroupPanelVM.AddMachGroup()
|
||||
Dim nCurrMachGroup As Integer = EgtGetCurrMachGroup()
|
||||
Dim sCurrMachGroupName As String = ""
|
||||
EgtGetMachGroupName(nCurrMachGroup, sCurrMachGroupName)
|
||||
Dim sLogPath As String = Map.refMainWindowVM.MainWindowM.sTempDir & "\RawPartLog.txt"
|
||||
' scrivo dati per variabili P di comunicazione con la macchina in gruppo di lavorazione
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_PRODID, ProjectManagerVM.CurrProd.nProdId)
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_PATTID, nCurrMachGroup)
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = MachineType.BEAM Then
|
||||
' ordino i pezzi per lunghezza
|
||||
SelParts = SelParts.OrderBy(Function(x) x.dL).ToList
|
||||
' creo copie dei pezzi
|
||||
Dim nPartDuploIdList As New List(Of Integer)
|
||||
For Each Part In SelParts
|
||||
Dim nDuploId As Integer = EgtDuploNew(Part.nPartId)
|
||||
' elimino valori calcolo dell'originale
|
||||
MyMachGroupPanelVM.DuploRemoveProjCalc(nDuploId)
|
||||
' lo rendo std
|
||||
EgtSetMode(nDuploId, GDB_MD.STD)
|
||||
nPartDuploIdList.Add(nDuploId)
|
||||
Next
|
||||
' scrivo dati costruzione grezzo in gruppo di lavorazione
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_BARLEN, dRawL)
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_MATERIAL, SelParts(0).sMATERIAL)
|
||||
' scrivo dati di tutti i pezzi
|
||||
Dim dPosX As Double = WarehouseHelper.GetStartOffset()
|
||||
' ciclo sui pezzi
|
||||
For nIndex = 0 To nPartDuploIdList.Count - 1
|
||||
' se non è primo, aggiungo offset tra barre standard
|
||||
If nIndex <> 0 Then
|
||||
dPosX += WarehouseHelper.GetOffset(BWType.BEAM)
|
||||
End If
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_PART & nIndex + 1, nPartDuploIdList(nIndex) & "," & DoubleToString(dPosX, 3))
|
||||
' incremento posizione della sua lunghezza
|
||||
dPosX += SelParts(nIndex).dL
|
||||
Next
|
||||
Dim BeamMachGroup As MyMachGroupVM = Map.refMachGroupPanelVM.GetLastMachGroup()
|
||||
' eseguo script creazione grezzo
|
||||
Dim nERR As Integer = 0
|
||||
If Not ExecBeam(sLogPath, ProjectManagerVM.CurrProd.sMachine, CalcIntegration.CmdTypes.RAWPART, False) Then
|
||||
' elimino duplo e gruppo di lavorazione
|
||||
For Each nDuploId In nPartDuploIdList
|
||||
EgtErase(nDuploId)
|
||||
Next
|
||||
BeamMachGroup.DeleteMachGroup()
|
||||
If File.Exists(sLogPath) Then
|
||||
Dim LogFile As String() = File.ReadAllLines(sLogPath)
|
||||
If LogFile.Count >= 2 AndAlso Not IsNothing(LogFile(1)) Then
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, LogFile(1), EgtMsg(30007), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
End If
|
||||
Else
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61973), EgtMsg(30007), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
End If
|
||||
Return
|
||||
End If
|
||||
For nDuploIndex = 0 To SelParts.Count - 1
|
||||
EgtSetInfo(nPartDuploIdList(nDuploIndex), MGR_PRT_ROT, SelParts(nDuploIndex).nROTATED)
|
||||
EgtSetInfo(nPartDuploIdList(nDuploIndex), MGR_PRT_FLIP, SelParts(nDuploIndex).nINVERTED)
|
||||
Next
|
||||
' aggiorno contatore pezzi usati in Prod
|
||||
For Each SelPart In SelParts
|
||||
SelPart.RefreshPartInProd()
|
||||
Next
|
||||
'aggiorno lista pezzi
|
||||
BeamMachGroup.MyMachGroupM.RefreshPartList()
|
||||
BeamMachGroup.MyMachGroupM.RefreshGroupData()
|
||||
' aggiorno dati utilizzo barra
|
||||
BeamMachGroup.UpdateUsage()
|
||||
Core.ViewPanelVM.BWSetView(VT.ISO_SW, False)
|
||||
ElseIf Map.refProjectVM.BTLStructureVM.nPROJTYPE = MachineType.WALL Then
|
||||
Dim nPartDuploId As Integer = EgtDuploNew(SelParts(0).nPartId)
|
||||
' scrivo dati in gruppo di lavorazione
|
||||
Dim dPosX As Double = dKerf
|
||||
Dim dPosY As Double = dKerf
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_PANELLEN, dRawL)
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_PANELWIDTH, dRawW)
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_MATERIAL, SelParts(0).sMATERIAL)
|
||||
EgtSetInfo(nCurrMachGroup, MGR_RPT_PART & 1,
|
||||
nPartDuploId & "," & DoubleToString(dPosX, 3) & "," & DoubleToString(dPosY, 3) & ",0,0")
|
||||
Dim WallMachGroup As MyMachGroupVM = Map.refMachGroupPanelVM.MachGroupVMList(Map.refMachGroupPanelVM.MachGroupVMList.Count - 1)
|
||||
' eseguo script creazione grezzo
|
||||
If Not ExecWall(sLogPath, ProjectManagerVM.CurrProd.sMachine, CalcIntegration.CmdTypes.RAWPART, False, False) Then
|
||||
' elimino duplo e gruppo di lavorazione
|
||||
EgtErase(nPartDuploId)
|
||||
WallMachGroup.DeleteMachGroup()
|
||||
If File.Exists(sLogPath) Then
|
||||
Dim LogFile As String() = File.ReadAllLines(sLogPath)
|
||||
If LogFile.Count >= 2 AndAlso Not IsNothing(LogFile(1)) Then
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, LogFile(1), EgtMsg(30007), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
End If
|
||||
Else
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(61973), EgtMsg(30007), MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
End If
|
||||
'' se nessun grezzo, rimetto tutti i pezzi invisibili
|
||||
'If Map.refProjectVM.MachGroupPanelVM.MachGroupVMList.Count = 0 Then
|
||||
' Map.refProjectVM.BTLStructureVM.HideAll(True)
|
||||
'End If
|
||||
Return
|
||||
End If
|
||||
' scrivo dati pezzo
|
||||
EgtSetInfo(nPartDuploId, MGR_PRT_POSX, dPosX)
|
||||
EgtSetInfo(nPartDuploId, MGR_PRT_POSY, dPosY)
|
||||
EgtSetInfo(nPartDuploId, MGR_PRT_ROT, SelParts(0).nROTATED)
|
||||
EgtSetInfo(nPartDuploId, MGR_PRT_FLIP, SelParts(0).nINVERTED)
|
||||
' aggiorno contatore pezzi usati in Prod
|
||||
SelParts(0).RefreshPartInProd()
|
||||
' aggiorno lista pezzi
|
||||
WallMachGroup.MyMachGroupM.RefreshPartList()
|
||||
WallMachGroup.MyMachGroupM.RefreshGroupData()
|
||||
' aggiorno dati ultilizzo barra
|
||||
WallMachGroup.UpdateUsage()
|
||||
Core.ViewPanelVM.BWSetView(VT.TOP, False)
|
||||
End If
|
||||
EgtZoom(ZM.ALL)
|
||||
End Sub
|
||||
|
||||
' funzione che apre finestra di scelta dimensioni grezzo
|
||||
Private Function AddRawPartWnd(EditType As AddRawPartWndVM.EditTypes, SParamlist As List(Of SParam), ByRef dRawW As Double, ByRef dRawL As Double,
|
||||
ByRef dStartOffset As Double, ByRef dOffset As Double, ByRef dKerf As Double) As Boolean
|
||||
' apro finestra con solo edit
|
||||
Dim AddRawPartWndVM As New AddRawPartWndVM(EditType, Map.refProjectVM.BTLStructureVM.nPROJTYPE, SParamlist, dRawL, dRawW, dStartOffset, dOffset, dKerf)
|
||||
Dim AddRawPartWndV As New AddRawPartWndV(Application.Current.MainWindow, AddRawPartWndVM)
|
||||
If Not AddRawPartWndV.ShowDialog() Then Return False
|
||||
Select Case Map.refProjectVM.BTLStructureVM.nPROJTYPE
|
||||
Case BWType.BEAM
|
||||
dRawL = AddRawPartWndVM.VariableList(0).dValue
|
||||
dStartOffset = AddRawPartWndVM.VariableList(1).dValue
|
||||
dOffset = AddRawPartWndVM.VariableList(2).dValue
|
||||
Case BWType.WALL
|
||||
dRawW = AddRawPartWndVM.VariableList(0).dValue
|
||||
dRawL = AddRawPartWndVM.VariableList(1).dValue
|
||||
dKerf = AddRawPartWndVM.VariableList(2).dValue
|
||||
dOffset = AddRawPartWndVM.VariableList(3).dValue
|
||||
End Select
|
||||
' verifico se il materiale esiste in magazzino o devo aggiungerlo
|
||||
Dim CurrSParam As SParam = Nothing
|
||||
Select Case EditType
|
||||
Case AddRawPartWndVM.EditTypes.ONLY_TEXT
|
||||
' lo aggiungo a lista materiali in magazzino
|
||||
CurrSParam = AddRawMaterial(dRawW, dRawL)
|
||||
Case AddRawPartWndVM.EditTypes.ONLY_COMBO
|
||||
' non faccio nulla
|
||||
Case AddRawPartWndVM.EditTypes.TEXT_AND_COMBO
|
||||
' verifico se lunghezza testo corrisponde a materiale
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = BWType.BEAM Then
|
||||
CurrSParam = SParamlist.FirstOrDefault(Function(x) x.dL = AddRawPartWndVM.VariableList(0).dValue)
|
||||
Else
|
||||
CurrSParam = SParamlist.FirstOrDefault(Function(x) x.dL = AddRawPartWndVM.VariableList(1).dValue AndAlso x.dW = AddRawPartWndVM.VariableList(0).dValue)
|
||||
End If
|
||||
If IsNothing(CurrSParam) Then
|
||||
' lo aggiungo a lista materiali in magazzino
|
||||
CurrSParam = AddRawMaterial(dRawW, dRawL)
|
||||
End If
|
||||
End Select
|
||||
' imposto il materiale selezionato come ultimo utilizzato
|
||||
SetLastMaterial(CurrSParam.SectXMat, CurrSParam)
|
||||
Return True
|
||||
End Function
|
||||
|
||||
Private Function AddRawMaterial(dRawW As Double, ByRef dRawL As Double) As SParam
|
||||
Dim sWarehousePath As String = Map.refMainWindowVM.MainWindowM.sWarehouseDir & "\" & WH_MEDIUM_INI_FILE_NAME
|
||||
Dim nQuantity As Integer = GetMainPrivateProfileInt(S_WAREHOUSE, K_DEFAULTQUANTITY, 1)
|
||||
Dim CurrSParam = Nothing
|
||||
If Map.refProjectVM.BTLStructureVM.nPROJTYPE = MachineType.BEAM Then
|
||||
' creo sParam
|
||||
If Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLParts(0)) Then CurrSParam = New SParam(Map.refProjectVM.BTLStructureVM.SelBTLParts(0).Section, dRawL, nQuantity, False)
|
||||
Dim sL As String = String.Empty
|
||||
sL = LenToString(CurrSParam.dL, 3)
|
||||
' ricavo l'indice del SecionXMaterial dalla Beam_List
|
||||
Dim SectXMatIndex As Integer = GetSectIndexFromSection(MachineType.BEAM, CurrSParam.SectXMat)
|
||||
' ricavo nuovo indice materiale
|
||||
Dim ParamIndex As Integer = 1
|
||||
Dim sParam As String = ""
|
||||
While GetPrivateProfileString(S_BEAM, K_L & ParamIndex, "", sParam, sWarehousePath) > 0
|
||||
ParamIndex += 1
|
||||
End While
|
||||
If SectXMatIndex > 0 Then
|
||||
' lo aggiungo in warehouse
|
||||
WritePrivateProfileString(S_BEAM, K_L & ParamIndex,
|
||||
SectXMatIndex & "," & sL & "," & CurrSParam.nQuantity & "," & If(CurrSParam.bActive, 1, 0),
|
||||
sWarehousePath)
|
||||
Else
|
||||
EgtOutLog("Error in material creation, section not found!")
|
||||
End If
|
||||
Return CurrSParam
|
||||
ElseIf Map.refProjectVM.BTLStructureVM.nPROJTYPE = MachineType.WALL Then
|
||||
' creo sParam
|
||||
If Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLParts(0)) Then CurrSParam = New SParam(Map.refProjectVM.BTLStructureVM.SelBTLParts(0).Section, dRawW, dRawL, nQuantity, False)
|
||||
Dim sW As String = String.Empty
|
||||
Dim sL As String = String.Empty
|
||||
sW = LenToString(CurrSParam.dW, 3)
|
||||
sL = LenToString(CurrSParam.dL, 3)
|
||||
' ricavo l'indice del SecionXMaterial dalla Wall_List
|
||||
Dim SectXMatIndex As Integer = GetSectIndexFromSection(MachineType.WALL, CurrSParam.SectXMat)
|
||||
' ricavo nuovo indice materiale
|
||||
Dim ParamIndex As Integer = 1
|
||||
Dim sParam As String = ""
|
||||
While GetPrivateProfileString(S_WALL, K_S & ParamIndex, "", sParam, sWarehousePath) > 0
|
||||
ParamIndex += 1
|
||||
End While
|
||||
' lo aggiungo in warehouse
|
||||
WritePrivateProfileString(S_WALL, K_S & ParamIndex,
|
||||
SectXMatIndex & "," & sW & "," & sL & "," & CurrSParam.nQuantity & "," & If(CurrSParam.bActive, 1, 0),
|
||||
sWarehousePath)
|
||||
Return CurrSParam
|
||||
End If
|
||||
|
||||
Return Nothing
|
||||
End Function
|
||||
|
||||
Private Function VerifyPartCount(SelParts As List(Of BTLPartVM)) As Boolean
|
||||
' verifico se ci sono pezzi da aggiungere
|
||||
Dim ToAddList As New List(Of String)
|
||||
Dim ToAddVM As New List(Of BTLPartVM)
|
||||
For Each SelPart In SelParts
|
||||
If Not SelPart.CanAddPartToCount Then
|
||||
ToAddList.Add(SelPart.nCNT & EgtMsg(61864) & SelPart.nADDED & EgtMsg(61865))
|
||||
ToAddVM.Add(SelPart)
|
||||
End If
|
||||
Next
|
||||
' se non ci sono, chiedo se aggiungerne uno nuovo
|
||||
If ToAddList.Count > 0 Then
|
||||
Dim sMessage As String = EgtMsg(61863) & Environment.NewLine
|
||||
For Each sPart In ToAddList
|
||||
sMessage &= " - " & sPart & Environment.NewLine
|
||||
Next
|
||||
If EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, sMessage & EgtMsg(61893), "", MessageBoxButton.YesNo, MessageBoxImage.Question) = MessageBoxResult.Yes Then
|
||||
For Each PartVM In ToAddVM
|
||||
PartVM.AddNewPartToAdded()
|
||||
Next
|
||||
Else
|
||||
Return False
|
||||
End If
|
||||
End If
|
||||
Return True
|
||||
End Function
|
||||
|
||||
#End Region ' NewRawPart
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
End Class
|
||||
|
||||
@@ -2,23 +2,34 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
Style="{StaticResource Left_Grid}">
|
||||
Margin="2,0,0,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border Grid.ColumnSpan="2"
|
||||
<Border Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource Optimizer_Border}"/>
|
||||
|
||||
<WrapPanel Grid.Column="1"
|
||||
<WrapPanel Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
Orientation="Vertical"
|
||||
Width="{Binding ActualWidth}"
|
||||
Style="{StaticResource Bottom_WrapPanel}">
|
||||
Margin="0,2,2,0">
|
||||
<OPTIMIZER:InstrumentPanelV DataContext="{StaticResource InstrumentPanelVM}"/>
|
||||
<OPTIMIZER:ShowPanelV DataContext="{StaticResource ShowPanelVM}"/>
|
||||
<OPTIMIZER:ShowBeamPanelV DataContext="{StaticResource ShowBeamPanelVM}"/>
|
||||
<OPTIMIZER:ViewPanelV DataContext="{StaticResource ViewPanelVM}"/>
|
||||
</WrapPanel>
|
||||
|
||||
<OPTIMIZER:SceneHostV Margin="4,4,0,4"/>
|
||||
<OPTIMIZER:FreeContourManagerV DataContext="{StaticResource FreeContourManagerVM}"
|
||||
Visibility="{Binding DataContext.FreeContourManager_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelBottomV}}}"/>
|
||||
|
||||
<OPTIMIZER:SceneHostV Grid.Row="1"
|
||||
Margin="4,4,0,4"/>
|
||||
</Grid>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
Style="{StaticResource Left_Grid}">
|
||||
Margin="2,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
|
||||
@@ -7,13 +7,14 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TabControl Grid.RowSpan="2"
|
||||
SelectedIndex="{Binding SelFeatureManagerTab}"
|
||||
Style="{StaticResource Feature_TabControl}">
|
||||
BorderThickness="0"
|
||||
Margin="0,-2,0,-2">
|
||||
<TabControl.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type TabItem}">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</Style>
|
||||
</TabControl.ItemContainerStyle>
|
||||
<TabItem Header="FEATURERAWPARTMANAGER"
|
||||
<TabItem Header="FEATURERAWPARTMANAGER"
|
||||
Visibility="{Binding DataContext.RawPartManagerVisibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"
|
||||
Style="{StaticResource Feature_TabItem}">
|
||||
<Grid>
|
||||
@@ -22,22 +23,26 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Grid.ColumnSpan="3"
|
||||
Style="{StaticResource Optimizer_Border}"
|
||||
Style="{StaticResource Optimizer_Border}" Margin="-10"
|
||||
Visibility="{Binding DataContext.FeatureList_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"/>
|
||||
<OPTIMIZER:FeatureInPartInRawPartListV DataContext="{StaticResource FeatureInPartInRawPartListVM}" Margin="5"
|
||||
Tag="{Binding DataContext.MachGroupPanelVM.SelectedMachGroup.SelPart, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"
|
||||
Visibility="{Binding DataContext.FeatureList_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"/>
|
||||
<StackPanel Grid.Column="1"
|
||||
Style="{StaticResource Message_StackPanel}">
|
||||
Orientation="Vertical"
|
||||
Width="250">
|
||||
<TextBlock Text="{Binding DataContext.MachGroupPanelVM.SelectedMachGroup.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"
|
||||
Foreground="{Binding DataContext.MachGroupPanelVM.SelectedMachGroup.Calc_Background, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"
|
||||
Style="{StaticResource Message_TextBlock}"/>
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<TextBlock Text="{Binding DataContext.MachGroupPanelVM.SelectedMachGroup.SelPart.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"
|
||||
Foreground="{Binding DataContext.MachGroupPanelVM.SelectedMachGroup.SelPart.Calc_Background, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"
|
||||
Style="{StaticResource Message_TextBlock}"/>
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<TextBlock Text="{Binding DataContext.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM.sCALC_MSG, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"
|
||||
Foreground="{Binding DataContext.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM.Calc_Background, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelBottomV}}}"
|
||||
Style="{StaticResource Message_TextBlock}"/>
|
||||
Margin="5,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
SelectedIndex="{Binding SelManagerTab}"
|
||||
Visibility="{Binding DataContext.ManagerTabVisibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:ProjectV}}}"
|
||||
Style="{StaticResource Project_TabControl}">
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Margin="0,-11,-9.5,-10" >
|
||||
<TabControl.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type TabItem}">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
@@ -31,14 +33,20 @@
|
||||
|
||||
<Border Grid.RowSpan="3"
|
||||
Grid.ColumnSpan="3"
|
||||
Margin="-10,0,0,0"
|
||||
Style="{StaticResource Optimizer_Border}"/>
|
||||
|
||||
<Border Grid.ColumnSpan="2"
|
||||
Background="{StaticResource BeamWall_Glacier}"
|
||||
Style="{StaticResource Project_Border}">
|
||||
Margin="-5,5,10,5"
|
||||
Style="{StaticResource Optimizer_Border}">
|
||||
<TextBlock Grid.ColumnSpan="2"
|
||||
Text="{Binding BTLStructureVM.SelBTLPart.sNAM}"
|
||||
Style="{StaticResource RightPanel_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="14"
|
||||
Margin="5"
|
||||
Style="{StaticResource ForegroundWhite_TextBlock}"/>
|
||||
</Border>
|
||||
|
||||
<OPTIMIZER:PartManagerV Grid.Row="1"
|
||||
@@ -46,7 +54,7 @@
|
||||
Tag="{Binding DataContext.BTLStructureVM.SelBTLPart, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelTopV}}}"/>
|
||||
|
||||
<Grid Grid.Row="2"
|
||||
Style="{StaticResource ProjectParamters_Grid}">
|
||||
Margin="-8,4,0,2">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
@@ -59,7 +67,13 @@
|
||||
ItemsSource="{Binding StrategySetupList}"
|
||||
SelectedItem="{Binding SelStrategySetup, UpdateSourceTrigger=PropertyChanged}"
|
||||
IsEnabled="{Binding GeneralParametersIsEnable}"
|
||||
Style="{StaticResource StrategySetup_ComboBox}">
|
||||
Foreground="{StaticResource BeamWall_Black}"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="15"
|
||||
Height="30"
|
||||
Width="160"
|
||||
Margin="0,0,0,15"
|
||||
Style="{StaticResource Optmizer_ComboBox}">
|
||||
<ComboBox.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type ComboBoxItem}">
|
||||
<EventSetter Event="PreviewMouseDown" Handler="ComboBoxItem_PreviewMouseDown"/>
|
||||
@@ -72,38 +86,53 @@
|
||||
<CheckBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
IsChecked="{Binding bSaveGeneralParameters, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource Project_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Margin="5,0,0,0"/>
|
||||
</Grid>
|
||||
|
||||
|
||||
<Button Grid.Column="2"
|
||||
Command="{Binding Parameter_Command}"
|
||||
ToolTip="{Binding Parameters_ToolTip}"
|
||||
Style="{StaticResource Parameter_Button}">
|
||||
FontWeight="Light"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="10"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Analyze_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
<Image Grid.RowSpan="3"
|
||||
Grid.Column="1"
|
||||
Source="{StaticResource Part_Image}"
|
||||
Style="{StaticResource Piece_Image}"/>
|
||||
Stretch="Uniform"
|
||||
Margin="5"/>
|
||||
|
||||
<UniformGrid Grid.Row="2"
|
||||
Grid.Column="3"
|
||||
Columns="2">
|
||||
<Button Command="{Binding Ok_Command}"
|
||||
ToolTip="{Binding SaveAsToolTip}"
|
||||
Style="{StaticResource Back_Button}">
|
||||
VerticalAlignment="Bottom"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Ok_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
|
||||
<Button Command="{Binding Back_Command}"
|
||||
ToolTip="{Binding Back_Msg}"
|
||||
Style="{StaticResource Back_Button}">
|
||||
VerticalAlignment="Bottom"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Delete_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
@@ -116,33 +145,29 @@
|
||||
</TabItem>
|
||||
<TabItem Header="FEATUREMANAGERBTL" Visibility="{Binding DataContext.StrategyManagerVisibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelTopV}}}">
|
||||
<TabItem.Content>
|
||||
<Grid>
|
||||
<Grid Margin="-9,0,0,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource Optimizer_Border}"/>
|
||||
|
||||
<OPTIMIZER:FreeContourManagerV Grid.RowSpan="2"
|
||||
DataContext="{StaticResource FreeContourManagerVM}"
|
||||
Visibility="{Binding DataContext.FreeContourManager_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelTopV}}}"/>
|
||||
<OPTIMIZER:FreeContourInputV Grid.Row="1"
|
||||
Grid.RowSpan="2"
|
||||
DataContext="{StaticResource FreeContourInputVM}"
|
||||
Visibility="{Binding DataContext.FreeContourManager_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelTopV}}}"/>
|
||||
|
||||
<OPTIMIZER:FeatureManagerV Grid.Column="1"
|
||||
DataContext="{StaticResource FeatureManagerVM}"
|
||||
<OPTIMIZER:FeatureManagerV DataContext="{StaticResource FeatureManagerVM}"
|
||||
Tag="{Binding DataContext.BTLStructureVM.SelBTLPart.SelBTLFeatureVM, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelTopV}}}"/>
|
||||
|
||||
<OPTIMIZER:PParameterListV Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
DataContext="{StaticResource PParameterListVM}"
|
||||
Visibility="{Binding DataContext.PParametersVisibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelTopV}}}"
|
||||
Tag="{Binding DataContext.BTLStructureVM.SelBTLPart.SelBTLFeatureVM, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:RightPanelTopV}}}"
|
||||
Margin="5"/>
|
||||
Margin="-2,5,5,5"/>
|
||||
</Grid>
|
||||
|
||||
</TabItem.Content>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
Style="{StaticResource Project_Grid}">
|
||||
Margin="2.5">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
@@ -10,28 +10,30 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Style="{StaticResource TopPanel_Border}">
|
||||
<OPTIMIZER:ProdManagerV DataContext="{DynamicResource ProdManagerVM}"/>
|
||||
</Border>
|
||||
|
||||
<OPTIMIZER:ProdManagerV DataContext="{StaticResource ProdManagerVM}"/>
|
||||
|
||||
<OPTIMIZER:CalcPanelV Grid.Column="1"
|
||||
DataContext="{DynamicResource CALCPanelVM}"/>
|
||||
DataContext="{StaticResource CALCPanelVM}"/>
|
||||
|
||||
<OPTIMIZER:SpecialPanelV Grid.Column="2"
|
||||
DataContext="{DynamicResource SpecialPanelVM}"
|
||||
DataContext="{StaticResource SpecialPanelVM}"
|
||||
Visibility="{Binding DataContext.SpecialPanel_Visibility, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:TopPanelV}}}"/>
|
||||
|
||||
<OPTIMIZER:StatisticsTimePanelV Grid.Column="3"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="90,0,0,0"
|
||||
Margin="-50,0,0,0"
|
||||
DataContext="{StaticResource StatisticsTimePanelVM}"
|
||||
Tag="{Binding DataContext, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:TopPanelV}}}"/>
|
||||
|
||||
<Button Grid.Column="4"
|
||||
Command="{Binding Optimizer_Command}"
|
||||
ToolTip="{Binding Statistics_Msg}"
|
||||
Style="{StaticResource Optmizer_Button}">
|
||||
HorizontalAlignment="Right"
|
||||
Height="30"
|
||||
Width="30"
|
||||
Margin="5,2,5,2"
|
||||
Style="{StaticResource Optimizer_Button}">
|
||||
<Image Source="{StaticResource Statistics_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
IsEnabled="{Binding PartManager_IsEnabled}"
|
||||
Style="{StaticResource PartManager_Grid}">
|
||||
HorizontalAlignment="Left"
|
||||
Margin="-5,10,0,10">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="0.2*"/>
|
||||
@@ -18,51 +19,95 @@
|
||||
<Border Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="3"
|
||||
Style="{StaticResource Optimizer_Border}"/>
|
||||
<StackPanel Style="{StaticResource PartManagers_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="10,5,10,5">
|
||||
<TextBlock Text="W"
|
||||
Style="{StaticResource W_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Text="{Binding Tag.sW,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartManagerV}},
|
||||
UpdateSourceTrigger=Explicit}"
|
||||
Style="{StaticResource EgtPartManager_TextBox}"/>
|
||||
ExplicitUpdateSource="EnterKeyPress"
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="50"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1"
|
||||
Style="{StaticResource PartManagers_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
Margin="10,5,10,5">
|
||||
<TextBlock Text="H"
|
||||
Style="{StaticResource W_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Text="{Binding Tag.sH,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartManagerV}},
|
||||
UpdateSourceTrigger=Explicit}"
|
||||
Style="{StaticResource EgtPartManager_TextBox}"/>
|
||||
ExplicitUpdateSource="EnterKeyPress"
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="50"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="2"
|
||||
Style="{StaticResource PartManagerL_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
Margin="10,5,15,5">
|
||||
<TextBlock Text="L"
|
||||
Style="{StaticResource W_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Text="{Binding Tag.sL,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartManagerV}},
|
||||
UpdateSourceTrigger=Explicit}"
|
||||
Style="{StaticResource EgtPartManager_TextBox}"/>
|
||||
ExplicitUpdateSource="EnterKeyPress"
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="60"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1"
|
||||
Style="{StaticResource PartManagers_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
Margin="10,5,10,5">
|
||||
<TextBlock Text="BTL Qty"
|
||||
Style="{StaticResource W_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<TextBlock Text="{Binding Tag.sCNT,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartManagerV}},
|
||||
UpdateSourceTrigger=Explicit}"
|
||||
Style="{StaticResource CNT_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Width="25"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource PartManagers_StackPanel}">
|
||||
Orientation="Horizontal"
|
||||
Margin="10,5,10,5">
|
||||
<TextBlock Text="Added Qty"
|
||||
Style="{StaticResource W_TextBlock}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Margin="0,0,5,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Text="{Binding Tag.sADDED,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartManagerV}},
|
||||
UpdateSourceTrigger=Explicit}"
|
||||
ExplicitUpdateSource="EnterKeyPress"
|
||||
Style="{StaticResource Qty_TextBox}"/>
|
||||
VerticalContentAlignment="Center"
|
||||
TextWrapping="Wrap"
|
||||
Height="25"
|
||||
Width="50"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -21,67 +21,112 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<UniformGrid Columns="2"
|
||||
Style="{StaticResource PartParametersWnd_UniformGrid}">
|
||||
Margin="0,0,0,-45">
|
||||
<TextBlock Text="{Binding NAM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sNAM, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding COUNT_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sCNT, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ORDERNUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.nORDERNUM, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PLANINGLEN_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.dPLANINGLEN, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding STARTOFFSET_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.dSTARTOFFSET, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ENDOFFSET_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.dENDOFFSET, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding DESIGN_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sDESIGN, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding GROUP_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sGROUP, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding STOREY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sSTOREY, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ANNOT_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sANNOT, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding MATERIAL_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sMATERIAL, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</UniformGrid>
|
||||
|
||||
<GroupBox Grid.Row="1"
|
||||
Style="{DynamicResource PartParam_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Margin="0,55"
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -91,58 +136,91 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding COLOUR_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<Button Grid.Column="1"
|
||||
Background="{Binding Tag.PartColour, UpdateSourceTrigger=PropertyChanged,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}}}"
|
||||
Command="{Binding Tag.PartColour_Command, UpdateSourceTrigger=PropertyChanged,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}}}"
|
||||
Style="{StaticResource PartParametersWnd_Button}"/>
|
||||
Height="20"
|
||||
Width="100"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding TRANSPARENCY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding CurrPart.nCOLA, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<UniformGrid Grid.Column="1"
|
||||
Columns="2"
|
||||
Style="{StaticResource PartParameters_UniformGrid}">
|
||||
Margin="0,0,0,-45">
|
||||
<TextBlock Text="{Binding TIMBERGRADE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sTIMBERGRADE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding QUALITYGRADE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sQUALITYGRADE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PACKAGE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sPACKAGE, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ASSEMBLYNUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sASSEMBLYNUM, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding ELEMENTNUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sELEMENTNUM, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding MODULENUM_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sMODULENUM, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding PROCESSINGQUALITY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocPROCESSINGQUALITY,
|
||||
@@ -150,9 +228,12 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelPROCESSINGQUALITY,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding RECESS_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocRECESS,
|
||||
@@ -160,9 +241,12 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelRECESS,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding STOREYTYPE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocSTOREYTYPE,
|
||||
@@ -170,23 +254,33 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelSTOREYTYPE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Text="{Binding LAYER_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.nLAYER, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Text="{Binding COMMENT_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.sCOMMENT, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</UniformGrid>
|
||||
|
||||
<GroupBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Style="{DynamicResource PartParam_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Margin="0,55"
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -196,7 +290,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding REFSIDE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocREFSIDE,
|
||||
@@ -204,16 +300,20 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelREFSIDE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding REFSIDEALIGN_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<CheckBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
IsChecked="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.bREFSIDEALIGN,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@@ -242,7 +342,7 @@
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -253,26 +353,34 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding GRAINDIRECTION_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="1"
|
||||
Text="{Binding CurrPart.GrainDirection, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding GRAINDIRALIGN_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<CheckBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
IsChecked="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.bGRAINDIRALIGN,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParameters_CheckBox}"/>
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="2"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -282,7 +390,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding CAMBERSIDE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocCAMBERSIDE,
|
||||
@@ -290,21 +400,26 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelCAMBERSIDE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding CAMBERPARAMS_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding CurrPart.CamberParams, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="4"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -314,7 +429,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding REFSIDEFIXCLAMP_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocREFSIDEFIXCLAMP,
|
||||
@@ -322,21 +439,26 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelREFSIDEFIXCLAMP,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding PARTOFFSETPARAMS_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding CurrPart.PartOffsetParams, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="6"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -346,7 +468,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding MATERIALTYPEGRP_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocMATERIALTYPEGRP,
|
||||
@@ -354,21 +478,26 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelMATERIALTYPEGRP,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding MATERIALTYPESPEC_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding CurrPart.sMATERIALTYPESPEC, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="8"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -378,7 +507,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding ALIGNLOCATION_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocALIGNLOCATION,
|
||||
@@ -386,10 +517,13 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelALIGNLOCATION,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding ALIGNENDTYPE_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
@@ -398,14 +532,16 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelALIGNENDTYPE,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParameters_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"
|
||||
Margin="0,5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="10"
|
||||
Grid.RowSpan="4"
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{DynamicResource NoHeader_GroupBox}">
|
||||
<Grid Style="{StaticResource PartParameters_Grid}">
|
||||
Style="{StaticResource NoHeader_GroupBox}">
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
@@ -417,7 +553,9 @@
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding UID_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.ocUID,
|
||||
@@ -425,28 +563,41 @@
|
||||
SelectedIndex="{Binding RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PartParametersWndV}},
|
||||
Path=Tag.SelUID,
|
||||
Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource PartParam_ComboBox}"/>
|
||||
Height="22"
|
||||
Width="150"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding TRANSFORIG_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding CurrPart.TransfOrig, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="{Binding TRANSFVERSX_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Text="{Binding CurrPart.TransfVersX, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
<TextBlock Grid.Row="3"
|
||||
Text="{Binding TRANSFVERSY_MSG}"
|
||||
Style="{StaticResource PartParam_TextBlock}"/>
|
||||
VerticalAlignment="Center"
|
||||
Margin="10,0,10,0"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Text="{Binding CurrPart.TransfVersY, UpdateSourceTrigger=LostFocus}"
|
||||
Style="{StaticResource PartParam_TextBox}"/>
|
||||
TextWrapping="Wrap"
|
||||
Width="150"
|
||||
Margin="5"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<UserControl x:Class="PdfViewer"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<ScrollViewer Style="{StaticResource PDFViewer_ScrollViewer}">
|
||||
|
||||
<ScrollViewer Background="{StaticResource ScrollViewer.Static.Background}"
|
||||
PanningMode="Both">
|
||||
<ItemsControl x:Name="PagesContainer"/>
|
||||
</ScrollViewer>
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
<Popup x:Class="BTLPartListPopUpV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
Style="{StaticResource BTLPartList_PopUp}">
|
||||
<Popup.Resources>
|
||||
<OPTIMIZER:DataGridCellBorderThicknessConverter x:Key="DataGridCellBorderThicknessConverter"/>
|
||||
</Popup.Resources>
|
||||
<Popup.VerticalOffset>
|
||||
<MultiBinding Converter="{StaticResource DataGridCellBorderThicknessConverter}">
|
||||
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>
|
||||
<Binding Path="ActualWidth" ElementName="SettingsBtn"/>
|
||||
</MultiBinding>
|
||||
</Popup.VerticalOffset>
|
||||
<OPTIMIZER:BTLPartManagerV/>
|
||||
</Popup>
|
||||
@@ -1,3 +0,0 @@
|
||||
Public Class BTLPartListPopUpV
|
||||
|
||||
End Class
|
||||
@@ -6,8 +6,8 @@
|
||||
xmlns:dxi="http://schemas.devexpress.com/winfx/2008/xaml/core/internal"
|
||||
xmlns:dxt="http://schemas.devexpress.com/winfx/2008/xaml/core/themekeys"
|
||||
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
||||
Background="{StaticResource Border.BTLPartManager.Background}"
|
||||
BorderBrush="{StaticResource Border.BTLPartManager.Border}"
|
||||
Background="{StaticResource Border.Static.FountainBlue.Background}"
|
||||
BorderBrush="{StaticResource Border.Static.Teal.Border}"
|
||||
BorderThickness="2"
|
||||
CornerRadius="5"
|
||||
Margin="0"
|
||||
@@ -36,3 +36,46 @@
|
||||
</dxb:BarItemMenuHeader>
|
||||
|
||||
</dxb:PopupMenu>
|
||||
|
||||
<!--<Border x:Class="RawPartListPopUpV"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Background="{StaticResource Border.Static.FountainBlue.Background}"
|
||||
BorderBrush="{StaticResource Border.Static.Teal.Border}"
|
||||
BorderThickness="2"
|
||||
CornerRadius="5"
|
||||
Margin="0"
|
||||
Padding="0">
|
||||
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="0">
|
||||
<Button Command="{Binding CopyRawPart_Command}"
|
||||
ToolTip="{Binding CopyRawPart_ToolTip}">
|
||||
<Image Source="{StaticResource CopyRawPart_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding RemoveRawPart_Command}"
|
||||
ToolTip="{Binding RemoveRawPart_ToolTip}">
|
||||
<Image Source="{StaticResource Remove_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding ReOrderPart_Command}"
|
||||
ToolTip="{Binding ReOrderPart_ToolTip}">
|
||||
<Image Source="{StaticResource ReOrderPart_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding ResetCalc_Command}"
|
||||
ToolTip="{Binding ResetCalc_ToolTip}">
|
||||
<Image Source="{StaticResource ResetCalc_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Border>-->
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user