加3秒延时

master
zhaojian 2 years ago
parent 1346aedd89
commit 8634b50371

@ -1,6 +1,5 @@
using CommonFunc; using CommonFunc;
using CommonFunc.Tools; using CommonFunc.Tools;
using DevExpress.Charts.Native;
using HandyControl.Tools.Extension; using HandyControl.Tools.Extension;
using Newtonsoft.Json; using Newtonsoft.Json;
using System; using System;
@ -102,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") == "" ? 15000 : Convert.ToInt32(Utils.GetAppSetting("GetDeviceStateInterval")); timerDeciveState.Interval = Utils.GetAppSetting("GetDeviceStateInterval") == "" ? 18000 : 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);
@ -783,8 +782,6 @@ namespace XGLFinishPro.Views
CustomMessageBox.Show("请选择要首件检验的工单!", CustomMessageBoxButton.OK, CustomMessageBoxIcon.Warning); CustomMessageBox.Show("请选择要首件检验的工单!", CustomMessageBoxButton.OK, CustomMessageBoxIcon.Warning);
return; return;
} }
try try
{ {
string status1 = (dgWorkOrderInfo.SelectedItem as DataRowView)["workorder_code"].ToString(); string status1 = (dgWorkOrderInfo.SelectedItem as DataRowView)["workorder_code"].ToString();

Loading…
Cancel
Save