修改
This commit is contained in:
@@ -481,7 +481,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
private void FinishWorkingPallet()
|
private void FinishWorkingPallet()
|
||||||
{
|
{
|
||||||
|
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
@@ -575,7 +575,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -3144,7 +3144,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
{
|
{
|
||||||
kbtn_forceFinish.Enabled = false;
|
kbtn_forceFinish.Enabled = false;
|
||||||
|
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -3384,7 +3384,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
kryptonGroupBox1.Focus();
|
kryptonGroupBox1.Focus();
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
|
||||||
#define USE_LOCAL_TCP_DEBUG
|
//#define USE_LOCAL_TCP_DEBUG
|
||||||
#endif
|
#endif
|
||||||
//启用心跳检查
|
//启用心跳检查
|
||||||
|
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ namespace CleanMachineHMI
|
|||||||
long lastTick = DateTime.Now.Ticks;
|
long lastTick = DateTime.Now.Ticks;
|
||||||
while (GlobalHelper.SysThIsRunFlag)
|
while (GlobalHelper.SysThIsRunFlag)
|
||||||
{
|
{
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
@@ -646,7 +646,7 @@ namespace CleanMachineHMI
|
|||||||
|
|
||||||
PlcOperationHelper.Instance.HeartbeatDetection();
|
PlcOperationHelper.Instance.HeartbeatDetection();
|
||||||
#endregion
|
#endregion
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace LeadDataBaseUtility
|
|||||||
public static int ExecuteSql(string sql)
|
public static int ExecuteSql(string sql)
|
||||||
{
|
{
|
||||||
int affectedRows = 0;
|
int affectedRows = 0;
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
@@ -42,7 +42,7 @@ namespace LeadDataBaseUtility
|
|||||||
}
|
}
|
||||||
conn.Close();
|
conn.Close();
|
||||||
}
|
}
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
@@ -62,7 +62,7 @@ namespace LeadDataBaseUtility
|
|||||||
using (SQLiteConnection connection = new SQLiteConnection(connectionString))
|
using (SQLiteConnection connection = new SQLiteConnection(connectionString))
|
||||||
{
|
{
|
||||||
DataSet ds = new DataSet();
|
DataSet ds = new DataSet();
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
@@ -70,7 +70,7 @@ namespace LeadDataBaseUtility
|
|||||||
SQLiteDataAdapter command = new SQLiteDataAdapter(SQLString, connection);
|
SQLiteDataAdapter command = new SQLiteDataAdapter(SQLString, connection);
|
||||||
command.Fill(ds, "ds");
|
command.Fill(ds, "ds");
|
||||||
connection.Close();
|
connection.Close();
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@@ -91,7 +91,7 @@ namespace LeadDataBaseUtility
|
|||||||
{
|
{
|
||||||
using (SQLiteCommand cmd = new SQLiteCommand(SQLString, connection))
|
using (SQLiteCommand cmd = new SQLiteCommand(SQLString, connection))
|
||||||
{
|
{
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
@@ -107,7 +107,7 @@ namespace LeadDataBaseUtility
|
|||||||
connection.Close();
|
connection.Close();
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
#if !DEBUG
|
#if RELEASE
|
||||||
}
|
}
|
||||||
catch (System.Data.SQLite.SQLiteException e)
|
catch (System.Data.SQLite.SQLiteException e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user