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

@@ -101,7 +101,7 @@ namespace CleanMachineHMI.frmChild
NULL
);
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
KryptonMessageBox.Show(this.T("新增清洗方式数据成功!", "AddSuccessInfo"));

View File

@@ -138,7 +138,7 @@ namespace CleanMachineHMI.frmChild
NULL
);
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
KryptonMessageBox.Show(this.T("新增污染明细数据成功!", "AddSuccessInfo"));

View File

@@ -140,7 +140,7 @@ namespace CleanMachineHMI.frmChild
NULL
);
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
KryptonMessageBox.Show(this.T("新增污染类型数据成功!", "AddSuccessInfo"));

View File

@@ -198,7 +198,7 @@ namespace CleanMachineHMI.frmChild
NULL
);
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("添加PLC变量数据成功!");

View File

@@ -136,7 +136,7 @@ namespace CleanMachineHMI.frmChild
NULL
);
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
KryptonMessageBox.Show(this.T("新增角色数据成功!", "AddSuccessInfo"));

View File

@@ -81,7 +81,7 @@ namespace CleanMachineHMI.frmChild
NULL
);
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("新增板材数据成功!");

View File

@@ -180,7 +180,7 @@ namespace CleanMachineHMI.frmChild
NULL
);
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("新增用户数据成功!");

View File

@@ -131,7 +131,7 @@ namespace CleanMachineHMI.frmChild
NULL
);
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("新增基础报警数据成功!");

View File

@@ -78,7 +78,7 @@ namespace CleanMachineHMI.frmChild
return;
}
string sql = $@"update BAS_CLEAN_MODE set CLEAN_MODE_NAME = '{txtCleanModeName.Text}',UPDATE_BY = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where CLEAN_MODE_ID = '{CleanModeId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("修改清洗方式数据成功!");

View File

@@ -105,7 +105,7 @@ namespace CleanMachineHMI.frmChild
return;
}
string sql = $@"update BAS_CONTAMINATION_DTL set CONTAMINATION_DTL_NAME = '{txtContaminationDTLName.Text}',UPDATE_BY = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where CONTAMINATION_DTL_ID = '{ContaminationDtlId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("修改污染明细数据成功!");

View File

@@ -104,7 +104,7 @@ namespace CleanMachineHMI.frmChild
return;
}
string sql = $@"update BAS_CONTAMINATION_TYPE set CONTAMINATION_TYPE_NAME = '{txtContaminationTypeName.Text}',UPDATE_BY = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where CONTAMINATION_TYPE_ID = '{ContaminationId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
KryptonMessageBox.Show(this.T("编辑污染类型数据成功!", "EditSuccessInfo"));

View File

@@ -70,7 +70,7 @@ namespace CleanMachineHMI.frmChild
return;
}
string sql = $@"update SYS_PARAMETER set PARAMETER_VALUE = '{txtValue.Text}',UPDATE_BY = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where PARAMETER_ID = '{ParamaterId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("修改参数信息数据成功!");

View File

@@ -174,7 +174,7 @@ namespace CleanMachineHMI.frmChild
WHERE
PLC_ITEM_ID = '{PlcItemId}'
";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("编辑PLC变量数据成功!");

View File

@@ -111,7 +111,7 @@ namespace CleanMachineHMI.frmChild
roleGrade = 1;
}
string sql = $@"update SYS_ROLE set ROLE_CODE = '{txtRoleCode.Text}',ROLE_NAME = '{txtRoleName.Text}',ROLE_GRADE = '{roleGrade}',UPDATE_BY = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where ROLE_ID = '{RoleId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("修改角色数据成功!");

View File

@@ -72,7 +72,7 @@ namespace CleanMachineHMI.frmChild
return;
}
string sql = $@"update BAS_SHEET_TYPE set SHEET_TYPE_NAME = '{txtSheetTypeName.Text}',UPDATE_BY = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where SHEET_TYPE_ID = '{SheetTypeId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("修改板材数据成功!");

View File

@@ -136,7 +136,7 @@ namespace CleanMachineHMI.frmChild
return;
}
string sql = $@"update SYS_USER set USER_CODE = '{txtAccount.Text}',USER_NAME = '{txtName.Text}',PASSWORD = '{txtPS1.Text}',GENDER = '{cmbGender.SelectedIndex}',ROLE_ID = '{((ListItem)kcmb_Role.SelectedItem).Value}',UPDATE_BY = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where USER_ID = '{UserId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("修改用户数据成功!");

View File

@@ -110,7 +110,7 @@ namespace CleanMachineHMI.frmChild
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 = '{Global.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where WARNING_ID = '{WarningId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
int row = LeadDbHelperSQLite.Execute(sql);
if (row > 0)
{
//KryptonMessageBox.Show("修改基础报警数据成功!");

View File

@@ -71,8 +71,8 @@ namespace CleanMachineHMI.frmChild
{
string sql = $@"update CM_WORKING_PALLET_DTL set CURRENT_NUMBER = '{item.Cells[5].Value}',OPERATE_USER_ID = '{Global.UserInfo.UserId}',OPERATE_USER_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_DTL_ID = '{workingDtlId}'";
string sql1 = $@"update ZBK_WORKING_PALLET_DTL set CURRENT_NUMBER = '{item.Cells[5].Value}',OPERATE_USER_ID = '{Global.UserInfo.UserId}',OPERATE_USER_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_DTL_ID = '{workingDtlId}'";
LeadDbHelperSQLite.ExecuteSql(sql);
LeadDbHelperSQLite.ExecuteSql(sql1);
LeadDbHelperSQLite.Execute(sql);
LeadDbHelperSQLite.Execute(sql1);
}
else
{

View File

@@ -197,12 +197,12 @@ namespace CleanMachineHMI.frmChild
if (allMenuData.Rows.Count > 0)
{
string sqlDeleteOldData = $@"delete from SYS_ROLE_MENU_PERMISSION where ROLE_ID = '{RoleId}'";
LeadDbHelperSQLite.ExecuteSql(sqlDeleteOldData);
LeadDbHelperSQLite.Execute(sqlDeleteOldData);
int rowSum = 0;
foreach (DataRow item in allMenuData.Rows)
{
string sqlAddNewData = $@"INSERT INTO main.SYS_ROLE_MENU_PERMISSION (ROLE_ID, MENU_ID, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, DATA_VERSION, REMARKS1, REMARKS2, REMARKS3, REMARKS4, REMARKS5 ) VALUES ( '{RoleId}', '{item["MENU_ID"]}', '{Global.UserInfo.UserId}', '2020-11-13 15:22:34', '{Global.UserInfo.UserId}', '2020-11-13 15:22:34', 0, NULL, NULL, NULL, NULL, NULL );";
rowSum += LeadDbHelperSQLite.ExecuteSql(sqlAddNewData);
rowSum += LeadDbHelperSQLite.Execute(sqlAddNewData);
}
if (rowSum > 0)
{