SVN r1064
SVN-Revision: r1064
This commit is contained in:
@@ -477,40 +477,4 @@ namespace AfkDataService
|
|||||||
// try
|
// try
|
||||||
// {
|
// {
|
||||||
// MySqlHelper._connection.Close();
|
// MySqlHelper._connection.Close();
|
||||||
// MySqlHelper._connection.Dispose();
|
//
|
||||||
// }
|
|
||||||
// catch (Exception)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// MySqlHelper._connection = null;
|
|
||||||
// }
|
|
||||||
// try
|
|
||||||
// {
|
|
||||||
// MySqlHelper._connection = new MySqlConnection(connStr);
|
|
||||||
// MySqlHelper._connection.Open();
|
|
||||||
// return true;
|
|
||||||
// }
|
|
||||||
// catch (Exception ex)
|
|
||||||
// {
|
|
||||||
// Console.WriteLine(ex.Message);
|
|
||||||
// }
|
|
||||||
// return false;
|
|
||||||
//}
|
|
||||||
#endregion
|
|
||||||
public void SendMessage(TextBox textBox, string message)
|
|
||||||
{
|
|
||||||
if (textBox.InvokeRequired)
|
|
||||||
{
|
|
||||||
textBox.Invoke(new Action(() =>
|
|
||||||
{
|
|
||||||
textBox.AppendText(message);
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
textBox.AppendText(message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -293,6 +293,7 @@ namespace AfkDataService
|
|||||||
{
|
{
|
||||||
//未配置日志表
|
//未配置日志表
|
||||||
frmMain.SendMessage(frmMain.toAfkTextBox, $"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}:反写日志==>{abutmentModel.logTabName}成功,但未查询到对应日志表\r\n");
|
frmMain.SendMessage(frmMain.toAfkTextBox, $"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}:反写日志==>{abutmentModel.logTabName}成功,但未查询到对应日志表\r\n");
|
||||||
|
isSuccess = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -850,35 +851,3 @@ namespace AfkDataService
|
|||||||
{
|
{
|
||||||
stringBuilder.Append($"getdate() as {selectRow["Field"]},");
|
stringBuilder.Append($"getdate() as {selectRow["Field"]},");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Console.WriteLine(ex.Message);
|
|
||||||
}
|
|
||||||
return stringBuilder;
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 改变afk的同步标识
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="item"></param>
|
|
||||||
/// <param name="dataDirection"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
private string GetChangeSynchroTagSql(AbutmentModel abutmentModel)
|
|
||||||
{
|
|
||||||
string sql = "";
|
|
||||||
try
|
|
||||||
{
|
|
||||||
string conditions = string.Empty;
|
|
||||||
conditions = abutmentModel.targetStrs.Length == 2 ? " where isSynchro is null and " + abutmentModel.targetStrs[1] : "";
|
|
||||||
sql = string.Format("update {0} set isSynchro='1' {1} ", abutmentModel.afkTabName, conditions);
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
return sql;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user