|
|
|
@ -96,7 +96,7 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
|
|
|
|
|
private async Task InitExecMethod()
|
|
|
|
|
{
|
|
|
|
|
string station = Appsettings.app("StoreInfo", "StationCode");
|
|
|
|
|
string station = Appsettings.app("StationInfo", "StationCode");
|
|
|
|
|
ExecutePlanInfo info = await _taskExecutionPlanInfoServices.FirstAsync(d => d.ProductLineCode.Equals(station) && d.ExecuteStatus == 2);
|
|
|
|
|
if (info == null) return;
|
|
|
|
|
|
|
|
|
@ -302,11 +302,10 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
[RelayCommand]
|
|
|
|
|
private async Task MoveUp(string Id)
|
|
|
|
|
{
|
|
|
|
|
string stationCode = Appsettings.app("StoreInfo", "StationCode");
|
|
|
|
|
string stationCode = Appsettings.app("StationInfo", "StationCode");
|
|
|
|
|
bool result = await _taskExecutionPlanInfoServices.PlanMoveUp(Id, stationCode);
|
|
|
|
|
if (result)
|
|
|
|
|
{
|
|
|
|
|
PlanInfoDataGrid.Clear();
|
|
|
|
|
await LoadData();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -319,12 +318,12 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
[RelayCommand]
|
|
|
|
|
private async Task MoveDown(string Id)
|
|
|
|
|
{
|
|
|
|
|
string stationCode = Appsettings.app("StoreInfo", "StationCode");
|
|
|
|
|
string stationCode = Appsettings.app("StationInfo", "StationCode");
|
|
|
|
|
bool result = await _taskExecutionPlanInfoServices.PlanMoveDown(Id, stationCode);
|
|
|
|
|
if (result)
|
|
|
|
|
{
|
|
|
|
|
PlanInfoDataGrid.Clear();
|
|
|
|
|
LoadData();
|
|
|
|
|
await LoadData();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
@ -671,7 +670,7 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task UpdatePlanSHow()
|
|
|
|
|
{
|
|
|
|
|
string stationCode = Appsettings.app("StoreInfo", "StationCode");
|
|
|
|
|
string stationCode = Appsettings.app("StationInfo", "StationCode");
|
|
|
|
|
var info = await _taskExecutionPlanInfoServices.FirstAsync(d => d.ExecuteStatus == 3 && d.ProductLineCode == stationCode);
|
|
|
|
|
if (info == null) return;
|
|
|
|
|
|
|
|
|
|