|
@@ -15,13 +15,13 @@ using Syncfusion.UI.Xaml.Diagram.Controls;
|
|
|
|
|
|
namespace PRSDesktop;
|
|
namespace PRSDesktop;
|
|
|
|
|
|
-public class StockMovementGrid : DynamicDataGrid<StockMovement>, IDataModelSource, ISpecificGrid
|
|
|
|
|
|
+public class ProductStockMovementGrid : DynamicDataGrid<StockMovement>, IDataModelSource, ISpecificGrid
|
|
{
|
|
{
|
|
public static readonly DependencyProperty AllowNullLocationProperty =
|
|
public static readonly DependencyProperty AllowNullLocationProperty =
|
|
- DependencyProperty.Register("AllowNullLocation", typeof(bool), typeof(StockMovementGrid), new UIPropertyMetadata(null));
|
|
|
|
|
|
+ DependencyProperty.Register("AllowNullLocation", typeof(bool), typeof(ProductStockMovementGrid), new UIPropertyMetadata(null));
|
|
|
|
|
|
public static readonly DependencyProperty AllowNullBatchProperty =
|
|
public static readonly DependencyProperty AllowNullBatchProperty =
|
|
- DependencyProperty.Register("AllowNullBatch", typeof(bool), typeof(StockMovementGrid), new UIPropertyMetadata(null));
|
|
|
|
|
|
+ DependencyProperty.Register("AllowNullBatch", typeof(bool), typeof(ProductStockMovementGrid), new UIPropertyMetadata(null));
|
|
|
|
|
|
private Button AllButton;
|
|
private Button AllButton;
|
|
private bool bShowAll = true;
|
|
private bool bShowAll = true;
|
|
@@ -35,7 +35,7 @@ public class StockMovementGrid : DynamicDataGrid<StockMovement>, IDataModelSourc
|
|
private static readonly BitmapImage? warning = PRSDesktop.Resources.warning.AsBitmapImage();
|
|
private static readonly BitmapImage? warning = PRSDesktop.Resources.warning.AsBitmapImage();
|
|
private static readonly BitmapImage? refresh = PRSDesktop.Resources.refresh.AsBitmapImage();
|
|
private static readonly BitmapImage? refresh = PRSDesktop.Resources.refresh.AsBitmapImage();
|
|
|
|
|
|
- public StockMovementGrid()
|
|
|
|
|
|
+ public ProductStockMovementGrid()
|
|
{
|
|
{
|
|
ColumnsTag = "StockMovementGrid";
|
|
ColumnsTag = "StockMovementGrid";
|
|
}
|
|
}
|
|
@@ -79,24 +79,7 @@ public class StockMovementGrid : DynamicDataGrid<StockMovement>, IDataModelSourc
|
|
|
|
|
|
public override DynamicGridColumns GenerateColumns()
|
|
public override DynamicGridColumns GenerateColumns()
|
|
{
|
|
{
|
|
- var columns = new DynamicGridColumns();
|
|
|
|
-
|
|
|
|
- columns.Add<StockMovement, DateTime>(x => x.Date, 120, "Date", "dd MMM yyyy hh:mm", Alignment.MiddleCenter);
|
|
|
|
- columns.Add<StockMovement, string>(x => x.Job.JobNumber, 120, "Job Number", "", Alignment.MiddleCenter);
|
|
|
|
- columns.Add<StockMovement, string>(x => x.Location.Code, 120, "Location", "", Alignment.MiddleCenter);
|
|
|
|
- columns.Add<StockMovement, string>(x => x.Product.Code, 120, "Product Code", "", Alignment.MiddleCenter);
|
|
|
|
- columns.Add<StockMovement, string>(x => x.Product.Name, 0, "Product Name", "", Alignment.MiddleLeft);
|
|
|
|
- columns.Add<StockMovement, string>(x => x.Style.Code, 120, "Style", "", Alignment.MiddleCenter);
|
|
|
|
- columns.Add<StockMovement, string>(x => x.Dimensions.UnitSize, 120, "Size", "", Alignment.MiddleCenter);
|
|
|
|
-
|
|
|
|
- columns.Add<StockMovement, double>(x => x.Received, 70, "Received", "F2", Alignment.MiddleRight);
|
|
|
|
- columns.Add<StockMovement, double>(x => x.Issued, 70, "Issued", "F2", Alignment.MiddleRight);
|
|
|
|
- columns.Add<StockMovement, double>(x => x.Cost, 70, "Cost", "C2", Alignment.MiddleRight);
|
|
|
|
-
|
|
|
|
- columns.Add<StockMovement, string>(x => x.Employee.Code, 120, "Employee", "", Alignment.MiddleCenter);
|
|
|
|
- columns.Add<StockMovement, StockMovementType>(x => x.Type, 120, "Type", "", Alignment.MiddleCenter);
|
|
|
|
-
|
|
|
|
- return columns;
|
|
|
|
|
|
+ return StockMovementGrid.StandardColumns();
|
|
}
|
|
}
|
|
|
|
|
|
public DateTime StartDate { get; set; } = DateTime.MinValue;
|
|
public DateTime StartDate { get; set; } = DateTime.MinValue;
|