jj 25.04 CURRENCY $$$
This commit is contained in:
@@ -297,15 +297,23 @@
|
||||
|
||||
Public Shared Sub LoadValue(control As System.Windows.Forms.TextBox, recordId As Integer, parentRecordId As Integer, value As String, entity_ID As Integer, Optional VARIABLE_VALUE As Boolean = False)
|
||||
Try
|
||||
Dim ControlId As Integer = DirectCast(control.Tag, ClassControlMetadata).Id
|
||||
If ControlId = 272 Then
|
||||
Console.WriteLine("272")
|
||||
End If
|
||||
Dim ControlMeta As ClassControlMetadata = DirectCast(control.Tag, ClassControlMetadata)
|
||||
Dim ControlId As Integer = ControlMeta.Id
|
||||
Dim ControlFormat As String = ControlMeta.Format
|
||||
|
||||
If CURRENT_RECORD_ENABLED = False Then
|
||||
control.Text = value
|
||||
If ControlFormat = "Currency" Then
|
||||
control.Text = ClassHelper.Format_Currency(value, USER_LANGUAGE)
|
||||
Else
|
||||
control.Text = value
|
||||
End If
|
||||
Else
|
||||
If VARIABLE_VALUE = True Then
|
||||
control.Text = value
|
||||
If ControlFormat = "Currency" Then
|
||||
control.Text = ClassHelper.Format_Currency(value, USER_LANGUAGE)
|
||||
Else
|
||||
control.Text = value
|
||||
End If
|
||||
Else
|
||||
Dim drarray() As DataRow = CURRENT_SQL_AUTO_VALUES_DT.Select("CONTROL_ID = " & ControlId)
|
||||
If drarray.Length > 0 Then
|
||||
|
||||
Reference in New Issue
Block a user