This commit is contained in:
gongxh
2022-05-06 12:28:16 +08:00
parent c57ca69dfd
commit 0e459f231a
49 changed files with 458 additions and 388 deletions

View File

@@ -109,7 +109,7 @@ namespace CleanMachineHMI.frmChild
KryptonMessageBox.Show($"Same alarm type: [{kcmb_WarningType.Text}],PLC item code: [{ktb_PlcCode.Text}] alarm code: [{txtWarningCode.Text}] already exists, please re-enter!");
return;
}
string sql = $@"update BAS_WARNING set WARNING_NAME = '{txtWarningName.Text}',WARNING_MESSAGE = '{txtWarningMessage.Text}',PLC_ITEM_CODE = '{ktb_PlcCode.Text}',WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}',UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where WARNING_ID = '{WarningId}'";
string sql = $@"update BAS_WARNING set WARNING_NAME = '{txtWarningName.Text}',WARNING_MESSAGE = '{txtWarningMessage.Text}',PLC_ITEM_CODE = '{ktb_PlcCode.Text}',WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}',UPDATE_BY = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where WARNING_ID = '{WarningId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{