EgtCAM5 :
- in DB utensili e lavorazioni limitazione validazione alla apertura del dialogo - piccola miglioria in controllo MaxMat per lame.
This commit is contained in:
@@ -1269,6 +1269,10 @@ Public Class ToolTreeViewItem
|
||||
Private Shared ReadOnly ValidatedProperties() As String = {"Draw", "MaxMat", "Thick", "Diam", "Len", "TotLen", "Speed", "NamePar"}
|
||||
|
||||
Private Function GetValidationError(ByVal propertyName As String) As String
|
||||
|
||||
If Not EgtCAM5.ToolsDbViewModel.m_bActive Then
|
||||
Return Nothing
|
||||
End If
|
||||
If Array.IndexOf(ValidatedProperties, propertyName) < 0 Then
|
||||
Return Nothing
|
||||
End If
|
||||
@@ -1374,7 +1378,7 @@ Public Class ToolTreeViewItem
|
||||
If Not IsNothing(m_MaxMat) Then
|
||||
Dim dMaxMat As Double = 0
|
||||
StringToLen(m_MaxMat, dMaxMat)
|
||||
If (dDiam / 3) < dMaxMat Then
|
||||
If (dDiam / 3) + EPS_SMALL < dMaxMat Then
|
||||
Return EgtMsg(MSG_TOOLSERRORS + 19)
|
||||
End If
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user