Reconfigure for GIT
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
Partial Class OrderInRowsOtherVC
|
||||
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Public Sub New(ByVal Container As System.ComponentModel.IContainer)
|
||||
MyClass.New()
|
||||
|
||||
'Required for Windows.Forms Class Composition Designer support
|
||||
Container.Add(Me)
|
||||
|
||||
End Sub
|
||||
|
||||
'Component overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
'Required by the Component Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Component Designer
|
||||
'It can be modified using the Component Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
components = New System.ComponentModel.Container()
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
Imports System.Collections.Generic
|
||||
Imports System.Diagnostics
|
||||
Imports System.Text
|
||||
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.ExpressApp.Actions
|
||||
Imports DevExpress.Persistent.Base
|
||||
Imports DevExpress.ExpressApp.Win.Editors
|
||||
Imports DevExpress.ExpressApp.SystemModule
|
||||
Imports DevExpress.XtraGrid.Columns
|
||||
|
||||
Public Class OrderInRowsOtherVC
|
||||
Inherits DevExpress.ExpressApp.ViewController(Of ListView)
|
||||
|
||||
Private _GridListEditor As GridListEditor
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id = "OrderInHeader_OrderInRows_ListView" Then
|
||||
If _GridListEditor IsNot Nothing Then
|
||||
If _GridListEditor.GridView IsNot Nothing Then
|
||||
RemoveHandler _GridListEditor.GridView.CellValueChanged, AddressOf OrderInHeader_OrderInRows_ListView_CellValueChanged
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
Protected Overrides Sub OnViewControlsCreated()
|
||||
MyBase.OnViewControlsCreated()
|
||||
|
||||
'If View.Id = "OrderInHeader_OrderInRowsOther_ListView" Then
|
||||
' Dim _ListView As ListView = CType(View, ListView)
|
||||
' Dim _PropertyCollectionSource As PropertyCollectionSource = CType(_ListView.CollectionSource, PropertyCollectionSource)
|
||||
' Dim _OrderInHeader As OrderInHeader = CType(_PropertyCollectionSource.MasterObject, OrderInHeader)
|
||||
' If _OrderInHeader.IsEditable = True Then
|
||||
' _GridListEditor = TryCast(View.Editor, GridListEditor)
|
||||
' If _GridListEditor IsNot Nothing Then
|
||||
' _GridListEditor.AllowEdit = True
|
||||
|
||||
' If _OrderInHeader.OrderInParameters.CurrencyName IsNot Nothing Then
|
||||
' For i As Integer = 0 To _GridListEditor.Columns.Count - 1
|
||||
' If _OrderInHeader.OrderInParameters.CurrencyName.ShortName = "HUF" Then
|
||||
' If _GridListEditor.GridView.Columns(i).FieldName <> "QTT" _
|
||||
' And _GridListEditor.GridView.Columns(i).FieldName <> "Description" _
|
||||
' And _GridListEditor.GridView.Columns(i).FieldName <> "DiscountPriceHUF" Then
|
||||
' _GridListEditor.GridView.Columns(i).OptionsColumn.ReadOnly = True
|
||||
' _GridListEditor.GridView.Columns(i).OptionsColumn.AllowEdit = False
|
||||
' _GridListEditor.GridView.Columns(i).OptionsColumn.TabStop = False
|
||||
' End If
|
||||
' Else
|
||||
' If _GridListEditor.GridView.Columns(i).FieldName <> "QTT" _
|
||||
' And _GridListEditor.GridView.Columns(i).FieldName <> "Description" _
|
||||
' And _GridListEditor.GridView.Columns(i).FieldName <> "DiscountPriceDEV" Then
|
||||
|
||||
' _GridListEditor.GridView.Columns(i).OptionsColumn.ReadOnly = True
|
||||
' _GridListEditor.GridView.Columns(i).OptionsColumn.AllowEdit = False
|
||||
' _GridListEditor.GridView.Columns(i).OptionsColumn.TabStop = False
|
||||
' End If
|
||||
' End If
|
||||
|
||||
' Next i
|
||||
' End If
|
||||
' End If
|
||||
' End If
|
||||
'End If
|
||||
If View.Id = "OrderInHeader_OrderInRows_ListView" Then
|
||||
Dim _ListView As ListView = CType(View, ListView)
|
||||
Dim _PropertyCollectionSource As PropertyCollectionSource = CType(_ListView.CollectionSource, PropertyCollectionSource)
|
||||
Dim _OrderInHeader As OrderInHeader = CType(_PropertyCollectionSource.MasterObject, OrderInHeader)
|
||||
If _OrderInHeader.IsEditable = True Then
|
||||
_GridListEditor = TryCast(View.Editor, GridListEditor)
|
||||
If _GridListEditor IsNot Nothing Then
|
||||
AddHandler _GridListEditor.GridView.CellValueChanged, AddressOf OrderInHeader_OrderInRows_ListView_CellValueChanged
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub OrderInHeader_OrderInRows_ListView_CellValueChanged(sender As Object, e As DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs)
|
||||
If TryCast(e.Column, GridColumn).FieldName = "QTT_Process" Then
|
||||
Dim nestedFrame As NestedFrame = TryCast(Frame, NestedFrame)
|
||||
If nestedFrame IsNot Nothing Then
|
||||
Dim parentView As View = nestedFrame.View
|
||||
TryCast(parentView.ObjectSpace, Xpo.XPObjectSpace).CommitChanges()
|
||||
parentView.ObjectSpace.Refresh()
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
Partial Class OrderInRowsVC
|
||||
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Public Sub New(ByVal Container As System.ComponentModel.IContainer)
|
||||
MyClass.New()
|
||||
|
||||
'Required for Windows.Forms Class Composition Designer support
|
||||
Container.Add(Me)
|
||||
|
||||
End Sub
|
||||
|
||||
'Component overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
'Required by the Component Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Component Designer
|
||||
'It can be modified using the Component Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
components = New System.ComponentModel.Container()
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
Imports System.Collections.Generic
|
||||
Imports System.Diagnostics
|
||||
Imports System.Text
|
||||
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.ExpressApp.Actions
|
||||
Imports DevExpress.Persistent.Base
|
||||
|
||||
Public Class OrderInRowsVC
|
||||
Inherits SISBusiness.Module.OrderInRowsVC
|
||||
Dim _WaitFormClass As New WaitFormClass
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
'This call is required by the Component Designer.
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
|
||||
End Sub
|
||||
Protected Overrides Sub OnActivated()
|
||||
MyBase.OnActivated()
|
||||
|
||||
AddHandler DoWork, AddressOf _WaitFormClass.DoWork
|
||||
AddHandler InitWork, AddressOf _WaitFormClass.Initwork
|
||||
AddHandler FinalWork, AddressOf _WaitFormClass.Finalwork
|
||||
End Sub
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
|
||||
RemoveHandler DoWork, AddressOf _WaitFormClass.DoWork
|
||||
RemoveHandler InitWork, AddressOf _WaitFormClass.Initwork
|
||||
RemoveHandler FinalWork, AddressOf _WaitFormClass.Finalwork
|
||||
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
Partial Class OrderInVC
|
||||
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Public Sub New(ByVal Container As System.ComponentModel.IContainer)
|
||||
MyClass.New()
|
||||
|
||||
'Required for Windows.Forms Class Composition Designer support
|
||||
Container.Add(Me)
|
||||
|
||||
End Sub
|
||||
|
||||
'Component overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
'Required by the Component Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Component Designer
|
||||
'It can be modified using the Component Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
components = New System.ComponentModel.Container()
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
Imports System
|
||||
Imports System.ComponentModel
|
||||
Imports System.Collections.Generic
|
||||
Imports System.Diagnostics
|
||||
Imports System.Text
|
||||
|
||||
Imports DevExpress.ExpressApp
|
||||
Imports DevExpress.ExpressApp.Actions
|
||||
Imports DevExpress.Persistent.Base
|
||||
|
||||
Public Class OrderInVC
|
||||
Inherits DevExpress.ExpressApp.ViewController
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
'This call is required by the Component Designer.
|
||||
InitializeComponent()
|
||||
RegisterActions(components)
|
||||
|
||||
End Sub
|
||||
Protected Overrides Sub OnActivated()
|
||||
MyBase.OnActivated()
|
||||
If View.Id = "OrderInHeader_DetailView" Then
|
||||
AddHandler View.ControlsCreated, AddressOf OrderInHeader_DetailView_ControlCreated
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub OrderInHeader_DetailView_ControlCreated(sender As Object, e As EventArgs)
|
||||
If View.Id = "OrderInHeader_DetailView" Then
|
||||
Dim _row_Products_Editor As DevExpress.ExpressApp.Win.Editors.LookupPropertyEditor
|
||||
_row_Products_Editor = TryCast(View, DetailView).FindItem("row_Products")
|
||||
|
||||
AddHandler _row_Products_Editor.ControlValueChanged, AddressOf _row_Products_Editor_ControlValueChanged
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub _row_Products_Editor_ControlValueChanged(sender As Object, e As EventArgs)
|
||||
Dim _row_QTT As DevExpress.ExpressApp.Win.Editors.DoublePropertyEditor
|
||||
Dim _OrderInHeader As OrderInHeader = TryCast(View.SelectedObjects(0), OrderInHeader)
|
||||
_row_QTT = TryCast(View, DetailView).FindItem("row_QTT")
|
||||
If _row_QTT IsNot Nothing Then
|
||||
Dim _row_Products_Editor As DevExpress.ExpressApp.Win.Editors.LookupPropertyEditor
|
||||
_row_Products_Editor = TryCast(View, DetailView).FindItem("row_Products")
|
||||
|
||||
If _row_Products_Editor IsNot Nothing Then
|
||||
Dim _ProductSelect As SISBusiness.Module.ProductSelect = TryCast(_row_Products_Editor.ControlValue, SISBusiness.Module.ProductSelect)
|
||||
If _ProductSelect IsNot Nothing Then
|
||||
If _ProductSelect.Products IsNot Nothing Then
|
||||
'row_qtt_ProductSelect.Products.DecimalOut
|
||||
Dim _SpinEdit As DevExpress.XtraEditors.SpinEdit
|
||||
_SpinEdit = TryCast(_row_QTT.Control, DevExpress.XtraEditors.SpinEdit)
|
||||
If _SpinEdit IsNot Nothing Then
|
||||
Select Case _ProductSelect.Products.DecimalOut
|
||||
Case 0
|
||||
_SpinEdit.Properties.Mask.EditMask = "#,##0"
|
||||
_SpinEdit.Properties.Mask.UseMaskAsDisplayFormat = True
|
||||
Case 1
|
||||
_SpinEdit.Properties.Mask.EditMask = "#,##0.0"
|
||||
_SpinEdit.Properties.Mask.UseMaskAsDisplayFormat = True
|
||||
Case 2
|
||||
_SpinEdit.Properties.Mask.EditMask = "#,##0.00"
|
||||
_SpinEdit.Properties.Mask.UseMaskAsDisplayFormat = True
|
||||
Case 3
|
||||
_SpinEdit.Properties.Mask.EditMask = "#,##0.000"
|
||||
_SpinEdit.Properties.Mask.UseMaskAsDisplayFormat = True
|
||||
Case 4
|
||||
_SpinEdit.Properties.Mask.EditMask = "#,##0.0000"
|
||||
_SpinEdit.Properties.Mask.UseMaskAsDisplayFormat = True
|
||||
Case Else
|
||||
_SpinEdit.Properties.Mask.EditMask = ""
|
||||
_SpinEdit.Properties.Mask.UseMaskAsDisplayFormat = False
|
||||
End Select
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
Reference in New Issue
Block a user