Skip to content

Instantly share code, notes, and snippets.

@tbergeron
Created May 3, 2012 18:25
Show Gist options
  • Save tbergeron/2587905 to your computer and use it in GitHub Desktop.
Save tbergeron/2587905 to your computer and use it in GitHub Desktop.
Utilisation de la même valeur mais pas du même UoM, mais donne le bon UoM avec la... même valeur?!
' Utilisation de OrderQtyUoMCode (25 => kg)
.AddColumnTemplate(New ViewTemplateColumn("OrderQty", Languages.Translate(Rsx.DBColumnRsx, "WeightOrder"), 25, iIndex.NextValue, False, False, ViewTemplateColumn.ColumnFormat.Numeric, DataFormat.GetNumericMask(6, 4, True)) With {.ColumnEdit = New SixIRepositoryTextBoxNumeric(6, 4, True)})
.AddColumnTemplate(New ViewTemplateColumn("OrderQtyUoMCode", Languages.Translate(Rsx.DBColumnRsx, "WeightUoM"), 25, iIndex.NextValue, False, False))
.AddColumnTemplate(New ViewTemplateColumnMultiField(ViewTemplateColumnMultiField.ColumnMergeType.ValueWithUoM, " ", {"OrderQty", "OrderQtyUoMCode"}.ToList) With {.Caption = Translate(Rsx.DBColumnRsx, "WeightOrder"), .IsVisible = True, .ShowInColumnChooser = True, .VisibleIndex = iIndex.NextValue, .Width = 25, .ColumnNameSortGroup = "WeightOrder", .Alignment = ViewTemplateColumn.ColumnAlignement.AlignFar})
' Donne par exemple: 952.56kg
' --------
' Utilisation de FinalWeightUoMCode (7 => lbs)
.AddColumnTemplate(New ViewTemplateColumn("OrderQty", Languages.Translate(Rsx.DBColumnRsx, "WeightOrder"), 25, iIndex.NextValue, False, False, ViewTemplateColumn.ColumnFormat.Numeric, DataFormat.GetNumericMask(6, 4, True)) With {.ColumnEdit = New SixIRepositoryTextBoxNumeric(6, 4, True)})
.AddColumnTemplate(New ViewTemplateColumn("FinalWeightUoMCode", Languages.Translate(Rsx.DBColumnRsx, "WeightUoM"), 25, iIndex.NextValue, False, False))
.AddColumnTemplate(New ViewTemplateColumnMultiField(ViewTemplateColumnMultiField.ColumnMergeType.ValueWithUoM, " ", {"OrderQty", "FinalWeightUoMCode"}.ToList) With {.Caption = Translate(Rsx.DBColumnRsx, "WeightOrder"), .IsVisible = True, .ShowInColumnChooser = True, .VisibleIndex = iIndex.NextValue, .Width = 25, .ColumnNameSortGroup = "WeightOrder", .Alignment = ViewTemplateColumn.ColumnAlignement.AlignFar})
' Donne par exemple: 952.56lbs
' What the hell? amidoinitrite?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment