Compare commits
84 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 | |||
| efe117fbc8 | |||
| 8d36df10f5 | |||
| b89941a925 | |||
| 07ee1d5761 | |||
| 65cb7280c4 | |||
| 68a926e111 | |||
| f2ee4f346d | |||
| 42dca6acf9 | |||
| 9313401d5d | |||
| 7d29465398 | |||
| 97c4e66eba | |||
| 133769af3c | |||
| cdfb91a7ca | |||
| 5dc59ff31c | |||
| 2b9c50e281 | |||
| 193a4ded1c | |||
| bdae2bb344 | |||
| b8d60e3cef | |||
| de6aac3b71 | |||
| 3451e8f443 | |||
| f313853774 | |||
| 9a3b835033 | |||
| c802fb31b7 | |||
| 6f5360ca35 |
@@ -163,7 +163,7 @@ Public Class BTLFeatureVM
|
||||
|
||||
Public ReadOnly Property CALC_ROT_Visibility As Visibility
|
||||
Get
|
||||
Return If(m_BTLFeatureM.nCALC_ROT <> 0, Visibility.Visible, Visibility.Collapsed)
|
||||
Return If(m_BTLFeatureM.nCALC_ROT <> 0, Visibility.Visible, Visibility.Hidden)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -102,6 +102,8 @@ Public Module ConstIni
|
||||
Public Const K_ENABLE As String = "Enable"
|
||||
Public Const K_ZEBRAUTILITIES As String = "ZebraUtilities"
|
||||
Public Const K_TEMPLATE As String = "Template"
|
||||
Public Const K_PRINTERMODE As String = "Mode"
|
||||
Public Const K_NETWORKADDRESS As String = "NetworkAddress"
|
||||
|
||||
Public Const S_BEAM_LIST As String = "Beam_List"
|
||||
Public Const S_WALL_LIST As String = "Wall_List"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -267,13 +267,13 @@ Public MustInherit Class MyMachGroupVM
|
||||
|
||||
Public ReadOnly Property CALC_ROT_Visibility As Visibility
|
||||
Get
|
||||
Return If(MyMachGroupM.nCALC_ROT <> 0, Visibility.Visible, Visibility.Collapsed)
|
||||
Return If(MyMachGroupM.nCALC_ROT <> 0, Visibility.Visible, Visibility.Hidden)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property CALC_FALL_Visibility As Visibility
|
||||
Get
|
||||
Return If(MyMachGroupM.nCALC_FALL <> 0, Visibility.Visible, Visibility.Collapsed)
|
||||
Return If(MyMachGroupM.nCALC_FALL <> 0, Visibility.Visible, Visibility.Hidden)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -319,13 +319,13 @@ Public MustInherit Class PartVM
|
||||
|
||||
Public ReadOnly Property CALC_ROT_Visibility As Visibility
|
||||
Get
|
||||
Return If(m_PartM.nCALC_ROT <> 0, Visibility.Visible, Visibility.Collapsed)
|
||||
Return If(m_PartM.nCALC_ROT <> 0, Visibility.Visible, Visibility.Hidden)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public ReadOnly Property CALC_FALL_Visibility As Visibility
|
||||
Get
|
||||
Return If(m_PartM.nCALC_FALL <> 0, Visibility.Visible, Visibility.Collapsed)
|
||||
Return If(m_PartM.nCALC_FALL <> 0, Visibility.Visible, Visibility.Hidden)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
@@ -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.1")>
|
||||
<Assembly: AssemblyFileVersion("3.1.7.1")>
|
||||
<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
|
||||
|
||||
|
||||
+180
-1298
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.1")]
|
||||
[assembly: AssemblyFileVersion("3.1.7.1")]
|
||||
[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>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
Imports EgtUILib
|
||||
Imports EgtBEAMWALL.Core
|
||||
|
||||
Public Class AboutBoxV
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -106,11 +106,7 @@ Public Class AddFeatureWndVM
|
||||
GetMacroListDefault(nGRPFromFileName, nPRCFromFileName, sMacroNameFromFileName, nIdMacroName)
|
||||
' ricavo lista file Macro Custom
|
||||
GetMacroListCustom(nGRPFromFileName, nPRCFromFileName, sMacroNameFromFileName, nIdMacroName)
|
||||
If MacroCustomList.Count > 0 Then
|
||||
MacroList_IsEnabled = True
|
||||
Else
|
||||
MacroList_IsEnabled = False
|
||||
End If
|
||||
MacroList_IsEnabled = If(MacroCustomList.Count > 0, True, False)
|
||||
End If
|
||||
End If
|
||||
NotifyPropertyChanged(NameOf(nSelPRC))
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -147,7 +147,7 @@ Public Class AddPartWndVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "Ok"
|
||||
#Region "Ok_Command"
|
||||
|
||||
Public ReadOnly Property Ok_Command As ICommand
|
||||
Get
|
||||
@@ -169,7 +169,7 @@ Public Class AddPartWndVM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' Ok
|
||||
#End Region ' Ok_Command
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ Public Class AddRawPartWndVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "Ok"
|
||||
#Region "Ok_Command"
|
||||
|
||||
Public ReadOnly Property Ok_Command As ICommand
|
||||
Get
|
||||
@@ -167,7 +167,7 @@ Public Class AddRawPartWndVM
|
||||
RaiseEvent m_CloseWindow(True)
|
||||
End Sub
|
||||
|
||||
#End Region ' Ok
|
||||
#End Region ' Ok_Command
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
<Application x:Class="Application"
|
||||
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.Core;assembly=EgtBEAMWALL.Core">
|
||||
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<!--<ResourceDictionary Source="pack://application:,,,/EgtBEAMWALL.Core;component/Themes/DarkDictionary.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/EgtBEAMWALL.Core;component/Themes/DefaultDictionary.xaml"/>-->
|
||||
<ResourceDictionary Source="/EgwRedmineAPI;component/Themes/Generic.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/EgtBEAMWALL.Core;component/Themes/Generic.xaml"/>
|
||||
<ResourceDictionary Source="Utility/Dictionary.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -838,7 +838,7 @@ Public Class BTLDataWndVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "Ok"
|
||||
#Region "Ok_Command"
|
||||
|
||||
Public ReadOnly Property Ok_Command As ICommand
|
||||
Get
|
||||
@@ -860,14 +860,14 @@ Public Class BTLDataWndVM
|
||||
End If
|
||||
SetIsBTLDataWnd(True)
|
||||
SaveInfo()
|
||||
Map.refLeftPanelVM.ResetCalc()
|
||||
Map.refPartListVM.ResetCalc()
|
||||
Map.refSceneHostVM.SaveProject()
|
||||
RaiseEvent m_CloseWindow(True)
|
||||
End Sub
|
||||
|
||||
#End Region ' Ok
|
||||
#End Region ' Ok_Command
|
||||
|
||||
#Region "Cancel"
|
||||
#Region "Cancel_Command"
|
||||
|
||||
Public ReadOnly Property Cancel_Command As ICommand
|
||||
Get
|
||||
@@ -882,7 +882,7 @@ Public Class BTLDataWndVM
|
||||
RaiseEvent m_CloseWindow(False)
|
||||
End Sub
|
||||
|
||||
#End Region ' Cancel
|
||||
#End Region ' Cancel_Command
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -1,49 +1,55 @@
|
||||
<Border x:Class="BTLPartManagerV"
|
||||
<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}"
|
||||
Style="{StaticResource BTLPartManager_Border}">
|
||||
Background="{StaticResource Border.Static.FountainBlue.Background}"
|
||||
BorderBrush="{StaticResource Border.Static.Teal.Border}"
|
||||
BorderThickness="2"
|
||||
CornerRadius="5"
|
||||
Margin="0"
|
||||
Padding="0">
|
||||
|
||||
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="0">
|
||||
<Button Command="{Binding CopyPart_Command}"
|
||||
Click="ClosePopUp_Click"
|
||||
ToolTip="{Binding CopyPart_ToolTip}"
|
||||
IsEnabled="{Binding CopyPart_IsEnabled}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
<Image Source="{StaticResource CopyPart_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
IsEnabled="{Binding CopyPart_IsEnabled}">
|
||||
<Image Source="{StaticResource CopyPart_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding RemovePart_Command}"
|
||||
Click="ClosePopUp_Click"
|
||||
ToolTip="{Binding RemovePart_ToolTip}"
|
||||
IsEnabled="{Binding RemovePart_IsEnabled}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
IsEnabled="{Binding RemovePart_IsEnabled}">
|
||||
<Image Source="{StaticResource Remove_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding Simulate_ToolTip}"
|
||||
Click="ClosePopUp_Click"
|
||||
Command="{Binding Simulate_Command}"
|
||||
IsEnabled="{Binding Simulate_IsEnabled}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
<Image Source="{StaticResource Simulate_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
IsEnabled="{Binding Simulate_IsEnabled}">
|
||||
<Image Source="{StaticResource Simulate_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding Edit_ToolTip}"
|
||||
Click="ClosePopUp_Click"
|
||||
Command="{Binding Edit_Command}"
|
||||
IsEnabled="{Binding Edit_IsEnabled}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
<Image Source="{StaticResource Edit_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
IsEnabled="{Binding Edit_IsEnabled}">
|
||||
<Image Source="{StaticResource Edit_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button Command="{Binding ResetCalc_Command}"
|
||||
Click="ClosePopUp_Click"
|
||||
ToolTip="{Binding ResetCalc_ToolTip}"
|
||||
IsEnabled="{Binding CALCPanel_IsEnabled}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
<Image Source="{StaticResource ResetCalc_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
IsEnabled="{Binding CALCPanel_IsEnabled}">
|
||||
<Image Source="{StaticResource ResetCalc_Image}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
Public Class BTLPartManagerV
|
||||
|
||||
Private Sub ClosePopUp_Click(sender As Object, e As RoutedEventArgs)
|
||||
Dim Button As Button = DirectCast(sender, Button)
|
||||
Dim StackPanel As StackPanel = DirectCast(Button.Parent, StackPanel)
|
||||
Dim BTLPartManagerV As BTLPartManagerV = DirectCast(StackPanel.Parent, BTLPartManagerV)
|
||||
Dim Popup As Primitives.Popup = DirectCast(BTLPartManagerV.Parent, Primitives.Popup)
|
||||
|
||||
If Not IsNothing(Popup) Then
|
||||
Popup.IsOpen = False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -183,7 +183,7 @@ Public Class BTLPartManagerVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "CopyPart"
|
||||
#Region "CopyPart_Command"
|
||||
|
||||
Public ReadOnly Property CopyPart_Command As ICommand
|
||||
Get
|
||||
@@ -207,9 +207,9 @@ Public Class BTLPartManagerVM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' CopyPart
|
||||
#End Region ' CopyPart_Command
|
||||
|
||||
#Region "RemovePart"
|
||||
#Region "RemovePart_Command"
|
||||
|
||||
Public ReadOnly Property RemovePart_Command As ICommand
|
||||
Get
|
||||
@@ -221,85 +221,12 @@ Public Class BTLPartManagerVM
|
||||
End Property
|
||||
|
||||
Public Sub RemovePartCmd()
|
||||
If IsNothing(ProjectManagerVM.CurrProd) Then Return
|
||||
If EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(62573), EgtMsg(30009), MessageBoxButton.OKCancel, MessageBoxImage.Exclamation) = MessageBoxResult.OK Then
|
||||
If Map.refProjectVM.BTLStructureVM.SelBTLParts.Count > 0 Then
|
||||
Dim CurrSelBTLParts As List(Of BTLPartVM) = Map.refProjectVM.BTLStructureVM.SelBTLParts.ToList()
|
||||
For RemoveIndex = CurrSelBTLParts.Count - 1 To 0 Step -1
|
||||
RemovePart(CurrSelBTLParts(RemoveIndex), RemoveIndex = 0)
|
||||
Next
|
||||
End If
|
||||
Else
|
||||
Return
|
||||
End If
|
||||
Map.refProjectVM.BTLStructureVM.DeletePart()
|
||||
End Sub
|
||||
|
||||
Public Sub RemovePart(BTLPartToDelete As BTLPartVM, bSelPrevious As Boolean)
|
||||
' verifico se ci sono già copie in grezzi
|
||||
Dim nDuploCount As Integer = 0
|
||||
If EgtDuploCount(BTLPartToDelete.nPartId, nDuploCount) AndAlso nDuploCount > 0 Then
|
||||
' avviso che il pezzo non è cancellabile perchè in produzione
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, String.Format(EgtMsg(61929), nDuploCount), EgtMsg(15003), MessageBoxButton.OK, MessageBoxImage.Warning)
|
||||
Return
|
||||
End If
|
||||
' verifico se rimuovere sezione dalla lista
|
||||
If Not Map.refProjectVM.BTLStructureVM.BTLPartVMList.Any(Function(x) x IsNot BTLPartToDelete AndAlso x.Section = BTLPartToDelete.Section) Then
|
||||
Map.refProjectVM.BTLStructureVM.SectionList.Remove(BTLPartToDelete.Section)
|
||||
Map.refProjectVM.BTLStructureVM.SelSection = SectionXMaterial.Empty
|
||||
End If
|
||||
' Eseguo cancellazione
|
||||
EgtBeamSetPart(BTLPartToDelete.nPartId)
|
||||
If Map.refProdManagerVM.ListProjAsseBase.Count > 0 Then RemoveScenePart(BTLPartToDelete)
|
||||
' seleziono elemento precedente
|
||||
Dim Index As Integer = Map.refProjectVM.BTLStructureVM.BTLPartVMList.IndexOf(BTLPartToDelete)
|
||||
Dim FilteredIndex As Integer = Map.refProjectVM.BTLStructureVM.BTLPartVMList_View.IndexOf(BTLPartToDelete)
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLParts.Remove(BTLPartToDelete)
|
||||
If EgtBeamErasePart() Then
|
||||
If bSelPrevious Then
|
||||
If FilteredIndex = 0 Then
|
||||
If Map.refProjectVM.BTLStructureVM.BTLPartVMList_View.Count > 1 Then
|
||||
Map.refProjectVM.BTLStructureVM.SetSelBTLPart(Map.refProjectVM.BTLStructureVM.BTLPartVMList_View(1))
|
||||
Else
|
||||
Map.refProjectVM.BTLStructureVM.SetSelBTLPart(Nothing)
|
||||
End If
|
||||
ElseIf FilteredIndex = Map.refProjectVM.BTLStructureVM.BTLPartVMList_View.Count - 1 Then
|
||||
If Map.refProjectVM.BTLStructureVM.BTLPartVMList_View.Count > 1 Then
|
||||
Map.refProjectVM.BTLStructureVM.SetSelBTLPart(Map.refProjectVM.BTLStructureVM.BTLPartVMList_View(Map.refProjectVM.BTLStructureVM.BTLPartVMList_View.Count - 2))
|
||||
Else
|
||||
Map.refProjectVM.BTLStructureVM.SetSelBTLPart(Nothing)
|
||||
End If
|
||||
Else
|
||||
Map.refProjectVM.BTLStructureVM.SetSelBTLPart(Map.refProjectVM.BTLStructureVM.BTLPartVMList_View(FilteredIndex - 1))
|
||||
End If
|
||||
End If
|
||||
' rimuovo dalla lista pezzi
|
||||
Map.refProjectVM.BTLStructureVM.BTLPartVMList.RemoveAt(Index)
|
||||
End If
|
||||
End Sub
|
||||
#End Region ' RemovePart_Command
|
||||
|
||||
Private Sub RemoveScenePart(BTLPartToDelete As BTLPartVM)
|
||||
' Rimuovo pezzo dalla scena
|
||||
Dim IdAsseBase As Integer = 0
|
||||
Dim DeletePartId As Integer = 0
|
||||
If Not Map.refProdManagerVM.ListProjAsseBase.TryGetValue(BTLPartToDelete.nPROJ, IdAsseBase) Then
|
||||
Return
|
||||
End If
|
||||
' Setto il nuovo contesto
|
||||
EgtSetCurrentContext(Map.refSceneShowBuldingVM.SceneShowBulding.GetCtx())
|
||||
If EgtBeamGetBuildingIsOn(IdAsseBase) Then EgtBeamShowBuilding(IdAsseBase, False)
|
||||
If Map.refSceneShowBuldingVM.MapInfo.TryGetValue(BTLPartToDelete.nPartId, DeletePartId) Then
|
||||
EgtErase(DeletePartId)
|
||||
Map.refSceneShowBuldingVM.MapInfo.Remove(BTLPartToDelete.nPartId)
|
||||
End If
|
||||
EgtBeamShowBuilding(IdAsseBase, True)
|
||||
EgtZoom(ZM.ALL)
|
||||
' Ritorno al contesto corrente
|
||||
EgtSetCurrentContext(Map.refSceneHostVM.MainScene.GetCtx())
|
||||
End Sub
|
||||
|
||||
#End Region ' RemovePart
|
||||
|
||||
#Region "SimulateCommand"
|
||||
#Region "Simulate_Command"
|
||||
|
||||
Public ReadOnly Property Simulate_Command As ICommand
|
||||
Get
|
||||
@@ -325,7 +252,7 @@ Public Class BTLPartManagerVM
|
||||
Dim TempBarList(0) As EgtBEAMWALL.Core.Bar
|
||||
Dim Bar As New EgtBEAMWALL.Core.Bar With {.nBarId = Map.refProjectVM.BTLStructureVM.SelBTLPart.nPartId,
|
||||
.nProgramPage = ProjectType.PROJ,
|
||||
.nProjType = ProjType,
|
||||
.nProjType = ProjType + 10,
|
||||
.bBarOk = True,
|
||||
.nMachineName = ProjectManagerVM.CurrProd.sMachine,
|
||||
.nCmdType = CalcIntegration.CmdTypes.SIMULATE,
|
||||
@@ -344,9 +271,9 @@ Public Class BTLPartManagerVM
|
||||
Return True
|
||||
End Function
|
||||
|
||||
#End Region ' SimulateCommand
|
||||
#End Region ' Simulate_Command
|
||||
|
||||
#Region "Edit"
|
||||
#Region "Edit_Command"
|
||||
|
||||
Public ReadOnly Property Edit_Command As ICommand
|
||||
Get
|
||||
@@ -385,15 +312,18 @@ 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)
|
||||
Map.refProjectVM.SetLeftPanel_Opacity(0.2)
|
||||
End Sub
|
||||
|
||||
#End Region ' Edit
|
||||
#End Region ' Edit_Command
|
||||
|
||||
#Region "ResetCalc"
|
||||
#Region "ResetCalc_Command"
|
||||
|
||||
Public ReadOnly Property ResetCalc_Command As ICommand
|
||||
Get
|
||||
@@ -412,17 +342,16 @@ 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()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' ResetCalc
|
||||
#End Region ' ResetCalc_Command
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -487,7 +491,7 @@ Public Class BTLFeatureVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "DeleteFeature"
|
||||
#Region "DeleteFeature_Command"
|
||||
|
||||
Public ReadOnly Property DeleteFeature_Command As ICommand
|
||||
Get
|
||||
@@ -502,9 +506,9 @@ Public Class BTLFeatureVM
|
||||
Map.refFeatureListManagerVM.RemoveFeature()
|
||||
End Sub
|
||||
|
||||
#End Region ' DeleteFeature
|
||||
#End Region ' DeleteFeature_Command
|
||||
|
||||
#Region "Edit"
|
||||
#Region "Edit_Command"
|
||||
|
||||
Public ReadOnly Property Edit_Command As ICommand
|
||||
Get
|
||||
@@ -516,13 +520,17 @@ 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
|
||||
|
||||
#End Region ' Edit
|
||||
#End Region ' Edit_Command
|
||||
|
||||
#Region "Save"
|
||||
#Region "Save_Command"
|
||||
|
||||
Public ReadOnly Property Save_Command As ICommand
|
||||
Get
|
||||
@@ -541,11 +549,15 @@ 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
|
||||
#End Region ' Save_Command
|
||||
|
||||
#Region "Cancel"
|
||||
#Region "Cancel_Command"
|
||||
|
||||
Public ReadOnly Property Cancel_Command As ICommand
|
||||
Get
|
||||
@@ -559,11 +571,13 @@ 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
|
||||
#End Region ' Cancel_Command
|
||||
|
||||
#Region "Strategy"
|
||||
#Region "Strategy_Command"
|
||||
|
||||
Public ReadOnly Property Strategy_Command As ICommand
|
||||
Get
|
||||
@@ -577,14 +591,15 @@ 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)
|
||||
End Sub
|
||||
|
||||
#End Region ' Strategy
|
||||
#End Region ' Strategy_Command
|
||||
|
||||
#Region "EditFeature"
|
||||
#Region "EditFeature_Command"
|
||||
|
||||
Public ReadOnly Property EditFeature_Command As ICommand
|
||||
Get
|
||||
@@ -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)
|
||||
@@ -613,7 +630,7 @@ Public Class BTLFeatureVM
|
||||
EgtDraw()
|
||||
End Sub
|
||||
|
||||
#End Region ' EditFeature
|
||||
#End Region ' EditFeature_Command
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -10,14 +10,13 @@ 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
|
||||
Return m_BTLPartM
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Private m_BTLStructureM As BTLStructureM
|
||||
|
||||
Public ReadOnly Property nPartId As Integer
|
||||
@@ -191,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
|
||||
@@ -254,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
|
||||
@@ -317,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
|
||||
@@ -1375,7 +1374,7 @@ Public Class BTLPartVM
|
||||
|
||||
Public ReadOnly Property CALC_ROT_Visibility As Visibility
|
||||
Get
|
||||
Return If(m_BTLPartM.nCALC_ROT <> 0, Visibility.Visible, Visibility.Collapsed)
|
||||
Return If(m_BTLPartM.nCALC_ROT <> 0, Visibility.Visible, Visibility.Hidden)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
@@ -1428,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
|
||||
@@ -1550,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()
|
||||
@@ -1579,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)
|
||||
@@ -1591,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
|
||||
@@ -1629,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)
|
||||
@@ -1668,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
|
||||
@@ -1690,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
|
||||
@@ -1888,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()
|
||||
@@ -2233,11 +2213,26 @@ Public Class BTLPartVM
|
||||
Return True
|
||||
End Function
|
||||
|
||||
Public Sub BackRotation(Optional bUpdateSection As Boolean = False, Optional bRedraw As Boolean = True)
|
||||
' salvo sezione impostata
|
||||
Dim CurrSection As SectionXMaterial = Map.refProjectVM.BTLStructureVM.SelSection
|
||||
' ruoto
|
||||
Rotation(False, Map.refProjectVM.BTLStructureVM.nPROJTYPE, bRedraw)
|
||||
' imposto lock
|
||||
bLockRotation = True
|
||||
' se progetto travi e sezione precedente diversa da vuota (tutti i pezzi)
|
||||
If bUpdateSection AndAlso 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
|
||||
End Sub
|
||||
|
||||
#End Region ' METHODS
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "Invert"
|
||||
#Region "Invert_Command"
|
||||
|
||||
Public ReadOnly Property Invert_Command As ICommand
|
||||
Get
|
||||
@@ -2259,41 +2254,9 @@ Public Class BTLPartVM
|
||||
NotifyPropertyChanged(NameOf(sINVERTED))
|
||||
End Sub
|
||||
|
||||
#End Region ' Invert
|
||||
#End Region ' Invert_Command
|
||||
|
||||
#Region "BackRotation"
|
||||
|
||||
Public ReadOnly Property BackRotation_Command As ICommand
|
||||
Get
|
||||
If m_cmdBackRotation Is Nothing Then
|
||||
m_cmdBackRotation = New Command(AddressOf BackRotationCmd)
|
||||
End If
|
||||
Return m_cmdBackRotation
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public Sub BackRotationCmd()
|
||||
BackRotation(True)
|
||||
End Sub
|
||||
|
||||
Public Sub BackRotation(Optional bUpdateSection As Boolean = False, Optional bRedraw As Boolean = True)
|
||||
' salvo sezione impostata
|
||||
Dim CurrSection As SectionXMaterial = Map.refProjectVM.BTLStructureVM.SelSection
|
||||
' ruoto
|
||||
Rotation(False, Map.refProjectVM.BTLStructureVM.nPROJTYPE, bRedraw)
|
||||
' imposto lock
|
||||
bLockRotation = True
|
||||
' se progetto travi e sezione precedente diversa da vuota (tutti i pezzi)
|
||||
If bUpdateSection AndAlso 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
|
||||
End Sub
|
||||
|
||||
#End Region ' BackRotation
|
||||
|
||||
#Region "ForwardRotation"
|
||||
#Region "ForwardRotation_Command"
|
||||
|
||||
Public ReadOnly Property ForwardRotation_Command As ICommand
|
||||
Get
|
||||
@@ -2322,7 +2285,7 @@ Public Class BTLPartVM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' ForwardRotation
|
||||
#End Region ' ForwardRotation_Command
|
||||
|
||||
' Comando inutilizzato ma conservato per eventuale rotazione a causa di importazione con rotazione sbagliata
|
||||
#Region "XRotation"
|
||||
@@ -2365,7 +2328,7 @@ Public Class BTLPartVM
|
||||
|
||||
#End Region ' XRotation
|
||||
|
||||
#Region "PartColour"
|
||||
#Region "PartColour_Command"
|
||||
|
||||
Public ReadOnly Property PartColour_Command As ICommand
|
||||
Get
|
||||
@@ -2397,9 +2360,9 @@ Public Class BTLPartVM
|
||||
Return True
|
||||
End Function
|
||||
|
||||
#End Region ' PartColour
|
||||
#End Region ' PartColour_Command
|
||||
|
||||
#Region "Verify"
|
||||
#Region "Verify_Command"
|
||||
|
||||
Public ReadOnly Property Verify_Command As ICommand
|
||||
Get
|
||||
@@ -2417,9 +2380,9 @@ Public Class BTLPartVM
|
||||
Return
|
||||
End Sub
|
||||
|
||||
#End Region ' Verify
|
||||
#End Region ' Verify_Command
|
||||
|
||||
#Region "AddToRawPart"
|
||||
#Region "AddToRawPart_Command"
|
||||
|
||||
Public ReadOnly Property AddToRawPart_Command As ICommand
|
||||
Get
|
||||
@@ -2714,9 +2677,9 @@ Public Class BTLPartVM
|
||||
Return True
|
||||
End Function
|
||||
|
||||
#End Region ' AddToRawPart
|
||||
#End Region ' AddToRawPart_Command
|
||||
|
||||
#Region "SelectAllFeature"
|
||||
#Region "SelectAllFeature_Command"
|
||||
|
||||
Public ReadOnly Property SelectAllFeature_Command As ICommand
|
||||
Get
|
||||
@@ -2732,9 +2695,9 @@ Public Class BTLPartVM
|
||||
NotifyPropertyChanged(NameOf(bDOALL))
|
||||
End Sub
|
||||
|
||||
#End Region ' SelectAllFeature
|
||||
#End Region ' SelectAllFeature_Command
|
||||
|
||||
#Region "DeselectAllFeature"
|
||||
#Region "DeselectAllFeature_Command"
|
||||
|
||||
Public ReadOnly Property DeselectAllFeature_Command As ICommand
|
||||
Get
|
||||
@@ -2750,9 +2713,9 @@ Public Class BTLPartVM
|
||||
NotifyPropertyChanged(NameOf(bDOALL))
|
||||
End Sub
|
||||
|
||||
#End Region ' DeselectAllFeature
|
||||
#End Region ' DeselectAllFeature_Command
|
||||
|
||||
#Region "SelectItemFeature"
|
||||
#Region "SelectItemFeature_Command"
|
||||
|
||||
Public ReadOnly Property SelectItemFeature_Command As ICommand
|
||||
Get
|
||||
@@ -2774,9 +2737,9 @@ Public Class BTLPartVM
|
||||
Next
|
||||
End Sub
|
||||
|
||||
#End Region ' SelectItemFeature
|
||||
#End Region ' SelectItemFeature_Command
|
||||
|
||||
#Region "DeselectItemFeature"
|
||||
#Region "DeselectItemFeature_Command"
|
||||
|
||||
Public ReadOnly Property DeselectItemFeature_Command As ICommand
|
||||
Get
|
||||
@@ -2798,7 +2761,7 @@ Public Class BTLPartVM
|
||||
Next
|
||||
End Sub
|
||||
|
||||
#End Region ' DeselectItemFeature
|
||||
#End Region ' DeselectItemFeature_Command
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -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,59 +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
|
||||
|
||||
Public Sub SelectBTLPartScene(BtlPart As BTLPartVM, Optional bIsReselect As Boolean = False)
|
||||
m_SelBTLPart = BtlPart
|
||||
If Map.refProjectVM.LastSelGridType = ProjectVM.GridSelTypes.MACHGROUP Then
|
||||
' resetto gruppo di lavorazione corrente
|
||||
EgtResetCurrMachGroup()
|
||||
End If
|
||||
If Not IsNothing(BtlPart) Then
|
||||
' gestisco selezione pezzo
|
||||
EgtBeamShowFacesName(False)
|
||||
EgtBeamShowLoadingSide(False, False)
|
||||
Map.refProjectVM.MacroFeature_IsEnabled = True
|
||||
SceneSelPartSelection()
|
||||
' seleziono pezzo in Db geometrico
|
||||
EgtBeamSetPart(BtlPart.nPartId)
|
||||
EgtBeamShowFacesName(True)
|
||||
Dim bLoadingSideShow As Boolean = (nPROJTYPE = BWType.BEAM)
|
||||
Dim bLeftToRight As Boolean = Not (CurrentMachine.ViewDir = VT.ISO_NW OrElse CurrentMachine.ViewDir = VT.ISO_NE)
|
||||
EgtBeamShowLoadingSide(bLoadingSideShow, bLeftToRight)
|
||||
' trovo ed evidenzio MachGroup e Duplo di questo pezzo
|
||||
If Not IsNothing(Map.refProjectVM.MachGroupPanelVM) Then
|
||||
Dim MachGroupList As New List(Of MyMachGroupVM)
|
||||
For Each Machgroup As MyMachGroupVM In Map.refProjectVM.MachGroupPanelVM.MachGroupVMList
|
||||
Dim bFound As Boolean = False
|
||||
For Each Part As PartVM In Machgroup.PartVMList
|
||||
If EgtDuploGetOriginal(Part.nPartId) = BtlPart.nPartId Then
|
||||
Part.SetSearchFound()
|
||||
bFound = True
|
||||
Else
|
||||
Part.ResetSearchFound()
|
||||
End If
|
||||
Next
|
||||
If bFound Then
|
||||
Machgroup.SetSearchFound()
|
||||
Else
|
||||
Machgroup.ResetSearchFound()
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
End If
|
||||
' seleziono la prima feature
|
||||
If Not IsNothing(BtlPart) AndAlso Not IsNothing(BtlPart.BTLFeatureVMList) AndAlso BtlPart.BTLFeatureVMList.Count > 0 Then SelBTLPart.SetSelFeature(SelBTLPart.SelBTLFeatureVM)
|
||||
Core.ViewPanelVM.BWSetView(If(Core.ViewPanelVM.Type = BWType.BEAM, VT.ISO_SW, VT.TOP), False)
|
||||
EgtZoom(ZM.ALL)
|
||||
NotifyPropertyChanged(NameOf(SelBTLPart))
|
||||
If Not bIsReselect AndAlso m_SelBTLParts.Count = 1 Then BtlPart.SetOpenFeatureList(True)
|
||||
End Sub
|
||||
|
||||
Private m_SelBTLPart As BTLPartVM = Nothing
|
||||
@@ -817,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"
|
||||
@@ -953,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
|
||||
@@ -1273,9 +1150,10 @@ Public Class BTLStructureVM
|
||||
Map.refProjectVM.BTLStructureVM.SetSelBTLPart(Nothing)
|
||||
End If
|
||||
Else
|
||||
Map.refProjectVM.BTLStructureVM.SetSelBTLPart(Map.refProjectVM.BTLStructureVM.BTLPartVMList_View(FilteredIndex - 1))
|
||||
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
|
||||
@@ -1305,7 +1183,7 @@ Public Class BTLStructureVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "DeletePart"
|
||||
#Region "DeletePart_Command"
|
||||
|
||||
Public ReadOnly Property DeletePart_Command() As ICommand
|
||||
Get
|
||||
@@ -1330,9 +1208,9 @@ Public Class BTLStructureVM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' DeletePart
|
||||
#End Region ' DeletePart_Command
|
||||
|
||||
#Region "Data"
|
||||
#Region "Data_Command"
|
||||
|
||||
Public ReadOnly Property Data_Command As ICommand
|
||||
Get
|
||||
@@ -1348,9 +1226,9 @@ Public Class BTLStructureVM
|
||||
BTLDataWnd.ShowDialog()
|
||||
End Sub
|
||||
|
||||
#End Region ' Data
|
||||
#End Region ' Data_Command
|
||||
|
||||
#Region "AddPart"
|
||||
#Region "AddPart_Command"
|
||||
|
||||
Public ReadOnly Property AddPart_Command As ICommand
|
||||
Get
|
||||
@@ -1402,9 +1280,56 @@ Public Class BTLStructureVM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' AddPart
|
||||
#End Region ' AddPart_Command
|
||||
|
||||
#Region "UpdateBTL"
|
||||
#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
|
||||
Get
|
||||
@@ -1431,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)
|
||||
@@ -1465,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
|
||||
@@ -1562,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)
|
||||
|
||||
@@ -1581,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
|
||||
@@ -1643,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
|
||||
@@ -1698,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()
|
||||
@@ -1727,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)
|
||||
@@ -1774,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
|
||||
@@ -1792,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)
|
||||
@@ -1804,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()
|
||||
@@ -1853,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
|
||||
@@ -1863,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
|
||||
@@ -1926,25 +1841,31 @@ 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
|
||||
|
||||
#End Region ' UpdateBTL
|
||||
#End Region ' UpdateBTL_Command
|
||||
|
||||
#End Region ' Commands
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ Public Class BlockedWndVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "Save"
|
||||
#Region "Save_Command"
|
||||
|
||||
Public ReadOnly Property Save_Command As ICommand
|
||||
Get
|
||||
@@ -130,9 +130,9 @@ Public Class BlockedWndVM
|
||||
DbControllers.m_StatusMapController.UpdateAction("", ProjectManagerVM.CurrProd.nProdId, ProjectManagerVM.CurrProd.nProdId, StatusMapItemType.Comm, StatusMapOpType.ViewOptimStoped, "")
|
||||
End Sub
|
||||
|
||||
#End Region ' Save
|
||||
#End Region ' Save_Command
|
||||
|
||||
#Region "DoNotSave"
|
||||
#Region "DoNotSave_Command"
|
||||
|
||||
Public ReadOnly Property DoNotSave_Command As ICommand
|
||||
Get
|
||||
@@ -148,7 +148,7 @@ Public Class BlockedWndVM
|
||||
DbControllers.m_StatusMapController.UpdateAction("", ProjectManagerVM.CurrProd.nProdId, ProjectManagerVM.CurrProd.nProdId, StatusMapItemType.Comm, StatusMapOpType.ViewOptimStoped, "")
|
||||
End Sub
|
||||
|
||||
#End Region ' DoNotSave
|
||||
#End Region ' DoNotSave_Command
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -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" />
|
||||
@@ -1007,14 +988,26 @@
|
||||
<PackageReference Include="BouncyCastle">
|
||||
<Version>1.8.5</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="DevExpress.Wpf.Core">
|
||||
<Version>25.2.6</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="DevExpress.Wpf.Grid">
|
||||
<Version>25.2.6</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="DevExpress.Wpf.PdfViewer">
|
||||
<Version>25.2.6</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EgwMultiEngineManager.Core">
|
||||
<Version>3.1.1.2</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EgwMultiEngineManager.Data">
|
||||
<Version>3.1.1.2</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EgwRedmineAPI">
|
||||
<Version>3.1.8.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EgwWPFBaseLib">
|
||||
<Version>3.1.3-beta.6</Version>
|
||||
<Version>3.1.8-beta.4</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EntityFramework">
|
||||
<Version>6.4.4</Version>
|
||||
@@ -1062,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>
|
||||
@@ -1128,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>
|
||||
@@ -1155,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>
|
||||
@@ -1170,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>
|
||||
@@ -1188,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>
|
||||
@@ -1236,6 +1196,16 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\NewPage\arrow.png" />
|
||||
</ItemGroup>
|
||||
<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>
|
||||
|
||||
|
||||
@@ -157,21 +157,6 @@ Public Class ForcedStrategyPanelVM
|
||||
m_StrategyList = New ObservableCollection(Of Strategy)((From JsonAvailableStrategy In JsonAvailableTopology.StrategyList
|
||||
Select JsonAvailableStrategy.Deserialize(ProjectManagerVM.CurrProd.nType, -1)).ToList())
|
||||
End If
|
||||
If File.Exists(sAvailableStrategiesFilePath) Then
|
||||
sReadedFile = File.ReadAllText(sAvailableStrategiesFilePath)
|
||||
Dim JsonStrategyFeatureList As List(Of JsonAvailableStrategyFeature) = JsonConvert.DeserializeObject(Of List(Of JsonAvailableStrategyFeature))(sReadedFile)
|
||||
Dim JsonAvailableStrategyFeature As JsonAvailableStrategyFeature = JsonStrategyFeatureList.FirstOrDefault(Function(x) x.nGrp = nGRP AndAlso x.nPrc = nPRC)
|
||||
If IsNothing(JsonAvailableStrategyFeature) Then Return False
|
||||
Dim JsonAvailableTopology As JsonAvailableTopology = JsonAvailableStrategyFeature.TopologyList.FirstOrDefault(Function(x) x.sName = sTopologyName)
|
||||
If IsNothing(JsonAvailableTopology) Then
|
||||
' ricavo topologia da feature
|
||||
FindTopologyFromFeature(nFeatureId, sTopologyName)
|
||||
JsonAvailableTopology = JsonAvailableStrategyFeature.TopologyList.FirstOrDefault(Function(x) x.sName = sTopologyName)
|
||||
End If
|
||||
If IsNothing(JsonAvailableTopology) Then Return False
|
||||
m_StrategyList = New ObservableCollection(Of Strategy)((From JsonAvailableStrategy In JsonAvailableTopology.StrategyList
|
||||
Select JsonAvailableStrategy.Deserialize(ProjectManagerVM.CurrProd.nType, -1)).ToList())
|
||||
End If
|
||||
' recupero custom
|
||||
Dim nPartId As Integer = EgtGetParent(EgtGetParent(nFeatureId))
|
||||
Dim nPartProjId As Integer = 0
|
||||
@@ -282,6 +267,24 @@ Public Class ForcedStrategyPanelVM
|
||||
|
||||
Friend Sub ForcedStrategy()
|
||||
If IsNothing(m_CurrentFeature) Then Return
|
||||
If m_CurrentFeature.nFeatureId < 0 Then Return
|
||||
If IsNothing(m_SelStrategy) 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)
|
||||
@@ -298,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)
|
||||
@@ -374,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()
|
||||
@@ -395,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>
|
||||
|
||||
@@ -489,6 +489,7 @@ Public MustInherit Class ProjectParameters
|
||||
End Select
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' Methods
|
||||
|
||||
End Class
|
||||
@@ -879,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
|
||||
@@ -915,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
|
||||
@@ -962,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
|
||||
@@ -990,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"
|
||||
@@ -1013,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
|
||||
@@ -1035,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>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,11 @@
|
||||
Imports System.Reflection
|
||||
Imports System.IO
|
||||
Imports System.Reflection
|
||||
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
|
||||
|
||||
@@ -8,142 +15,248 @@ Public Class BTLPartListV
|
||||
Private m_isDraggingSelectionField As FieldInfo
|
||||
Private m_endDraggingMethod As MethodInfo
|
||||
|
||||
Private m_sDataGridLayoutPath As String = ""
|
||||
|
||||
Private _lastExpanded As Integer = -1
|
||||
|
||||
Private bSelOnFeature As Boolean = False
|
||||
|
||||
Sub New()
|
||||
' This call is required by the designer.
|
||||
InitializeComponent()
|
||||
' Add any initialization after the InitializeComponent() call.
|
||||
|
||||
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))
|
||||
Next
|
||||
DXSerializer.AddAllowPropertyHandler(BTLPart_GridControl, AddressOf OnAddAllowProperty)
|
||||
End Sub
|
||||
|
||||
' imposto parametri da aggiungere o togliere in Json tabella per i parametri di colonna
|
||||
Private Sub OnAllowProperty(sender As Object, e As AllowPropertyEventArgs)
|
||||
If e.DependencyProperty Is GridColumn.AllowResizingProperty Then
|
||||
e.Allow = True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' imposto parametri da aggiungere o togliere in Json tabella per i parametri generali
|
||||
Private Sub OnAddAllowProperty(sender As Object, e As AllowPropertyEventArgs)
|
||||
If e.Property.Name = "FilterString" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "MRUFilters" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "MRUFilterList" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "GroupSummarySortInfo" Then
|
||||
e.Allow = False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' salvataggio del layout colonne
|
||||
Public Sub SaveBTLPartGridControlLayout()
|
||||
BTLPart_GridControl.SaveLayoutToJson(m_sDataGridLayoutPath)
|
||||
End Sub
|
||||
|
||||
Public Sub IsVisibleGroupSummary(bValue As Boolean)
|
||||
If bValue AndAlso BTLPart_GridControl.GroupSummary.Count = 0 Then
|
||||
BTLPart_GridControl.GroupSummary.Clear()
|
||||
Dim PDNGroupSummaryItem As New GridSummaryItem() With {.FieldName = "nPDN",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Count,
|
||||
.ShowInGroupColumnFooter = "nPDN"}
|
||||
BTLPart_GridControl.GroupSummary.Add(PDNGroupSummaryItem)
|
||||
Dim CNTGroupSummaryItem As New GridSummaryItem() With {.FieldName = "sCNT",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Sum,
|
||||
.ShowInGroupColumnFooter = "sCNT"}
|
||||
BTLPart_GridControl.GroupSummary.Add(CNTGroupSummaryItem)
|
||||
Dim ADDEDGroupSummaryItem As New GridSummaryItem() With {.FieldName = "sADDED",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Sum,
|
||||
.ShowInGroupColumnFooter = "sADDED"}
|
||||
BTLPart_GridControl.GroupSummary.Add(ADDEDGroupSummaryItem)
|
||||
Dim INPRODGroupSummaryItem As New GridSummaryItem() With {.FieldName = "nINPROD",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Sum,
|
||||
.ShowInGroupColumnFooter = "nINPROD"}
|
||||
BTLPart_GridControl.GroupSummary.Add(INPRODGroupSummaryItem)
|
||||
Dim DONEGroupSummaryItem As New GridSummaryItem() With {.FieldName = "nDONE",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Sum,
|
||||
.ShowInGroupColumnFooter = "nDONE"}
|
||||
BTLPart_GridControl.GroupSummary.Add(DONEGroupSummaryItem)
|
||||
End If
|
||||
BTLPart_TableView.ShowGroupFooters = bValue
|
||||
End Sub
|
||||
|
||||
Public Sub Me_Loaded() Handles Me.Loaded
|
||||
' imposto DataContext
|
||||
m_BTLPartListVM = DataContext
|
||||
' Evita il drag sulla selezione multipla
|
||||
m_isDraggingSelectionField = m_DataGridType.GetField("_isDraggingSelection", BindingFlags.Instance Or BindingFlags.NonPublic)
|
||||
m_endDraggingMethod = m_DataGridType.GetMethod("EndDragging", BindingFlags.Instance Or BindingFlags.NonPublic)
|
||||
End Sub
|
||||
|
||||
Public Sub DataGrid_PreviewMouseMove(sender As Object, e As MouseEventArgs)
|
||||
' Evita il drag sulla selezione multipla
|
||||
If e.LeftButton = MouseButtonState.Pressed Then
|
||||
If CBool(If(m_isDraggingSelectionField?.GetValue(sender), False)) Then m_endDraggingMethod.Invoke(sender, New Object(-1) {})
|
||||
' imposto riferimento ad action per salvataggio layout tabella
|
||||
m_BTLPartListVM.refSaveBTLPartGridControlLayout = AddressOf SaveBTLPartGridControlLayout
|
||||
' rispristino layout tabella
|
||||
If Not IsNothing(m_sDataGridLayoutPath) AndAlso File.Exists(m_sDataGridLayoutPath) Then
|
||||
BTLPart_GridControl.RestoreLayoutFromJson(m_sDataGridLayoutPath)
|
||||
End If
|
||||
' da gestire chiamandolo quando viene aperto un progetto o aggiunto/rimosso un btl, per evitare che ci sia il GroupSummary se c'e' un solo gruppo
|
||||
IsVisibleGroupSummary(False)
|
||||
End Sub
|
||||
|
||||
Private Sub PartList_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
If e.ChangedButton = MouseButton.Left Then
|
||||
If TypeOf sender Is DataGridRow Then
|
||||
' Metto la selezione della feature a false
|
||||
bSelOnFeature = False
|
||||
If Map.refProjectVM.BTLStructureVM.SelBTLParts.Count <> 1 Then Return
|
||||
Dim Row As DataGridRow = DirectCast(sender, DataGridRow)
|
||||
If TypeOf Row.DataContext IsNot BTLPartVM Then Return
|
||||
Dim BTLPartVM As BTLPartVM = DirectCast(Row.DataContext, BTLPartVM)
|
||||
Dim DataGridDetailsPresenter As Object = TreeHelperManager.FindVisualParents(Of Button, CheckBox, Primitives.DataGridDetailsPresenter)(e.OriginalSource)
|
||||
If Not IsNothing(DataGridDetailsPresenter) Then Return
|
||||
If Map.refProjectVM.BTLStructureVM.SelBTLParts.Contains(BTLPartVM) Then
|
||||
BTLPartVM.SetOpenFeatureList(Not BTLPartVM.bOpenFeatureList)
|
||||
End If
|
||||
If Not IsNothing(Row) AndAlso Row.IsSelected AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) AndAlso Map.refProjectVM.BTLStructureVM.SelBTLPart.Equals(BTLPartVM) Then
|
||||
Map.refProjectVM.BTLStructureVM.SelectBTLPart(BTLPartVM, True)
|
||||
End If
|
||||
' customizzazione ContextMenu del GridControl
|
||||
Private Sub OnShowGridMenu(sender As Object, e As DevExpress.Xpf.Grid.GridMenuEventArgs)
|
||||
If e.MenuType = GridMenuType.Column Then
|
||||
' 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 = DefaultColumnMenuItemNames.BestFit})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.BestFitColumns})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNamesBase.FilterEditor})
|
||||
|
||||
Dim info As GridColumnMenuInfo = CType(e.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
' aggiunta separatore
|
||||
Dim separator As BarItemLinkSeparator = New BarItemLinkSeparator()
|
||||
e.Customizations.Add(separator)
|
||||
' aggiunta bottone AllowResize e Auto Fit
|
||||
Dim AllowResize As BarCheckItem = New BarCheckItem() With {.Content = "Allow Resize", .IsChecked = (BTLPart_TableView.AllowResizing AndAlso (item.AllowResizing = DevExpress.Utils.DefaultBoolean.True OrElse item.AllowResizing = DevExpress.Utils.DefaultBoolean.Default))}
|
||||
AddHandler AllowResize.CheckedChanged, AddressOf AllowResize_CheckedChanged
|
||||
e.Customizations.Add(AllowResize)
|
||||
If item.AllowResizing = DevExpress.Utils.DefaultBoolean.True OrElse item.AllowResizing = DevExpress.Utils.DefaultBoolean.Default Then
|
||||
Dim FixAuto As BarButtonItem = New BarCheckItem() With {.Content = "Auto Fit"}
|
||||
AddHandler FixAuto.ItemClick, AddressOf FixAuto_ItemClick
|
||||
e.Customizations.Add(FixAuto)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub ListBox_PreviewMouseWheel(ByVal sender As Object, ByVal e As MouseWheelEventArgs)
|
||||
' gestione dello scroll, per permetterlo anche quando mouse su RowDetails
|
||||
e.Handled = True
|
||||
Dim DependencyParent As DependencyObject = sender
|
||||
While TypeOf DependencyParent IsNot ListBox
|
||||
DependencyParent = VisualTreeHelper.GetParent(DependencyParent)
|
||||
End While
|
||||
If IsNothing(DependencyParent) Then
|
||||
Return
|
||||
End If
|
||||
Dim parent As ListBox = TryCast(DependencyParent, ListBox)
|
||||
If IsNothing(parent) Then
|
||||
Return
|
||||
End If
|
||||
parent?.[RaiseEvent](New MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta) With {
|
||||
.RoutedEvent = MouseWheelEvent,
|
||||
.Source = sender})
|
||||
End Sub
|
||||
|
||||
Private Sub OpenPopUp_Click(sender As Object, e As RoutedEventArgs)
|
||||
Dim btn As Button = DirectCast(sender, Button) ' Ottieni il bottone che ha generato l'evento
|
||||
Dim parent As DependencyObject = btn
|
||||
|
||||
' Cerca il Popup nel Visual Tree
|
||||
While Not IsNothing(parent) AndAlso TypeOf parent IsNot DataGridRow
|
||||
parent = VisualTreeHelper.GetParent(parent)
|
||||
End While
|
||||
If Not IsNothing(parent) Then
|
||||
Dim popup As New BTLPartListPopUpV()
|
||||
If Not IsNothing(popup) Then
|
||||
popup.PlacementTarget = btn ' Associa il popup al bottone
|
||||
popup.IsOpen = True ' Mostra il popup
|
||||
End If
|
||||
' gestore evento Allow Resize
|
||||
Private Sub AllowResize_CheckedChanged(sender As Object, e As ItemClickEventArgs)
|
||||
Dim info As GridColumnMenuInfo = TryCast(BTLPart_TableView.GridMenu.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
If item.AllowResizing = DevExpress.Utils.DefaultBoolean.False Then
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.True
|
||||
Else
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub SelectButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
|
||||
Dim button = TryCast(sender, Button)
|
||||
Dim listBoxItem = FindAncestor(Of ListBoxItem)(button)
|
||||
|
||||
If Not IsNothing(listBoxItem) Then
|
||||
listBoxItem.IsSelected = True
|
||||
End If
|
||||
' gestore evento Auto Fit
|
||||
Private Sub FixAuto_ItemClick(sender As Object, e As ItemClickEventArgs)
|
||||
Dim info As GridColumnMenuInfo = TryCast(BTLPart_TableView.GridMenu.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
item.Width = New GridColumnWidth(1, GridColumnUnitType.Auto)
|
||||
BTLPart_TableView.UpdateLayout()
|
||||
item.Width = item.ActualWidth
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.False
|
||||
End Sub
|
||||
|
||||
Private Function FindAncestor(Of T As DependencyObject)(ByVal current As DependencyObject) As T
|
||||
While Not IsNothing(current)
|
||||
|
||||
If TypeOf current Is T Then
|
||||
Return CType(current, T)
|
||||
End If
|
||||
|
||||
current = VisualTreeHelper.GetParent(current)
|
||||
End While
|
||||
|
||||
Return Nothing
|
||||
End Function
|
||||
|
||||
Private Sub Root_PreviewKeyDown(sender As Object, e As KeyEventArgs)
|
||||
If e.Key <> Key.Delete Then Return
|
||||
|
||||
Dim BTLStructureVM As BTLStructureVM = TryCast(Me.Tag, BTLStructureVM)
|
||||
If IsNothing(BTLStructureVM) Then Return
|
||||
|
||||
Dim BTLPartVM As BTLPartVM = BTLStructureVM.SelBTLPart
|
||||
Dim BTLFeatureVM As BTLFeatureVM = BTLPartVM?.SelBTLFeatureVM
|
||||
|
||||
If bSelOnFeature AndAlso Not IsNothing(BTLFeatureVM) Then
|
||||
If Not IsNothing(BTLFeatureVM.DeleteFeature_Command) AndAlso BTLFeatureVM.DeleteFeature_Command.CanExecute(Nothing) Then
|
||||
BTLFeatureVM.DeleteFeature_Command.Execute(Nothing)
|
||||
e.Handled = True
|
||||
End If
|
||||
Return
|
||||
End If
|
||||
|
||||
If Not IsNothing(BTLStructureVM.DeletePart_Command) AndAlso BTLStructureVM.DeletePart_Command.CanExecute(Nothing) Then
|
||||
BTLStructureVM.DeletePart_Command.Execute(Nothing)
|
||||
Private Sub FilterAllBtn_PreviewMouseDown(sender As Object, e As RoutedEventArgs)
|
||||
If FilterSectxMat_Popup.IsOpen Then
|
||||
FilterSectxMat_Popup.IsOpen = False
|
||||
e.Handled = True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub FilterAllBtn_Click(sender As Object, e As RoutedEventArgs)
|
||||
If Not FilterSectxMat_Popup.IsOpen Then
|
||||
FilterSectxMat_Popup.IsOpen = True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private _expandedRowHandle As Integer = -1
|
||||
Private Sub View_MasterRowExpanding(sender As Object, e As DevExpress.Xpf.Grid.RowAllowEventArgs)
|
||||
|
||||
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
|
||||
|
||||
' 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)
|
||||
bSelOnFeature = False
|
||||
End Sub
|
||||
|
||||
Private Sub ListBox_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
bSelOnFeature = True
|
||||
End Sub
|
||||
|
||||
Private Sub BTLPart_GridControl_PreviewKeyDown(sender As Object, e As KeyEventArgs)
|
||||
If e.Key = Key.Delete Then
|
||||
Dim BTLStructureVM As BTLStructureVM = TryCast(Me.Tag, BTLStructureVM)
|
||||
If IsNothing(BTLStructureVM) Then Return
|
||||
|
||||
Dim SelBTLPart As BTLPartVM = BTLStructureVM.SelBTLPart
|
||||
Dim SelBTLFeatureVM As BTLFeatureVM = SelBTLPart?.SelBTLFeatureVM
|
||||
|
||||
If bSelOnFeature AndAlso Not IsNothing(SelBTLFeatureVM) Then
|
||||
SelBTLFeatureVM.DeleteFeature()
|
||||
e.Handled = True
|
||||
Return
|
||||
End If
|
||||
|
||||
BTLStructureVM.DeletePart()
|
||||
e.Handled = True
|
||||
End If
|
||||
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
|
||||
@@ -9,6 +9,8 @@ Public Class BTLPartListVM
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
Friend refSaveBTLPartGridControlLayout As Action
|
||||
|
||||
Private m_colPart_Do As EgwWPFBaseLib.ColumnLayout
|
||||
Public ReadOnly Property colPart_Do As EgwWPFBaseLib.ColumnLayout
|
||||
Get
|
||||
@@ -63,6 +65,28 @@ Public Class BTLPartListVM
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private m_CALCPanel_IsEnabled As Boolean = True
|
||||
Public ReadOnly Property CALCPanel_IsEnabled As Boolean
|
||||
Get
|
||||
Return m_CALCPanel_IsEnabled
|
||||
End Get
|
||||
End Property
|
||||
Friend Sub SetCALCPanel_IsEnabled(value As Boolean)
|
||||
m_CALCPanel_IsEnabled = value
|
||||
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
|
||||
@@ -185,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
|
||||
@@ -212,6 +260,16 @@ Public Class BTLPartListVM
|
||||
|
||||
#End Region ' Constructor
|
||||
|
||||
#Region "METHODS"
|
||||
|
||||
Friend Sub Close()
|
||||
If Not IsNothing(refSaveBTLPartGridControlLayout) Then
|
||||
refSaveBTLPartGridControlLayout()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' Methods
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "VerifyAll"
|
||||
@@ -229,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
|
||||
@@ -253,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
|
||||
@@ -279,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
|
||||
@@ -288,7 +346,7 @@ Public Class BTLPartListVM
|
||||
|
||||
#End Region ' ResetCalc
|
||||
|
||||
#End Region ' COMMANDS
|
||||
#End Region ' Commands
|
||||
|
||||
End Class
|
||||
|
||||
@@ -320,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 Integer Then Return ""
|
||||
Dim nProjId As Integer = CInt(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
|
||||
|
||||
|
||||
@@ -2,110 +2,150 @@
|
||||
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:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib">
|
||||
xmlns:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:dxeh="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
|
||||
xmlns:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
|
||||
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"
|
||||
Margin="-7">
|
||||
|
||||
<EgwWPFBaseLib:EgwDataGrid ItemsSource="{Binding Tag.FeatureVMList,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
||||
SelectedItem="{Binding Tag.SelFeatureVM,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
||||
SelectionMode="Single"
|
||||
Margin="0,0,0,5"
|
||||
ColumnLayouts="{Binding FeatureInPartInRawPartColumns}"
|
||||
BeginningEdit="FeatureInPartInRawPartList_BeginningEdit"
|
||||
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
||||
AlternationCount="2"
|
||||
ColumnHeaderStyle="{StaticResource Main_DataGridColumnHeader}"
|
||||
CellStyle="{StaticResource CellDataGrid_CustomHighLight}"
|
||||
Style="{StaticResource Optimizer_DataGrid}">
|
||||
<DataGrid.RowStyle>
|
||||
<Style TargetType="DataGridRow" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
||||
<Setter Property="IsEnabled" Value="{Binding IsEnabled}"/>
|
||||
</Style>
|
||||
</DataGrid.RowStyle>
|
||||
|
||||
<DataGrid.InputBindings>
|
||||
<KeyBinding Key="Delete" Command="{Binding Tag.SelFeatureVM.DeleteFeature_Command,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"/>
|
||||
</DataGrid.InputBindings>
|
||||
<DataGrid.Resources>
|
||||
<DataGridTemplateColumn x:Key="colDO">
|
||||
<DataGridTemplateColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<CheckBox IsChecked="{Binding Path=Tag.bDOALL, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
||||
IsEnabled="{Binding Path=Tag.ButtonIsEnabled, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.HeaderTemplate>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<CheckBox IsChecked="{Binding bDO, UpdateSourceTrigger=PropertyChanged}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_CheckBox}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<!--Validità feature-->
|
||||
<DataGridTemplateColumn x:Key="colCALC">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="10"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Width="{Binding ActualHeight, RelativeSource={RelativeSource self}}"
|
||||
Background="{Binding Calc_Background}"/>
|
||||
<Grid Grid.Column="1"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_Grid}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Visibility="{Binding CALC_ROT_Visibility}"
|
||||
Style="{StaticResource CALC_ROT_TextBlock}"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding CALC_ERR_Letter}"
|
||||
Foreground="{Binding CALC_ERR_Foreground}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_TextBlock}"/>
|
||||
</Grid>
|
||||
<dxg:GridControl x:Name="FeatureVMList_GridControl"
|
||||
ItemsSource="{Binding Tag.FeatureVMList,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
||||
SelectedItem="{Binding Tag.SelFeatureVM,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
||||
SelectionMode="Row">
|
||||
<dxg:GridControl.View>
|
||||
<dxg:TableView x:Name="FeatureVMList_TableView"
|
||||
AllowPerPixelScrolling="True"
|
||||
AllowEditing="False"
|
||||
AllowSorting="True"
|
||||
AllowGrouping="True"
|
||||
AllowColumnFiltering="True"
|
||||
AllowFilterEditor="False"
|
||||
AllowFilterPanelNavigation="False"
|
||||
ExtendScrollBarToFixedColumns="True"
|
||||
Focusable="False"
|
||||
GroupSummaryDisplayMode="AlignByColumns"
|
||||
IsTotalSummaryMenuEnabled="False"
|
||||
IsGroupFooterMenuEnabled="True"
|
||||
NavigationStyle="Row"
|
||||
ShowGroupPanel="False"
|
||||
ShowTotalSummary="False"
|
||||
ShowSearchPanelMode="Default"
|
||||
ShowFilterPanelMode="Never"
|
||||
ShowIndicator="False"
|
||||
ShowColumnHeaders="True"
|
||||
ShowHorizontalLines="True"
|
||||
ShowVerticalLines="False"
|
||||
ShowFocusedRectangle="True"
|
||||
ShowGridMenu="OnShowGridMenu"
|
||||
ShowGroupFooters="True"
|
||||
ShowSearchPanelResultInfo="True"
|
||||
ShowSearchPanelNavigationButtons="True"
|
||||
UseEvenRowBackground="True"
|
||||
|
||||
PreviewMouseDown="FeatureVMList_TableView_PreviewMouseDown"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource Header_Style}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImage_Style}"
|
||||
|
||||
RowStyle="{StaticResource Row_Style}"
|
||||
|
||||
Style="{StaticResource TableView_Style}"/>
|
||||
</dxg:GridControl.View>
|
||||
<dxg:GridColumn FieldName="bDO"
|
||||
AllowSorting="False"
|
||||
Header=""
|
||||
Fixed="Left"
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<CheckBox IsChecked="{Binding Path=Tag.bDOALL, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"
|
||||
IsEnabled="{Binding Path=Tag.ButtonIsEnabled, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:FeatureInPartInRawPartListV}}}"/>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.HeaderTemplate>
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<dxe:CheckEdit IsChecked="{Binding RowData.Row.bDO}"
|
||||
IsEnabled="{Binding RowData.Row.IsEnabled}"
|
||||
HorizontalAlignment="Center"/>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="GlobalState"
|
||||
Header=""
|
||||
SortFieldName="nGlobalState"
|
||||
AllowColumnFiltering="False">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Margin="5,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="12"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Background="{Binding RowData.Row.Calc_Background}"
|
||||
Height="20"
|
||||
Width="20"/>
|
||||
<Grid Grid.Column="1"
|
||||
HorizontalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="⭯"
|
||||
Visibility="{Binding RowData.Row.CALC_ROT_Visibility}"
|
||||
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}"
|
||||
TextAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
FontSize="12"
|
||||
Margin="-1,-6,1,-3"
|
||||
Style="{StaticResource ForegroundCorduroy_TextBlock}"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<!--Descrizione-->
|
||||
<DataGridTextColumn x:Key="colDESC" Binding="{Binding sDesc}">
|
||||
<DataGridTextColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding DataContext.Description_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTextColumn.HeaderTemplate>
|
||||
</DataGridTextColumn>
|
||||
<!--Descrizione-->
|
||||
<DataGridTextColumn x:Key="colPRIORITY" Binding="{Binding sPriority}">
|
||||
<DataGridTextColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding DataContext.Priority_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTextColumn.HeaderTemplate>
|
||||
</DataGridTextColumn>
|
||||
<!--STR - Strategia-->
|
||||
<DataGridTemplateColumn x:Key="colSTRATEGY">
|
||||
<DataGridTemplateColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="Strategia"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.HeaderTemplate>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button ToolTip="{Binding Strategy_ToolTip}"
|
||||
Command="{Binding Strategy_Command}"
|
||||
Style="{StaticResource FeatureInPartInRawPartList_Button}">
|
||||
<Image Source="{StaticResource Verify_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
</DataGrid.Resources>
|
||||
</EgwWPFBaseLib:EgwDataGrid>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="sDesc"
|
||||
AllowSorting="False"
|
||||
Header="{Binding Description_Msg}"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sPriority"
|
||||
Header="{Binding Priority_Msg}"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="Strategy"
|
||||
AllowSorting="False"
|
||||
Header=""
|
||||
Image="{StaticResource HeaderEdit_Image}"
|
||||
Fixed="Right"
|
||||
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}"
|
||||
Height="20"
|
||||
Width="20"
|
||||
Stretch="Uniform"/>
|
||||
</Button>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
</dxg:GridControl>
|
||||
|
||||
</UserControl>
|
||||
|
||||
@@ -1,25 +1,127 @@
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports System.IO
|
||||
Imports DevExpress.Xpf.Bars
|
||||
Imports DevExpress.Xpf.Core.Serialization
|
||||
Imports DevExpress.Xpf.Grid
|
||||
Imports EgtBEAMWALL.Core
|
||||
|
||||
Public Class FeatureInPartInRawPartListV
|
||||
|
||||
' funzione che impedisce di editare le righe che sono gia' in produzione
|
||||
Private Sub FeatureInPartInRawPartList_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs)
|
||||
If IsNothing(e.Row) Then Return
|
||||
Dim RowVM As BTLFeatureVM = DirectCast(e.Row.DataContext, BTLFeatureVM)
|
||||
' se in produzione impedisco modifica dei parametri
|
||||
If DirectCast(RowVM.BTLFeatureM.ParentPart, PartM).nProductionState > ItemState.ND Then
|
||||
'For Each cell In Row.Item
|
||||
e.Cancel = True
|
||||
Private m_FeatureInPartInRawPartListVM As FeatureInPartInRawPartListVM
|
||||
Private m_sDataGridLayoutPath As String = ""
|
||||
|
||||
Sub New()
|
||||
|
||||
' This call is required by the designer.
|
||||
InitializeComponent()
|
||||
|
||||
' Add any initialization after the InitializeComponent() call.
|
||||
m_sDataGridLayoutPath = Path.GetDirectoryName(DataGridColumnsIniFile.m_sDataGridColumnsIniFile) & "\DataGridLayoutFile\FeatureInPartInRawPart.json"
|
||||
|
||||
For Each Column In FeatureVMList_GridControl.Columns
|
||||
Column.[AddHandler](DXSerializer.AllowPropertyEvent,
|
||||
New AllowPropertyEventHandler(AddressOf OnAllowProperty))
|
||||
Next
|
||||
|
||||
FeatureVMList_GridControl.Columns("sPriority").Visible = False
|
||||
|
||||
DXSerializer.AddAllowPropertyHandler(FeatureVMList_GridControl, AddressOf OnAddAllowProperty)
|
||||
End Sub
|
||||
|
||||
' imposto parametri da aggiungere o togliere in Json tabella per i parametri di colonna
|
||||
Private Sub OnAllowProperty(sender As Object, e As AllowPropertyEventArgs)
|
||||
If e.DependencyProperty Is GridColumn.AllowResizingProperty Then
|
||||
e.Allow = True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub FeatureList_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
If TypeOf sender Is DataGridRow Then
|
||||
Dim Row As DataGridRow = DirectCast(sender, DataGridRow)
|
||||
If Not IsNothing(Row) AndAlso Not IsNothing(Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart) Then
|
||||
Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM = Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.SelPart.SelFeatureVM
|
||||
' imposto parametri da aggiungere o togliere in Json tabella per i parametri generali
|
||||
Private Sub OnAddAllowProperty(sender As Object, e As AllowPropertyEventArgs)
|
||||
If e.Property.Name = "FilterString" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "MRUFilters" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "MRUFilterList" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "GroupSummarySortInfo" Then
|
||||
e.Allow = False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' salvataggio del layout colonne
|
||||
Public Sub SaveFeatureInPartInRawPartGridControlLayout()
|
||||
FeatureVMList_GridControl.SaveLayoutToJson(m_sDataGridLayoutPath)
|
||||
End Sub
|
||||
|
||||
Public Sub Me_Loaded() Handles Me.Loaded
|
||||
' imposto DataContext
|
||||
m_FeatureInPartInRawPartListVM = Me.DataContext
|
||||
' imposto riferimento ad action per salvataggio layout tabella
|
||||
m_FeatureInPartInRawPartListVM.refSaveFeatureInPartInRawPartGridControlLayout = AddressOf SaveFeatureInPartInRawPartGridControlLayout
|
||||
' rispristino layout tabella
|
||||
If Not IsNothing(m_sDataGridLayoutPath) AndAlso File.Exists(m_sDataGridLayoutPath) Then
|
||||
FeatureVMList_GridControl.RestoreLayoutFromJson(m_sDataGridLayoutPath)
|
||||
End If
|
||||
' da gestire chiamandolo quando viene aperto un progetto o aggiunto/rimosso un btl, per evitare che ci sia il GroupSummary se c'e' un solo gruppo
|
||||
FeatureVMList_TableView.ShowGroupFooters = False
|
||||
End Sub
|
||||
|
||||
Private Sub OnShowGridMenu(sender As Object, e As DevExpress.Xpf.Grid.GridMenuEventArgs)
|
||||
If e.MenuType = GridMenuType.Column Then
|
||||
' 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})
|
||||
|
||||
Dim info As GridColumnMenuInfo = CType(e.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
' aggiunta separatore
|
||||
Dim separator As BarItemLinkSeparator = New BarItemLinkSeparator()
|
||||
e.Customizations.Add(separator)
|
||||
' aggiunta bottone AllowResize e Auto Fit
|
||||
Dim AllowResize As BarCheckItem = New BarCheckItem() With {.Content = "Allow Resize", .IsChecked = (FeatureVMList_TableView.AllowResizing AndAlso (item.AllowResizing = DevExpress.Utils.DefaultBoolean.True OrElse item.AllowResizing = DevExpress.Utils.DefaultBoolean.Default))}
|
||||
AddHandler AllowResize.CheckedChanged, AddressOf AllowResize_CheckedChanged
|
||||
e.Customizations.Add(AllowResize)
|
||||
If item.AllowResizing = DevExpress.Utils.DefaultBoolean.True OrElse item.AllowResizing = DevExpress.Utils.DefaultBoolean.Default Then
|
||||
Dim FixAuto As BarButtonItem = New BarCheckItem() With {.Content = "Auto Fit"}
|
||||
AddHandler FixAuto.ItemClick, AddressOf FixAuto_ItemClick
|
||||
e.Customizations.Add(FixAuto)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' gestore evento Allow Resize
|
||||
Private Sub AllowResize_CheckedChanged(sender As Object, e As ItemClickEventArgs)
|
||||
Dim info As GridColumnMenuInfo = TryCast(FeatureVMList_TableView.GridMenu.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
If item.AllowResizing = DevExpress.Utils.DefaultBoolean.False Then
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.True
|
||||
Else
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' gestore evento Auto Fit
|
||||
Private Sub FixAuto_ItemClick(sender As Object, e As ItemClickEventArgs)
|
||||
Dim info As GridColumnMenuInfo = TryCast(FeatureVMList_TableView.GridMenu.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
item.Width = New GridColumnWidth(1, GridColumnUnitType.Auto)
|
||||
FeatureVMList_TableView.UpdateLayout()
|
||||
item.Width = item.ActualWidth
|
||||
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
|
||||
|
||||
@@ -8,6 +8,8 @@ Public Class FeatureInPartInRawPartListVM
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
Public refSaveFeatureInPartInRawPartGridControlLayout As Action
|
||||
|
||||
Private m_colFeatureInPartInRawPart_Do As EgwWPFBaseLib.ColumnLayout
|
||||
Public ReadOnly Property colFeatureInPartInRawPart_Do As EgwWPFBaseLib.ColumnLayout
|
||||
Get
|
||||
@@ -78,6 +80,12 @@ Public Class FeatureInPartInRawPartListVM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Friend Sub Close()
|
||||
If Not IsNothing(refSaveFeatureInPartInRawPartGridControlLayout) Then
|
||||
refSaveFeatureInPartInRawPartGridControlLayout()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' Methods
|
||||
|
||||
End Class
|
||||
|
||||
@@ -2,9 +2,22 @@
|
||||
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:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib">
|
||||
xmlns:EgwWPFBaseLib="clr-namespace:EgwWPFBaseLib;assembly=EgwWPFBaseLib"
|
||||
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
||||
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
||||
xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys"
|
||||
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
||||
xmlns:dxeh="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
|
||||
xmlns:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
|
||||
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">
|
||||
|
||||
<Grid Margin="5">
|
||||
<Grid.Resources>
|
||||
<OPTIMIZER:TrimmedTextBlockVisibilityConverter x:Key="TrimToVisConverter" />
|
||||
</Grid.Resources>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -13,137 +26,122 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<EgwWPFBaseLib:EgwDataGrid CanUserDeleteRows="False"
|
||||
SelectionMode="Single"
|
||||
Margin="0,0,0,5"
|
||||
ItemsSource="{Binding Tag.PBTLParamVMList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PParameterListV}}}"
|
||||
SelectedItem="{Binding Tag.SelPBTLParam, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PParameterListV}}}"
|
||||
IsEnabled="{Binding PParameterList_IsEnabled}"
|
||||
ColumnLayouts="{Binding PParameterListColumns}"
|
||||
AlternatingRowBackground="{StaticResource BeamWall_LinkWater}"
|
||||
AlternationCount="2"
|
||||
ColumnHeaderStyle="{StaticResource PParam_DataGridColumnHeader}"
|
||||
CellStyle="{StaticResource CellDataGrid_CustomHighLight}"
|
||||
Style="{StaticResource Optimizer_DataGrid}">
|
||||
<DataGrid.RowStyle>
|
||||
<Style TargetType="DataGridRow" BasedOn="{StaticResource RowDataGrid_CustomHighLight}">
|
||||
<EventSetter Event="PreviewMouseDown" Handler="PParameterList_PreviewMouseDown"/>
|
||||
</Style>
|
||||
</DataGrid.RowStyle>
|
||||
|
||||
<DataGrid.Resources>
|
||||
<OPTIMIZER:TrimmedTextBlockVisibilityConverter x:Key="TrimToVisConverter" />
|
||||
<!--Custom-->
|
||||
<DataGridTemplateColumn x:Key="colCUSTOM">
|
||||
<DataGridTemplateColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding DataContext.Custom_Msg, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.HeaderTemplate>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<CheckBox IsChecked="{Binding bCustom, UpdateSourceTrigger=PropertyChanged}"
|
||||
Visibility="{Binding Tag, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"
|
||||
Style="{StaticResource PParameters_CheckBox}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<!--Nome-->
|
||||
<DataGridTextColumn x:Key="colNAME" Binding="{Binding sName}">
|
||||
<DataGridTextColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Path=DataContext.NAM_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTextColumn.HeaderTemplate>
|
||||
</DataGridTextColumn>
|
||||
<!--Descrizione-->
|
||||
<DataGridTextColumn x:Key="colDESC" Binding="{Binding sDescription}">
|
||||
<DataGridTextColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Path=DataContext.Description_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTextColumn.HeaderTemplate>
|
||||
<DataGridTextColumn.CellStyle>
|
||||
<Style TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource CellDataGrid_CustomHighLight}">
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
||||
<TextBlock Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.Text}"
|
||||
Style="{StaticResource Prod_TextBlock}">
|
||||
<TextBlock.ToolTip>
|
||||
<ToolTip Style="{StaticResource PParameters_ToolTip}">
|
||||
<ToolTip.Content>
|
||||
<TextBlock Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.Text}"
|
||||
Style="{StaticResource Prod_TextBlock}"/>
|
||||
</ToolTip.Content>
|
||||
</ToolTip>
|
||||
</TextBlock.ToolTip>
|
||||
</TextBlock>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</DataGridTextColumn.CellStyle>
|
||||
<DataGridTextColumn.EditingElementStyle>
|
||||
<Style TargetType="{x:Type TextBox}">
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter Property="Foreground" Value="{StaticResource BeamWall_White}" />
|
||||
<Setter Property="Background" Value="{StaticResource BeamWall_FountainBlue}" />
|
||||
</Style>
|
||||
</DataGridTextColumn.EditingElementStyle>
|
||||
</DataGridTextColumn>
|
||||
<!--Valore-->
|
||||
<DataGridTextColumn x:Key="colVALUE" Binding="{Binding sValue}" SortMemberPath="dValue">
|
||||
<DataGridTextColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Path=DataContext.Value_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTextColumn.HeaderTemplate>
|
||||
<DataGridTextColumn.EditingElementStyle>
|
||||
<Style TargetType="{x:Type TextBox}">
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter Property="Foreground" Value="{StaticResource BeamWall_White}" />
|
||||
<Setter Property="Background" Value="{StaticResource BeamWall_FountainBlue}" />
|
||||
</Style>
|
||||
</DataGridTextColumn.EditingElementStyle>
|
||||
</DataGridTextColumn>
|
||||
<!--Minimo-->
|
||||
<DataGridTextColumn x:Key="colMIN" Binding="{Binding sMin, Mode=OneWay}" SortMemberPath="dMin">
|
||||
<DataGridTextColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Path=DataContext.Min_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTextColumn.HeaderTemplate>
|
||||
</DataGridTextColumn>
|
||||
<!--Massimo-->
|
||||
<DataGridTextColumn x:Key="colMAX" Binding="{Binding sMax, Mode=OneWay}" SortMemberPath="dMax">
|
||||
<DataGridTextColumn.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Path=DataContext.Max_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTextColumn.HeaderTemplate>
|
||||
</DataGridTextColumn>
|
||||
</DataGrid.Resources>
|
||||
</EgwWPFBaseLib:EgwDataGrid>
|
||||
<dxg:GridControl x:Name="PParameterList_GridControl"
|
||||
ItemsSource="{Binding Tag.PBTLParamVMList,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PParameterListV}}}"
|
||||
SelectedItem="{Binding Tag.SelPBTLParam,
|
||||
RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:PParameterListV}}}"
|
||||
SelectionMode="Row">
|
||||
<dxg:GridControl.View>
|
||||
<dxg:TableView x:Name="PParameterList_TableView"
|
||||
AllowPerPixelScrolling="True"
|
||||
AllowEditing="True"
|
||||
AllowSorting="True"
|
||||
AllowGrouping="True"
|
||||
AllowColumnFiltering="True"
|
||||
AllowFilterEditor="False"
|
||||
AllowFilterPanelNavigation="False"
|
||||
ExtendScrollBarToFixedColumns="True"
|
||||
Focusable="True"
|
||||
GroupSummaryDisplayMode="AlignByColumns"
|
||||
IsTotalSummaryMenuEnabled="False"
|
||||
IsGroupFooterMenuEnabled="True"
|
||||
NavigationStyle="Cell"
|
||||
ShowGroupPanel="False"
|
||||
ShowTotalSummary="False"
|
||||
ShowSearchPanelMode="Default"
|
||||
ShowFilterPanelMode="Never"
|
||||
ShowIndicator="False"
|
||||
ShowColumnHeaders="True"
|
||||
ShowHorizontalLines="True"
|
||||
ShowVerticalLines="False"
|
||||
ShowFocusedRectangle="True"
|
||||
ShowGroupFooters="True"
|
||||
ShowSearchPanelResultInfo="True"
|
||||
ShowSearchPanelNavigationButtons="True"
|
||||
UseEvenRowBackground="True"
|
||||
|
||||
ShowGridMenu="OnShowGridMenu"
|
||||
|
||||
PreviewMouseDown="PParameterList_TableView_PreviewMouseDown"
|
||||
|
||||
ColumnHeaderStyle="{StaticResource Header_Style}"
|
||||
ColumnHeaderImageStyle="{StaticResource HeaderImage_Style}"
|
||||
|
||||
RowStyle="{StaticResource Row_Style}"
|
||||
CellStyle="{StaticResource Cell_Style}"
|
||||
|
||||
Style="{StaticResource TableView_Style}"/>
|
||||
</dxg:GridControl.View>
|
||||
<dxg:GridColumn FieldName="bCustom"
|
||||
Header="{Binding Custom_Msg}"
|
||||
Fixed="Left"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<dxe:CheckEdit IsChecked="{Binding RowData.Row.bCustom}"
|
||||
HorizontalAlignment="Center"/>
|
||||
</DataTemplate>
|
||||
</dxg:GridColumn.CellTemplate>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="sName"
|
||||
Header="{Binding NAM_Msg}"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sDescription"
|
||||
Header="{Binding Description_Msg}"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sValue"
|
||||
SortFieldName="dValue"
|
||||
Header="{Binding Value_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
Style="{StaticResource ColumnInfo_Style}">
|
||||
<dxg:GridColumn.EditSettings>
|
||||
<dxe:TextEditSettings HorizontalContentAlignment="Center"/>
|
||||
</dxg:GridColumn.EditSettings>
|
||||
</dxg:GridColumn>
|
||||
<dxg:GridColumn FieldName="sMin"
|
||||
SortFieldName="dMin"
|
||||
Header="{Binding Min_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
Style="{StaticResource ColumnInfo_Style}"/>
|
||||
<dxg:GridColumn FieldName="sMax"
|
||||
SortFieldName="dMaxn"
|
||||
Header="{Binding Max_Msg}"
|
||||
AllowColumnFiltering="False"
|
||||
AllowEditing="False"
|
||||
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>
|
||||
|
||||
@@ -1,12 +1,126 @@
|
||||
Public Class PParameterListV
|
||||
Imports System.IO
|
||||
Imports DevExpress.Xpf.Bars
|
||||
Imports DevExpress.Xpf.Core.Serialization
|
||||
Imports DevExpress.Xpf.Grid
|
||||
Imports EgtBEAMWALL.Core
|
||||
|
||||
Private Sub PParameterList_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
If TypeOf sender Is DataGridRow Then
|
||||
Dim Row As DataGridRow = DirectCast(sender, DataGridRow)
|
||||
If Not IsNothing(Row) AndAlso Row.IsSelected AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) AndAlso Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM) Then
|
||||
Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SelPBTLParam = Map.refProjectVM.BTLStructureVM.SelBTLPart.SelBTLFeatureVM.SelPBTLParam
|
||||
Public Class PParameterListV
|
||||
|
||||
Private m_PParameterListVM As PParameterListVM
|
||||
Private m_sDataGridLayoutPath As String = ""
|
||||
|
||||
Sub New()
|
||||
|
||||
' This call is required by the designer.
|
||||
InitializeComponent()
|
||||
|
||||
' Add any initialization after the InitializeComponent() call.
|
||||
m_sDataGridLayoutPath = Path.GetDirectoryName(DataGridColumnsIniFile.m_sDataGridColumnsIniFile) & "\DataGridLayoutFile\PParameters.json"
|
||||
|
||||
For Each Column In PParameterList_GridControl.Columns
|
||||
Column.[AddHandler](DXSerializer.AllowPropertyEvent,
|
||||
New AllowPropertyEventHandler(AddressOf OnAllowProperty))
|
||||
Next
|
||||
|
||||
PParameterList_GridControl.Columns("bCustom").Visible = False
|
||||
|
||||
DXSerializer.AddAllowPropertyHandler(PParameterList_GridControl, AddressOf OnAddAllowProperty)
|
||||
End Sub
|
||||
|
||||
' imposto parametri da aggiungere o togliere in Json tabella per i parametri di colonna
|
||||
Private Sub OnAllowProperty(sender As Object, e As AllowPropertyEventArgs)
|
||||
If e.DependencyProperty Is GridColumn.AllowResizingProperty Then
|
||||
e.Allow = True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' imposto parametri da aggiungere o togliere in Json tabella per i parametri generali
|
||||
Private Sub OnAddAllowProperty(sender As Object, e As AllowPropertyEventArgs)
|
||||
If e.Property.Name = "FilterString" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "MRUFilters" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "MRUFilterList" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "GroupSummarySortInfo" Then
|
||||
e.Allow = False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' salvataggio del layout colonne
|
||||
Public Sub SavePParameterGridControlLayout()
|
||||
PParameterList_GridControl.SaveLayoutToJson(m_sDataGridLayoutPath)
|
||||
End Sub
|
||||
|
||||
Public Sub Me_Loaded() Handles Me.Loaded
|
||||
' imposto DataContext
|
||||
m_PParameterListVM = Me.DataContext
|
||||
' imposto riferimento ad action per salvataggio layout tabella
|
||||
m_PParameterListVM.refPParameterListGridControlLayout = AddressOf SavePParameterGridControlLayout
|
||||
' rispristino layout tabella
|
||||
If Not IsNothing(m_sDataGridLayoutPath) AndAlso File.Exists(m_sDataGridLayoutPath) Then
|
||||
PParameterList_GridControl.RestoreLayoutFromJson(m_sDataGridLayoutPath)
|
||||
End If
|
||||
' da gestire chiamandolo quando viene aperto un progetto o aggiunto/rimosso un btl, per evitare che ci sia il GroupSummary se c'e' un solo gruppo
|
||||
End Sub
|
||||
|
||||
Private Sub OnShowGridMenu(sender As Object, e As DevExpress.Xpf.Grid.GridMenuEventArgs)
|
||||
If e.MenuType = GridMenuType.Column Then
|
||||
' 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})
|
||||
|
||||
Dim info As GridColumnMenuInfo = CType(e.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
' aggiunta separatore
|
||||
Dim separator As BarItemLinkSeparator = New BarItemLinkSeparator()
|
||||
e.Customizations.Add(separator)
|
||||
' aggiunta bottone AllowResize e Auto Fit
|
||||
Dim AllowResize As BarCheckItem = New BarCheckItem() With {.Content = "Allow Resize", .IsChecked = (PParameterList_TableView.AllowResizing AndAlso (item.AllowResizing = DevExpress.Utils.DefaultBoolean.True OrElse item.AllowResizing = DevExpress.Utils.DefaultBoolean.Default))}
|
||||
AddHandler AllowResize.CheckedChanged, AddressOf AllowResize_CheckedChanged
|
||||
e.Customizations.Add(AllowResize)
|
||||
If item.AllowResizing = DevExpress.Utils.DefaultBoolean.True OrElse item.AllowResizing = DevExpress.Utils.DefaultBoolean.Default Then
|
||||
Dim FixAuto As BarButtonItem = New BarCheckItem() With {.Content = "Auto Fit"}
|
||||
AddHandler FixAuto.ItemClick, AddressOf FixAuto_ItemClick
|
||||
e.Customizations.Add(FixAuto)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' gestore evento Allow Resize
|
||||
Private Sub AllowResize_CheckedChanged(sender As Object, e As ItemClickEventArgs)
|
||||
Dim info As GridColumnMenuInfo = TryCast(PParameterList_TableView.GridMenu.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
If item.AllowResizing = DevExpress.Utils.DefaultBoolean.False Then
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.True
|
||||
Else
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' gestore evento Auto Fit
|
||||
Private Sub FixAuto_ItemClick(sender As Object, e As ItemClickEventArgs)
|
||||
Dim info As GridColumnMenuInfo = TryCast(PParameterList_TableView.GridMenu.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
item.Width = New GridColumnWidth(1, GridColumnUnitType.Auto)
|
||||
PParameterList_TableView.UpdateLayout()
|
||||
item.Width = item.ActualWidth
|
||||
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
|
||||
|
||||
@@ -8,6 +8,8 @@ Public Class PParameterListVM
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
Public refPParameterListGridControlLayout As Action
|
||||
|
||||
Private m_colPParam_Value As EgwWPFBaseLib.ColumnLayout
|
||||
Public ReadOnly Property colPParam_Value As EgwWPFBaseLib.ColumnLayout
|
||||
Get
|
||||
@@ -125,6 +127,12 @@ Public Class PParameterListVM
|
||||
NotifyPropertyChanged(NameOf(PParameterList_IsEnabled))
|
||||
End Sub
|
||||
|
||||
Friend Sub Close()
|
||||
If Not IsNothing(refPParameterListGridControlLayout) Then
|
||||
refPParameterListGridControlLayout()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' Methods
|
||||
|
||||
#Region "COMMANDS"
|
||||
@@ -143,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()
|
||||
@@ -159,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
|
||||
@@ -182,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>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,84 +1,245 @@
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports EgtUILib.EgtInterface
|
||||
Imports System.IO
|
||||
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
|
||||
|
||||
Public Class RawPartListV
|
||||
|
||||
' funzione che permette di selezionare un RawPart anche quando gia' selezionato
|
||||
Private Sub RawPartRow_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
If Not IsNothing(Map.refProjectVM.BTLStructureVM.SelBTLPart) Then Map.refProjectVM.BTLStructureVM.SelBTLPart.SetOpenFeatureList(False)
|
||||
If TypeOf sender Is DataGridRow Then
|
||||
Dim Row As DataGridRow = DirectCast(sender, DataGridRow)
|
||||
Dim RowVM As MyMachGroupVM = DirectCast(Row.DataContext, MyMachGroupVM)
|
||||
Dim DataGridDetailsPresenter As Object = TreeHelperManager.FindVisualParents(Of Button, CheckBox, Primitives.DataGridDetailsPresenter)(e.OriginalSource)
|
||||
If Not IsNothing(DataGridDetailsPresenter) Then Return
|
||||
' se gia' selezionato rifaccio selezione perche' potrebbe essere selezionato un BTLPart
|
||||
If Not IsNothing(Row) AndAlso Row.IsSelected Then
|
||||
Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup = Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup
|
||||
Private m_RawPartListVM As RawPartListVM
|
||||
|
||||
Private m_sDataGridLayoutPath As String = ""
|
||||
|
||||
Private _lastExpanded As Integer = -1
|
||||
|
||||
Sub New()
|
||||
|
||||
' This call is required by the designer.
|
||||
InitializeComponent()
|
||||
|
||||
' Add any initialization after the InitializeComponent() call.
|
||||
m_sDataGridLayoutPath = Path.GetDirectoryName(DataGridColumnsIniFile.m_sDataGridColumnsIniFile) & "\DataGridLayoutFile\RawPart.json"
|
||||
|
||||
For Each Column In RawPart_GridControl.Columns
|
||||
Column.[AddHandler](DXSerializer.AllowPropertyEvent,
|
||||
New AllowPropertyEventHandler(AddressOf OnAllowProperty))
|
||||
Next
|
||||
For Each Column In Part_GridControl.Columns
|
||||
Column.[AddHandler](DXSerializer.AllowPropertyEvent,
|
||||
New AllowPropertyEventHandler(AddressOf OnAllowProperty))
|
||||
Next
|
||||
DXSerializer.AddAllowPropertyHandler(RawPart_GridControl, AddressOf OnAddAllowProperty)
|
||||
DXSerializer.AddAllowPropertyHandler(Part_GridControl, AddressOf OnAddAllowProperty)
|
||||
|
||||
RawPart_GridControl.Columns("sPosZ").Visible = False
|
||||
End Sub
|
||||
|
||||
' imposto parametri da aggiungere o togliere in Json tabella per i parametri di colonna
|
||||
Private Sub OnAllowProperty(sender As Object, e As AllowPropertyEventArgs)
|
||||
If e.DependencyProperty Is GridColumn.AllowResizingProperty Then
|
||||
e.Allow = True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' imposto parametri da aggiungere o togliere in Json tabella per i parametri generali
|
||||
Private Sub OnAddAllowProperty(sender As Object, e As AllowPropertyEventArgs)
|
||||
If e.Property.Name = "FilterString" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "MRUFilters" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "MRUFilterList" Then
|
||||
e.Allow = False
|
||||
ElseIf e.Property.Name = "GroupSummarySortInfo" Then
|
||||
e.Allow = False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' salvataggio del layout colonne
|
||||
Public Sub SaveBTLPartGridControlLayout()
|
||||
RawPart_GridControl.SaveLayoutToJson(m_sDataGridLayoutPath)
|
||||
End Sub
|
||||
|
||||
Public Sub Me_Loaded() Handles Me.Loaded
|
||||
' imposto DataContext
|
||||
m_RawPartListVM = DataContext
|
||||
' imposto riferimento ad action per salvataggio layout tabella
|
||||
m_RawPartListVM.refSaveBTLPartGridControlLayout = AddressOf SaveBTLPartGridControlLayout
|
||||
' rispristino layout tabella
|
||||
If Not IsNothing(m_sDataGridLayoutPath) AndAlso File.Exists(m_sDataGridLayoutPath) Then
|
||||
RawPart_GridControl.RestoreLayoutFromJson(m_sDataGridLayoutPath)
|
||||
End If
|
||||
' da gestire chiamandolo quando viene aperto un progetto o aggiunto/rimosso un btl, per evitare che ci sia il GroupSummary se c'e' un solo gruppo
|
||||
IsVisibleGroupSummary(False)
|
||||
End Sub
|
||||
|
||||
Public Sub IsVisibleGroupSummary(bValue As Boolean)
|
||||
If bValue AndAlso RawPart_GridControl.GroupSummary.Count = 0 Then
|
||||
RawPart_GridControl.GroupSummary.Clear()
|
||||
Dim PDNGroupSummaryItem As New GridSummaryItem() With {.FieldName = "nPDN",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Count,
|
||||
.ShowInGroupColumnFooter = "nPDN"}
|
||||
RawPart_GridControl.GroupSummary.Add(PDNGroupSummaryItem)
|
||||
Dim CNTGroupSummaryItem As New GridSummaryItem() With {.FieldName = "sCNT",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Sum,
|
||||
.ShowInGroupColumnFooter = "sCNT"}
|
||||
RawPart_GridControl.GroupSummary.Add(CNTGroupSummaryItem)
|
||||
Dim ADDEDGroupSummaryItem As New GridSummaryItem() With {.FieldName = "sADDED",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Sum,
|
||||
.ShowInGroupColumnFooter = "sADDED"}
|
||||
RawPart_GridControl.GroupSummary.Add(ADDEDGroupSummaryItem)
|
||||
Dim INPRODGroupSummaryItem As New GridSummaryItem() With {.FieldName = "nINPROD",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Sum,
|
||||
.ShowInGroupColumnFooter = "nINPROD"}
|
||||
RawPart_GridControl.GroupSummary.Add(INPRODGroupSummaryItem)
|
||||
Dim DONEGroupSummaryItem As New GridSummaryItem() With {.FieldName = "nDONE",
|
||||
.DisplayFormat = "{0}",
|
||||
.SummaryType = SummaryItemType.Sum,
|
||||
.ShowInGroupColumnFooter = "nDONE"}
|
||||
RawPart_GridControl.GroupSummary.Add(DONEGroupSummaryItem)
|
||||
End If
|
||||
RawPart_TableView.ShowGroupFooters = bValue
|
||||
End Sub
|
||||
|
||||
' customizzazione ContextMenu del GridControl
|
||||
Private Sub OnShowGridMenu(sender As Object, e As DevExpress.Xpf.Grid.GridMenuEventArgs)
|
||||
If e.MenuType = GridMenuType.Column Then
|
||||
' 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 = DefaultColumnMenuItemNames.BestFit})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNames.BestFitColumns})
|
||||
e.Customizations.Add(New RemoveAction() With {.ElementName = DefaultColumnMenuItemNamesBase.FilterEditor})
|
||||
|
||||
Dim info As GridColumnMenuInfo = CType(e.MenuInfo, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
' aggiunta separatore
|
||||
Dim separator As BarItemLinkSeparator = New BarItemLinkSeparator()
|
||||
e.Customizations.Add(separator)
|
||||
' aggiunta bottone AllowResize e Auto Fit
|
||||
Dim AllowResize As BarCheckItem = New BarCheckItem() With {.Content = "Allow Resize", .IsChecked = (RawPart_TableView.AllowResizing AndAlso (item.AllowResizing = DevExpress.Utils.DefaultBoolean.True OrElse item.AllowResizing = DevExpress.Utils.DefaultBoolean.Default))}
|
||||
AddHandler AllowResize.CheckedChanged, AddressOf AllowResize_CheckedChanged
|
||||
e.Customizations.Add(AllowResize)
|
||||
If item.AllowResizing = DevExpress.Utils.DefaultBoolean.True OrElse item.AllowResizing = DevExpress.Utils.DefaultBoolean.Default Then
|
||||
Dim FixAuto As BarButtonItem = New BarCheckItem() With {.Content = "Auto Fit"}
|
||||
AddHandler FixAuto.ItemClick, AddressOf FixAuto_ItemClick
|
||||
e.Customizations.Add(FixAuto)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' funzione che impedisce di editare le righe che sono gia' in produzione
|
||||
Private Sub RawPartList_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs)
|
||||
If IsNothing(e.Row) Then Return
|
||||
Dim RowVM As MyMachGroupVM = DirectCast(e.Row.DataContext, MyMachGroupVM)
|
||||
' se in produzione impedisco modifica dei parametri
|
||||
If RowVM.nProduction_State > ItemState.ND Then
|
||||
'For Each cell In Row.Item
|
||||
e.Cancel = True
|
||||
' gestore evento Allow Resize
|
||||
Private Sub AllowResize_CheckedChanged(sender As Object, e As ItemClickEventArgs)
|
||||
Dim info As GridColumnMenuInfo = TryCast(e.Link.DataContext, GridColumnMenuInfo)
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
If item.AllowResizing = DevExpress.Utils.DefaultBoolean.False Then
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.True
|
||||
Else
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
|
||||
Dim btn As Button = DirectCast(sender, Button) ' Ottieni il bottone che ha generato l'evento
|
||||
Dim parent As DependencyObject = btn
|
||||
' gestore evento Auto Fit
|
||||
Private Sub FixAuto_ItemClick(sender As Object, e As ItemClickEventArgs)
|
||||
Dim info As GridColumnMenuInfo = TryCast(e.Link.DataContext, GridColumnMenuInfo)
|
||||
If IsNothing(info) Then Return
|
||||
Dim item As ColumnBase = CType(info.Column, ColumnBase)
|
||||
item.Width = New GridColumnWidth(1, GridColumnUnitType.Auto)
|
||||
RawPart_TableView.UpdateLayout()
|
||||
item.Width = item.ActualWidth
|
||||
item.AllowResizing = DevExpress.Utils.DefaultBoolean.False
|
||||
End Sub
|
||||
|
||||
' Cerca il Popup nel Visual Tree
|
||||
While Not IsNothing(parent) AndAlso TypeOf parent IsNot DataGridRow
|
||||
parent = VisualTreeHelper.GetParent(parent)
|
||||
End While
|
||||
Private Sub GridControl_MasterRowExpanding(sender As Object, e As DevExpress.Xpf.Grid.RowAllowEventArgs)
|
||||
Dim grid = CType(sender, DevExpress.Xpf.Grid.GridControl)
|
||||
|
||||
If parent IsNot Nothing Then
|
||||
Dim popup As New RawPartListPopUpV()
|
||||
If Not IsNothing(popup) Then
|
||||
popup.PlacementTarget = btn ' Associa il popup al bottone
|
||||
popup.IsOpen = True ' Mostra il popup
|
||||
' Chiudi solo il precedente
|
||||
If _lastExpanded <> -1 AndAlso _lastExpanded <> e.RowHandle Then
|
||||
grid.SetMasterRowExpanded(_lastExpanded, False)
|
||||
End If
|
||||
|
||||
_lastExpanded = e.RowHandle
|
||||
End Sub
|
||||
|
||||
Private Sub RawPart_GridControl_MasterRowExpanded(sender As Object, e As RowEventArgs)
|
||||
Dim masterGrid As GridControl = TryCast(sender, GridControl)
|
||||
|
||||
If masterGrid IsNot Nothing Then
|
||||
Dim detailGrid As GridControl = TryCast(masterGrid.GetDetail(e.RowHandle, masterGrid.DetailDescriptor), GridControl)
|
||||
|
||||
If Not IsNothing(detailGrid) Then
|
||||
If Not IsNothing(detailGrid) Then
|
||||
Dim colPosX As GridColumn = detailGrid.Columns("sPOSX")
|
||||
If Not IsNothing(colPosX) Then colPosX.Visible = False
|
||||
|
||||
Dim colPosY As GridColumn = detailGrid.Columns("sPOSY")
|
||||
If Not IsNothing(colPosY) Then colPosY.Visible = False
|
||||
|
||||
Dim colMat As GridColumn = detailGrid.Columns("sMATERIAL")
|
||||
If Not IsNothing(colMat) Then colMat.Visible = False
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' funzione che permette di selezionare un pezzo anche quando gia' selezionato
|
||||
Private Sub PartInRawPartRow_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs)
|
||||
If TypeOf sender Is DataGridRow Then
|
||||
Dim Row As DataGridRow = DirectCast(sender, DataGridRow)
|
||||
If Not IsNothing(Row) Then
|
||||
Dim MyMachGroup As Core.MyMachGroupVM = Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup
|
||||
If EgtGetCurrMachGroup() = GDB_ID.NULL Then Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup = MyMachGroup
|
||||
MyMachGroup.SelPart = MyMachGroup.SelPart
|
||||
Private Sub RawPart_TableView_PreviewKeyDown(sender As Object, e As KeyEventArgs)
|
||||
If e.Key = Key.Delete Then
|
||||
Dim MyMachGroupPanelVM As MyMachGroupPanelVM = TryCast(Me.Tag, MyMachGroupPanelVM)
|
||||
If IsNothing(MyMachGroupPanelVM) Then Return
|
||||
|
||||
Dim SelectedMachGroup As MyMachGroupVM = MyMachGroupPanelVM.SelectedMachGroup
|
||||
Dim SelPart As PartVM = SelectedMachGroup?.SelPart
|
||||
|
||||
If MyMachGroupPanelVM.bSelOnPart AndAlso Not IsNothing(SelPart) Then
|
||||
SelPart.RemovePart()
|
||||
e.Handled = True
|
||||
Return
|
||||
End If
|
||||
|
||||
SelectedMachGroup.RemoveRawPartCmd()
|
||||
e.Handled = True
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' funzione che impedisce di editare le righe che sono gia' in produzione
|
||||
Private Sub PartInRawPartList_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs)
|
||||
If IsNothing(e.Row) Then Return
|
||||
Dim RowVM As PartVM = DirectCast(e.Row.DataContext, PartVM)
|
||||
' se in produzione impedisco modifica dei parametri
|
||||
If RowVM.nProduction_State > ItemState.ND Then
|
||||
'For Each cell In Row.Item
|
||||
e.Cancel = True
|
||||
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 EgwDataGrid_PreviewMouseWheel(sender As Object, e As MouseWheelEventArgs)
|
||||
e.Handled = True
|
||||
Dim parent As EgwWPFBaseLib.EgwDataGrid = TryCast(sender, EgwWPFBaseLib.EgwDataGrid)
|
||||
If IsNothing(parent) Then
|
||||
Return
|
||||
End If
|
||||
parent?.[RaiseEvent](New MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta) With {
|
||||
.RoutedEvent = MouseWheelEvent,
|
||||
.Source = sender})
|
||||
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
|
||||
|
||||
@@ -8,6 +8,8 @@ Public Class RawPartListVM
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
Friend refSaveBTLPartGridControlLayout As Action
|
||||
|
||||
Private m_colRawPart_StartCut As EgwWPFBaseLib.ColumnLayout
|
||||
Public ReadOnly Property colRawPart_StartCut As EgwWPFBaseLib.ColumnLayout
|
||||
Get
|
||||
@@ -248,6 +250,12 @@ Public Class RawPartListVM
|
||||
m_colPartInRawPart_PosY = PartInRawPartColumns.FirstOrDefault(Function(x) x.Key = COL_POSY)
|
||||
End Sub
|
||||
|
||||
Friend Sub Close()
|
||||
If Not IsNothing(refSaveBTLPartGridControlLayout) Then
|
||||
refSaveBTLPartGridControlLayout()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' Methods
|
||||
|
||||
End Class
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
||||
xmlns: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"/>
|
||||
@@ -17,134 +18,9 @@
|
||||
Grid.ColumnSpan="2"
|
||||
Style="{StaticResource Optimizer_Border}"/>
|
||||
|
||||
<Grid Style="{StaticResource Verify_Grid}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button ToolTip="{Binding VerifyAll_ToolTip}"
|
||||
Command="{Binding VerifyAll_Command}"
|
||||
IsEnabled="{Binding VerifyAll_IsEnabled}"
|
||||
Style="{StaticResource Verify_Button}">
|
||||
<Image Source="{StaticResource VerifyAll_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Button Grid.Column="1"
|
||||
ToolTip="{Binding VerifyAllFlipRot_ToolTip}"
|
||||
Command="{Binding VerifyAllFlipRot_Command}"
|
||||
IsEnabled="{Binding VerifyAll_IsEnabled}"
|
||||
Style="{StaticResource Verify_Button}">
|
||||
<Image Source="{StaticResource VerifyAllR_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Button Grid.Column="2"
|
||||
Command="{Binding ResetCalc_Command}"
|
||||
ToolTip="{Binding ResetCalc_ToolTip}"
|
||||
IsEnabled="{Binding CALCPanel_IsEnabled}"
|
||||
Style="{StaticResource Verify_Button}">
|
||||
<Image Source="{StaticResource ResetCalc_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Button Grid.Column="3"
|
||||
Name="FilterAllBtn"
|
||||
ToolTip="{Binding FilterAll_ToolTip}"
|
||||
Command="{Binding ShowPopUpFilterBtnCommand}"
|
||||
Style="{StaticResource Verify_Button}">
|
||||
<Image Source="{StaticResource AllFilter_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Popup IsOpen="{Binding IsFilterBtnOpen}"
|
||||
PlacementTarget="{Binding ElementName=FilterAllBtn}"
|
||||
Style="{StaticResource Filter_PopUp}">
|
||||
<UniformGrid Columns="5"
|
||||
Style="{StaticResource LeftPanel_UniformGrid}">
|
||||
<Expander Header="{Binding Section_Msg}">
|
||||
<ListBox ItemsSource="{Binding Tag.SectionList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
SelectedItem="{Binding Tag.SelSection, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
DisplayMemberPath="sSectionXMaterial"
|
||||
Style="{StaticResource LeftPanel_ListBox}"
|
||||
ItemContainerStyle="{StaticResource AlternationIndex_ListBoxItem}"/>
|
||||
</Expander>
|
||||
<Expander Grid.Column="1"
|
||||
Header="{Binding Group_Msg}"
|
||||
Style="{StaticResource LeftPanel_Expander}">
|
||||
<ListBox ItemsSource="{Binding Tag.GroupList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
SelectedItem="{Binding Tag.SelGroup, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
Style="{StaticResource LeftPanel_ListBox}"
|
||||
ItemContainerStyle="{StaticResource AlternationIndex_ListBoxItem}"/>
|
||||
</Expander>
|
||||
<Expander Grid.Column="2"
|
||||
Header="{Binding SubGroup_Msg}"
|
||||
Style="{StaticResource LeftPanel_Expander}">
|
||||
<ListBox ItemsSource="{Binding Tag.SubGroupList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
SelectedItem="{Binding Tag.SelSubGroup, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
Style="{StaticResource LeftPanel_ListBox}"
|
||||
ItemContainerStyle="{StaticResource AlternationIndex_ListBoxItem}"/>
|
||||
</Expander>
|
||||
<Expander Grid.Column="3"
|
||||
Header="{Binding ParType_Msg}"
|
||||
Style="{StaticResource LeftPanel_Expander}">
|
||||
<ListBox ItemsSource="{Binding Tag.SearchParamList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
SelectedItem="{Binding Tag.SelSearchParam, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
Style="{StaticResource LeftPanel_ListBox}"
|
||||
ItemContainerStyle="{StaticResource AlternationIndex_ListBoxItem}"/>
|
||||
</Expander>
|
||||
<Expander Grid.Column="4"
|
||||
Header="{Binding ParValue_Msg}"
|
||||
Style="{StaticResource LeftPanel_Expander}">
|
||||
<EgtWPFLib5:EgtTextBox Text="{Binding Tag.SearchText, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
Style="{StaticResource SearchText_TextBox}"/>
|
||||
</Expander>
|
||||
</UniformGrid>
|
||||
</Popup>
|
||||
<Expander Grid.Column="4"
|
||||
Header="{Binding Section_Msg}"
|
||||
Style="{StaticResource Section_Expander}">
|
||||
<ListBox ItemsSource="{Binding Tag.SectionList, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
SelectedItem="{Binding Tag.SelSection, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
DisplayMemberPath="sSectionXMaterial"
|
||||
Style="{StaticResource LeftPanel_ListBox}"
|
||||
ItemContainerStyle="{StaticResource AlternationIndex_ListBoxItem}"/>
|
||||
</Expander>
|
||||
<EgtWPFLib5:EgtTextBox Grid.Column="5"
|
||||
Text="{Binding Tag.SearchText, RelativeSource={RelativeSource AncestorType={x:Type OPTIMIZER:LeftPanelV}}}"
|
||||
Style="{StaticResource LeftPanel_TextBox}"/>
|
||||
<Button Grid.Column="6" Visibility="Collapsed"
|
||||
Command="{Binding RotateAll_Command}"
|
||||
ToolTip="{Binding RotateAll_ToolTip}"
|
||||
IsEnabled="{Binding RotateAll_IsEnabled}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
<Image Source="{StaticResource Rotate_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Button Grid.Column="7" Visibility="Collapsed"
|
||||
Command="{Binding InvertAll_Command}"
|
||||
ToolTip="{Binding InvertAll_ToolTip}"
|
||||
IsEnabled="{Binding RotateAll_IsEnabled}"
|
||||
Style="{StaticResource LP_Button}">
|
||||
<Image Source="{StaticResource Inversion_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
<Button Grid.Column="8" Visibility="Collapsed"
|
||||
Command="{Binding Edit_Command}"
|
||||
ToolTip="{Binding MultipleModify_ToolTip}"
|
||||
IsEnabled="{Binding RotateAll_IsEnabled}"
|
||||
Style="{StaticResource MacroFeaturen_Button}">
|
||||
<Image Source="{StaticResource Edit_Image}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
<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>
|
||||
|
||||
@@ -83,12 +83,9 @@ Public Class LeftPanelVM
|
||||
End Sub
|
||||
|
||||
' Definizione comandi
|
||||
Private m_cmdVerifyAll As ICommand
|
||||
Private m_cmdVerifyFlipRotAll As ICommand
|
||||
Private m_cmdShowPopUpFilterBtnCmd As ICommand
|
||||
Private m_cmdRotateAll As ICommand
|
||||
Private m_cmdInvertAll As ICommand
|
||||
Private m_cmdResetCalc As ICommand
|
||||
|
||||
#Region "Messages"
|
||||
|
||||
@@ -208,54 +205,6 @@ Public Class LeftPanelVM
|
||||
|
||||
#Region "COMMANDS"
|
||||
|
||||
#Region "VerifyAll"
|
||||
|
||||
Public ReadOnly Property VerifyAll_Command As ICommand
|
||||
Get
|
||||
If m_cmdVerifyAll Is Nothing Then
|
||||
m_cmdVerifyAll = New Command(AddressOf VerifyAll)
|
||||
End If
|
||||
Return m_cmdVerifyAll
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub VerifyAll()
|
||||
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
|
||||
|
||||
#End Region ' VerifyAll
|
||||
|
||||
#Region "VerifyAllFlipRot"
|
||||
|
||||
Public ReadOnly Property VerifyAllFlipRot_Command As ICommand
|
||||
Get
|
||||
If m_cmdVerifyFlipRotAll Is Nothing Then
|
||||
m_cmdVerifyFlipRotAll = New Command(AddressOf VerifyAllFlipRot)
|
||||
End If
|
||||
Return m_cmdVerifyFlipRotAll
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Friend Sub VerifyAllFlipRot()
|
||||
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
|
||||
|
||||
#End Region ' VerifyAllRotate
|
||||
|
||||
#Region "ShowPopUpFilterBtnCommand"
|
||||
|
||||
Public ReadOnly Property ShowPopUpFilterBtnCommand As ICommand
|
||||
@@ -277,105 +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
|
||||
|
||||
#Region "ResetCalc"
|
||||
|
||||
Public ReadOnly Property ResetCalc_Command As ICommand
|
||||
Get
|
||||
If m_cmdResetCalc Is Nothing Then
|
||||
m_cmdResetCalc = New Command(AddressOf ResetCalc)
|
||||
End If
|
||||
Return m_cmdResetCalc
|
||||
End Get
|
||||
End Property
|
||||
|
||||
Public Sub ResetCalc()
|
||||
If (IsNothing(ProjectManagerVM.CurrProd) OrElse IsNothing(Map.refProjectVM.BTLStructureVM) OrElse IsNothing(Map.refProjectVM.MachGroupPanelVM)) Then Return
|
||||
Map.refShowBeamPanelVM.ShowBuilding_IsEnabled = True
|
||||
Map.refCALCPanelVM.SetCalculating(False)
|
||||
For Each Part In Map.refProjectVM.BTLStructureVM.BTLPartVMList
|
||||
If Part.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(Part.nPartId, sInfoNgePart(0))
|
||||
Next
|
||||
End If
|
||||
' resetto stato dei calcoli
|
||||
Part.ResetCalcTotalPart()
|
||||
End If
|
||||
If Not Part.IsRowEnabled Then Part.SetIsRowEnabled(True)
|
||||
Next
|
||||
End Sub
|
||||
|
||||
#End Region ' ResetCalc
|
||||
'#End Region ' InvertAll
|
||||
|
||||
#End Region ' COMMANDS
|
||||
|
||||
|
||||
@@ -7,6 +7,18 @@ Public Class MyMachGroupPanelVM
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
Private m_bSelOnPart As Boolean = False
|
||||
Public ReadOnly Property bSelOnPart As Boolean
|
||||
Get
|
||||
Return m_bSelOnPart
|
||||
End Get
|
||||
End Property
|
||||
Friend Sub SetbSelOnPart(value As Boolean)
|
||||
m_bSelOnPart = value
|
||||
NotifyPropertyChanged(NameOf(bSelOnPart))
|
||||
End Sub
|
||||
|
||||
Public Property m_OldSelectedMachGroup As MyMachGroupVM
|
||||
Public Shadows Property SelectedMachGroup As MyMachGroupVM
|
||||
Get
|
||||
Return m_SelectedMachGroup
|
||||
@@ -15,21 +27,18 @@ 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()
|
||||
Next
|
||||
End If
|
||||
|
||||
If Not IsNothing(value) Then m_OldSelectedMachGroup = value
|
||||
|
||||
m_SelectedMachGroup = value
|
||||
|
||||
If IsNothing(m_SelectedMachGroup) Then m_SelectedMachGroup = m_OldSelectedMachGroup
|
||||
|
||||
If Not IsNothing(value) Then
|
||||
OnPreSetCurrMachGroup()
|
||||
EgtSetCurrMachGroup(value.Id)
|
||||
@@ -37,11 +46,12 @@ 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)
|
||||
Map.refMyStatusBarVM.SetOutputMessage("")
|
||||
SetbSelOnPart(False)
|
||||
NotifyPropertyChanged(NameOf(SelectedMachGroup))
|
||||
End Set
|
||||
End Property
|
||||
@@ -209,10 +219,6 @@ Public Class MyMachGroupPanelVM
|
||||
Else
|
||||
SelectedMachGroup = Nothing
|
||||
EgtResetCurrMachGroup()
|
||||
' nascondo tutti i pezzi
|
||||
Map.refProjectVM.BTLStructureVM.HideAll()
|
||||
' mostro tutti i pezzi
|
||||
Map.refShowBeamPanelVM.ShowAll(True)
|
||||
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,7 @@ 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
|
||||
Friend Sub SetSelPart(value As Core.PartVM)
|
||||
@@ -189,6 +175,7 @@ Public Class MyMachGroupVM
|
||||
UpdateUsage()
|
||||
ResetCalcTotalMachGroup()
|
||||
End If
|
||||
EgtZoom(ZM.ALL)
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
@@ -911,19 +898,20 @@ Public Class MyMachGroupVM
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Map.refMachGroupPanelVM.MachGroupVMList(1)
|
||||
Else
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Nothing
|
||||
EgtDraw()
|
||||
'EgtDraw()
|
||||
End If
|
||||
ElseIf Index = Map.refMachGroupPanelVM.MachGroupVMList.Count - 1 Then
|
||||
If Map.refMachGroupPanelVM.MachGroupVMList.Count > 1 Then
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Map.refMachGroupPanelVM.MachGroupVMList(Map.refMachGroupPanelVM.MachGroupVMList.Count - 2)
|
||||
Else
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Nothing
|
||||
EgtDraw()
|
||||
'EgtDraw()
|
||||
End If
|
||||
Else
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Map.refMachGroupPanelVM.MachGroupVMList(Index - 1)
|
||||
End If
|
||||
End If
|
||||
EgtDraw()
|
||||
' rimuovo dalla lista grezzi
|
||||
Map.refMachGroupPanelVM.MachGroupVMList.Remove(Me)
|
||||
End Sub
|
||||
@@ -981,7 +969,7 @@ Public Class MyMachGroupVM
|
||||
EgtGetMachGroupMachineName(SelMachGroup.Id, MachineName)
|
||||
Dim Bar As New EgtBEAMWALL.Core.Bar With {.nBarId = SelMachGroup.Id,
|
||||
.nProgramPage = ProjectType.PROD,
|
||||
.nProjType = ProjType,
|
||||
.nProjType = ProjType + 10,
|
||||
.bBarOk = True,
|
||||
.nMachineName = MachineName,
|
||||
.nCmdType = CalcIntegration.CmdTypes.SIMULATE,
|
||||
@@ -1156,7 +1144,7 @@ Public Class MyMachGroupVM
|
||||
End Property
|
||||
|
||||
Public Sub RemoveRawPartCmd()
|
||||
If EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(62574) & Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.Name & " ?", EgtMsg(30009), MessageBoxButton.OKCancel, MessageBoxImage.Exclamation) = MessageBoxResult.OK Then
|
||||
If EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, EgtMsg(62574) & " " & Map.refProjectVM.MachGroupPanelVM.SelectedMachGroup.Name & " ?", EgtMsg(30009), MessageBoxButton.OKCancel, MessageBoxImage.Exclamation) = MessageBoxResult.OK Then
|
||||
RemoveRawPart()
|
||||
Else
|
||||
Return
|
||||
@@ -1179,16 +1167,33 @@ Public Class MyMachGroupVM
|
||||
If IsNothing(SelMachGroup) Then Return
|
||||
' se barra gia' assegnata a supervisore, esco
|
||||
If SelMachGroup.nProduction_State >= ItemState.Assigned Then Return
|
||||
Dim Index As Integer = Map.refMachGroupPanelVM.MachGroupVMList.IndexOf(SelMachGroup)
|
||||
SelMachGroup.DeleteMachGroup()
|
||||
If Not IsNothing(Map.refMachGroupPanelVM.SelectedMachGroup) Then
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Map.refMachGroupPanelVM.MachGroupVMList(0)
|
||||
If Index = 0 Then
|
||||
If Map.refMachGroupPanelVM.MachGroupVMList.Count > 1 Then
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Map.refMachGroupPanelVM.MachGroupVMList(0)
|
||||
Else
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Nothing
|
||||
' seleziono primo pezzo
|
||||
If Map.refProjectVM.BTLStructureVM.BTLPartVMList.Count > 0 Then
|
||||
Map.refProjectVM.BTLStructureVM.SelectBTLPart(Map.refProjectVM.BTLStructureVM.BTLPartVMList(0))
|
||||
End If
|
||||
End If
|
||||
ElseIf Index >= Map.refMachGroupPanelVM.MachGroupVMList.Count Then
|
||||
If Map.refMachGroupPanelVM.MachGroupVMList.Count > 1 Then
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Map.refMachGroupPanelVM.MachGroupVMList(Map.refMachGroupPanelVM.MachGroupVMList.Count - 1)
|
||||
Else
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Nothing
|
||||
' seleziono primo pezzo
|
||||
If Map.refProjectVM.BTLStructureVM.BTLPartVMList.Count > 0 Then
|
||||
Map.refProjectVM.BTLStructureVM.SelectBTLPart(Map.refProjectVM.BTLStructureVM.BTLPartVMList(0))
|
||||
End If
|
||||
End If
|
||||
Else
|
||||
Map.refMachGroupPanelVM.SelectedMachGroup = Map.refMachGroupPanelVM.MachGroupVMList(Index)
|
||||
End If
|
||||
End If
|
||||
EgtDraw()
|
||||
' se nessun grezzo, rimetto tutti i pezzi invisibili
|
||||
If Map.refProjectVM.MachGroupPanelVM.MachGroupVMList.Count = 0 Then
|
||||
Map.refProjectVM.BTLStructureVM.HideAll(True)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
#End Region ' RemoveRawPart
|
||||
|
||||
@@ -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"/>
|
||||
@@ -88,34 +140,39 @@
|
||||
</TabControl.ItemContainerStyle>
|
||||
<TabItem Header="EMPTY"/>
|
||||
<TabItem Header="STRATEGIES">
|
||||
<StackPanel>
|
||||
<OPTIMIZER:StrategyManagerV DataContext="{StaticResource StrategyManagerVM}"/>
|
||||
</StackPanel>
|
||||
<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="*"/>
|
||||
@@ -123,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,22 +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}">
|
||||
<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}"
|
||||
Style="{StaticResource BTLDataWnd_Image}"/>
|
||||
</Button>
|
||||
Stretch="Uniform"
|
||||
Margin="5,0"/>
|
||||
<EgwWPFBaseLib:EgwSplitButton.DropDownButtonContent>
|
||||
<Grid>
|
||||
<TextBlock Text="▼"
|
||||
HorizontalAlignment="Center"
|
||||
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>
|
||||
</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"/>
|
||||
|
||||
@@ -6,6 +6,7 @@ Imports EgtBEAMWALL.Core
|
||||
Imports EgtBEAMWALL.Core.ConstBeam
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib5
|
||||
Imports EgwRedmineAPI
|
||||
|
||||
Public Class MainMenuVM
|
||||
Inherits VMBase
|
||||
@@ -240,6 +241,28 @@ Public Class MainMenuVM
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private m_sBadgeText As String = ""
|
||||
Public ReadOnly Property sBadgeText As String
|
||||
Get
|
||||
Return m_sBadgeText
|
||||
End Get
|
||||
End Property
|
||||
Friend Sub SetBadgeText(value As String)
|
||||
m_sBadgeText = value
|
||||
NotifyPropertyChanged(NameOf(sBadgeText))
|
||||
End Sub
|
||||
|
||||
Private m_BadgeVisibility As Visibility = Visibility.Collapsed
|
||||
Public ReadOnly Property BadgeVisibility As Visibility
|
||||
Get
|
||||
Return m_BadgeVisibility
|
||||
End Get
|
||||
End Property
|
||||
Friend Sub SetBadgeVisibility(value As Boolean)
|
||||
m_BadgeVisibility = If(value, Visibility.Visible, Visibility.Collapsed)
|
||||
NotifyPropertyChanged(NameOf(BadgeVisibility))
|
||||
End Sub
|
||||
|
||||
#Region "Messages"
|
||||
|
||||
Public ReadOnly Property Configuration_Msg As String
|
||||
@@ -281,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)
|
||||
@@ -294,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
|
||||
|
||||
@@ -312,6 +342,14 @@ Public Class MainMenuVM
|
||||
m_OpenPage_Timer.Interval = TimeSpan.FromMilliseconds(500)
|
||||
AddHandler m_OpenPage_Timer.Tick, AddressOf OpenPage_Tick
|
||||
m_OpenPage_Timer.Start()
|
||||
' verifico se lanciare gestore notifiche
|
||||
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
|
||||
|
||||
#End Region ' CONSTRUCTOR
|
||||
@@ -584,7 +622,7 @@ Public Class MainMenuVM
|
||||
ProjFileMList = DbControllers.m_ProjController.GetByProdAsc(ProjectManagerVM.CurrProd.nProdId)
|
||||
Map.refProdManagerVM.SetCurrProj(ProjFileMList(0).nProjId)
|
||||
End If
|
||||
Dim sExportFileName = ProjectManagerVM.CurrProd.nProdId.ToString("0000") & " - " & ProjectManagerVM.CurrProj.sBTLFileName & " - ProjectExport"
|
||||
Dim sExportFileName = ProjectManagerVM.CurrProd.nProdId.ToString("0000") & " - ProjectExport"
|
||||
Dim sExpZipToCreate = Map.refProdManagerVM.ExportProject(sExportFileName)
|
||||
' Creo zip file da allegare
|
||||
Dim sZipToCreate As String = Map.refMainWindowVM.MainWindowM.sTempDir & "\Feedback.zip"
|
||||
@@ -637,28 +675,30 @@ Public Class MainMenuVM
|
||||
Catch ex1 As Exception
|
||||
EgtOutLog("Exception in zip: " & ex1.ToString())
|
||||
End Try
|
||||
' preparo la mail per il supporto
|
||||
Dim bEx As Boolean = False
|
||||
Try
|
||||
Dim sAddressArray As String() = sSupportAddress.Split(CType(",", Char()))
|
||||
Dim SendFeedbackWindow As New EgtWPFLib5.MapiMailMessage("AEdifica Feedback - " & sKey)
|
||||
SendFeedbackWindow.Recipients.Add(sAddressArray(0))
|
||||
For index As Integer = 1 To sAddressArray.Length() - 1
|
||||
SendFeedbackWindow.Recipients.Add(sAddressArray(index), EgtWPFLib5.MapiMailMessage.RecipientType.CC)
|
||||
Next
|
||||
If Not String.IsNullOrWhiteSpace(sZipToCreate) AndAlso File.Exists(sZipToCreate) Then
|
||||
SendFeedbackWindow.Files.Add(Map.refMainWindowVM.MainWindowM.sTempDir & "\Feedback.zip")
|
||||
End If
|
||||
SendFeedbackWindow.ShowDialog()
|
||||
Catch ex As Exception
|
||||
EgtOutLog("Feedback exception: " & ex.ToString)
|
||||
bEx = True
|
||||
End Try
|
||||
If bEx OrElse EgtWPFLib5.MapiMailMessage.m_ErrorCode <> 0 Then
|
||||
EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, String.Format(EgtMsg(30512), sSupportAddress, sZipToCreate), EgtMsg(15003), MessageBoxButton.OK, MessageBoxImage.Information)
|
||||
Else
|
||||
Map.refMyStatusBarVM.SetOutputMessage(EgtMsg(30514))
|
||||
End If
|
||||
' creo ticket
|
||||
Map.refMainWindowVM.MainWindowM.RedmineApi?.OpenNewTicket(New List(Of String)({Map.refMainWindowVM.MainWindowM.sTempDir & "\Feedback.zip"}))
|
||||
'' preparo la mail per il supporto
|
||||
'Dim bEx As Boolean = False
|
||||
'Try
|
||||
' Dim sAddressArray As String() = sSupportAddress.Split(CType(",", Char()))
|
||||
' Dim SendFeedbackWindow As New EgtWPFLib5.MapiMailMessage("AEdifica Feedback - " & sKey)
|
||||
' SendFeedbackWindow.Recipients.Add(sAddressArray(0))
|
||||
' For index As Integer = 1 To sAddressArray.Length() - 1
|
||||
' SendFeedbackWindow.Recipients.Add(sAddressArray(index), EgtWPFLib5.MapiMailMessage.RecipientType.CC)
|
||||
' Next
|
||||
' If Not String.IsNullOrWhiteSpace(sZipToCreate) AndAlso File.Exists(sZipToCreate) Then
|
||||
' SendFeedbackWindow.Files.Add(Map.refMainWindowVM.MainWindowM.sTempDir & "\Feedback.zip")
|
||||
' End If
|
||||
' SendFeedbackWindow.ShowDialog()
|
||||
'Catch ex As Exception
|
||||
' EgtOutLog("Feedback exception: " & ex.ToString)
|
||||
' bEx = True
|
||||
'End Try
|
||||
'If bEx OrElse EgtWPFLib5.MapiMailMessage.m_ErrorCode <> 0 Then
|
||||
' EgtBEAMWALL.Core.EgtMessageBoxV.Show(Application.Current.MainWindow, String.Format(EgtMsg(30512), sSupportAddress, sZipToCreate), EgtMsg(15003), MessageBoxButton.OK, MessageBoxImage.Information)
|
||||
'Else
|
||||
' Map.refMyStatusBarVM.SetOutputMessage(EgtMsg(30514))
|
||||
'End If
|
||||
End Sub
|
||||
|
||||
Private Sub AddFileToZip(archive As ZipArchive, filePath As String, entryRoot As String)
|
||||
@@ -690,6 +730,29 @@ 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)
|
||||
SetBadgeText(evt.Quantity)
|
||||
SetBadgeVisibility(evt.Quantity > 0)
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
@@ -1,9 +1,11 @@
|
||||
Imports System.Threading
|
||||
Imports System.IO
|
||||
Imports System.Math
|
||||
Imports System.Threading
|
||||
Imports DevExpress.Xpf.Grid
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports EgtUILib
|
||||
Imports EgtWPFLib5
|
||||
Imports EgtBEAMWALL.Core
|
||||
Imports System.IO
|
||||
Imports EgwRedmineAPI
|
||||
|
||||
Public Class MainWindowM
|
||||
|
||||
@@ -191,6 +193,42 @@ Public Class MainWindowM
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'Private REDMINE_URL As String = "https://redmine.egalware.com/"
|
||||
'Private PROJECT_ID As String = "steamware-stockmat"
|
||||
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
|
||||
Get
|
||||
If IsNothing(m_RedmineApi) 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
|
||||
MessageBox.Show("Ticketing system initialization failed!" & Environment.NewLine & InitRes.sErrorMessage, "Error!", MessageBoxButton.OK, MessageBoxImage.Error)
|
||||
End If
|
||||
End If
|
||||
Return m_RedmineApi
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#End Region ' FIELDS
|
||||
|
||||
#Region "CONSTRUCTOR"
|
||||
@@ -217,6 +255,7 @@ Public Class MainWindowM
|
||||
m_sTempDir = m_sDataRoot & "\" & TEMP_DIR
|
||||
' Impostazione path Ini file
|
||||
IniFile.m_sIniFile = m_sConfigDir & "\" & Core.ConstIni.INI_FILE_NAME
|
||||
EgwWPFBaseLib.SetIniFile(IniFile.m_sIniFile)
|
||||
' Impostazione path BTL Ini File
|
||||
BTLIniFile.m_sBTLIniFile = m_sConfigDir & "\" & BTLFEATURES_FILE_NAME
|
||||
' Impostazione path Ini file DataGrid
|
||||
@@ -339,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
|
||||
@@ -368,6 +409,25 @@ Public Class MainWindowM
|
||||
Core.Configuration.SetModifySetup(m_bMachConfig)
|
||||
' Info su opzioni chiave
|
||||
EgtOutLog("KeyOptions : " & bKey.ToString() & " " & m_nKeyOptions.ToString())
|
||||
' inizializzo ambiente Redmine
|
||||
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,7 +19,8 @@
|
||||
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"/>
|
||||
@@ -29,10 +30,10 @@
|
||||
<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)
|
||||
@@ -430,6 +434,10 @@ Public Class MainWindowVM
|
||||
{S_FEATUREINPARTINRAWPARTLIST, Map.refFeatureInPartInRawPartListVM.FeatureInPartInRawPartColumns},
|
||||
{S_PARAMETERLIST_P, Map.refPParameterListVM.PParameterListColumns}}
|
||||
EgwWPFBaseLib.EgwDataGrid.WriteColumnLayout(DataGridColumnsIniFile.m_sDataGridColumnsIniFile, DataGridColumnDictionary)
|
||||
Map.refPartListVM.Close()
|
||||
Map.refRawPartListVM.Close()
|
||||
Map.refFeatureInPartInRawPartListVM.Close()
|
||||
Map.refPParameterListVM.Close()
|
||||
End If
|
||||
' Termino il Model
|
||||
m_MainWindowM.Close()
|
||||
|
||||
@@ -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.1")>
|
||||
<Assembly: AssemblyFileVersion("3.1.7.1")>
|
||||
<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>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user