Author SHA1 Message Date
ivanszabo 103f4650e1 to és tonna figyelembevétele 2017-04-03 12:59:10 +02:00
ivanszabo 120b3e3cc3 PacketMode kiegészítés
Related Work Items: #5
2017-03-23 12:04:06 +01:00
ivanszabo 8a65904f77 ModifyProductsParameters kiegészítése az új változtatható mezőkkel
Related Work Items: #5
2017-03-21 18:39:09 +01:00
ivanszabo 4af214c491 Adatok felderítése
Related Work Items: #5
2017-03-08 14:20:42 +01:00
4 changed files with 88 additions and 6 deletions
@@ -46,7 +46,7 @@ Public Class DeliveryNoteOutRows 'Szállítólevél sorok
Case eADRPackingUnit.eUnit_III Case eADRPackingUnit.eUnit_III
_ADRFactor = 1 _ADRFactor = 1
End Select End Select
If StorageOutRowsInRows.StorageOutRows.Products.Units.ShortName = "to" Then If StorageOutRowsInRows.StorageOutRows.Products.Units.ShortName = "to" Or StorageOutRowsInRows.StorageOutRows.Products.Units.ShortName = "tonna" Then
ADRNumber = _ADRFactor * QTT * 1000 ADRNumber = _ADRFactor * QTT * 1000
Else Else
ADRNumber = _ADRFactor * QTT ADRNumber = _ADRFactor * QTT
@@ -78,7 +78,6 @@ Public Class ModifyProductsParameters
<NonPersistent()> Property DecimalIn As Double <NonPersistent()> Property DecimalIn As Double
<NonPersistent()> Property DecimalOut As Double <NonPersistent()> Property DecimalOut As Double
<NonPersistent()> <NonPersistent()>
<ImmediatePostData(True)> _ <ImmediatePostData(True)> _
Property CurrencyName As CurrencyName Property CurrencyName As CurrencyName
@@ -120,7 +119,11 @@ Public Class ModifyProductsParameters
SetPropertyValue("ProductType", _ProductType, value) SetPropertyValue("ProductType", _ProductType, value)
End Set End Set
End Property End Property
<NonPersistent()> _ ''' <summary>
''' Termék tipus módosuljon ?
''' </summary>
''' <returns></returns>
<NonPersistent()>
Property IsProductType As Boolean Property IsProductType As Boolean
Get Get
Return _IsProductType Return _IsProductType
@@ -129,4 +132,37 @@ Public Class ModifyProductsParameters
SetPropertyValue("IsProductType", _IsProductType, value) SetPropertyValue("IsProductType", _IsProductType, value)
End Set End Set
End Property End Property
''' <summary>
''' ADRPackingUnit módosuljon ?
''' </summary>
''' <returns></returns>
<NonPersistent()> Property IsADRPackingUnit As Boolean
<NonPersistent()> Property ADRPackingUnit As eADRPackingUnit
''' <summary>
''' Alapértelmezett termék, amelynek a Barcode, UNList,Sentence,Documentations szinkronba jön
''' </summary>
''' <returns></returns>
<NonPersistent()> Property ProductsSource As Products
''' <summary>
''' Sentence klónozás legyen ?
''' </summary>
''' <returns></returns>
<NonPersistent()> Property CloneSentence As Boolean
''' <summary>
''' UNList klónozás legyen
''' </summary>
''' <returns></returns>
<NonPersistent()> Property CloneUNList As Boolean
''' <summary>
''' Documentations klónozás legyen
''' </summary>
''' <returns></returns>
<NonPersistent()> Property CloneDocumentations As Boolean
<NonPersistent> Property IsPacketMode As Boolean
''' <summary>
''' Csomagolási mód változtatása
''' </summary>
''' <returns></returns>
<NonPersistent> Property PacketMode As PacketMode
End Class End Class
@@ -95,6 +95,11 @@ Public Class ProductsVC
e.View = Application.CreateDetailView(_onew, _ModifyProductsParameters) e.View = Application.CreateDetailView(_onew, _ModifyProductsParameters)
End Sub End Sub
''' <summary>
''' Módosítja a Products objektum adatait csoportosan
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
Private Sub aModifyProductsParameters_Execute(ByVal sender As System.Object, ByVal e As DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventArgs) Handles aModifyProductsParameters.Execute Private Sub aModifyProductsParameters_Execute(ByVal sender As System.Object, ByVal e As DevExpress.ExpressApp.Actions.PopupWindowShowActionExecuteEventArgs) Handles aModifyProductsParameters.Execute
Dim _ModifyProductsParameters As ModifyProductsParameters = TryCast(e.PopupWindow.View.SelectedObjects(0), ModifyProductsParameters) Dim _ModifyProductsParameters As ModifyProductsParameters = TryCast(e.PopupWindow.View.SelectedObjects(0), ModifyProductsParameters)
Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace) Dim _ocur As Xpo.XPObjectSpace = TryCast(View.ObjectSpace, Xpo.XPObjectSpace)
@@ -248,10 +253,51 @@ Public Class ProductsVC
If _ModifyProductsParameters.IsDecimalIn Then _Products.DecimalIn = _ModifyProductsParameters.DecimalIn If _ModifyProductsParameters.IsDecimalIn Then _Products.DecimalIn = _ModifyProductsParameters.DecimalIn
If _ModifyProductsParameters.IsDecimalOut Then _Products.DecimalOut = _ModifyProductsParameters.DecimalOut If _ModifyProductsParameters.IsDecimalOut Then _Products.DecimalOut = _ModifyProductsParameters.DecimalOut
If _ModifyProductsParameters.IsADRPackingUnit Then _Products.ADRPackingUnit = _ModifyProductsParameters.ADRPackingUnit
If _ModifyProductsParameters.CloneDocumentations Then
If _ModifyProductsParameters.ProductsSource IsNot Nothing Then
_ocur.Delete(_Products.ProductsDocumentations)
For Each _ProductsDocumentations As ProductsDocumentations In _ModifyProductsParameters.ProductsSource.ProductsDocumentations
_Products.ProductsDocumentations.Add(_ocur.GetObject(_ProductsDocumentations))
Next
Else
End If
End If
If _ModifyProductsParameters.CloneSentence Then
If _ModifyProductsParameters.ProductsSource IsNot Nothing Then
_ocur.Delete(_Products.ProductsSentence)
For Each _ProductsSentence As ProductsSentence In _ModifyProductsParameters.ProductsSource.ProductsSentence
_Products.ProductsSentence.Add(_ocur.GetObject(_ProductsSentence))
Next
Else
End If
End If
If _ModifyProductsParameters.CloneUNList Then
If _ModifyProductsParameters.ProductsSource IsNot Nothing Then
_ocur.Delete(_Products.ProductsUNList)
For Each _ProductsUNList As ProductsUNList In _ModifyProductsParameters.ProductsSource.ProductsUNList
_Products.ProductsUNList.Add(_ocur.GetObject(_ProductsUNList))
Next
Else
End If
If _Products.ProductsUNList.Count > 0 Then
_Products.UNNumber = _Products.ProductsUNList(0).UNList.ShortName
End If
End If
If _ModifyProductsParameters.IsPacketMode Then
_Products.PacketMode = _ocur.GetObject(_ModifyProductsParameters.PacketMode)
End If
_Products.Save() _Products.Save()
Next Next
_ocur.CommitChanges() _ocur.CommitChanges()
RaiseEvent FinalWork RaiseEvent FinalWork()
End Sub End Sub
Private Sub aPrintSelectedProductsBarcode_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aPrintSelectedProductsBarcode.Execute Private Sub aPrintSelectedProductsBarcode_Execute(sender As System.Object, e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs) Handles aPrintSelectedProductsBarcode.Execute
Try Try
@@ -771,7 +771,7 @@ Public Class VATReportVC
If _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows IsNot Nothing Then If _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows IsNot Nothing Then
If _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows IsNot Nothing Then If _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows IsNot Nothing Then
Select Case _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.Units.ShortName Select Case _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.Units.ShortName
Case "to" Case "to", "tonna"
_InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.WeightMode = eWeightMode.eTotalWeightperQuantity _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.WeightMode = eWeightMode.eTotalWeightperQuantity
_InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.Weight = _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.QTT * 1000 _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.Weight = _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.QTT * 1000
_InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.Save() _InvoiceRows_07.DeliveryNoteOutRows.StorageOutRowsInRows.StorageInRows.DeliveryNoteInRows.Save()
@@ -796,7 +796,7 @@ Public Class VATReportVC
For Each _StorageOutRowsInRows_07 In _InvoiceRows_07.StorageOutRowsInRows For Each _StorageOutRowsInRows_07 In _InvoiceRows_07.StorageOutRowsInRows
If _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows IsNot Nothing Then If _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows IsNot Nothing Then
Select Case _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.Units.ShortName Select Case _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.Units.ShortName
Case "to" Case "to", "tonna"
_StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.WeightMode = eWeightMode.eTotalWeightperQuantity _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.WeightMode = eWeightMode.eTotalWeightperQuantity
_StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.Weight = _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.QTT * 1000 _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.Weight = _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.QTT * 1000
_StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.Save() _StorageOutRowsInRows_07.StorageInRows.DeliveryNoteInRows.Save()