EgtCAM5 :

- in DB utensili e lavorazioni limitazione validazione alla apertura del dialogo
- piccola miglioria in controllo MaxMat per lame.
This commit is contained in:
Dario Sassi
2016-10-11 06:53:13 +00:00
parent bf04d07c8e
commit e8e588dc47
4 changed files with 20 additions and 1 deletions
+5 -1
View File
@@ -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