。。。
This commit is contained in:
@@ -13,8 +13,7 @@ using namespace libxl;
|
||||
|
||||
void RepairMonitoringFromExcelToOracle( const std::wstring & filePath,
|
||||
unsigned int sheetIndex,
|
||||
unsigned int titleRowIndex,
|
||||
unsigned int firstRowIndex,
|
||||
bool hasTitleRow,
|
||||
const std::string & tnsName,
|
||||
const std::string & userName,
|
||||
const std::string & password )
|
||||
@@ -66,15 +65,17 @@ void RepairMonitoringFromExcelToOracle( const std::wstring & filePath,
|
||||
unsigned int index = firstColumnIndex;
|
||||
|
||||
//保存标题
|
||||
while ( index <= lastColumnIndex )
|
||||
if (hasTitleRow)
|
||||
{
|
||||
wstring && title = ReadCellStringFromXlsx( pBook, sheetIndex, titleRowIndex, index, false );
|
||||
while (index <= lastColumnIndex)
|
||||
{
|
||||
wstring&& title = ReadCellStringFromXlsx(pBook, sheetIndex, firstRowIndex, index, false);
|
||||
|
||||
titleMap.insert( pair<int, wstring>( index, title ) );
|
||||
titleMap.insert(pair<int, wstring>(index, title));
|
||||
|
||||
++index;
|
||||
++index;
|
||||
}
|
||||
}
|
||||
|
||||
//逐行保存数据
|
||||
|
||||
}
|
||||
|
@@ -4,8 +4,7 @@
|
||||
|
||||
void RepairMonitoringFromExcelToOracle( const std::wstring & filePath,
|
||||
unsigned int sheetIndex,
|
||||
unsigned int titleRowIndex,
|
||||
unsigned int firstRowIndex,
|
||||
bool hasTitleRow,
|
||||
const std::string & tnsName,
|
||||
const std::string & userName,
|
||||
const std::string & password );
|
||||
|
@@ -8,8 +8,6 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
|
||||
UserInfo queryUserInfo( const string & userName,
|
||||
const string & password,
|
||||
const string & tnsName,
|
||||
|
Reference in New Issue
Block a user