|
|
@ -146,12 +146,12 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
set { materialCodeTextBox = value; OnPropertyChanged("MaterialCodeTextBox"); }
|
|
|
|
set { materialCodeTextBox = value; OnPropertyChanged("MaterialCodeTextBox"); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//private string materialNameTextBox;
|
|
|
|
private string materialNameTextBox;
|
|
|
|
//public string MaterialNameTextBox
|
|
|
|
public string MaterialNameTextBox
|
|
|
|
//{
|
|
|
|
{
|
|
|
|
// get { return materialNameTextBox; }
|
|
|
|
get { return materialNameTextBox; }
|
|
|
|
// set { materialNameTextBox = value; OnPropertyChanged("MaterialNameTextBox"); }
|
|
|
|
set { materialNameTextBox = value; OnPropertyChanged("MaterialNameTextBox"); }
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 工位
|
|
|
|
/// 工位
|
|
|
@ -163,6 +163,26 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
set { stationTextBlock = value; OnPropertyChanged("StationTextBox"); }
|
|
|
|
set { stationTextBlock = value; OnPropertyChanged("StationTextBox"); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 班次列表
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
private List<string> shiftList;
|
|
|
|
|
|
|
|
public List<string> ShiftList
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get { return shiftList; }
|
|
|
|
|
|
|
|
set { shiftList = value; OnPropertyChanged("ShiftList"); }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 选中的班次
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
private string selectedShift;
|
|
|
|
|
|
|
|
public string SelectedShift
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get { return selectedShift; }
|
|
|
|
|
|
|
|
set { selectedShift = value; OnPropertyChanged("SelectedShift"); }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// PlanDataGrid
|
|
|
|
/// PlanDataGrid
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -320,6 +340,11 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
;
|
|
|
|
;
|
|
|
|
DeviceCode = configuration.GetSection("AppConfig")["DeviceCode"];
|
|
|
|
DeviceCode = configuration.GetSection("AppConfig")["DeviceCode"];
|
|
|
|
ProcessCode = configuration.GetSection("AppConfig")["ProcessCode"];
|
|
|
|
ProcessCode = configuration.GetSection("AppConfig")["ProcessCode"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 初始化班次列表
|
|
|
|
|
|
|
|
ShiftList = new List<string> { "白班", "小夜", "大夜" };
|
|
|
|
|
|
|
|
SelectedShift = "白班"; // 默认选择白班
|
|
|
|
|
|
|
|
|
|
|
|
HandoverCommand = new RelayCommand(Handover);
|
|
|
|
HandoverCommand = new RelayCommand(Handover);
|
|
|
|
ProductionReportCommand = new RelayCommand(ProductionReport);
|
|
|
|
ProductionReportCommand = new RelayCommand(ProductionReport);
|
|
|
|
TechnologicalInformationCommand = new RelayCommand(TechnologicalInformation);
|
|
|
|
TechnologicalInformationCommand = new RelayCommand(TechnologicalInformation);
|
|
|
@ -468,7 +493,7 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
//在这里执行其他操作,可以通过InputText获取用户输入的信息
|
|
|
|
//在这里执行其他操作,可以通过InputText获取用户输入的信息
|
|
|
|
//Console.WriteLine("用户输入的信息:" + OrderCodeTextBox + PlanCodeTextBox + MaterialCodeTextBox);
|
|
|
|
//Console.WriteLine("用户输入的信息:" + OrderCodeTextBox + PlanCodeTextBox + MaterialCodeTextBox);
|
|
|
|
//ProductLineNameTextBlock = ConfigurationManager.AppSettings["ProductLineNameTextBlock"];
|
|
|
|
//ProductLineNameTextBlock = ConfigurationManager.AppSettings["ProductLineNameTextBlock"];
|
|
|
|
List<ProdPLanInfo> list = _prodPlanInfoService.GetRecordStaffAttendancesByConditions(OrderCodeTextBox, PlanCodeTextBox, MaterialCodeTextBox, RfidHandleBusniess.stationCode, "0");
|
|
|
|
List<ProdPLanInfo> list = _prodPlanInfoService.GetRecordStaffAttendancesByConditions(OrderCodeTextBox, PlanCodeTextBox, MaterialCodeTextBox, RfidHandleBusniess.stationCode, "0", SelectedShift);
|
|
|
|
System.Windows.Application.Current.Dispatcher.Invoke((Action)(async () =>
|
|
|
|
System.Windows.Application.Current.Dispatcher.Invoke((Action)(async () =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ProdPLanInfoDataGrid.Clear();
|
|
|
|
ProdPLanInfoDataGrid.Clear();
|
|
|
@ -556,7 +581,7 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
// 将当前记录存为实体,可以通过parameter获取当前记录的信息
|
|
|
|
// 将当前记录存为实体,可以通过parameter获取当前记录的信息
|
|
|
|
string orderCode = _selectedRow.OrderCode.ToString();
|
|
|
|
string orderCode = _selectedRow.OrderCode.ToString();
|
|
|
|
string planCode = _selectedRow.PlanCode.ToString();
|
|
|
|
string planCode = _selectedRow.PlanCode.ToString();
|
|
|
|
pLanInfo = _prodPlanInfoService.GetRecordStaffAttendancesByConditions(orderCode, planCode, "", "", "0").First();
|
|
|
|
pLanInfo = _prodPlanInfoService.GetRecordStaffAttendancesByConditions(orderCode, planCode, "", "", "0", SelectedShift).First();
|
|
|
|
//RecordStaffAttendance currentRecord = _recordStaffAttendanceService.GetLastestOnRecord();
|
|
|
|
//RecordStaffAttendance currentRecord = _recordStaffAttendanceService.GetLastestOnRecord();
|
|
|
|
//BaseStaffInfo staffInfo = _baseStaffService.GetMonitorByTeamCode(currentRecord.TeamCode);
|
|
|
|
//BaseStaffInfo staffInfo = _baseStaffService.GetMonitorByTeamCode(currentRecord.TeamCode);
|
|
|
|
RecordStaffAttendance nextRecord = _recordStaffAttendanceService.GetLastestOffRecord();
|
|
|
|
RecordStaffAttendance nextRecord = _recordStaffAttendanceService.GetLastestOffRecord();
|
|
|
|