Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ab7811b50 | |||
| 1899c9a735 | |||
| 529fb6d3a6 |
@@ -36,7 +36,7 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Border Name="LogoBrd" Grid.Column="1">
|
<Border Name="LogoBrd" Grid.Column="1">
|
||||||
<Image Source="../Resources/AboutBoxImage.png" Stretch="Uniform"/>
|
<Image Source="../Resources/NewIcons/Logo-Egalware (3).png" Stretch="Uniform"/>
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
<TextBlock Name="DescriptionLbl" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center"
|
<TextBlock Name="DescriptionLbl" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center"
|
||||||
|
|||||||
+8
-18
@@ -27,7 +27,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<!--Griglia per oscurare i bottoni della pagina sottostante-->
|
<!--Griglia per oscurare i bottoni della pagina sottostante-->
|
||||||
<Grid Background="{DynamicResource OmagCut_Gray}">
|
<Grid Background="{DynamicResource OmagCut_Gray}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<Label Name="CsvPathTxBl" Grid.Row="1" Background="White" FontSize="16" VerticalAlignment="Center" Padding="2,5,0,5"/>
|
<Label Name="CsvPathTxBl" Grid.Row="1" Background="White" FontSize="16" VerticalAlignment="Center" Padding="2,5,0,5"/>
|
||||||
|
|
||||||
<TreeView Name="PartsTreeView" Grid.Row="2" Background="{StaticResource OmagCut_TreeViewGradientGray}">
|
<TreeView Name="PartsTreeView" Grid.Row="2" Background="{DynamicResource OmagCut_TreeViewBackGroundColor}">
|
||||||
<TreeView.Resources>
|
<TreeView.Resources>
|
||||||
<!--Modifico HierarchicalDataTemplate del CathegoryItem per poter inserire immagine e testo e per -->
|
<!--Modifico HierarchicalDataTemplate del CathegoryItem per poter inserire immagine e testo e per -->
|
||||||
<!--renderlo apribile con un solo click -->
|
<!--renderlo apribile con un solo click -->
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0,8,6,4" />
|
<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0,8,6,4" />
|
||||||
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="10" Foreground="Black" />
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="10" />
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
@@ -123,10 +123,7 @@
|
|||||||
</Setter>
|
</Setter>
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<DataTrigger Binding="{Binding bIsActive}" Value="False">
|
<DataTrigger Binding="{Binding bIsActive}" Value="False">
|
||||||
<Setter Property="Foreground" Value="{StaticResource OmagCut_White}"/>
|
<Setter Property="Foreground" Value="{StaticResource OmagCut_LightGray}"/>
|
||||||
</DataTrigger>
|
|
||||||
<DataTrigger Binding="{Binding bIsActive}" Value="True">
|
|
||||||
<Setter Property="Foreground" Value="Black"/>
|
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
@@ -134,25 +131,18 @@
|
|||||||
</HierarchicalDataTemplate>
|
</HierarchicalDataTemplate>
|
||||||
<!--Modifico DataTemplate del ToolItem per poter inserire immagine e testo-->
|
<!--Modifico DataTemplate del ToolItem per poter inserire immagine e testo-->
|
||||||
<DataTemplate DataType="{x:Type self:PartCustomItem}">
|
<DataTemplate DataType="{x:Type self:PartCustomItem}">
|
||||||
<Grid Width="234.8" Margin="0,5,0,5" HorizontalAlignment="Right">
|
<Grid Width="246" Margin="0,5,0,5" HorizontalAlignment="Right">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="60"/>
|
<ColumnDefinition Width="60"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBlock x:Name="TbName" Grid.Column="0" Text="{Binding Name}" Height="18" FontSize="14" HorizontalAlignment="Right"/>
|
<TextBlock Grid.Column="0" Text="{Binding Name}" Height="18" FontSize="14" HorizontalAlignment="Right"/>
|
||||||
<TextBlock x:Name="TbText1" Grid.Column="1" Text="{Binding sText1}" Height="18" FontSize="14" HorizontalAlignment="Center"/>
|
<TextBlock Grid.Column="1" Text="{Binding sText1}" Height="18" FontSize="14" HorizontalAlignment="Center"/>
|
||||||
<TextBlock x:Name="TbText2" Grid.Column="2" Text="{Binding sText2}" Height="18" FontSize="14" HorizontalAlignment="Left"/>
|
<TextBlock Grid.Column="2" Text="{Binding sText2}" Height="18" FontSize="14" HorizontalAlignment="Left"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<DataTemplate.Triggers>
|
|
||||||
<DataTrigger Binding="{Binding bIsActive}" Value="False">
|
|
||||||
<Setter TargetName="TbName" Property="TextDecorations" Value="Strikethrough" />
|
|
||||||
<Setter TargetName="TbText1" Property="TextDecorations" Value="Strikethrough" />
|
|
||||||
<Setter TargetName="TbText2" Property="TextDecorations" Value="Strikethrough" />
|
|
||||||
</DataTrigger>
|
|
||||||
</DataTemplate.Triggers>
|
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</TreeView.Resources>
|
</TreeView.Resources>
|
||||||
|
|
||||||
|
|||||||
@@ -220,17 +220,21 @@ Public Class NestPageUC
|
|||||||
m_nCountSpot = 0
|
m_nCountSpot = 0
|
||||||
m_nCountSpotCUT = 0
|
m_nCountSpotCUT = 0
|
||||||
End If
|
End If
|
||||||
|
EgtOutLog("Numero di SPOT caricati da OFFICE: " & m_nCountSpot.ToString)
|
||||||
' Se nel progetto non sono inseriti punti SpotReg disabilito i comandi
|
' Se nel progetto non sono inseriti punti SpotReg disabilito i comandi
|
||||||
If m_nCountSpot < 1 Then
|
If m_nCountSpot < 1 Then
|
||||||
UG0_Reg.IsEnabled = False
|
UG0_Reg.IsEnabled = False
|
||||||
UG1_Reg.IsEnabled = False
|
UG1_Reg.IsEnabled = False
|
||||||
|
EgtOutLog(" Abilito comandi gestione SPOT")
|
||||||
Else
|
Else
|
||||||
UG0_Reg.IsEnabled = True
|
UG0_Reg.IsEnabled = True
|
||||||
UG1_Reg.IsEnabled = True
|
UG1_Reg.IsEnabled = True
|
||||||
|
EgtOutLog(" Disabilito comandi gestione SPOT")
|
||||||
End If
|
End If
|
||||||
' Se nel progetto non sono inseriti punti SpotRegCUT provvedo ad aggiungerli
|
' Se nel progetto non sono inseriti punti SpotRegCUT provvedo ad aggiungerli
|
||||||
If m_nCountSpotCUT < 1 Then
|
If m_nCountSpotCUT < 1 Then
|
||||||
InsertSpotRegistration()
|
InsertSpotRegistration()
|
||||||
|
EgtOutLog(" Creo SPOT_CUT")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
' Se necessario riabilito impostazione modificato
|
' Se necessario riabilito impostazione modificato
|
||||||
|
|||||||
@@ -571,11 +571,6 @@ Public Class SplitPageUC
|
|||||||
m_nDragInd = -1
|
m_nDragInd = -1
|
||||||
m_nDragType = 0
|
m_nDragType = 0
|
||||||
m_nSelected = GDB_ID.NULL
|
m_nSelected = GDB_ID.NULL
|
||||||
If Not IsNothing(MachiningLsBx.SelectedItem) Then
|
|
||||||
MarkMachining(MachiningLsBx.SelectedItem.Ind, False)
|
|
||||||
EgtDraw()
|
|
||||||
End If
|
|
||||||
MachiningLsBx.SelectedIndex = -1
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -705,11 +700,6 @@ Public Class SplitPageUC
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub MachiningLsBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles MachiningLsBx.SelectionChanged
|
Private Sub MachiningLsBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles MachiningLsBx.SelectionChanged
|
||||||
' se non attiva la modifica allora esco
|
|
||||||
If m_bShow Then
|
|
||||||
MachiningLsBx.SelectedIndex = -1
|
|
||||||
Return
|
|
||||||
End If
|
|
||||||
If MachiningLsBx.SelectedItems.Count = 0 Then Return
|
If MachiningLsBx.SelectedItems.Count = 0 Then Return
|
||||||
If MachiningLsBx.SelectedItems.Count = 1 Then m_bAreHomogeneous = True
|
If MachiningLsBx.SelectedItems.Count = 1 Then m_bAreHomogeneous = True
|
||||||
' creo lista ordinata dei selezionati
|
' creo lista ordinata dei selezionati
|
||||||
@@ -751,8 +741,6 @@ Public Class SplitPageUC
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub MachiningLsBx_MouseDoubleClick(sender As Object, e As MouseEventArgs) Handles MachiningLsBx.MouseDoubleClick
|
Private Sub MachiningLsBx_MouseDoubleClick(sender As Object, e As MouseEventArgs) Handles MachiningLsBx.MouseDoubleClick
|
||||||
' se disabilitata la modifica allora esco
|
|
||||||
If m_bShow Then Return
|
|
||||||
If m_IsCtrlKeyDown Or m_IsShiftKeyDown Then Return
|
If m_IsCtrlKeyDown Or m_IsShiftKeyDown Then Return
|
||||||
OnOffCut()
|
OnOffCut()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1958,22 +1946,22 @@ Public Class SplitPageUC
|
|||||||
NumberDirectionMachining(nI)
|
NumberDirectionMachining(nI)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
' -------------------- Recupero le lavorazioni indicate come attive -- INIZIO --------------------
|
' -------------------- Recupero le lavorazioni indicate come attive --------------------
|
||||||
Dim ActiveMachLst As New List(Of Integer)
|
Dim ActiveMachLst As New List(Of Integer)
|
||||||
For Each ItemSplitMach As NameIdLsBxItem In m_ItemList
|
For Each ItemSplitMach As NameIdLsBxItem In m_ItemList
|
||||||
If ItemSplitMach.bIsActive Then ActiveMachLst.Add(ItemSplitMach.Ind)
|
ActiveMachLst.Add(ItemSplitMach.Ind)
|
||||||
Next
|
Next
|
||||||
' -------------------- Recupero le lavorazioni indicate come attive -- FINE --------------------
|
' -------------------- Recupero le lavorazioni indicate come attive --------------------
|
||||||
|
|
||||||
' Preparo la lista degli Item
|
' Preparo la lista degli Item
|
||||||
ShowMachiningList()
|
ShowMachiningList()
|
||||||
|
|
||||||
' -------------------- Riattivo le lavorazioni precedenti -- INIZIO --------------------
|
' -------------------- Riattivo le lavorazioni precedenti --------------------
|
||||||
|
|
||||||
For Each Item As SplitMach In m_MachiningList
|
For Each Item As SplitMach In m_MachiningList
|
||||||
' spengo tutte le lavorazioni disponibili
|
|
||||||
EgtSetInfo(Item.m_nId, INFO_MCH_USER_OFF, True)
|
EgtSetInfo(Item.m_nId, INFO_MCH_USER_OFF, True)
|
||||||
Next
|
Next
|
||||||
' riattivo solo quelle indicate come attive
|
|
||||||
For nIndex As Integer = 0 To ActiveMachLst.Count - 1
|
For nIndex As Integer = 0 To ActiveMachLst.Count - 1
|
||||||
For Each ItemSplitMach As NameIdLsBxItem In m_ItemList
|
For Each ItemSplitMach As NameIdLsBxItem In m_ItemList
|
||||||
If ItemSplitMach.Ind = ActiveMachLst(nIndex) Then
|
If ItemSplitMach.Ind = ActiveMachLst(nIndex) Then
|
||||||
@@ -1986,7 +1974,7 @@ Public Class SplitPageUC
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
' -------------------- Riattivo le lavorazioni precedenti -- FINE --------------------
|
' -------------------- Riattivo le lavorazioni precedenti --------------------
|
||||||
|
|
||||||
' Aggiorno visualizzazione
|
' Aggiorno visualizzazione
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
@@ -2208,8 +2196,6 @@ Public Class SplitPageUC
|
|||||||
VerifyHomogenousMachining(ItemList)
|
VerifyHomogenousMachining(ItemList)
|
||||||
' Abilitazione bottone Next
|
' Abilitazione bottone Next
|
||||||
EnableButtons()
|
EnableButtons()
|
||||||
Else
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Border Name="LogoBrd" Background="Transparent">
|
<Border Name="LogoBrd" Background="Transparent">
|
||||||
<Image Source="{DynamicResource LogoOmagImg}" Stretch="Uniform" Margin="1"/>
|
<Image Source="../Resources/NewIcons/Logo-Egalware (2).png" Stretch="Uniform" Margin="1"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<!-- ** Definizione della Grid delle tab ** -->
|
<!-- ** Definizione della Grid delle tab ** -->
|
||||||
|
|||||||
@@ -1376,6 +1376,13 @@
|
|||||||
<Resource Include="Resources\NewIcons\Move-Spot-Reg.png" />
|
<Resource Include="Resources\NewIcons\Move-Spot-Reg.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\NewIcons\Logo-Egalware.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\NewIcons\Logo-Egalware %282%29.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\NewIcons\Logo-Egalware %283%29.png" />
|
||||||
<Resource Include="Resources\NewIcons\RawHeight.png" />
|
<Resource Include="Resources\NewIcons\RawHeight.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 6.3 KiB |
Reference in New Issue
Block a user