SVN r1112
SVN-Revision: r1112
This commit is contained in:
@@ -1164,27 +1164,29 @@ namespace Lskj.PubBomImport
|
|||||||
{
|
{
|
||||||
if (BaseImpl.HasExistsTable("P_SpecialImportTab"))
|
if (BaseImpl.HasExistsTable("P_SpecialImportTab"))
|
||||||
{
|
{
|
||||||
if (!BaseImpl.HasExistsColumn("P_SpecialImportTab", "moduleId"))
|
DataTable TabColumnsb = BaseImpl.GetTableColumns("P_SpecialImportTab");
|
||||||
|
|
||||||
|
if (!TabColumnsb.Columns.Contains("moduleId"))
|
||||||
{
|
{
|
||||||
string addColumnSql = "alter table P_SpecialImportTab add moduleId int";
|
string addColumnSql = "alter table P_SpecialImportTab add moduleId int";
|
||||||
SqlHelper.ExecuteNonQuery(addColumnSql);
|
SqlHelper.ExecuteNonQuery(addColumnSql);
|
||||||
}
|
}
|
||||||
if (!BaseImpl.HasExistsColumn("P_SpecialImportTab", "rightMenuName"))
|
if (!TabColumnsb.Columns.Contains("rightMenuName"))
|
||||||
{
|
{
|
||||||
string addColumnSql = "alter table P_SpecialImportTab add rightMenuName varchar(100)";
|
string addColumnSql = "alter table P_SpecialImportTab add rightMenuName varchar(100)";
|
||||||
SqlHelper.ExecuteNonQuery(addColumnSql);
|
SqlHelper.ExecuteNonQuery(addColumnSql);
|
||||||
}
|
}
|
||||||
if (!BaseImpl.HasExistsColumn("P_SpecialImportTab", "Ls_CondFilter"))
|
if (!TabColumnsb.Columns.Contains("Ls_CondFilter"))
|
||||||
{
|
{
|
||||||
string addColumnSql = "alter table P_SpecialImportTab add Ls_CondFilter varchar(1000)";
|
string addColumnSql = "alter table P_SpecialImportTab add Ls_CondFilter varchar(1000)";
|
||||||
SqlHelper.ExecuteNonQuery(addColumnSql);
|
SqlHelper.ExecuteNonQuery(addColumnSql);
|
||||||
}
|
}
|
||||||
if (!BaseImpl.HasExistsColumn("P_SpecialImportTab", "Ls_UnionColumn"))
|
if (!TabColumnsb.Columns.Contains("Ls_UnionColumn"))
|
||||||
{
|
{
|
||||||
string addColumnSql = "alter table P_SpecialImportTab add Ls_UnionColumn varchar(2000)";
|
string addColumnSql = "alter table P_SpecialImportTab add Ls_UnionColumn varchar(2000)";
|
||||||
SqlHelper.ExecuteNonQuery(addColumnSql);
|
SqlHelper.ExecuteNonQuery(addColumnSql);
|
||||||
}
|
}
|
||||||
if (!BaseImpl.HasExistsColumn("P_SpecialImportTab", "Ls_CondPurview"))
|
if (!TabColumnsb.Columns.Contains("Ls_CondPurview"))
|
||||||
{
|
{
|
||||||
string addColumnSql = "alter table P_SpecialImportTab add Ls_CondPurview varchar(1000)";
|
string addColumnSql = "alter table P_SpecialImportTab add Ls_CondPurview varchar(1000)";
|
||||||
SqlHelper.ExecuteNonQuery(addColumnSql);
|
SqlHelper.ExecuteNonQuery(addColumnSql);
|
||||||
@@ -2386,4 +2388,31 @@ namespace Lskj.PubBomImport
|
|||||||
{
|
{
|
||||||
case CellType.String:
|
case CellType.String:
|
||||||
cellValue = cell.StringCellValue;
|
cellValue = cell.StringCellValue;
|
||||||
|
break;
|
||||||
|
case CellType.Numeric:
|
||||||
|
cellValue = cell.NumericCellValue.ToString();
|
||||||
|
break;
|
||||||
|
case CellType.Boolean:
|
||||||
|
cellValue = cell.BooleanCellValue.ToString();
|
||||||
|
break;
|
||||||
|
case CellType.Blank:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
cellValue.ToString();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
cellValue = cell.ToString();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
return cellValue;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user