SVN r1047
SVN-Revision: r1047
This commit is contained in:
@@ -630,10 +630,19 @@ namespace Lskj.Control
|
||||
string sqlValue = string.Format("update {0} set {1}='0' ", this._tableName, this._importFlag);
|
||||
sqlValue = string.Format("update {0} set {1}='0' where {1}!='0' ", this._tableName, this._importFlag);
|
||||
SqlHelper.ExecuteNonQuery(sqlValue);
|
||||
DataRow dataRow = datatb.Rows[0];
|
||||
if (!string.IsNullOrWhiteSpace(SysModel.afterimportSql2) && failed == 0)
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(SysModel.afterimportSql2) && failed == 0 && datatb.Rows.Count>0)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(ReplaceHelper.ReplaceRowParam(dataRow, ReplaceHelper.ReplaceUserInfo(SysModel.afterimportSql2)));
|
||||
try
|
||||
{
|
||||
DataRow dataRow = datatb.Rows[0];
|
||||
SqlHelper.ExecuteNonQuery(ReplaceHelper.ReplaceRowParam(dataRow, ReplaceHelper.ReplaceUserInfo(SysModel.afterimportSql2)));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MessageUtil.Show("导入后执行sql执行失败" + e.Message);
|
||||
}
|
||||
|
||||
}
|
||||
datatb.Clear();
|
||||
dt.Clear();
|
||||
|
||||
Reference in New Issue
Block a user