|
@@ -86,14 +86,9 @@ internal class JobRequisitionItemGrid : DynamicDataGrid<JobRequisitionItem>
|
|
|
Sequence = oldItem.Sequence
|
|
|
};
|
|
|
newItem.Job.ID = requisition.Job.ID;
|
|
|
- newItem.Job.Synchronise(requisition.Job);
|
|
|
newItem.Product.ID = oldItem.Product.ID;
|
|
|
- newItem.Product.Synchronise(oldItem.Product);
|
|
|
newItem.Style.ID = oldItem.Style.ID;
|
|
|
- newItem.Style.Synchronise(oldItem.Style);
|
|
|
- newItem.Dimensions.CopyFrom(oldItem.Dimensions);
|
|
|
newItem.Supplier.ID = oldItem.Supplier.ID;
|
|
|
- newItem.Supplier.Synchronise(oldItem.Supplier);
|
|
|
requiItems.Add(newItem);
|
|
|
}
|
|
|
|
|
@@ -103,7 +98,13 @@ internal class JobRequisitionItemGrid : DynamicDataGrid<JobRequisitionItem>
|
|
|
if (t == typeof(JobRequisitionItem))
|
|
|
{
|
|
|
var table = new CoreTable();
|
|
|
- table.LoadColumns(typeof(JobRequisitionItem));
|
|
|
+
|
|
|
+ table.LoadColumns(new Columns<JobRequisitionItem>().Default(
|
|
|
+ ColumnType.IncludeOptional,
|
|
|
+ ColumnType.IncludeEditable,
|
|
|
+ ColumnType.IncludeAggregates,
|
|
|
+ ColumnType.IncludeForeignKeys,
|
|
|
+ ColumnType.IncludeFormulae));
|
|
|
table.LoadRows(requiItems);
|
|
|
return table;
|
|
|
}
|