修复开始工单界面不刷新问题

master
zhaojian 2 years ago
parent 8634b50371
commit 2bc360ad15

@ -101,7 +101,7 @@ namespace XGLFinishPro.Views
private void UCOperator_Loaded(object sender, RoutedEventArgs e) private void UCOperator_Loaded(object sender, RoutedEventArgs e)
{ {
timerDeciveState.Interval = Utils.GetAppSetting("GetDeviceStateInterval") == "" ? 18000 : Convert.ToInt32(Utils.GetAppSetting("GetDeviceStateInterval")); timerDeciveState.Interval = Utils.GetAppSetting("GetDeviceStateInterval") == "" ? 10000 : Convert.ToInt32(Utils.GetAppSetting("GetDeviceStateInterval"));
timerDeciveState.Elapsed += TimerDeciveState_Elapsed; timerDeciveState.Elapsed += TimerDeciveState_Elapsed;
timerDeciveState.Start(); timerDeciveState.Start();
Complete_Click(null, null); Complete_Click(null, null);
@ -690,7 +690,7 @@ namespace XGLFinishPro.Views
string materialDesc = (dgWorkOrderInfo.SelectedItem as DataRowView)["product_name"].ToString(); string materialDesc = (dgWorkOrderInfo.SelectedItem as DataRowView)["product_name"].ToString();
userDbWareHouse.InsertOperationLog(workorderID, "w2", "", "开始工单", deviceCode, materialCode, materialDesc); userDbWareHouse.InsertOperationLog(workorderID, "w2", "", "开始工单", deviceCode, materialCode, materialDesc);
// await CallCheckApi("checkTypeSCXJ");20240403赵啸林因为切线方案调整要求取消上位机生成巡检任务的功能 // await CallCheckApi("checkTypeSCXJ");20240403赵啸林因为切线方案调整要求取消上位机生成巡检任务的功能
TimerDeciveState_Elapsed(null, null); GetWorkOrderInfo();
} }
} }
catch (Exception ex) catch (Exception ex)

Loading…
Cancel
Save