SVN r613
SVN-Revision: r613
This commit is contained in:
@@ -1228,6 +1228,7 @@ namespace Lskj.Control.Model
|
||||
bool isOpenvisble = rows.Count() > 0;
|
||||
foreach (DataRow dataRow in rows)
|
||||
{
|
||||
if (filequency > 0 && model.Mergeexec) continue;
|
||||
List<string> procParams = ReplaceHelper.GetParamFields(procName);
|
||||
if (procParams.Count == 0)
|
||||
{
|
||||
@@ -1238,7 +1239,7 @@ namespace Lskj.Control.Model
|
||||
List<SqlParameter> sqlParamList = new List<SqlParameter>();
|
||||
SqlParameter pMsg = new SqlParameter("@msg", SqlDbType.VarChar, 2000);
|
||||
SqlParameter pComfirmFlag = new SqlParameter("@comfirmFlag", SqlDbType.Int);
|
||||
paramList = this.HandleRightMenuParams(model.ParamList, dataRow, null, model.ActionType);
|
||||
paramList = model.Mergeexec? paramList:this.HandleRightMenuParams(model.ParamList,dataRow, null, model.ActionType);
|
||||
for (int i = 0; i < paramStr.Length; i++)
|
||||
{
|
||||
string item = paramStr[i];
|
||||
@@ -1696,28 +1697,4 @@ namespace Lskj.Control.Model
|
||||
DataRow[] dataRows = columnsTab.Select().Where(n => (n["name"] + "").Equals(colunmField.Key)).ToArray();
|
||||
if (dataRows.Length == 0)
|
||||
{
|
||||
string addColSql = string.Format("alter table P_PrivateDllTab add {0} {1}", colunmField.Key, colunmField.Value);
|
||||
SqlHelper.ExecuteNonQuery(addColSql);//添加列
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string createTabSql = "create table P_PrivateDllTab(id int IDENTITY(1,1) NOT NULL,{0})";
|
||||
string createCol = string.Empty;
|
||||
foreach (KeyValuePair<string, string> colunmField in colDic)
|
||||
{
|
||||
createCol += string.Format("{0} {1},", colunmField.Key, colunmField.Value);
|
||||
}
|
||||
createTabSql = string.Format(createTabSql, createCol.TrimEnd(','));
|
||||
SqlHelper.ExecuteNonQuery(createTabSql);//创建表
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
string a
|
||||
Reference in New Issue
Block a user