清理无用代码
This commit is contained in:
+16
-16
@@ -1,17 +1,17 @@
|
||||
using JinYuan.ControlLib;
|
||||
using JinYuan.ControlCenters;
|
||||
using JinYuan.ControlLib;
|
||||
using JinYuan.Helper;
|
||||
using JinYuan.Models;
|
||||
using JinYuan.VirtualDataLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Text;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
using JinYuan.VirtualDataLibrary;
|
||||
using JinYuan.ControlCenters;
|
||||
using JinYuan.Helper;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LargeSquareOne
|
||||
{
|
||||
@@ -68,7 +68,7 @@ namespace LargeSquareOne
|
||||
CommonMethods.listener.ScanerEvent += Listener_ScanerEvent;
|
||||
CommonMethods.listener.Start();
|
||||
|
||||
|
||||
|
||||
|
||||
this.Load += FrmMain_Load;
|
||||
this.FormClosing += FrmMain_FormClosing;
|
||||
@@ -99,10 +99,10 @@ namespace LargeSquareOne
|
||||
|
||||
private void FrmMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
InitReadInI();
|
||||
UserTimeOut(30);
|
||||
|
||||
|
||||
ControlCenter controlCenter = ControlCenter.Instance;
|
||||
|
||||
//1.设置登录用户
|
||||
@@ -169,7 +169,7 @@ namespace LargeSquareOne
|
||||
{
|
||||
CommonMethods.mesConfig.electricMeterNum.Add(strArray[i]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
CommonMethods.mesConfig.listAntiDustAirSpeedNum.Clear();
|
||||
@@ -208,7 +208,7 @@ namespace LargeSquareOne
|
||||
//CommonMethods.ProdDXNgQty = Convert.ToInt32(IniConfigHelper.ReadIniData("统计计数", "ProdDXNgQty", "0"));
|
||||
//CommonMethods.ProdGRFIDNgQty = Convert.ToInt32(IniConfigHelper.ReadIniData("统计计数", "ProdGRFIDNgQty", "0"));
|
||||
//CommonMethods.ProdYLZNgQty = Convert.ToInt32(IniConfigHelper.ReadIniData("统计计数", "ProdYLZNgQty", "0"));
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -222,7 +222,7 @@ namespace LargeSquareOne
|
||||
CommonMethods.tickCount++;
|
||||
if (CommonMethods.tickCount == CommonMethods.sysConfig.LockPeriod * 60 * 1000 / this.updateTimer.Interval)
|
||||
{
|
||||
|
||||
|
||||
//锁屏
|
||||
LockWorkStation();
|
||||
}
|
||||
@@ -236,7 +236,7 @@ namespace LargeSquareOne
|
||||
CommonNaviButton_Click(this.nav_Monitor, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -261,7 +261,7 @@ namespace LargeSquareOne
|
||||
sysAdmin = CommonMethods.db.Query<SysAdmin>(it => it.LoginUid == sysAdmin.LoginUid);
|
||||
if (sysAdmin == null)
|
||||
{
|
||||
|
||||
|
||||
new FrmMsgBoxOutWithAck(3, "登录用户或密码错误!!!", "登录提示").ShowDialog();
|
||||
return;
|
||||
}
|
||||
@@ -280,7 +280,7 @@ namespace LargeSquareOne
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void StoreTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
|
||||
@@ -336,7 +336,7 @@ namespace LargeSquareOne
|
||||
CommonNaviButton_Click(this.nav_DataMonitor, null);
|
||||
CommonMethods.sysConfig.ScreenCutting = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (CommonMethods.Statues != null && CommonMethods.Statues.Count > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user