11
This commit is contained in:
@@ -172,7 +172,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
string CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
|
||||
string sql = $@"DELETE FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_ID = '{CleanModeId}'";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.T("删除清洗方式数据成功!", "DeleteSuccessInfo"));
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
string ContaminationDtlId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
|
||||
string sql = $@"DELETE FROM BAS_CONTAMINATION_DTL WHERE CONTAMINATION_DTL_ID = '{ContaminationDtlId}'";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.T("删除污染明细数据成功!", "DeleteSuccessInfo"));
|
||||
|
||||
@@ -189,7 +189,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
string ContaminationId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
|
||||
string sql = $@"DELETE FROM BAS_CONTAMINATION_TYPE WHERE CONTAMINATION_TYPE_ID = '{ContaminationId}'";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.T("删除污染类型数据成功!", "DeleteSuccessInfo"));
|
||||
|
||||
@@ -155,7 +155,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
return;
|
||||
}
|
||||
string sql = $@"DELETE FROM SYS_ROLE WHERE ROLE_ID = '{UserId}'";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.T("删除角色数据成功!", "DeleteSuccessInfo"));
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
string SheetTypeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
|
||||
string sql = $@"DELETE FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_ID = '{SheetTypeId}'";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.T("删除板材类型数据成功!", "DeleteSuccessInfo"));
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
|
||||
string sql = $@"DELETE FROM SYS_USER WHERE USER_ID = '{UserId}'";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.T("删除用户数据成功!", "DeleteSuccessInfo"));
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
string WarningId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
|
||||
string sql = $@"DELETE FROM BAS_WARNING WHERE WARNING_ID = '{WarningId}'";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.T("删除报警数据成功!", "DeleteSuccessInfo"));
|
||||
|
||||
Reference in New Issue
Block a user