This commit is contained in:
gongxh
2022-05-16 09:03:42 +08:00
parent 4a6894457d
commit f3e77f63c0
37 changed files with 298 additions and 255 deletions

View File

@@ -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"));

View File

@@ -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"));

View File

@@ -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"));

View File

@@ -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"));

View File

@@ -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"));

View File

@@ -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"));

View File

@@ -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"));