Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 17f41f1563 | |||
| 6a17b88283 | |||
| 6f248ec645 | |||
| 17d6ced974 | |||
| db145af965 | |||
| 037fdb41b6 | |||
| f89fe7fefd | |||
| 4432893794 |
@@ -27,6 +27,14 @@
|
|||||||
<EgtWPFLib:EgtTextBox Name="ValueTxBx" Grid.Column="1" Grid.Row="1"
|
<EgtWPFLib:EgtTextBox Name="ValueTxBx" Grid.Column="1" Grid.Row="1"
|
||||||
Style="{StaticResource OmagCut_CalculatorTextBox}"/>
|
Style="{StaticResource OmagCut_CalculatorTextBox}"/>
|
||||||
|
|
||||||
|
<ComboBox Name="ValueCmBx" Grid.Column="1" Grid.Row="1">
|
||||||
|
<ComboBox.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding}" FontSize="20" />
|
||||||
|
</DataTemplate>
|
||||||
|
</ComboBox.ItemTemplate>
|
||||||
|
</ComboBox>
|
||||||
|
|
||||||
<Grid Name="ButtonsGrid" Grid.Column="1" Grid.Row="3" Grid.RowSpan="1">
|
<Grid Name="ButtonsGrid" Grid.Column="1" Grid.Row="3" Grid.RowSpan="1">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="0.5*"/>
|
<ColumnDefinition Width="0.5*"/>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports EgtWPFLib
|
Imports EgtWPFLib
|
||||||
|
Imports System.Collections.ObjectModel
|
||||||
|
|
||||||
Public Class EditValueWD
|
Public Class EditValueWD
|
||||||
|
|
||||||
@@ -8,10 +9,14 @@ Public Class EditValueWD
|
|||||||
Private m_MainWindow As MainWindow = DirectCast(Application.Current.MainWindow, MainWindow)
|
Private m_MainWindow As MainWindow = DirectCast(Application.Current.MainWindow, MainWindow)
|
||||||
Private m_sMsg As String = "Value"
|
Private m_sMsg As String = "Value"
|
||||||
Private m_sValue As String = ""
|
Private m_sValue As String = ""
|
||||||
|
Private m_sList As ObservableCollection(Of String)
|
||||||
|
Private m_IsText As Boolean = True
|
||||||
|
|
||||||
|
' avvia la visualizzazione della textbox
|
||||||
Sub New(Owner As Window, Optional sMsg As String = "")
|
Sub New(Owner As Window, Optional sMsg As String = "")
|
||||||
Me.Owner = Owner
|
Me.Owner = Owner
|
||||||
m_sMsg = sMsg
|
m_sMsg = sMsg
|
||||||
|
m_IsText = True
|
||||||
InitializeComponent()
|
InitializeComponent()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -21,11 +26,20 @@ Public Class EditValueWD
|
|||||||
Else
|
Else
|
||||||
m_sValue = DoubleToString(dVal, 3)
|
m_sValue = DoubleToString(dVal, 3)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ValueTxBx.Text = m_sValue
|
ValueTxBx.Text = m_sValue
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
' avvia la visualizzazione della combobox
|
||||||
|
Sub New(Owner As Window, sList As ObservableCollection(Of String), Optional sMsg As String = "")
|
||||||
|
Me.Owner = Owner
|
||||||
|
m_sMsg = sMsg
|
||||||
|
m_IsText = False
|
||||||
|
InitializeComponent()
|
||||||
|
m_sList = sList
|
||||||
|
SetComboBox(m_sList)
|
||||||
|
End Sub
|
||||||
|
|
||||||
Friend Function GetVal(Optional ByVal bLen As Boolean = False) As Double
|
Friend Function GetVal(Optional ByVal bLen As Boolean = False) As Double
|
||||||
Dim dVal As Double = 0
|
Dim dVal As Double = 0
|
||||||
If bLen Then
|
If bLen Then
|
||||||
@@ -36,10 +50,36 @@ Public Class EditValueWD
|
|||||||
Return dVal
|
Return dVal
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Function SetComboBox(sList As ObservableCollection(Of String)) As Boolean
|
||||||
|
ValueCmBx.ItemsSource = sList
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Friend Function SetItemComboBox(sItem As String) As Boolean
|
||||||
|
For Each MyItem As String In ValueCmBx.ItemsSource
|
||||||
|
If MyItem = sItem Then
|
||||||
|
ValueCmBx.SelectedItem = MyItem
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Friend Function GetItemComboBox() As String
|
||||||
|
Dim sVal As String = ValueCmBx.SelectedItem
|
||||||
|
Return sVal
|
||||||
|
End Function
|
||||||
|
|
||||||
Private Sub EditValueWD_Initialized(sender As Object, e As EventArgs) Handles Me.Initialized
|
Private Sub EditValueWD_Initialized(sender As Object, e As EventArgs) Handles Me.Initialized
|
||||||
Me.Top = Owner.Top + Owner.Height / 2 - Me.Height / 2
|
Me.Top = Owner.Top + Owner.Height / 2 - Me.Height / 2
|
||||||
Me.Left = Owner.Left + Owner.Width / 2 - Me.Width / 2
|
Me.Left = Owner.Left + Owner.Width / 2 - Me.Width / 2
|
||||||
ValueTxbl.Text = m_sMsg
|
ValueTxbl.Text = m_sMsg
|
||||||
|
If m_IsText Then
|
||||||
|
ValueCmBx.Visibility = Visibility.Collapsed
|
||||||
|
ValueTxBx.Visibility = Visibility.Visible
|
||||||
|
Else
|
||||||
|
ValueCmBx.Visibility = Visibility.Visible
|
||||||
|
ValueTxBx.Visibility = Visibility.Collapsed
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub EditValueWD_Rendered(sender As Object, e As EventArgs) Handles Me.ContentRendered
|
Private Sub EditValueWD_Rendered(sender As Object, e As EventArgs) Handles Me.ContentRendered
|
||||||
|
|||||||
@@ -329,6 +329,8 @@ Public Class MoveRawPartPage
|
|||||||
VacuumCups.SetWeightInformation(AverageDensity, MaxSinglePlugger, MaxDoublePlugger)
|
VacuumCups.SetWeightInformation(AverageDensity, MaxSinglePlugger, MaxDoublePlugger)
|
||||||
VacuumCups.SetRotationForExtraStrokeY(GetPrivateProfileInt(S_MACH_RAWMOVE, K_MACH_ROTATEVACUUMFOREXTRASTROKEY, 0, m_MainWindow.GetMachIniFile()) <> 0)
|
VacuumCups.SetRotationForExtraStrokeY(GetPrivateProfileInt(S_MACH_RAWMOVE, K_MACH_ROTATEVACUUMFOREXTRASTROKEY, 0, m_MainWindow.GetMachIniFile()) <> 0)
|
||||||
VacuumCups.SetRotationForExtraStrokeX(GetPrivateProfileInt(S_MACH_RAWMOVE, K_MACH_ROTATEVACUUMFOREXTRASTROKEX, 0, m_MainWindow.GetMachIniFile()) <> 0)
|
VacuumCups.SetRotationForExtraStrokeX(GetPrivateProfileInt(S_MACH_RAWMOVE, K_MACH_ROTATEVACUUMFOREXTRASTROKEX, 0, m_MainWindow.GetMachIniFile()) <> 0)
|
||||||
|
' se su scarico frontale allora devo modificare la scelta delle ventose
|
||||||
|
VacuumCups.bUnloadingOnAuxTab = m_SplitPage.m_bOnAuxTab
|
||||||
If PutVacuumCupsOnRaw(nId, rmData) Then
|
If PutVacuumCupsOnRaw(nId, rmData) Then
|
||||||
' Visualizzo le ventose
|
' Visualizzo le ventose
|
||||||
EgtSetStatus(GetVacuumId(), GDB_ST.ON_)
|
EgtSetStatus(GetVacuumId(), GDB_ST.ON_)
|
||||||
@@ -837,6 +839,7 @@ Public Class MoveRawPartPage
|
|||||||
EgtGetRawPartCenter(nRawId, ptRawCen)
|
EgtGetRawPartCenter(nRawId, ptRawCen)
|
||||||
' Sposto il grezzo in battuta sul corner
|
' Sposto il grezzo in battuta sul corner
|
||||||
Dim dAngRaw As Double = 0
|
Dim dAngRaw As Double = 0
|
||||||
|
Dim dNewAngRot As Double = 0
|
||||||
|
|
||||||
Dim AngRotList As New List(Of Double)
|
Dim AngRotList As New List(Of Double)
|
||||||
|
|
||||||
@@ -877,12 +880,16 @@ Public Class MoveRawPartPage
|
|||||||
' sposto il pezzo in questa posizione
|
' sposto il pezzo in questa posizione
|
||||||
EgtMoveToCornerRawPart(nRawId, ptCorner, MCH_CR.BL)
|
EgtMoveToCornerRawPart(nRawId, ptCorner, MCH_CR.BL)
|
||||||
' riprovo il movimento
|
' riprovo il movimento
|
||||||
If EgtRotateRawPart(nRawId, Vector3d.Z_AX(), -dAngRaw) Then
|
dNewAngRot = GetPrefRotAng(dAngRaw)
|
||||||
|
'dNewAngRot = DeltaAngC
|
||||||
|
If EgtRotateRawPart(nRawId, Vector3d.Z_AX(), dNewAngRot) Then
|
||||||
If Not EgtMoveToCornerRawPart(nRawId, ptRef, nCorn) Then
|
If Not EgtMoveToCornerRawPart(nRawId, ptRef, nCorn) Then
|
||||||
' riposiziono il pezzo come era prima
|
' riposiziono il pezzo come era prima
|
||||||
EgtRotateRawPart(nRawId, Vector3d.Z_AX(), dAngRaw)
|
EgtRotateRawPart(nRawId, Vector3d.Z_AX(), -dAngRaw)
|
||||||
|
EgtDraw()
|
||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
|
dAngRaw = dNewAngRot
|
||||||
Else
|
Else
|
||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
@@ -908,17 +915,18 @@ Public Class MoveRawPartPage
|
|||||||
End If
|
End If
|
||||||
nOtherRaw = EgtGetNextRawPart(nOtherRaw)
|
nOtherRaw = EgtGetNextRawPart(nOtherRaw)
|
||||||
End While
|
End While
|
||||||
|
|
||||||
' Determino il movimento effettuato
|
' Determino il movimento effettuato
|
||||||
Dim ptNewRawCen As Point3d
|
Dim ptNewRawCen As Point3d
|
||||||
EgtGetRawPartCenter(nRawId, ptNewRawCen)
|
EgtGetRawPartCenter(nRawId, ptNewRawCen)
|
||||||
' Se tutto bene, aggiorno lista movimenti
|
' Se tutto bene, aggiorno lista movimenti
|
||||||
If bRawOk Then
|
If bRawOk Then
|
||||||
AddRawMoveData(nRawId, ptNewRawCen - ptRawCen, m_RawMoveDataList)
|
AddRawMoveData(nRawId, ptNewRawCen - ptRawCen, m_RawMoveDataList)
|
||||||
If dAngRaw <> 0 Then AddRawMoveData(nRawId, -dAngRaw, m_RawMoveDataList)
|
If dAngRaw <> 0 Then AddRawMoveData(nRawId, dAngRaw, m_RawMoveDataList)
|
||||||
' altrimenti annullo il movimento
|
' altrimenti annullo il movimento
|
||||||
Else
|
Else
|
||||||
EgtMoveRawPart(nRawId, ptRawCen - ptNewRawCen)
|
EgtMoveRawPart(nRawId, ptRawCen - ptNewRawCen)
|
||||||
EgtRotateRawPart(nRawId, Vector3d.Z_AX(), dAngRaw)
|
EgtRotateRawPart(nRawId, Vector3d.Z_AX(), -dAngRaw)
|
||||||
m_CurrProjPage.SetWarningMessage(EgtMsg(MSG_MOVERAWPAGEUC + 3)) ' Posizione scelta già occupata
|
m_CurrProjPage.SetWarningMessage(EgtMsg(MSG_MOVERAWPAGEUC + 3)) ' Posizione scelta già occupata
|
||||||
End If
|
End If
|
||||||
' Disabilito pezzo e nascondo le ventose
|
' Disabilito pezzo e nascondo le ventose
|
||||||
@@ -991,6 +999,15 @@ Public Class MoveRawPartPage
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
' determino la migliore rotazione per portare il pezzo in orizzontale
|
||||||
|
Private Function GetPrefRotAng(ByVal dAngDeg As Double) As Double
|
||||||
|
Dim dNewAngDeg As Double = -dAngDeg
|
||||||
|
If dAngDeg > 90 And dAngDeg < 270 Then
|
||||||
|
dNewAngDeg = 180 - dAngDeg
|
||||||
|
End If
|
||||||
|
Return dNewAngDeg
|
||||||
|
End Function
|
||||||
|
|
||||||
Private Sub PauseBtn_Click(sender As Object, e As RoutedEventArgs) Handles PauseBtn.Click
|
Private Sub PauseBtn_Click(sender As Object, e As RoutedEventArgs) Handles PauseBtn.Click
|
||||||
' verifico che ci sia almeno un elemto selezionato (dati di aggancio pezzo)
|
' verifico che ci sia almeno un elemto selezionato (dati di aggancio pezzo)
|
||||||
If m_RawMoveDataList.Count = 0 Then Return
|
If m_RawMoveDataList.Count = 0 Then Return
|
||||||
|
|||||||
@@ -132,23 +132,31 @@
|
|||||||
<Button Name="CutBtn" Grid.Column="0" Style="{DynamicResource OmagCut_YellowIconButton}">
|
<Button Name="CutBtn" Grid.Column="0" Style="{DynamicResource OmagCut_YellowIconButton}">
|
||||||
<Image Source="{DynamicResource Allunga-AccorciaImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
<Image Source="{DynamicResource Allunga-AccorciaImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button Name="CutStartBtn" Grid.Column="1" Style="{DynamicResource OmagCut_YellowIconButton}">
|
<Button Name="CutStartBtn" Grid.Column="1" Style="{DynamicResource OmagCut_YellowIconButton}">
|
||||||
<Image Source="{DynamicResource Inizio-Allunga-AccorciaImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
<Image Source="{DynamicResource Inizio-Allunga-AccorciaImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Button Name="CutEndBtn" Grid.Column="2" Style="{DynamicResource OmagCut_YellowIconButton}">
|
||||||
|
<Image Source="{DynamicResource Fine-Allunga-AccorciaImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<!-- solo per macchine con lavorazioni Waterjet -->
|
<!-- solo per macchine con lavorazioni Waterjet -->
|
||||||
<ToggleButton Name="BridgesWJBtn" Grid.Column="0" Style="{DynamicResource OmagCut_YellowIconToggleButton}">
|
<ToggleButton Name="BridgesWJBtn" Grid.Column="0" Style="{DynamicResource OmagCut_YellowIconToggleButton}">
|
||||||
<Image Source="{DynamicResource PonticelliWJImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
<Image Source="{DynamicResource PonticelliWJImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
|
|
||||||
|
<!--solo per macchine con lavorazioni Waterjet-->
|
||||||
|
<Button Name="QualityWJBtn" Grid.Column="1" Style="{DynamicResource OmagCut_YellowIconButton}">
|
||||||
|
<Image Source="{DynamicResource QualityWJImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<!-- solo per macchine con lavorazioni Waterjet -->
|
<!-- solo per macchine con lavorazioni Waterjet -->
|
||||||
<ToggleButton Name="BridgesDeleteWJBtn" Grid.Column="3" Style="{DynamicResource OmagCut_YellowIconToggleButton}">
|
<ToggleButton Name="BridgesDeleteWJBtn" Grid.Column="3" Style="{DynamicResource OmagCut_YellowIconToggleButton}">
|
||||||
<Image Source="{DynamicResource PonticelliDeleteWJImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
<Image Source="{DynamicResource PonticelliDeleteWJImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
|
|
||||||
<Button Name="CutEndBtn" Grid.Column="2" Style="{DynamicResource OmagCut_YellowIconButton}">
|
|
||||||
<Image Source="{DynamicResource Fine-Allunga-AccorciaImg}" Style="{StaticResource OmagCut_ArrowButtonIcon}"/>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
|||||||
+126
-74
@@ -978,6 +978,54 @@ Public Class SplitPageUC
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub QualityWJBtn_Click(Sender As Object, e As RoutedEventArgs) Handles QualityWJBtn.Click
|
||||||
|
Dim bFirstWJ As Boolean = True
|
||||||
|
Dim sQuality As String = String.Empty
|
||||||
|
' Recupero la lavorazione corrente
|
||||||
|
If m_CurrFirstInd = -1 Then Return
|
||||||
|
Dim bGenModif As Boolean = False
|
||||||
|
For Index As Integer = m_CurrFirstInd To m_CurrLastInd
|
||||||
|
If Not m_ItemList(Index).IsSelected Then
|
||||||
|
Continue For
|
||||||
|
End If
|
||||||
|
Dim nI As Integer = m_ItemList(Index).Ind
|
||||||
|
Dim nOperId As Integer = m_MachiningList(nI).m_nId
|
||||||
|
Dim nMachiningType As Integer = EgtGetOperationType(nOperId)
|
||||||
|
' se altrimenti getto d'acqua
|
||||||
|
If nMachiningType = MCH_MY.WATERJETTING Then
|
||||||
|
' ------------------ INIZIO PREPARAZIONE TASTIERINO VIRTUALE ------------------
|
||||||
|
If bFirstWJ Then
|
||||||
|
EgtSetCurrMachining(nOperId)
|
||||||
|
' Dialogo richiesta valore
|
||||||
|
Dim ValWnd As New EditValueWD(m_MainWindow, m_MainWindow.m_CurrentMachine.Qualities, "Quality")
|
||||||
|
If EgtGetInfo(nOperId, "Quality", sQuality) Then
|
||||||
|
ValWnd.SetItemComboBox(sQuality)
|
||||||
|
Else
|
||||||
|
ValWnd.SetItemComboBox(m_MainWindow.m_CurrentMachine.sCurrWaterJettingQuality)
|
||||||
|
End If
|
||||||
|
If Not ValWnd.ShowDialog() Then Return
|
||||||
|
sQuality = ValWnd.GetItemComboBox
|
||||||
|
' comunico che ho letto il primo dato
|
||||||
|
bFirstWJ = False
|
||||||
|
End If
|
||||||
|
' ------------------ INIZIO PREPARAZIONE TASTIERINO VIRTUALE ------------------
|
||||||
|
' Modifica della lavorazione
|
||||||
|
EgtSetCurrMachining(nOperId)
|
||||||
|
EgtSetInfo(nOperId, "Quality", sQuality)
|
||||||
|
UpdateMachiningPreview(m_MachiningList(nI).m_nId, True)
|
||||||
|
' verifico interferenza
|
||||||
|
bGenModif = True
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
' Se modificato qualcosa
|
||||||
|
If bGenModif Then
|
||||||
|
EgtDraw()
|
||||||
|
m_bModified = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Function AdjustBothCuts(nI As Integer,
|
Private Function AdjustBothCuts(nI As Integer,
|
||||||
Optional bAllForced As Boolean = False,
|
Optional bAllForced As Boolean = False,
|
||||||
Optional bAccForced As Boolean = False) As Boolean
|
Optional bAccForced As Boolean = False) As Boolean
|
||||||
@@ -1960,7 +2008,7 @@ Public Class SplitPageUC
|
|||||||
Dim MyCuts As New List(Of Integer)
|
Dim MyCuts As New List(Of Integer)
|
||||||
For nI As Integer = 0 To m_MachiningList.Count() - 1
|
For nI As Integer = 0 To m_MachiningList.Count() - 1
|
||||||
If m_MachiningList(nI).m_bEnabled And
|
If m_MachiningList(nI).m_bEnabled And
|
||||||
( m_MachiningList(nI).m_sLay = NAME_OUTLOOP Or m_MachiningList(nI).m_sLay = NAME_INLOOP) Then
|
(m_MachiningList(nI).m_sLay = NAME_OUTLOOP Or m_MachiningList(nI).m_sLay = NAME_INLOOP) Then
|
||||||
MyCuts.Add(m_MachiningList(nI).m_nId)
|
MyCuts.Add(m_MachiningList(nI).m_nId)
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -1972,7 +2020,7 @@ Public Class SplitPageUC
|
|||||||
PrevBtn.IsEnabled = (m_nCurrPhase > 1)
|
PrevBtn.IsEnabled = (m_nCurrPhase > 1)
|
||||||
' Per bottone NEXT
|
' Per bottone NEXT
|
||||||
' Se abilitato manipolatore e non è con waterjet
|
' Se abilitato manipolatore e non è con waterjet
|
||||||
If ( m_MainWindow.GetKeyOption(MainWindow.KEY_OPT.MAN_MANIP) Or
|
If (m_MainWindow.GetKeyOption(MainWindow.KEY_OPT.MAN_MANIP) Or
|
||||||
m_MainWindow.GetKeyOption(MainWindow.KEY_OPT.AUTO_MANIP)) And
|
m_MainWindow.GetKeyOption(MainWindow.KEY_OPT.AUTO_MANIP)) And
|
||||||
Not m_MainWindow.m_CurrentMachine.bWaterJetting Then
|
Not m_MainWindow.m_CurrentMachine.bWaterJetting Then
|
||||||
' Se in modifica
|
' Se in modifica
|
||||||
@@ -2034,6 +2082,7 @@ Public Class SplitPageUC
|
|||||||
PauseBtn.IsEnabled = Not m_bShow And m_MainWindow.m_CurrentMachine.bEnablePause
|
PauseBtn.IsEnabled = Not m_bShow And m_MainWindow.m_CurrentMachine.bEnablePause
|
||||||
BridgesWJBtn.IsEnabled = Not m_bShow
|
BridgesWJBtn.IsEnabled = Not m_bShow
|
||||||
BridgesDeleteWJBtn.IsEnabled = Not m_bShow
|
BridgesDeleteWJBtn.IsEnabled = Not m_bShow
|
||||||
|
QualityWJBtn.IsEnabled = Not m_bShow
|
||||||
|
|
||||||
' nascondo i comandi che non devono essere visualizzati in funzione delle lavorazioni attive
|
' nascondo i comandi che non devono essere visualizzati in funzione delle lavorazioni attive
|
||||||
If m_nCountSawing = 0 And (m_nCountWaterjetting > 0 Or m_nCountOtherMachining) Then
|
If m_nCountSawing = 0 And (m_nCountWaterjetting > 0 Or m_nCountOtherMachining) Then
|
||||||
@@ -2153,13 +2202,16 @@ Public Class SplitPageUC
|
|||||||
If CutStartBtn.Visibility = Visibility.Hidden Then
|
If CutStartBtn.Visibility = Visibility.Hidden Then
|
||||||
BridgesWJBtn.Visibility = Visibility.Visible
|
BridgesWJBtn.Visibility = Visibility.Visible
|
||||||
BridgesDeleteWJBtn.Visibility = Visibility.Visible
|
BridgesDeleteWJBtn.Visibility = Visibility.Visible
|
||||||
|
QualityWJBtn.Visibility = Visibility.Visible
|
||||||
Else
|
Else
|
||||||
BridgesWJBtn.Visibility = Visibility.Hidden
|
BridgesWJBtn.Visibility = Visibility.Hidden
|
||||||
BridgesDeleteWJBtn.Visibility = Visibility.Hidden
|
BridgesDeleteWJBtn.Visibility = Visibility.Hidden
|
||||||
|
QualityWJBtn.Visibility = Visibility.Hidden
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
BridgesWJBtn.Visibility = Visibility.Hidden
|
BridgesWJBtn.Visibility = Visibility.Hidden
|
||||||
BridgesDeleteWJBtn.Visibility = Visibility.Hidden
|
BridgesDeleteWJBtn.Visibility = Visibility.Hidden
|
||||||
|
QualityWJBtn.Visibility = Visibility.Hidden
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -2181,7 +2233,7 @@ Public Class SplitPageUC
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Sub NumberDirectionMachining( nI As Integer, Optional bNumber As Boolean = True)
|
Private Sub NumberDirectionMachining(nI As Integer, Optional bNumber As Boolean = True)
|
||||||
EgtDisableModified()
|
EgtDisableModified()
|
||||||
' Determino se seconda lavorazione
|
' Determino se seconda lavorazione
|
||||||
Dim sName As String = String.Empty
|
Dim sName As String = String.Empty
|
||||||
@@ -2215,28 +2267,28 @@ Public Class SplitPageUC
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If bNumber Then
|
If bNumber Then
|
||||||
Dim nNbrId As Integer = EgtCreateTextAdv( m_nNbrGrpId, ptCen, 0, (nI + 1).ToString(), "",
|
Dim nNbrId As Integer = EgtCreateTextAdv(m_nNbrGrpId, ptCen, 0, (nI + 1).ToString(), "",
|
||||||
300, False, dHtxt, dRat, 0, INS_POS.MC)
|
300, False, dHtxt, dRat, 0, INS_POS.MC)
|
||||||
m_MachiningList(nI).m_nNbrId = nNbrId
|
m_MachiningList(nI).m_nNbrId = nNbrId
|
||||||
' Aggiungo a numero info con identificativo della lavorazione e viceversa
|
' Aggiungo a numero info con identificativo della lavorazione e viceversa
|
||||||
EgtSetInfo( nNbrId, "MId", m_MachiningList(nI).m_nId)
|
EgtSetInfo(nNbrId, "MId", m_MachiningList(nI).m_nId)
|
||||||
EgtSetInfo( m_MachiningList(nI).m_nId, "NbrId", nNbrId)
|
EgtSetInfo(m_MachiningList(nI).m_nId, "NbrId", nNbrId)
|
||||||
End If
|
End If
|
||||||
' Se taglio con lama, metto la direzione accanto al numero
|
' Se taglio con lama, metto la direzione accanto al numero
|
||||||
If m_MachiningList(nI).m_nType = MCH_OY.SAWING Then
|
If m_MachiningList(nI).m_nType = MCH_OY.SAWING Then
|
||||||
Dim ptStart As New Point3d( ptCen + m_MachiningList(nI).m_vtDir * dHtxt)
|
Dim ptStart As New Point3d(ptCen + m_MachiningList(nI).m_vtDir * dHtxt)
|
||||||
Dim vtDir As New Vector3d( m_MachiningList(nI).m_vtDir)
|
Dim vtDir As New Vector3d(m_MachiningList(nI).m_vtDir)
|
||||||
Dim bTwin As Boolean = ( Not m_MachiningList(nI).m_bEnableInvert OrElse Math.Abs( m_MachiningList(nI).m_dSideAng) > 0.1)
|
Dim bTwin As Boolean = (Not m_MachiningList(nI).m_bEnableInvert OrElse Math.Abs(m_MachiningList(nI).m_dSideAng) > 0.1)
|
||||||
Dim nArrId As Integer = AddMachiningDirection( ptStart, vtDir, dHtxt, bTwin)
|
Dim nArrId As Integer = AddMachiningDirection(ptStart, vtDir, dHtxt, bTwin)
|
||||||
m_MachiningList(nI).m_nArrId = nArrId
|
m_MachiningList(nI).m_nArrId = nArrId
|
||||||
' Aggiungo a freccia info con identificativo della lavorazione e viceversa
|
' Aggiungo a freccia info con identificativo della lavorazione e viceversa
|
||||||
EgtSetInfo( nArrId, "MId", m_MachiningList(nI).m_nId)
|
EgtSetInfo(nArrId, "MId", m_MachiningList(nI).m_nId)
|
||||||
EgtSetInfo( m_MachiningList(nI).m_nId, "ArrId", nArrId)
|
EgtSetInfo(m_MachiningList(nI).m_nId, "ArrId", nArrId)
|
||||||
Else
|
Else
|
||||||
m_MachiningList(nI).m_nArrId = GDB_ID.NULL
|
m_MachiningList(nI).m_nArrId = GDB_ID.NULL
|
||||||
End If
|
End If
|
||||||
' Assegno colore a numero e freccia
|
' Assegno colore a numero e freccia
|
||||||
ColorNumberArrow( nI)
|
ColorNumberArrow(nI)
|
||||||
EgtEnableModified()
|
EgtEnableModified()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -2298,18 +2350,18 @@ Public Class SplitPageUC
|
|||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function AddMachiningDirection( ptStart As Point3d, vtDir As Vector3d, dLen As Double, bTwin As Boolean) As Integer
|
Private Function AddMachiningDirection(ptStart As Point3d, vtDir As Vector3d, dLen As Double, bTwin As Boolean) As Integer
|
||||||
Dim dArrX As Double = dLen * Math.Cos( 30 * Math.PI / 180)
|
Dim dArrX As Double = dLen * Math.Cos(30 * Math.PI / 180)
|
||||||
Dim dArrY As Double = dLen * Math.Sin( 30 * Math.PI / 180)
|
Dim dArrY As Double = dLen * Math.Sin(30 * Math.PI / 180)
|
||||||
Dim nTmpId As Integer = EgtCreateLine( m_nNbrGrpId, Point3d.ORIG() + dArrY * Vector3d.Y_AX(), Point3d.ORIG() + dArrX * Vector3d.X_AX())
|
Dim nTmpId As Integer = EgtCreateLine(m_nNbrGrpId, Point3d.ORIG() + dArrY * Vector3d.Y_AX(), Point3d.ORIG() + dArrX * Vector3d.X_AX())
|
||||||
Dim nCrvId As Integer = EgtCreateCurveCompo( m_nNbrGrpId, nTmpId, True)
|
Dim nCrvId As Integer = EgtCreateCurveCompo(m_nNbrGrpId, nTmpId, True)
|
||||||
EgtAddCurveCompoLine( nCrvId, Point3d.ORIG() - dArrY * Vector3d.Y_AX())
|
EgtAddCurveCompoLine(nCrvId, Point3d.ORIG() - dArrY * Vector3d.Y_AX())
|
||||||
If bTwin Then
|
If bTwin Then
|
||||||
EgtAddCurveCompoLine( nCrvId, Point3d.ORIG() + 2 * dArrX * Vector3d.X_AX())
|
EgtAddCurveCompoLine(nCrvId, Point3d.ORIG() + 2 * dArrX * Vector3d.X_AX())
|
||||||
EgtCloseCurveCompo( nCrvId)
|
EgtCloseCurveCompo(nCrvId)
|
||||||
End If
|
End If
|
||||||
Dim frLoc As New Frame3d( ptStart, vtDir, Vector3d.Z_AX() ^ vtDir, Vector3d.Z_AX())
|
Dim frLoc As New Frame3d(ptStart, vtDir, Vector3d.Z_AX() ^ vtDir, Vector3d.Z_AX())
|
||||||
EgtTransform( nCrvId, frLoc)
|
EgtTransform(nCrvId, frLoc)
|
||||||
Return nCrvId
|
Return nCrvId
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -2340,35 +2392,35 @@ Public Class SplitPageUC
|
|||||||
Private Sub MarkNumberArrow(nI As Integer, bMark As Boolean)
|
Private Sub MarkNumberArrow(nI As Integer, bMark As Boolean)
|
||||||
If nI < 0 Then Return
|
If nI < 0 Then Return
|
||||||
Dim nNbrId As Integer = m_MachiningList(nI).m_nNbrId
|
Dim nNbrId As Integer = m_MachiningList(nI).m_nNbrId
|
||||||
Dim nArrId As Integer = m_MachiningList( nI).m_nArrId
|
Dim nArrId As Integer = m_MachiningList(nI).m_nArrId
|
||||||
If bMark Then
|
If bMark Then
|
||||||
EgtSetMark( nNbrId)
|
EgtSetMark(nNbrId)
|
||||||
EgtSetMark( nArrId)
|
EgtSetMark(nArrId)
|
||||||
Else
|
Else
|
||||||
EgtResetMark( nNbrId)
|
EgtResetMark(nNbrId)
|
||||||
EgtResetMark( nArrId)
|
EgtResetMark(nArrId)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ColorNumberArrow( nI As Integer)
|
Private Sub ColorNumberArrow(nI As Integer)
|
||||||
If nI < 0 Then Return
|
If nI < 0 Then Return
|
||||||
Dim nNbrId As Integer = m_MachiningList( nI).m_nNbrId
|
Dim nNbrId As Integer = m_MachiningList(nI).m_nNbrId
|
||||||
Dim nArrId As Integer = m_MachiningList( nI).m_nArrId
|
Dim nArrId As Integer = m_MachiningList(nI).m_nArrId
|
||||||
If m_MachiningList( nI).m_bEnabled Then
|
If m_MachiningList(nI).m_bEnabled Then
|
||||||
If m_MachiningList( nI).m_nInterf = FMI_TYPE.NONE Then
|
If m_MachiningList(nI).m_nInterf = FMI_TYPE.NONE Then
|
||||||
EgtSetColor( nNbrId, COL_MCH_FREE)
|
EgtSetColor(nNbrId, COL_MCH_FREE)
|
||||||
EgtSetColor( nArrId, COL_MCH_FREE)
|
EgtSetColor(nArrId, COL_MCH_FREE)
|
||||||
Else
|
Else
|
||||||
EgtSetColor( nNbrId, COL_MCH_INTERF)
|
EgtSetColor(nNbrId, COL_MCH_INTERF)
|
||||||
EgtSetColor( nArrId, COL_MCH_INTERF)
|
EgtSetColor(nArrId, COL_MCH_INTERF)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If m_MachiningList( nI).m_nInterf = FMI_TYPE.NONE Then
|
If m_MachiningList(nI).m_nInterf = FMI_TYPE.NONE Then
|
||||||
EgtResetColor( nNbrId)
|
EgtResetColor(nNbrId)
|
||||||
EgtResetColor( nArrId)
|
EgtResetColor(nArrId)
|
||||||
ElseIf Not m_MachiningList( nI).m_bEnabled Then
|
ElseIf Not m_MachiningList(nI).m_bEnabled Then
|
||||||
EgtSetColor( nNbrId, COL_MCH_DIS_INTERF)
|
EgtSetColor(nNbrId, COL_MCH_DIS_INTERF)
|
||||||
EgtSetColor( nArrId, COL_MCH_DIS_INTERF)
|
EgtSetColor(nArrId, COL_MCH_DIS_INTERF)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -2394,38 +2446,38 @@ Public Class SplitPageUC
|
|||||||
EgtEnableModified()
|
EgtEnableModified()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub SwapStartEndData( nI As Integer)
|
Private Sub SwapStartEndData(nI As Integer)
|
||||||
' Swap angoli precedente e successivo
|
' Swap angoli precedente e successivo
|
||||||
Dim dAng As Double = m_MachiningList( nI).m_dPrevAng
|
Dim dAng As Double = m_MachiningList(nI).m_dPrevAng
|
||||||
m_MachiningList( nI).m_dPrevAng = m_MachiningList( nI).m_dNextAng
|
m_MachiningList(nI).m_dPrevAng = m_MachiningList(nI).m_dNextAng
|
||||||
m_MachiningList( nI).m_dNextAng = dAng
|
m_MachiningList(nI).m_dNextAng = dAng
|
||||||
' Swap lunghezze libere
|
' Swap lunghezze libere
|
||||||
Dim dFreeLen As Double = m_MachiningList( nI).m_dStartFreeLen
|
Dim dFreeLen As Double = m_MachiningList(nI).m_dStartFreeLen
|
||||||
m_MachiningList( nI).m_dStartFreeLen = m_MachiningList( nI).m_dEndFreeLen
|
m_MachiningList(nI).m_dStartFreeLen = m_MachiningList(nI).m_dEndFreeLen
|
||||||
m_MachiningList( nI).m_dEndFreeLen = dFreeLen
|
m_MachiningList(nI).m_dEndFreeLen = dFreeLen
|
||||||
' Swap stato di allungamento
|
' Swap stato di allungamento
|
||||||
Dim bAll As Boolean = m_MachiningList( nI).m_bStartAll
|
Dim bAll As Boolean = m_MachiningList(nI).m_bStartAll
|
||||||
m_MachiningList( nI).m_bStartAll = m_MachiningList( nI).m_bEndAll
|
m_MachiningList(nI).m_bStartAll = m_MachiningList(nI).m_bEndAll
|
||||||
m_MachiningList( nI).m_bEndAll = bAll
|
m_MachiningList(nI).m_bEndAll = bAll
|
||||||
' Swap possibilità di allungamento
|
' Swap possibilità di allungamento
|
||||||
Dim bCanAll As Boolean = m_MachiningList( nI).m_bCanStartAll
|
Dim bCanAll As Boolean = m_MachiningList(nI).m_bCanStartAll
|
||||||
m_MachiningList( nI).m_bCanStartAll = m_MachiningList( nI).m_bCanEndAll
|
m_MachiningList(nI).m_bCanStartAll = m_MachiningList(nI).m_bCanEndAll
|
||||||
m_MachiningList( nI).m_bCanEndAll = bCanAll
|
m_MachiningList(nI).m_bCanEndAll = bCanAll
|
||||||
' Swap stato interferenza
|
' Swap stato interferenza
|
||||||
if ( m_MachiningList( nI).m_nInterf And FMI_TYPE.LI) <> 0 And ( m_MachiningList( nI).m_nInterf And FMI_TYPE.LO) = 0 Then
|
If (m_MachiningList(nI).m_nInterf And FMI_TYPE.LI) <> 0 And (m_MachiningList(nI).m_nInterf And FMI_TYPE.LO) = 0 Then
|
||||||
m_MachiningList( nI).m_nInterf -= FMI_TYPE.LI
|
m_MachiningList(nI).m_nInterf -= FMI_TYPE.LI
|
||||||
m_MachiningList( nI).m_nInterf += FMI_TYPE.LO
|
m_MachiningList(nI).m_nInterf += FMI_TYPE.LO
|
||||||
ElseIf ( m_MachiningList( nI).m_nInterf And FMI_TYPE.LI) = 0 And ( m_MachiningList( nI).m_nInterf And FMI_TYPE.LO) <> 0 Then
|
ElseIf (m_MachiningList(nI).m_nInterf And FMI_TYPE.LI) = 0 And (m_MachiningList(nI).m_nInterf And FMI_TYPE.LO) <> 0 Then
|
||||||
m_MachiningList( nI).m_nInterf += FMI_TYPE.LI
|
m_MachiningList(nI).m_nInterf += FMI_TYPE.LI
|
||||||
m_MachiningList( nI).m_nInterf -= FMI_TYPE.LO
|
m_MachiningList(nI).m_nInterf -= FMI_TYPE.LO
|
||||||
End If
|
End If
|
||||||
' Swap Allungamento Utente
|
' Swap Allungamento Utente
|
||||||
Dim dOrigUsal As Double = 0
|
Dim dOrigUsal As Double = 0
|
||||||
EgtGetInfo( m_MachiningList( nI).m_nId, INFO_MCH_USER_SAL, dOrigUsal)
|
EgtGetInfo(m_MachiningList(nI).m_nId, INFO_MCH_USER_SAL, dOrigUsal)
|
||||||
Dim dOrigUeal As Double = 0
|
Dim dOrigUeal As Double = 0
|
||||||
EgtGetInfo( m_MachiningList( nI).m_nId, INFO_MCH_USER_EAL, dOrigUeal)
|
EgtGetInfo(m_MachiningList(nI).m_nId, INFO_MCH_USER_EAL, dOrigUeal)
|
||||||
EgtSetInfo( m_MachiningList( nI).m_nId, INFO_MCH_USER_SAL, dOrigUeal)
|
EgtSetInfo(m_MachiningList(nI).m_nId, INFO_MCH_USER_SAL, dOrigUeal)
|
||||||
EgtSetInfo( m_MachiningList( nI).m_nId, INFO_MCH_USER_EAL, dOrigUsal)
|
EgtSetInfo(m_MachiningList(nI).m_nId, INFO_MCH_USER_EAL, dOrigUsal)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'-----------------------------------------------------------------------------------------------
|
'-----------------------------------------------------------------------------------------------
|
||||||
@@ -2455,10 +2507,10 @@ Public Class SplitPageUC
|
|||||||
Return m_sName
|
Return m_sName
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
If value <> m_sName Then
|
If value <> m_sName Then
|
||||||
m_sName = value
|
m_sName = value
|
||||||
NotifyPropertyChanged("Name")
|
NotifyPropertyChanged("Name")
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -2467,10 +2519,10 @@ Public Class SplitPageUC
|
|||||||
Return m_bIsActive
|
Return m_bIsActive
|
||||||
End Get
|
End Get
|
||||||
Set(value As Boolean)
|
Set(value As Boolean)
|
||||||
If value <> m_bIsActive Then
|
If value <> m_bIsActive Then
|
||||||
m_bIsActive = value
|
m_bIsActive = value
|
||||||
NotifyPropertyChanged("bIsActive")
|
NotifyPropertyChanged("bIsActive")
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
|||||||
@@ -1414,7 +1414,10 @@ Public Class CurrentMachine
|
|||||||
If bFound Then Exit For
|
If bFound Then Exit For
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
Return dMaxThick
|
' il valore resituito è già nell'unità corrente del programma -> converto il dato in mm
|
||||||
|
Dim dValmm As Double = 0
|
||||||
|
StringToLen(DoubleToString(dMaxThick, 3), dValmm)
|
||||||
|
Return dValmm
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#Region "USERNOTE"
|
#Region "USERNOTE"
|
||||||
|
|||||||
@@ -899,11 +899,11 @@ Public Class MachiningDbPageUC
|
|||||||
For Each Material As MachiningMaterial In m_MaterialsList
|
For Each Material As MachiningMaterial In m_MaterialsList
|
||||||
If m_MainWindow.m_CurrentMachine.bWaterJet And m_MainWindow.m_CurrentMachine.bFromDBWaterJet Then
|
If m_MainWindow.m_CurrentMachine.bWaterJet And m_MainWindow.m_CurrentMachine.bFromDBWaterJet Then
|
||||||
If Material.bIsActive Then
|
If Material.bIsActive Then
|
||||||
sMaterialString += Material.nId.ToString & "." & Material.nSubId.ToString & "," & DoubleToString(Material.dMinThickness, 0) & "," & DoubleToString(Material.dMaxThickness, 0) & ";"
|
sMaterialString += Material.nId.ToString & "." & Material.nSubId.ToString & "," & DoubleToString(Material.dMinThickness, 3) & "," & DoubleToString(Material.dMaxThickness, 3) & ";"
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Material.bIsActive Then
|
If Material.bIsActive Then
|
||||||
sMaterialString += Material.nId.ToString & "," & DoubleToString(Material.dMinThickness, 0) & "," & DoubleToString(Material.dMaxThickness, 0) & ";"
|
sMaterialString += Material.nId.ToString & "," & DoubleToString(Material.dMinThickness, 3) & "," & DoubleToString(Material.dMaxThickness, 3) & ";"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|||||||
@@ -162,6 +162,7 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBlock Text="{Binding Thickness_Msg}" Grid.Column="0" HorizontalAlignment="Center"
|
<TextBlock Text="{Binding Thickness_Msg}" Grid.Column="0" HorizontalAlignment="Center"
|
||||||
@@ -185,12 +186,19 @@
|
|||||||
<TextBlock Text="{Binding QExtra_Msg}" Grid.Column="6" HorizontalAlignment="Center"
|
<TextBlock Text="{Binding QExtra_Msg}" Grid.Column="6" HorizontalAlignment="Center"
|
||||||
Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"
|
Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"
|
||||||
FontSize="{DynamicResource FontSize_GroupBoxHeader}"/>
|
FontSize="{DynamicResource FontSize_GroupBoxHeader}"/>
|
||||||
|
<TextBlock Text="{Binding AngComp_Msg}" Grid.Column="7" HorizontalAlignment="Center"
|
||||||
|
Style="{StaticResource OmagCut_LowerCaseCharacterTextBlock}"
|
||||||
|
FontSize="{DynamicResource FontSize_GroupBoxHeader}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</GroupBox.Header>
|
</GroupBox.Header>
|
||||||
|
|
||||||
<!--Definizione della Grid dei parametri delle lavorazioni-->
|
<!--Definizione della Grid dei parametri delle lavorazioni-->
|
||||||
<Grid Grid.Column="2">
|
<Grid Grid.Column="2">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="308*"/>
|
||||||
|
<ColumnDefinition Width="73*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="7*"/>
|
<RowDefinition Height="7*"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
@@ -201,7 +209,7 @@
|
|||||||
ItemsSource="{Binding Path=SelectedItem.ParamList , ElementName=SubMaterialsLstBx}"
|
ItemsSource="{Binding Path=SelectedItem.ParamList , ElementName=SubMaterialsLstBx}"
|
||||||
SelectedItem="{Binding Path=SelectedItem.SelWjParam , ElementName=SubMaterialsLstBx}"
|
SelectedItem="{Binding Path=SelectedItem.SelWjParam , ElementName=SubMaterialsLstBx}"
|
||||||
Margin="0,0,0,0"
|
Margin="0,0,0,0"
|
||||||
Grid.RowSpan="2">
|
Grid.RowSpan="2" Grid.ColumnSpan="2">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Grid Width="700">
|
<Grid Width="700">
|
||||||
@@ -213,29 +221,31 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<EgtWPFLib:EgtTextBox Text="{Binding Thickness}" Grid.Column="0"
|
<EgtWPFLib:EgtTextBox Text="{Binding Thickness}" Grid.Column="0"
|
||||||
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
||||||
<EgtWPFLib:EgtTextBox Text="{Binding Q1}" Grid.Column="1" IsLength="False"
|
<EgtWPFLib:EgtTextBox Text="{Binding Q1}" Grid.Column="1"
|
||||||
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
||||||
<EgtWPFLib:EgtTextBox Text="{Binding Q2}" Grid.Column="2" IsLength="False"
|
<EgtWPFLib:EgtTextBox Text="{Binding Q2}" Grid.Column="2"
|
||||||
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
||||||
<EgtWPFLib:EgtTextBox Text="{Binding Q3}" Grid.Column="3" IsLength="False"
|
<EgtWPFLib:EgtTextBox Text="{Binding Q3}" Grid.Column="3"
|
||||||
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
||||||
<EgtWPFLib:EgtTextBox Text="{Binding Q4}" Grid.Column="4" IsLength="False"
|
<EgtWPFLib:EgtTextBox Text="{Binding Q4}" Grid.Column="4"
|
||||||
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
||||||
<EgtWPFLib:EgtTextBox Text="{Binding Q5}" Grid.Column="5" IsLength="False"
|
<EgtWPFLib:EgtTextBox Text="{Binding Q5}" Grid.Column="5"
|
||||||
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
||||||
<EgtWPFLib:EgtTextBox Text="{Binding QExtra}" Grid.Column="6" IsLength="False"
|
<EgtWPFLib:EgtTextBox Text="{Binding QExtra}" Grid.Column="6"
|
||||||
|
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
||||||
|
<EgtWPFLib:EgtTextBox Text="{Binding dAngComp}" Grid.Column="7" IsLength="False"
|
||||||
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
Style="{DynamicResource OmagCut_CalculatorParamWjTextBox}" />
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
</ListBox>
|
</ListBox>
|
||||||
|
|
||||||
<UniformGrid Grid.Row="2" Columns="9" Grid.ColumnSpan="3">
|
<UniformGrid Grid.Row="2" Columns="9" Grid.ColumnSpan="2">
|
||||||
<Button Name="NewParamBtn" Grid.Column="0"
|
<Button Name="NewParamBtn" Grid.Column="0"
|
||||||
Command="{Binding NewWjParamCommand}"
|
Command="{Binding NewWjParamCommand}"
|
||||||
Content="{Binding New_Msg}"
|
Content="{Binding New_Msg}"
|
||||||
|
|||||||
@@ -14,12 +14,20 @@ Public Class WaterJetPageUC
|
|||||||
|
|
||||||
Private Sub WaterJetPage_Initialized(sender As Object, e As EventArgs)
|
Private Sub WaterJetPage_Initialized(sender As Object, e As EventArgs)
|
||||||
m_refWaterjetDbWindowVM = New WaterjetDbWindowVM_OmagCUT(m_MainWindow.m_CurrentMachine.sMachDir)
|
m_refWaterjetDbWindowVM = New WaterjetDbWindowVM_OmagCUT(m_MainWindow.m_CurrentMachine.sMachDir)
|
||||||
|
'----------------------------------------------------------------------------------------
|
||||||
|
' TEMPORANEO - se dati in INCH e richiesta di frazioni eseguo la conversione in frazione!
|
||||||
|
ConvertParamListValueToFracrion()
|
||||||
|
'----------------------------------------------------------------------------------------
|
||||||
Me.DataContext = m_refWaterjetDbWindowVM
|
Me.DataContext = m_refWaterjetDbWindowVM
|
||||||
EgtWPFLib.Utility.MainWindow = m_MainWindow
|
EgtWPFLib.Utility.MainWindow = m_MainWindow
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub WaterJetPage_Reinitialize()
|
Public Sub WaterJetPage_Reinitialize()
|
||||||
m_refWaterjetDbWindowVM = New WaterjetDbWindowVM_OmagCUT(m_MainWindow.m_CurrentMachine.sMachDir)
|
m_refWaterjetDbWindowVM = New WaterjetDbWindowVM_OmagCUT(m_MainWindow.m_CurrentMachine.sMachDir)
|
||||||
|
'----------------------------------------------------------------------------------------
|
||||||
|
' TEMPORANEO - se dati in INCH e richiesta di frazioni eseguo la conversione in frazione!
|
||||||
|
ConvertParamListValueToFracrion()
|
||||||
|
'----------------------------------------------------------------------------------------
|
||||||
Me.DataContext = m_refWaterjetDbWindowVM
|
Me.DataContext = m_refWaterjetDbWindowVM
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -51,5 +59,48 @@ Public Class WaterJetPageUC
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ConvertParamListValueToFracrion()
|
||||||
|
' TEMPORANEO - se dati in INCH e richiesta di frazioni eseguo la conversione in frazione!
|
||||||
|
Dim Index1 As Integer = 0
|
||||||
|
For Index1 = 0 To m_refWaterjetDbWindowVM.MaterialList.Count - 1
|
||||||
|
Dim Index2 As Integer = 0
|
||||||
|
For Index2 = 0 To m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList.Count - 1
|
||||||
|
Dim Index3 As Integer = 0
|
||||||
|
For Index3 = 0 To m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList.Count - 1
|
||||||
|
Dim dThickness As Double
|
||||||
|
Dim dQ1 As Double
|
||||||
|
Dim dQ2 As Double
|
||||||
|
Dim dQ3 As Double
|
||||||
|
Dim dQ4 As Double
|
||||||
|
Dim dQ5 As Double
|
||||||
|
Dim dQExtra As Double
|
||||||
|
Dim dAngComp As Double
|
||||||
|
StringToLen(m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).Thickness, dThickness)
|
||||||
|
Dim sVal As String = LenToString(dThickness, 3)
|
||||||
|
m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).SetThickness(sVal)
|
||||||
|
StringToLen(m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).Q1, dQ1)
|
||||||
|
sVal = LenToString(dQ1, 3)
|
||||||
|
m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).SetQ1(sVal)
|
||||||
|
StringToLen(m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).Q2, dQ2)
|
||||||
|
sVal = LenToString(dQ2, 3)
|
||||||
|
m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).SetQ2(sVal)
|
||||||
|
StringToLen(m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).Q3, dQ3)
|
||||||
|
sVal = LenToString(dQ3, 3)
|
||||||
|
m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).SetQ3(sVal)
|
||||||
|
StringToLen(m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).Q4, dQ4)
|
||||||
|
sVal = LenToString(dQ4, 3)
|
||||||
|
m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).SetQ4(sVal)
|
||||||
|
StringToLen(m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).Q5, dQ5)
|
||||||
|
sVal = LenToString(dQ5, 3)
|
||||||
|
m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).SetQ5(sVal)
|
||||||
|
StringToLen(m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).QExtra, dQExtra)
|
||||||
|
sVal = LenToString(dQExtra, 3)
|
||||||
|
m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).SetQExtra(sVal)
|
||||||
|
StringToDouble(m_refWaterjetDbWindowVM.MaterialList(Index1).SubMaterialList(Index2).ParamList(Index3).dAngComp, dAngComp)
|
||||||
|
Next
|
||||||
|
Next
|
||||||
|
Next
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
|||||||
@@ -445,6 +445,12 @@ Public Class WaterjetDbWindowVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property AngComp_Msg As String
|
||||||
|
Get
|
||||||
|
Return "Ang"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Public ReadOnly Property New_Msg As String
|
Public ReadOnly Property New_Msg As String
|
||||||
Get
|
Get
|
||||||
Return "Nuovo"
|
Return "Nuovo"
|
||||||
@@ -516,7 +522,14 @@ Public Class WaterjetDbWindowVM
|
|||||||
StringToDouble(sParams(4), dQ4)
|
StringToDouble(sParams(4), dQ4)
|
||||||
StringToDouble(sParams(5), dQ5)
|
StringToDouble(sParams(5), dQ5)
|
||||||
StringToDouble(sParams(6), dQExtra)
|
StringToDouble(sParams(6), dQExtra)
|
||||||
QParamList.Add(New WjParam(QInd, dThickness, dQ1, dQ2, dQ3, dQ4, dQ5, dQExtra, m_refWaterPageV))
|
Dim LocalWjParam As New WjParam(QInd, dThickness, dQ1, dQ2, dQ3, dQ4, dQ5, dQExtra, m_refWaterPageV)
|
||||||
|
QParamList.Add(LocalWjParam)
|
||||||
|
' leggo il nuovo parametro di correzione conicità (di default il parametro è 0)
|
||||||
|
If sParams.Length() >= 8 Then
|
||||||
|
Dim dAngCompo As Double
|
||||||
|
StringToDouble(sParams(7), dAngCompo)
|
||||||
|
LocalWjParam.dAngComp = dAngCompo
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
QInd += 1
|
QInd += 1
|
||||||
End While
|
End While
|
||||||
@@ -868,6 +881,17 @@ Public Class WjParam
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
' angolo di compensazione conicità getto: 01/02/2023 ver 2.5b1
|
||||||
|
Private m_dAngComp As Double = 0
|
||||||
|
Public Property dAngComp As Double
|
||||||
|
Get
|
||||||
|
Return m_dAngComp
|
||||||
|
End Get
|
||||||
|
Set(value As Double)
|
||||||
|
m_dAngComp = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Public ReadOnly Property ParamLstBx_Width As Double
|
Public ReadOnly Property ParamLstBx_Width As Double
|
||||||
Get
|
Get
|
||||||
Return m_refWaterPageV.ParamsGpBx.ActualWidth - 20
|
Return m_refWaterPageV.ParamsGpBx.ActualWidth - 20
|
||||||
|
|||||||
@@ -1319,6 +1319,9 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="Resources\NewIcons\Parking.png" />
|
<Resource Include="Resources\NewIcons\Parking.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Resource Include="Resources\NewIcons\Quality.png" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\OmagCUT\OmagCUTR32.exe
|
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\OmagCUT\OmagCUTR32.exe
|
||||||
|
|||||||
@@ -221,6 +221,7 @@
|
|||||||
<BitmapImage x:Key="Inizio-Allunga-AccorciaImg" UriSource="Resources/NewIcons/Inizio-allunga-o-accorcia.png"></BitmapImage>
|
<BitmapImage x:Key="Inizio-Allunga-AccorciaImg" UriSource="Resources/NewIcons/Inizio-allunga-o-accorcia.png"></BitmapImage>
|
||||||
<BitmapImage x:Key="PonticelliWJImg" UriSource="Resources/NewIcons/Ponticelli.png"></BitmapImage>
|
<BitmapImage x:Key="PonticelliWJImg" UriSource="Resources/NewIcons/Ponticelli.png"></BitmapImage>
|
||||||
<BitmapImage x:Key="PonticelliDeleteWJImg" UriSource="Resources/NewIcons/Ponticelli_delete.png"></BitmapImage>
|
<BitmapImage x:Key="PonticelliDeleteWJImg" UriSource="Resources/NewIcons/Ponticelli_delete.png"></BitmapImage>
|
||||||
|
<BitmapImage x:Key="QualityWJImg" UriSource="Resources/NewIcons/Quality.png"></BitmapImage>
|
||||||
<BitmapImage x:Key="Fine-Allunga-AccorciaImg" UriSource="Resources/NewIcons/Fine-allunga-o-accorcia.png"></BitmapImage>
|
<BitmapImage x:Key="Fine-Allunga-AccorciaImg" UriSource="Resources/NewIcons/Fine-allunga-o-accorcia.png"></BitmapImage>
|
||||||
<BitmapImage x:Key="ON_OFF-singolo-taglioImg" UriSource="Resources/NewIcons/ON_OFF-singolo-taglio.png"></BitmapImage>
|
<BitmapImage x:Key="ON_OFF-singolo-taglioImg" UriSource="Resources/NewIcons/ON_OFF-singolo-taglio.png"></BitmapImage>
|
||||||
<BitmapImage x:Key="Tutti-ONImg" UriSource="Resources/NewIcons/Tutti-ON.png"></BitmapImage>
|
<BitmapImage x:Key="Tutti-ONImg" UriSource="Resources/NewIcons/Tutti-ON.png"></BitmapImage>
|
||||||
|
|||||||
@@ -357,6 +357,12 @@ Public Class OptionsPageUC
|
|||||||
' Aggiorno dati nella pagina dipendenti da unità di misura
|
' Aggiorno dati nella pagina dipendenti da unità di misura
|
||||||
UpdateSlabDxf()
|
UpdateSlabDxf()
|
||||||
UpdateAllCSTA()
|
UpdateAllCSTA()
|
||||||
|
If m_MainWindow.m_CurrentMachine.bWaterJet And m_MainWindow.m_CurrentMachine.bFromDBWaterJet Then
|
||||||
|
m_MainWindow.m_CurrentMachine.LoadWJMaterial()
|
||||||
|
If Not IsNothing(m_MainWindow.m_MachinePageUC.m_WaterJetPageUC) Then
|
||||||
|
m_MainWindow.m_MachinePageUC.m_WaterJetPageUC.WaterJetPage_Reinitialize()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub FractionPatternCmBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles FractionPatternCmBx.SelectionChanged
|
Private Sub FractionPatternCmBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles FractionPatternCmBx.SelectionChanged
|
||||||
@@ -366,6 +372,12 @@ Public Class OptionsPageUC
|
|||||||
' Aggiorno dati nella pagina dipendenti da unità di misura
|
' Aggiorno dati nella pagina dipendenti da unità di misura
|
||||||
UpdateSlabDxf()
|
UpdateSlabDxf()
|
||||||
UpdateAllCSTA()
|
UpdateAllCSTA()
|
||||||
|
If m_MainWindow.m_CurrentMachine.bWaterJet And m_MainWindow.m_CurrentMachine.bFromDBWaterJet Then
|
||||||
|
m_MainWindow.m_CurrentMachine.LoadWJMaterial()
|
||||||
|
If Not IsNothing(m_MainWindow.m_MachinePageUC.m_WaterJetPageUC) Then
|
||||||
|
m_MainWindow.m_MachinePageUC.m_WaterJetPageUC.WaterJetPage_Reinitialize()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub PrecisionCmBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles PrecisionCmBx.SelectionChanged
|
Private Sub PrecisionCmBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles PrecisionCmBx.SelectionChanged
|
||||||
@@ -374,6 +386,12 @@ Public Class OptionsPageUC
|
|||||||
' Aggiorno dati nella pagina dipendenti da unità di misura
|
' Aggiorno dati nella pagina dipendenti da unità di misura
|
||||||
UpdateSlabDxf()
|
UpdateSlabDxf()
|
||||||
UpdateAllCSTA()
|
UpdateAllCSTA()
|
||||||
|
If m_MainWindow.m_CurrentMachine.bWaterJet And m_MainWindow.m_CurrentMachine.bFromDBWaterJet Then
|
||||||
|
m_MainWindow.m_CurrentMachine.LoadWJMaterial()
|
||||||
|
If Not IsNothing(m_MainWindow.m_MachinePageUC.m_WaterJetPageUC) Then
|
||||||
|
m_MainWindow.m_MachinePageUC.m_WaterJetPageUC.WaterJetPage_Reinitialize()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ThemesCmBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles ThemesCmBx.SelectionChanged
|
Private Sub ThemesCmBx_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles ThemesCmBx.SelectionChanged
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Reference in New Issue
Block a user