|
|
|
@ -272,7 +272,7 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
|
OrderCode = prodPlan.OrderCode;
|
|
|
|
|
PlanCode = prodPlan.PlanCode;
|
|
|
|
|
ProductModel = prodPlan.MaterialName;
|
|
|
|
|
BeginTime = prodPlan.RealBeginTime.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
BeginTime = prodPlan.RealBeginTime==null?"": prodPlan.RealBeginTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
PlanAmount = Convert.ToInt32(prodPlan.PlanAmount);
|
|
|
|
|
ComplateAmout = Convert.ToInt32(prodPlan.CompleteAmount);
|
|
|
|
|
DiffAmount = Convert.ToInt32(prodPlan.PlanAmount) - Convert.ToInt32(prodPlan.CompleteAmount);
|
|
|
|
@ -333,11 +333,15 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list.OrderByDescending(x => x.PlanStatus);
|
|
|
|
|
list.ForEach(
|
|
|
|
|
arg =>
|
|
|
|
|
{
|
|
|
|
|
if (arg.RealBeginTime!=null && arg.RealBeginTime.Value.Year<2000)
|
|
|
|
|
{
|
|
|
|
|
arg.RealBeginTime = null;
|
|
|
|
|
}
|
|
|
|
|
PlanInfoDataGrid.Add(arg);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -386,6 +390,7 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
|
if (info != null)
|
|
|
|
|
{
|
|
|
|
|
info.PlanStatus = PlanStatusEnum.已开始;
|
|
|
|
|
info.RealBeginTime = DateTime.Now;
|
|
|
|
|
info.PlanBeginTime = DateTime.Now;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|