。。。

This commit is contained in:
2020-05-12 16:44:34 +08:00
parent 13309fcf74
commit fb3f0fb20d
16 changed files with 518 additions and 46 deletions

View File

@@ -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;
}
}
//逐行保存数据
}

View File

@@ -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 );

View File

@@ -8,8 +8,6 @@
using namespace std;
UserInfo queryUserInfo( const string & userName,
const string & password,
const string & tnsName,