WIP
This commit is contained in:
@@ -5,16 +5,17 @@ Imports ImporterShared.Documents
|
||||
Imports ImporterShared.DocumentRow
|
||||
Imports DevExpress.XtraEditors.Repository
|
||||
Imports ImporterShared.Winline
|
||||
Imports DigitalData.Modules.Language
|
||||
|
||||
Public Class frmRowEditor
|
||||
Private ReadOnly _Columns As List(Of String)
|
||||
Private ReadOnly _DataTable As New DataTable
|
||||
Private ReadOnly _Accounts As List(Of Account)
|
||||
Private _DocumentRow As ImporterShared.DocumentRow
|
||||
Private ReadOnly _DocumentRow As ImporterShared.DocumentRow
|
||||
|
||||
Private DatePicker As New RepositoryItemDateEdit()
|
||||
Private MultilineEditor As New RepositoryItemMemoEdit()
|
||||
Private AccountPicker As New RepositoryItemSearchLookUpEdit
|
||||
Private ReadOnly DatePicker As New RepositoryItemDateEdit()
|
||||
Private ReadOnly MultilineEditor As New RepositoryItemMemoEdit()
|
||||
Private ReadOnly AccountPicker As New RepositoryItemSearchLookUpEdit
|
||||
|
||||
Private Const COL_KEY = "KEY"
|
||||
Private Const COL_VALUE_ORIGINAL = "VALUE_ORIGINAL"
|
||||
@@ -39,6 +40,11 @@ Public Class frmRowEditor
|
||||
AccountPicker.DataSource = _Accounts
|
||||
AccountPicker.DisplayMember = "Name"
|
||||
AccountPicker.ValueMember = "Id"
|
||||
|
||||
'DatePicker.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime
|
||||
'DatePicker.EditFormat.FormatString = "dd/MM/yyyy"
|
||||
'DatePicker.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime
|
||||
'DatePicker.DisplayFormat.FormatString = "yyyy-MM-dd"
|
||||
End Sub
|
||||
|
||||
Private Sub frmRowEditor_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
@@ -82,8 +88,8 @@ Public Class frmRowEditor
|
||||
oField = New KeyValuePair(Of String, FieldValue)(oRow.Item(COL_KEY), New FieldValue())
|
||||
End If
|
||||
|
||||
Dim oFieldValue = oField.Value
|
||||
oFieldValue.Final = oRow.Item(COL_VALUE_FINAL)
|
||||
Dim oFieldValue As FieldValue = oField.Value
|
||||
oFieldValue.Final = Utils.Notnull(oRow.Item(COL_VALUE_FINAL), String.Empty)
|
||||
|
||||
If _DocumentRow.Fields.ContainsKey(oField.Key) Then
|
||||
_DocumentRow.Fields.Item(oField.Key) = oFieldValue
|
||||
|
||||
Reference in New Issue
Block a user