11
This commit is contained in:
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace CleanMachineHMI.frmChild
|
||||
NULL
|
||||
);
|
||||
";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("添加PLC变量数据成功!");
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace CleanMachineHMI.frmChild
|
||||
NULL
|
||||
);
|
||||
";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("新增板材数据成功!");
|
||||
|
||||
@@ -180,7 +180,7 @@ namespace CleanMachineHMI.frmChild
|
||||
NULL
|
||||
);
|
||||
";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("新增用户数据成功!");
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace CleanMachineHMI.frmChild
|
||||
NULL
|
||||
);
|
||||
";
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
int row = LeadDbHelperSQLite.Execute(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("新增基础报警数据成功!");
|
||||
|
||||
@@ -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("修改清洗方式数据成功!");
|
||||
|
||||
@@ -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("修改污染明细数据成功!");
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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("修改参数信息数据成功!");
|
||||
|
||||
@@ -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变量数据成功!");
|
||||
|
||||
@@ -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("修改角色数据成功!");
|
||||
|
||||
@@ -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("修改板材数据成功!");
|
||||
|
||||
@@ -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("修改用户数据成功!");
|
||||
|
||||
@@ -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("修改基础报警数据成功!");
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user