diff --git a/code/cpp/car_dealer_util/source/Data/DataManipulation/Excel/LoadFromExcel.cpp b/code/cpp/car_dealer_util/source/Data/DataManipulation/Excel/LoadFromExcel.cpp index 61b7ea9..e7184ba 100644 --- a/code/cpp/car_dealer_util/source/Data/DataManipulation/Excel/LoadFromExcel.cpp +++ b/code/cpp/car_dealer_util/source/Data/DataManipulation/Excel/LoadFromExcel.cpp @@ -80,16 +80,16 @@ void LoadCarDealerSchemeFromXlsx( const wstring & filePath, } //核对车商代码 - auto iterCarDealer = pCarDealerMap->find(carDealerCode); + auto iterCarDealer = pCarDealerMap->find( carDealerCode ); if ( iterCarDealer == pCarDealerMap->end() ) { //没查到这个车商,清除掉已经读取的数据 schemeVector.clear(); - QString rowIndexString = QString::number(rowIndex, 'g', -1); - QString errorMessage = QString("第") + rowIndexString + QString("行车商代码错误!"); + QString rowIndexString = QString::number( rowIndex, 'g', -1 ); + QString errorMessage = QString( "第" ) + rowIndexString + QString( "行车商代码错误!" ); - throw runtime_error(errorMessage.toStdString()); + throw runtime_error( errorMessage.toStdString() ); } CarDealerScheme carDealerScheme( theYear, @@ -149,7 +149,7 @@ void LoadCarDealerAchievementFromXlsx( const std::wstring & fileP int firstColumnIndex = pSheet->firstCol(); int rowIndex = firstRowIndex + startRowIndex; - unordered_map* pCarDealerMap = GetCarDealerMap(); + unordered_map * pCarDealerMap = GetCarDealerMap(); while ( rowIndex <= lastRowIndex ) { @@ -175,16 +175,18 @@ void LoadCarDealerAchievementFromXlsx( const std::wstring & fileP } //核对车商代码 - auto iterCarDealer = pCarDealerMap->find(carDealerCode); + auto iterCarDealer = pCarDealerMap->find( carDealerCode ); - if (iterCarDealer == pCarDealerMap->end()) + if ( iterCarDealer == pCarDealerMap->end() ) { //没查到这个车商,清除掉已经读取的数据 achievementVector.clear(); - QString rowIndexString = QString::number(rowIndex, 'g', -1); - QString errorMessage = QString("第") + rowIndexString + QString("行车商代码错误!"); + QString rowIndexString = QString::number( rowIndex, 'g', -1 ); + QString errorMessage = QString( "第" ) + rowIndexString + QString( "行车商代码错误!" ); - throw runtime_error(errorMessage.toStdString()); + pBook->release(); + + throw runtime_error( errorMessage.toStdString() ); } //每个字段都要先判断数据类型再读写,防止填写表格的人填错内容。 @@ -342,7 +344,7 @@ void LoadRepairOrderFromXlsx( const std::wstring & filePath, int firstRowIndex = pSheet->firstRow(); int rowIndex = firstRowIndex + startRowIndex; - auto* pCarDealerMap = GetCarDealerMap(); + auto * pCarDealerMap = GetCarDealerMap(); while ( rowIndex <= lastRowIndex ) { @@ -419,10 +421,10 @@ void LoadRepairOrderFromXlsx( const std::wstring & filePath, pBook->release(); } -void LoadRepairRecommandationFromXlsx( const std::wstring & filePath, - unsigned sheetIndex, - unsigned startRowIndex, - std::vector & recordVector ) +void LoadRepairRecommandationFromXlsx( const std::wstring & filePath, + unsigned sheetIndex, + unsigned startRowIndex, + std::vector & recordVector ) { Book * pBook = xlCreateXMLBookW(); Sheet * pSheet = nullptr; @@ -466,8 +468,8 @@ void LoadRepairRecommandationFromXlsx( const std::wstring & fil wstring orderNo = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); wstring orderType = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); wstring notifyNo = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); - wstring suggestedCarDealerCode = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); - wstring suggestedCarDealerName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); + wstring RecommandCarDealerCode = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); + wstring RecommandCarDealerName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); wstring damageDate = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); wstring plateNumber = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); wstring brandName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); @@ -476,16 +478,16 @@ void LoadRepairRecommandationFromXlsx( const std::wstring & fil wstring dataSource = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); RepairRecommandationRecord record( orderNo, - orderType, - notifyNo, - suggestedCarDealerCode, - suggestedCarDealerName, - damageDate, - plateNumber, - brandName, - messageType, - messageSendingDate, - dataSource ); + orderType, + notifyNo, + RecommandCarDealerCode, + RecommandCarDealerName, + damageDate, + plateNumber, + brandName, + messageType, + messageSendingDate, + dataSource ); recordVector.push_back( record ); diff --git a/code/cpp/car_dealer_util/source/Data/DataManipulation/Excel/LoadFromExcel.h b/code/cpp/car_dealer_util/source/Data/DataManipulation/Excel/LoadFromExcel.h index 2a563f8..673f2f7 100644 --- a/code/cpp/car_dealer_util/source/Data/DataManipulation/Excel/LoadFromExcel.h +++ b/code/cpp/car_dealer_util/source/Data/DataManipulation/Excel/LoadFromExcel.h @@ -50,7 +50,7 @@ void LoadRepairOrderFromXlsx( const std::wstring & filePath, // std::vector & orderVector ); /************************************************ -* \brief 读取送返修推荐表数据 +* \brief 读取卢霖城送返修推荐表数据 * \param filePath * \param sheetIndex * \param startRowIndex diff --git a/code/cpp/car_dealer_util/source/Data/DataManipulation/oracle/ImportToOracle.cpp b/code/cpp/car_dealer_util/source/Data/DataManipulation/oracle/ImportToOracle.cpp index 1257d54..826e8af 100644 --- a/code/cpp/car_dealer_util/source/Data/DataManipulation/oracle/ImportToOracle.cpp +++ b/code/cpp/car_dealer_util/source/Data/DataManipulation/oracle/ImportToOracle.cpp @@ -437,10 +437,10 @@ void ImportRepairOrderToOracle( const std::string & userName, OCI_Cleanup(); } -void ImportRepairSuggestionToOracle( const std::string & userName, - const std::string & password, - const std::string & tnsName, - const std::vector & recordVector ) +void ImportRepairRecommandationToOracle( const std::string & userName, + const std::string & password, + const std::string & tnsName, + const std::vector & recordVector ) { OCI_Connection * pConn = nullptr; OCI_Statement * pStmt = nullptr; @@ -562,166 +562,166 @@ void ImportNewRepairMonitorToOracle( const std::string & OCI_Statement * pStatement = nullptr; int returnCode = -1; - QString sql = QString::fromUtf8( - "BEGIN " \ - " car_dealer.data_import_util_pkg.导入新送返修监控报表(:1, " \ - " :2, " \ - " :3, " \ - " :4, " \ - " :5, " \ - " :6, " \ - " :7, " \ - " :8, " \ - " :9, " \ - " :10, " \ - " :11, " \ - " :12, " \ - " :13, " \ - " :14, " \ - " :15, " \ - " :16, " \ - " :17, " \ - " :18, " \ - " :19, " \ - " :20, " \ - " :21, " \ - " :22, " \ - " :23, " \ - " :24, " \ - " :25, " \ - " :26, " \ - " :27, " \ - " :28, " \ - " :29, " \ - " :30, " \ - " :31, " \ - " :32, " \ - " :33, " \ - " :34, " \ - " :35, " \ - " :36, " \ - " :37, " \ - " :38, " \ - " :39, " \ - " :40, " \ - " :41, " \ - " :42, " \ - " :43, " \ - " :44, " \ - " :45, " \ - " :46, " \ - " :47, " \ - " :48, " \ - " :49, " \ - " :50, " \ - " :51, " \ - " :52, " \ - " :53, " \ - " :54, " \ - " :55, " \ - " :56, " \ - " :57, " \ - " :58, " \ - " :59, " \ - " :60, " \ - " :61, " \ - " :62, " \ - " :63, " \ - " :64, " \ - " :65, " \ - " :66, " \ - " :67, " \ - " :68, " \ - " :69, " \ - " :70, " \ - " :71, " \ - " :72, " \ - " :73, " \ - " :74, " \ - " :75, " \ - " :76, " \ - " :77, " \ - " :78, " \ - " :79, " \ - " :80, " \ - " :81, " \ - " :82, " \ - " :83, " \ - " :84, " \ - " :85, " \ - " :86, " \ - " :87, " \ - " :88, " \ - " :89, " \ - " :90, " \ - " :91, " \ - " :92, " \ - " :93, " \ - " :94, " \ - " :95, " \ - " :96, " \ - " :97, " \ - " :98, " \ - " :99, " \ - " :100, " \ - " :101, " \ - " :102, " \ - " :103, " \ - " :104, " \ - " :105, " \ - " :106, " \ - " :107, " \ - " :108, " \ - " :109, " \ - " :110, " \ - " :111, " \ - " :112, " \ - " :113, " \ - " :114, " \ - " :115, " \ - " :116, " \ - " :117, " \ - " :118, " \ - " :119, " \ - " :120, " \ - " :121, " \ - " :122, " \ - " :123, " \ - " :124, " \ - " :125, " \ - " :126, " \ - " :127, " \ - " :128, " \ - " :129, " \ - " :130, " \ - " :131, " \ - " :132, " \ - " :133, " \ - " :134, " \ - " :135, " \ - " :136, " \ - " :137, " \ - " :138, " \ - " :139, " \ - " :140, " \ - " :141, " \ - " :142, " \ - " :143, " \ - " :144, " \ - " :145, " \ - " :146, " \ - " :147, " \ - " :148, " \ - " :149, " \ - " :150, " \ - " :151, " \ - " :152, " \ - " :153, " \ - " :154, " \ - " :155, " \ - " :156, " \ - " :157 ); " \ - "END;" ); + QString sql = QString::fromUtf8( + "BEGIN " + " car_dealer.data_import_util_pkg.导入新送返修监控报表(:1, " + " :2, " + " :3, " + " :4, " + " :5, " + " :6, " + " :7, " + " :8, " + " :9, " + " :10, " + " :11, " + " :12, " + " :13, " + " :14, " + " :15, " + " :16, " + " :17, " + " :18, " + " :19, " + " :20, " + " :21, " + " :22, " + " :23, " + " :24, " + " :25, " + " :26, " + " :27, " + " :28, " + " :29, " + " :30, " + " :31, " + " :32, " + " :33, " + " :34, " + " :35, " + " :36, " + " :37, " + " :38, " + " :39, " + " :40, " + " :41, " + " :42, " + " :43, " + " :44, " + " :45, " + " :46, " + " :47, " + " :48, " + " :49, " + " :50, " + " :51, " + " :52, " + " :53, " + " :54, " + " :55, " + " :56, " + " :57, " + " :58, " + " :59, " + " :60, " + " :61, " + " :62, " + " :63, " + " :64, " + " :65, " + " :66, " + " :67, " + " :68, " + " :69, " + " :70, " + " :71, " + " :72, " + " :73, " + " :74, " + " :75, " + " :76, " + " :77, " + " :78, " + " :79, " + " :80, " + " :81, " + " :82, " + " :83, " + " :84, " + " :85, " + " :86, " + " :87, " + " :88, " + " :89, " + " :90, " + " :91, " + " :92, " + " :93, " + " :94, " + " :95, " + " :96, " + " :97, " + " :98, " + " :99, " + " :100, " + " :101, " + " :102, " + " :103, " + " :104, " + " :105, " + " :106, " + " :107, " + " :108, " + " :109, " + " :110, " + " :111, " + " :112, " + " :113, " + " :114, " + " :115, " + " :116, " + " :117, " + " :118, " + " :119, " + " :120, " + " :121, " + " :122, " + " :123, " + " :124, " + " :125, " + " :126, " + " :127, " + " :128, " + " :129, " + " :130, " + " :131, " + " :132, " + " :133, " + " :134, " + " :135, " + " :136, " + " :137, " + " :138, " + " :139, " + " :140, " + " :141, " + " :142, " + " :143, " + " :144, " + " :145, " + " :146, " + " :147, " + " :148, " + " :149, " + " :150, " + " :151, " + " :152, " + " :153, " + " :154, " + " :155, " + " :156, " + " :157 ); " + "END;" ); //初始化 returnCode = OCI_Initialize( error_handler, nullptr, OCI_ENV_CONTEXT ); @@ -928,164 +928,164 @@ void ImportNewRepairMonitorToOracle( const std::string & { continue; } - - OCI_BindString(pStatement, (const otext*)(":1"), (otext*)(分公司名称.c_str()), 分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":2"), (otext*)(部门组名称.c_str()), 部门组名称.size()); - OCI_BindString(pStatement, (const otext*)(":3"), (otext*)(报案号.c_str()), 报案号.size()); - OCI_BindString(pStatement, (const otext*)(":4"), (otext*)(报案日期.c_str()), 报案日期.size()); - OCI_BindString(pStatement, (const otext*)(":5"), (otext*)(出险日期.c_str()), 出险日期.size()); - OCI_BindString(pStatement, (const otext*)(":6"), (otext*)(出险地点.c_str()), 出险地点.size()); - OCI_BindString(pStatement, (const otext*)(":7"), (otext*)(事故车目前位置.c_str()), 事故车目前位置.size()); - OCI_BindString(pStatement, (const otext*)(":8"), (otext*)(车损序号.c_str()), 车损序号.size()); - OCI_BindString(pStatement, (const otext*)(":9"), (otext*)(车牌.c_str()), 车牌.size()); - OCI_BindString(pStatement, (const otext*)(":10"), (otext*)(vin码.c_str()), vin码.size()); - OCI_BindString(pStatement, (const otext*)(":11"), (otext*)(车龄.c_str()), 车龄.size()); - OCI_BindString(pStatement, (const otext*)(":12"), (otext*)(品牌代码.c_str()), 品牌代码.size()); - OCI_BindString(pStatement, (const otext*)(":13"), (otext*)(品牌名称.c_str()), 品牌名称.size()); - OCI_BindString(pStatement, (const otext*)(":14"), (otext*)(车系名称.c_str()), 车系名称.size()); - OCI_BindString(pStatement, (const otext*)(":15"), (otext*)(使用性质名称.c_str()), 使用性质名称.size()); - OCI_BindString(pStatement, (const otext*)(":16"), (otext*)(保单号.c_str()), 保单号.size()); - OCI_BindString(pStatement, (const otext*)(":17"), (otext*)(标的车三者车.c_str()), 标的车三者车.size()); - OCI_BindString(pStatement, (const otext*)(":18"), (otext*)(是否9座以下企业用车行政用车家庭自用车.c_str()), 是否9座以下企业用车行政用车家庭自用车.size()); - OCI_BindString(pStatement, (const otext*)(":19"), (otext*)(核价金额.c_str()), 核价金额.size()); - OCI_BindString(pStatement, (const otext*)(":20"), (otext*)(核损配件核损金额.c_str()), 核损配件核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":21"), (otext*)(核损工时费核损金额.c_str()), 核损工时费核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":22"), (otext*)(核损辅料核损金额.c_str()), 核损辅料核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":23"), (otext*)(核损外修费核损金额.c_str()), 核损外修费核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":24"), (otext*)(核损施救费核损金额.c_str()), 核损施救费核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":25"), (otext*)(结案金额.c_str()), 结案金额.size()); - OCI_BindString(pStatement, (const otext*)(":26"), (otext*)(结案配件核损金额.c_str()), 结案配件核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":27"), (otext*)(结案工时费核损金额.c_str()), 结案工时费核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":28"), (otext*)(结案辅料核损金额.c_str()), 结案辅料核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":29"), (otext*)(结案外修费核损金额.c_str()), 结案外修费核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":30"), (otext*)(结案施救费核损金额.c_str()), 结案施救费核损金额.size()); - OCI_BindString(pStatement, (const otext*)(":31"), (otext*)(接报案人分公司名称.c_str()), 接报案人分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":32"), (otext*)(接报案人工号.c_str()), 接报案人工号.size()); - OCI_BindString(pStatement, (const otext*)(":33"), (otext*)(接报案人名称.c_str()), 接报案人名称.size()); - OCI_BindString(pStatement, (const otext*)(":34"), (otext*)(第一任务分派时间.c_str()), 第一任务分派时间.size()); - OCI_BindString(pStatement, (const otext*)(":35"), (otext*)(第一定损员分公司.c_str()), 第一定损员分公司.size()); - OCI_BindString(pStatement, (const otext*)(":36"), (otext*)(第一定损员部门组名称.c_str()), 第一定损员部门组名称.size()); - OCI_BindString(pStatement, (const otext*)(":37"), (otext*)(第一定损员代码.c_str()), 第一定损员代码.size()); - OCI_BindString(pStatement, (const otext*)(":38"), (otext*)(第一定损员名称.c_str()), 第一定损员名称.size()); - OCI_BindString(pStatement, (const otext*)(":39"), (otext*)(第一车商是否已阅读.c_str()), 第一车商是否已阅读.size()); - OCI_BindString(pStatement, (const otext*)(":40"), (otext*)(第一车上是否预约进厂.c_str()), 第一车上是否预约进厂.size()); - OCI_BindString(pStatement, (const otext*)(":41"), (otext*)(第一车商是否推荐失败.c_str()), 第一车商是否推荐失败.size()); - OCI_BindString(pStatement, (const otext*)(":42"), (otext*)(第一车商是否进厂确认.c_str()), 第一车商是否进厂确认.size()); - OCI_BindString(pStatement, (const otext*)(":43"), (otext*)(第一车商是否出场确认.c_str()), 第一车商是否出场确认.size()); - OCI_BindString(pStatement, (const otext*)(":44"), (otext*)(第二任务分派时间.c_str()), 第二任务分派时间.size()); - OCI_BindString(pStatement, (const otext*)(":45"), (otext*)(第二定损员分公司.c_str()), 第二定损员分公司.size()); - OCI_BindString(pStatement, (const otext*)(":46"), (otext*)(第二定损员部门组名称.c_str()), 第二定损员部门组名称.size()); - OCI_BindString(pStatement, (const otext*)(":47"), (otext*)(第二定损员代码.c_str()), 第二定损员代码.size()); - OCI_BindString(pStatement, (const otext*)(":48"), (otext*)(第二定损员名称.c_str()), 第二定损员名称.size()); - OCI_BindString(pStatement, (const otext*)(":49"), (otext*)(第二车商是否已阅读.c_str()), 第二车商是否已阅读.size()); - OCI_BindString(pStatement, (const otext*)(":50"), (otext*)(第二车上是否预约进厂.c_str()), 第二车上是否预约进厂.size()); - OCI_BindString(pStatement, (const otext*)(":51"), (otext*)(第二车商是否推荐失败.c_str()), 第二车商是否推荐失败.size()); - OCI_BindString(pStatement, (const otext*)(":52"), (otext*)(第二车商是否进厂确认.c_str()), 第二车商是否进厂确认.size()); - OCI_BindString(pStatement, (const otext*)(":53"), (otext*)(第二车商是否出场确认.c_str()), 第二车商是否出场确认.size()); - OCI_BindString(pStatement, (const otext*)(":54"), (otext*)(第三任务分派时间.c_str()), 第三任务分派时间.size()); - OCI_BindString(pStatement, (const otext*)(":55"), (otext*)(第三定损员分公司.c_str()), 第三定损员分公司.size()); - OCI_BindString(pStatement, (const otext*)(":56"), (otext*)(第三定损员部门组名称.c_str()), 第三定损员部门组名称.size()); - OCI_BindString(pStatement, (const otext*)(":57"), (otext*)(第三定损员代码.c_str()), 第三定损员代码.size()); - OCI_BindString(pStatement, (const otext*)(":58"), (otext*)(第三定损员名称.c_str()), 第三定损员名称.size()); - OCI_BindString(pStatement, (const otext*)(":59"), (otext*)(第三车商是否已阅读.c_str()), 第三车商是否已阅读.size()); - OCI_BindString(pStatement, (const otext*)(":60"), (otext*)(第三车上是否预约进厂.c_str()), 第三车上是否预约进厂.size()); - OCI_BindString(pStatement, (const otext*)(":61"), (otext*)(第三车商是否推荐失败.c_str()), 第三车商是否推荐失败.size()); - OCI_BindString(pStatement, (const otext*)(":62"), (otext*)(第三车商是否进厂确认.c_str()), 第三车商是否进厂确认.size()); - OCI_BindString(pStatement, (const otext*)(":63"), (otext*)(第三车商是否出场确认.c_str()), 第三车商是否出场确认.size()); - OCI_BindString(pStatement, (const otext*)(":64"), (otext*)(其他查勘员信息.c_str()), 其他查勘员信息.size()); - OCI_BindString(pStatement, (const otext*)(":65"), (otext*)(是否推荐.c_str()), 是否推荐.size()); - OCI_BindString(pStatement, (const otext*)(":66"), (otext*)(是否存在工单.c_str()), 是否存在工单.size()); - OCI_BindString(pStatement, (const otext*)(":67"), (otext*)(工单类型.c_str()), 工单类型.size()); - OCI_BindString(pStatement, (const otext*)(":68"), (otext*)(查勘员操作类型.c_str()), 查勘员操作类型.size()); - OCI_BindString(pStatement, (const otext*)(":69"), (otext*)(案件状态名称.c_str()), 案件状态名称.size()); - OCI_BindString(pStatement, (const otext*)(":70"), (otext*)(车状当前状态.c_str()), 车状当前状态.size()); - OCI_BindString(pStatement, (const otext*)(":71"), (otext*)(车状报案环节.c_str()), 车状报案环节.size()); - OCI_BindString(pStatement, (const otext*)(":72"), (otext*)(车状现场推荐环节.c_str()), 车状现场推荐环节.size()); - OCI_BindString(pStatement, (const otext*)(":73"), (otext*)(车状核价通过环节.c_str()), 车状核价通过环节.size()); - OCI_BindString(pStatement, (const otext*)(":74"), (otext*)(车状结案环节.c_str()), 车状结案环节.size()); - OCI_BindString(pStatement, (const otext*)(":75"), (otext*)(承保车商代码.c_str()), 承保车商代码.size()); - OCI_BindString(pStatement, (const otext*)(":76"), (otext*)(承保车商名称.c_str()), 承保车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":77"), (otext*)(报案车商分公司名称.c_str()), 报案车商分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":78"), (otext*)(报案车商部门组名称.c_str()), 报案车商部门组名称.size()); - OCI_BindString(pStatement, (const otext*)(":79"), (otext*)(报案车商代码.c_str()), 报案车商代码.size()); - OCI_BindString(pStatement, (const otext*)(":80"), (otext*)(报案车商名称.c_str()), 报案车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":81"), (otext*)(现场推荐车商分公司名称.c_str()), 现场推荐车商分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":82"), (otext*)(现场推荐车商代码.c_str()), 现场推荐车商代码.size()); - OCI_BindString(pStatement, (const otext*)(":83"), (otext*)(现场推荐车商名称.c_str()), 现场推荐车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":84"), (otext*)(核价车商分公司名称.c_str()), 核价车商分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":85"), (otext*)(核价车商部门组名称.c_str()), 核价车商部门组名称.size()); - OCI_BindString(pStatement, (const otext*)(":86"), (otext*)(核价车商代码.c_str()), 核价车商代码.size()); - OCI_BindString(pStatement, (const otext*)(":87"), (otext*)(核价车商名称.c_str()), 核价车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":88"), (otext*)(推荐车商与核价车商是否一致.c_str()), 推荐车商与核价车商是否一致.size()); - OCI_BindString(pStatement, (const otext*)(":89"), (otext*)(核价修理厂归属公司代码.c_str()), 核价修理厂归属公司代码.size()); - OCI_BindString(pStatement, (const otext*)(":90"), (otext*)(核价修理厂归属公司名称.c_str()), 核价修理厂归属公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":91"), (otext*)(核价修理厂.c_str()), 核价修理厂.size()); - OCI_BindString(pStatement, (const otext*)(":92"), (otext*)(核价修理厂名称.c_str()), 核价修理厂名称.size()); - OCI_BindString(pStatement, (const otext*)(":93"), (otext*)(估损单号.c_str()), 估损单号.size()); - OCI_BindString(pStatement, (const otext*)(":94"), (otext*)(核价通过时间.c_str()), 核价通过时间.size()); - OCI_BindString(pStatement, (const otext*)(":95"), (otext*)(定损员机构.c_str()), 定损员机构.size()); - OCI_BindString(pStatement, (const otext*)(":96"), (otext*)(定损员代码.c_str()), 定损员代码.size()); - OCI_BindString(pStatement, (const otext*)(":97"), (otext*)(定损员名称.c_str()), 定损员名称.size()); - OCI_BindString(pStatement, (const otext*)(":98"), (otext*)(结案车商分公司.c_str()), 结案车商分公司.size()); - OCI_BindString(pStatement, (const otext*)(":99"), (otext*)(结案车商部门组名称.c_str()), 结案车商部门组名称.size()); - OCI_BindString(pStatement, (const otext*)(":100"), (otext*)(结案车商代码.c_str()), 结案车商代码.size()); - OCI_BindString(pStatement, (const otext*)(":101"), (otext*)(结案车商名称.c_str()), 结案车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":102"), (otext*)(推荐车商与结案车商是否一致.c_str()), 推荐车商与结案车商是否一致.size()); - OCI_BindString(pStatement, (const otext*)(":103"), (otext*)(结案修理厂归属公司代码.c_str()), 结案修理厂归属公司代码.size()); - OCI_BindString(pStatement, (const otext*)(":104"), (otext*)(结案修理厂归属公司名称.c_str()), 结案修理厂归属公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":105"), (otext*)(结案修理厂代码.c_str()), 结案修理厂代码.size()); - OCI_BindString(pStatement, (const otext*)(":106"), (otext*)(结案修理厂名称.c_str()), 结案修理厂名称.size()); - OCI_BindString(pStatement, (const otext*)(":107"), (otext*)(车辆进厂时间.c_str()), 车辆进厂时间.size()); - OCI_BindString(pStatement, (const otext*)(":108"), (otext*)(车辆出厂时间.c_str()), 车辆出厂时间.size()); - OCI_BindString(pStatement, (const otext*)(":109"), (otext*)(结案时间.c_str()), 结案时间.size()); - OCI_BindString(pStatement, (const otext*)(":110"), (otext*)(事故经过.c_str()), 事故经过.size()); - OCI_BindString(pStatement, (const otext*)(":111"), (otext*)(数据更新日期.c_str()), 数据更新日期.size()); - OCI_BindString(pStatement, (const otext*)(":112"), (otext*)(备注.c_str()), 备注.size()); - OCI_BindString(pStatement, (const otext*)(":113"), (otext*)(估损单模板.c_str()), 估损单模板.size()); - OCI_BindString(pStatement, (const otext*)(":114"), (otext*)(返修开关报案.c_str()), 返修开关报案.size()); - OCI_BindString(pStatement, (const otext*)(":115"), (otext*)(送修开关报案.c_str()), 送修开关报案.size()); - OCI_BindString(pStatement, (const otext*)(":116"), (otext*)(返修开关核价.c_str()), 返修开关核价.size()); - OCI_BindString(pStatement, (const otext*)(":117"), (otext*)(送修开关核价.c_str()), 送修开关核价.size()); - OCI_BindString(pStatement, (const otext*)(":118"), (otext*)(返修开关结案.c_str()), 返修开关结案.size()); - OCI_BindString(pStatement, (const otext*)(":119"), (otext*)(送修开关结案.c_str()), 送修开关结案.size()); - OCI_BindString(pStatement, (const otext*)(":120"), (otext*)(查勘员分公司名称.c_str()), 查勘员分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":121"), (otext*)(查勘员代码.c_str()), 查勘员代码.size()); - OCI_BindString(pStatement, (const otext*)(":122"), (otext*)(查勘员名称.c_str()), 查勘员名称.size()); - OCI_BindString(pStatement, (const otext*)(":123"), (otext*)(核价修理厂归属中支.c_str()), 核价修理厂归属中支.size()); - OCI_BindString(pStatement, (const otext*)(":124"), (otext*)(结案修理厂归属中支.c_str()), 结案修理厂归属中支.size()); - OCI_BindString(pStatement, (const otext*)(":125"), (otext*)(是否诉讼.c_str()), 是否诉讼.size()); - OCI_BindString(pStatement, (const otext*)(":126"), (otext*)(座席推荐分公司代码.c_str()), 座席推荐分公司代码.size()); - OCI_BindString(pStatement, (const otext*)(":127"), (otext*)(座席推荐分公司名称.c_str()), 座席推荐分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":128"), (otext*)(座席推荐车商名代码.c_str()), 座席推荐车商名代码.size()); - OCI_BindString(pStatement, (const otext*)(":129"), (otext*)(座席推荐车商名称.c_str()), 座席推荐车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":130"), (otext*)(座席推荐操作类型.c_str()), 座席推荐操作类型.size()); - OCI_BindString(pStatement, (const otext*)(":131"), (otext*)(座席推荐排名.c_str()), 座席推荐排名.size()); - OCI_BindString(pStatement, (const otext*)(":132"), (otext*)(第一次推荐分公司代码.c_str()), 第一次推荐分公司代码.size()); - OCI_BindString(pStatement, (const otext*)(":133"), (otext*)(第一次推荐分公司名称.c_str()), 第一次推荐分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":134"), (otext*)(第一次推荐车商代码.c_str()), 第一次推荐车商代码.size()); - OCI_BindString(pStatement, (const otext*)(":135"), (otext*)(第一次推荐车商名称.c_str()), 第一次推荐车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":136"), (otext*)(第一次推荐工具.c_str()), 第一次推荐工具.size()); - OCI_BindString(pStatement, (const otext*)(":137"), (otext*)(第一次推荐操作类型.c_str()), 第一次推荐操作类型.size()); - OCI_BindString(pStatement, (const otext*)(":138"), (otext*)(第一次推荐排名其他推荐信息.c_str()), 第一次推荐排名其他推荐信息.size()); - OCI_BindString(pStatement, (const otext*)(":139"), (otext*)(第二次推荐分公司代码.c_str()), 第二次推荐分公司代码.size()); - OCI_BindString(pStatement, (const otext*)(":140"), (otext*)(第二次推荐分公司名称.c_str()), 第二次推荐分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":141"), (otext*)(第二次推荐车商代码.c_str()), 第二次推荐车商代码.size()); - OCI_BindString(pStatement, (const otext*)(":142"), (otext*)(第二次推荐车商名称.c_str()), 第二次推荐车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":143"), (otext*)(第二次推荐工具.c_str()), 第二次推荐工具.size()); - OCI_BindString(pStatement, (const otext*)(":144"), (otext*)(第二次推荐操作类型.c_str()), 第二次推荐操作类型.size()); - OCI_BindString(pStatement, (const otext*)(":145"), (otext*)(第二次推荐排名其他推荐信息.c_str()), 第二次推荐排名其他推荐信息.size()); - OCI_BindString(pStatement, (const otext*)(":146"), (otext*)(第三次推荐分公司代码.c_str()), 第三次推荐分公司代码.size()); - OCI_BindString(pStatement, (const otext*)(":147"), (otext*)(第三次推荐分公司名称.c_str()), 第三次推荐分公司名称.size()); - OCI_BindString(pStatement, (const otext*)(":148"), (otext*)(第三次推荐车商代码.c_str()), 第三次推荐车商代码.size()); - OCI_BindString(pStatement, (const otext*)(":149"), (otext*)(第三次推荐车商名称.c_str()), 第三次推荐车商名称.size()); - OCI_BindString(pStatement, (const otext*)(":150"), (otext*)(第三次推荐工具.c_str()), 第三次推荐工具.size()); - OCI_BindString(pStatement, (const otext*)(":151"), (otext*)(第三次推荐操作类型.c_str()), 第三次推荐操作类型.size()); - OCI_BindString(pStatement, (const otext*)(":152"), (otext*)(第三次推荐排名其他推荐信息.c_str()), 第三次推荐排名其他推荐信息.size()); - OCI_BindString(pStatement, (const otext*)(":153"), (otext*)(其他推荐信息.c_str()), 其他推荐信息.size()); - OCI_BindString(pStatement, (const otext*)(":154"), (otext*)(推荐失败具体原因.c_str()), 推荐失败具体原因.size()); - OCI_BindString(pStatement, (const otext*)(":155"), (otext*)(是否现场报案.c_str()), 是否现场报案.size()); - OCI_BindString(pStatement, (const otext*)(":156"), (otext*)(报案地点.c_str()), 报案地点.size()); - OCI_BindString(pStatement, (const otext*)(":157"), (otext*)(是否在厂报案.c_str()), 是否在厂报案.size()); + + OCI_BindString( pStatement, (const otext*)(":1"), (otext*)(分公司名称.c_str()), 分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":2"), (otext*)(部门组名称.c_str()), 部门组名称.size() ); + OCI_BindString( pStatement, (const otext*)(":3"), (otext*)(报案号.c_str()), 报案号.size() ); + OCI_BindString( pStatement, (const otext*)(":4"), (otext*)(报案日期.c_str()), 报案日期.size() ); + OCI_BindString( pStatement, (const otext*)(":5"), (otext*)(出险日期.c_str()), 出险日期.size() ); + OCI_BindString( pStatement, (const otext*)(":6"), (otext*)(出险地点.c_str()), 出险地点.size() ); + OCI_BindString( pStatement, (const otext*)(":7"), (otext*)(事故车目前位置.c_str()), 事故车目前位置.size() ); + OCI_BindString( pStatement, (const otext*)(":8"), (otext*)(车损序号.c_str()), 车损序号.size() ); + OCI_BindString( pStatement, (const otext*)(":9"), (otext*)(车牌.c_str()), 车牌.size() ); + OCI_BindString( pStatement, (const otext*)(":10"), (otext*)(vin码.c_str()), vin码.size() ); + OCI_BindString( pStatement, (const otext*)(":11"), (otext*)(车龄.c_str()), 车龄.size() ); + OCI_BindString( pStatement, (const otext*)(":12"), (otext*)(品牌代码.c_str()), 品牌代码.size() ); + OCI_BindString( pStatement, (const otext*)(":13"), (otext*)(品牌名称.c_str()), 品牌名称.size() ); + OCI_BindString( pStatement, (const otext*)(":14"), (otext*)(车系名称.c_str()), 车系名称.size() ); + OCI_BindString( pStatement, (const otext*)(":15"), (otext*)(使用性质名称.c_str()), 使用性质名称.size() ); + OCI_BindString( pStatement, (const otext*)(":16"), (otext*)(保单号.c_str()), 保单号.size() ); + OCI_BindString( pStatement, (const otext*)(":17"), (otext*)(标的车三者车.c_str()), 标的车三者车.size() ); + OCI_BindString( pStatement, (const otext*)(":18"), (otext*)(是否9座以下企业用车行政用车家庭自用车.c_str()), 是否9座以下企业用车行政用车家庭自用车.size() ); + OCI_BindString( pStatement, (const otext*)(":19"), (otext*)(核价金额.c_str()), 核价金额.size() ); + OCI_BindString( pStatement, (const otext*)(":20"), (otext*)(核损配件核损金额.c_str()), 核损配件核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":21"), (otext*)(核损工时费核损金额.c_str()), 核损工时费核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":22"), (otext*)(核损辅料核损金额.c_str()), 核损辅料核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":23"), (otext*)(核损外修费核损金额.c_str()), 核损外修费核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":24"), (otext*)(核损施救费核损金额.c_str()), 核损施救费核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":25"), (otext*)(结案金额.c_str()), 结案金额.size() ); + OCI_BindString( pStatement, (const otext*)(":26"), (otext*)(结案配件核损金额.c_str()), 结案配件核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":27"), (otext*)(结案工时费核损金额.c_str()), 结案工时费核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":28"), (otext*)(结案辅料核损金额.c_str()), 结案辅料核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":29"), (otext*)(结案外修费核损金额.c_str()), 结案外修费核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":30"), (otext*)(结案施救费核损金额.c_str()), 结案施救费核损金额.size() ); + OCI_BindString( pStatement, (const otext*)(":31"), (otext*)(接报案人分公司名称.c_str()), 接报案人分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":32"), (otext*)(接报案人工号.c_str()), 接报案人工号.size() ); + OCI_BindString( pStatement, (const otext*)(":33"), (otext*)(接报案人名称.c_str()), 接报案人名称.size() ); + OCI_BindString( pStatement, (const otext*)(":34"), (otext*)(第一任务分派时间.c_str()), 第一任务分派时间.size() ); + OCI_BindString( pStatement, (const otext*)(":35"), (otext*)(第一定损员分公司.c_str()), 第一定损员分公司.size() ); + OCI_BindString( pStatement, (const otext*)(":36"), (otext*)(第一定损员部门组名称.c_str()), 第一定损员部门组名称.size() ); + OCI_BindString( pStatement, (const otext*)(":37"), (otext*)(第一定损员代码.c_str()), 第一定损员代码.size() ); + OCI_BindString( pStatement, (const otext*)(":38"), (otext*)(第一定损员名称.c_str()), 第一定损员名称.size() ); + OCI_BindString( pStatement, (const otext*)(":39"), (otext*)(第一车商是否已阅读.c_str()), 第一车商是否已阅读.size() ); + OCI_BindString( pStatement, (const otext*)(":40"), (otext*)(第一车上是否预约进厂.c_str()), 第一车上是否预约进厂.size() ); + OCI_BindString( pStatement, (const otext*)(":41"), (otext*)(第一车商是否推荐失败.c_str()), 第一车商是否推荐失败.size() ); + OCI_BindString( pStatement, (const otext*)(":42"), (otext*)(第一车商是否进厂确认.c_str()), 第一车商是否进厂确认.size() ); + OCI_BindString( pStatement, (const otext*)(":43"), (otext*)(第一车商是否出场确认.c_str()), 第一车商是否出场确认.size() ); + OCI_BindString( pStatement, (const otext*)(":44"), (otext*)(第二任务分派时间.c_str()), 第二任务分派时间.size() ); + OCI_BindString( pStatement, (const otext*)(":45"), (otext*)(第二定损员分公司.c_str()), 第二定损员分公司.size() ); + OCI_BindString( pStatement, (const otext*)(":46"), (otext*)(第二定损员部门组名称.c_str()), 第二定损员部门组名称.size() ); + OCI_BindString( pStatement, (const otext*)(":47"), (otext*)(第二定损员代码.c_str()), 第二定损员代码.size() ); + OCI_BindString( pStatement, (const otext*)(":48"), (otext*)(第二定损员名称.c_str()), 第二定损员名称.size() ); + OCI_BindString( pStatement, (const otext*)(":49"), (otext*)(第二车商是否已阅读.c_str()), 第二车商是否已阅读.size() ); + OCI_BindString( pStatement, (const otext*)(":50"), (otext*)(第二车上是否预约进厂.c_str()), 第二车上是否预约进厂.size() ); + OCI_BindString( pStatement, (const otext*)(":51"), (otext*)(第二车商是否推荐失败.c_str()), 第二车商是否推荐失败.size() ); + OCI_BindString( pStatement, (const otext*)(":52"), (otext*)(第二车商是否进厂确认.c_str()), 第二车商是否进厂确认.size() ); + OCI_BindString( pStatement, (const otext*)(":53"), (otext*)(第二车商是否出场确认.c_str()), 第二车商是否出场确认.size() ); + OCI_BindString( pStatement, (const otext*)(":54"), (otext*)(第三任务分派时间.c_str()), 第三任务分派时间.size() ); + OCI_BindString( pStatement, (const otext*)(":55"), (otext*)(第三定损员分公司.c_str()), 第三定损员分公司.size() ); + OCI_BindString( pStatement, (const otext*)(":56"), (otext*)(第三定损员部门组名称.c_str()), 第三定损员部门组名称.size() ); + OCI_BindString( pStatement, (const otext*)(":57"), (otext*)(第三定损员代码.c_str()), 第三定损员代码.size() ); + OCI_BindString( pStatement, (const otext*)(":58"), (otext*)(第三定损员名称.c_str()), 第三定损员名称.size() ); + OCI_BindString( pStatement, (const otext*)(":59"), (otext*)(第三车商是否已阅读.c_str()), 第三车商是否已阅读.size() ); + OCI_BindString( pStatement, (const otext*)(":60"), (otext*)(第三车上是否预约进厂.c_str()), 第三车上是否预约进厂.size() ); + OCI_BindString( pStatement, (const otext*)(":61"), (otext*)(第三车商是否推荐失败.c_str()), 第三车商是否推荐失败.size() ); + OCI_BindString( pStatement, (const otext*)(":62"), (otext*)(第三车商是否进厂确认.c_str()), 第三车商是否进厂确认.size() ); + OCI_BindString( pStatement, (const otext*)(":63"), (otext*)(第三车商是否出场确认.c_str()), 第三车商是否出场确认.size() ); + OCI_BindString( pStatement, (const otext*)(":64"), (otext*)(其他查勘员信息.c_str()), 其他查勘员信息.size() ); + OCI_BindString( pStatement, (const otext*)(":65"), (otext*)(是否推荐.c_str()), 是否推荐.size() ); + OCI_BindString( pStatement, (const otext*)(":66"), (otext*)(是否存在工单.c_str()), 是否存在工单.size() ); + OCI_BindString( pStatement, (const otext*)(":67"), (otext*)(工单类型.c_str()), 工单类型.size() ); + OCI_BindString( pStatement, (const otext*)(":68"), (otext*)(查勘员操作类型.c_str()), 查勘员操作类型.size() ); + OCI_BindString( pStatement, (const otext*)(":69"), (otext*)(案件状态名称.c_str()), 案件状态名称.size() ); + OCI_BindString( pStatement, (const otext*)(":70"), (otext*)(车状当前状态.c_str()), 车状当前状态.size() ); + OCI_BindString( pStatement, (const otext*)(":71"), (otext*)(车状报案环节.c_str()), 车状报案环节.size() ); + OCI_BindString( pStatement, (const otext*)(":72"), (otext*)(车状现场推荐环节.c_str()), 车状现场推荐环节.size() ); + OCI_BindString( pStatement, (const otext*)(":73"), (otext*)(车状核价通过环节.c_str()), 车状核价通过环节.size() ); + OCI_BindString( pStatement, (const otext*)(":74"), (otext*)(车状结案环节.c_str()), 车状结案环节.size() ); + OCI_BindString( pStatement, (const otext*)(":75"), (otext*)(承保车商代码.c_str()), 承保车商代码.size() ); + OCI_BindString( pStatement, (const otext*)(":76"), (otext*)(承保车商名称.c_str()), 承保车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":77"), (otext*)(报案车商分公司名称.c_str()), 报案车商分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":78"), (otext*)(报案车商部门组名称.c_str()), 报案车商部门组名称.size() ); + OCI_BindString( pStatement, (const otext*)(":79"), (otext*)(报案车商代码.c_str()), 报案车商代码.size() ); + OCI_BindString( pStatement, (const otext*)(":80"), (otext*)(报案车商名称.c_str()), 报案车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":81"), (otext*)(现场推荐车商分公司名称.c_str()), 现场推荐车商分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":82"), (otext*)(现场推荐车商代码.c_str()), 现场推荐车商代码.size() ); + OCI_BindString( pStatement, (const otext*)(":83"), (otext*)(现场推荐车商名称.c_str()), 现场推荐车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":84"), (otext*)(核价车商分公司名称.c_str()), 核价车商分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":85"), (otext*)(核价车商部门组名称.c_str()), 核价车商部门组名称.size() ); + OCI_BindString( pStatement, (const otext*)(":86"), (otext*)(核价车商代码.c_str()), 核价车商代码.size() ); + OCI_BindString( pStatement, (const otext*)(":87"), (otext*)(核价车商名称.c_str()), 核价车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":88"), (otext*)(推荐车商与核价车商是否一致.c_str()), 推荐车商与核价车商是否一致.size() ); + OCI_BindString( pStatement, (const otext*)(":89"), (otext*)(核价修理厂归属公司代码.c_str()), 核价修理厂归属公司代码.size() ); + OCI_BindString( pStatement, (const otext*)(":90"), (otext*)(核价修理厂归属公司名称.c_str()), 核价修理厂归属公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":91"), (otext*)(核价修理厂.c_str()), 核价修理厂.size() ); + OCI_BindString( pStatement, (const otext*)(":92"), (otext*)(核价修理厂名称.c_str()), 核价修理厂名称.size() ); + OCI_BindString( pStatement, (const otext*)(":93"), (otext*)(估损单号.c_str()), 估损单号.size() ); + OCI_BindString( pStatement, (const otext*)(":94"), (otext*)(核价通过时间.c_str()), 核价通过时间.size() ); + OCI_BindString( pStatement, (const otext*)(":95"), (otext*)(定损员机构.c_str()), 定损员机构.size() ); + OCI_BindString( pStatement, (const otext*)(":96"), (otext*)(定损员代码.c_str()), 定损员代码.size() ); + OCI_BindString( pStatement, (const otext*)(":97"), (otext*)(定损员名称.c_str()), 定损员名称.size() ); + OCI_BindString( pStatement, (const otext*)(":98"), (otext*)(结案车商分公司.c_str()), 结案车商分公司.size() ); + OCI_BindString( pStatement, (const otext*)(":99"), (otext*)(结案车商部门组名称.c_str()), 结案车商部门组名称.size() ); + OCI_BindString( pStatement, (const otext*)(":100"), (otext*)(结案车商代码.c_str()), 结案车商代码.size() ); + OCI_BindString( pStatement, (const otext*)(":101"), (otext*)(结案车商名称.c_str()), 结案车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":102"), (otext*)(推荐车商与结案车商是否一致.c_str()), 推荐车商与结案车商是否一致.size() ); + OCI_BindString( pStatement, (const otext*)(":103"), (otext*)(结案修理厂归属公司代码.c_str()), 结案修理厂归属公司代码.size() ); + OCI_BindString( pStatement, (const otext*)(":104"), (otext*)(结案修理厂归属公司名称.c_str()), 结案修理厂归属公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":105"), (otext*)(结案修理厂代码.c_str()), 结案修理厂代码.size() ); + OCI_BindString( pStatement, (const otext*)(":106"), (otext*)(结案修理厂名称.c_str()), 结案修理厂名称.size() ); + OCI_BindString( pStatement, (const otext*)(":107"), (otext*)(车辆进厂时间.c_str()), 车辆进厂时间.size() ); + OCI_BindString( pStatement, (const otext*)(":108"), (otext*)(车辆出厂时间.c_str()), 车辆出厂时间.size() ); + OCI_BindString( pStatement, (const otext*)(":109"), (otext*)(结案时间.c_str()), 结案时间.size() ); + OCI_BindString( pStatement, (const otext*)(":110"), (otext*)(事故经过.c_str()), 事故经过.size() ); + OCI_BindString( pStatement, (const otext*)(":111"), (otext*)(数据更新日期.c_str()), 数据更新日期.size() ); + OCI_BindString( pStatement, (const otext*)(":112"), (otext*)(备注.c_str()), 备注.size() ); + OCI_BindString( pStatement, (const otext*)(":113"), (otext*)(估损单模板.c_str()), 估损单模板.size() ); + OCI_BindString( pStatement, (const otext*)(":114"), (otext*)(返修开关报案.c_str()), 返修开关报案.size() ); + OCI_BindString( pStatement, (const otext*)(":115"), (otext*)(送修开关报案.c_str()), 送修开关报案.size() ); + OCI_BindString( pStatement, (const otext*)(":116"), (otext*)(返修开关核价.c_str()), 返修开关核价.size() ); + OCI_BindString( pStatement, (const otext*)(":117"), (otext*)(送修开关核价.c_str()), 送修开关核价.size() ); + OCI_BindString( pStatement, (const otext*)(":118"), (otext*)(返修开关结案.c_str()), 返修开关结案.size() ); + OCI_BindString( pStatement, (const otext*)(":119"), (otext*)(送修开关结案.c_str()), 送修开关结案.size() ); + OCI_BindString( pStatement, (const otext*)(":120"), (otext*)(查勘员分公司名称.c_str()), 查勘员分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":121"), (otext*)(查勘员代码.c_str()), 查勘员代码.size() ); + OCI_BindString( pStatement, (const otext*)(":122"), (otext*)(查勘员名称.c_str()), 查勘员名称.size() ); + OCI_BindString( pStatement, (const otext*)(":123"), (otext*)(核价修理厂归属中支.c_str()), 核价修理厂归属中支.size() ); + OCI_BindString( pStatement, (const otext*)(":124"), (otext*)(结案修理厂归属中支.c_str()), 结案修理厂归属中支.size() ); + OCI_BindString( pStatement, (const otext*)(":125"), (otext*)(是否诉讼.c_str()), 是否诉讼.size() ); + OCI_BindString( pStatement, (const otext*)(":126"), (otext*)(座席推荐分公司代码.c_str()), 座席推荐分公司代码.size() ); + OCI_BindString( pStatement, (const otext*)(":127"), (otext*)(座席推荐分公司名称.c_str()), 座席推荐分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":128"), (otext*)(座席推荐车商名代码.c_str()), 座席推荐车商名代码.size() ); + OCI_BindString( pStatement, (const otext*)(":129"), (otext*)(座席推荐车商名称.c_str()), 座席推荐车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":130"), (otext*)(座席推荐操作类型.c_str()), 座席推荐操作类型.size() ); + OCI_BindString( pStatement, (const otext*)(":131"), (otext*)(座席推荐排名.c_str()), 座席推荐排名.size() ); + OCI_BindString( pStatement, (const otext*)(":132"), (otext*)(第一次推荐分公司代码.c_str()), 第一次推荐分公司代码.size() ); + OCI_BindString( pStatement, (const otext*)(":133"), (otext*)(第一次推荐分公司名称.c_str()), 第一次推荐分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":134"), (otext*)(第一次推荐车商代码.c_str()), 第一次推荐车商代码.size() ); + OCI_BindString( pStatement, (const otext*)(":135"), (otext*)(第一次推荐车商名称.c_str()), 第一次推荐车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":136"), (otext*)(第一次推荐工具.c_str()), 第一次推荐工具.size() ); + OCI_BindString( pStatement, (const otext*)(":137"), (otext*)(第一次推荐操作类型.c_str()), 第一次推荐操作类型.size() ); + OCI_BindString( pStatement, (const otext*)(":138"), (otext*)(第一次推荐排名其他推荐信息.c_str()), 第一次推荐排名其他推荐信息.size() ); + OCI_BindString( pStatement, (const otext*)(":139"), (otext*)(第二次推荐分公司代码.c_str()), 第二次推荐分公司代码.size() ); + OCI_BindString( pStatement, (const otext*)(":140"), (otext*)(第二次推荐分公司名称.c_str()), 第二次推荐分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":141"), (otext*)(第二次推荐车商代码.c_str()), 第二次推荐车商代码.size() ); + OCI_BindString( pStatement, (const otext*)(":142"), (otext*)(第二次推荐车商名称.c_str()), 第二次推荐车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":143"), (otext*)(第二次推荐工具.c_str()), 第二次推荐工具.size() ); + OCI_BindString( pStatement, (const otext*)(":144"), (otext*)(第二次推荐操作类型.c_str()), 第二次推荐操作类型.size() ); + OCI_BindString( pStatement, (const otext*)(":145"), (otext*)(第二次推荐排名其他推荐信息.c_str()), 第二次推荐排名其他推荐信息.size() ); + OCI_BindString( pStatement, (const otext*)(":146"), (otext*)(第三次推荐分公司代码.c_str()), 第三次推荐分公司代码.size() ); + OCI_BindString( pStatement, (const otext*)(":147"), (otext*)(第三次推荐分公司名称.c_str()), 第三次推荐分公司名称.size() ); + OCI_BindString( pStatement, (const otext*)(":148"), (otext*)(第三次推荐车商代码.c_str()), 第三次推荐车商代码.size() ); + OCI_BindString( pStatement, (const otext*)(":149"), (otext*)(第三次推荐车商名称.c_str()), 第三次推荐车商名称.size() ); + OCI_BindString( pStatement, (const otext*)(":150"), (otext*)(第三次推荐工具.c_str()), 第三次推荐工具.size() ); + OCI_BindString( pStatement, (const otext*)(":151"), (otext*)(第三次推荐操作类型.c_str()), 第三次推荐操作类型.size() ); + OCI_BindString( pStatement, (const otext*)(":152"), (otext*)(第三次推荐排名其他推荐信息.c_str()), 第三次推荐排名其他推荐信息.size() ); + OCI_BindString( pStatement, (const otext*)(":153"), (otext*)(其他推荐信息.c_str()), 其他推荐信息.size() ); + OCI_BindString( pStatement, (const otext*)(":154"), (otext*)(推荐失败具体原因.c_str()), 推荐失败具体原因.size() ); + OCI_BindString( pStatement, (const otext*)(":155"), (otext*)(是否现场报案.c_str()), 是否现场报案.size() ); + OCI_BindString( pStatement, (const otext*)(":156"), (otext*)(报案地点.c_str()), 报案地点.size() ); + OCI_BindString( pStatement, (const otext*)(":157"), (otext*)(是否在厂报案.c_str()), 是否在厂报案.size() ); OCI_Execute( pStatement ); diff --git a/code/cpp/car_dealer_util/source/Data/DataManipulation/oracle/ImportToOracle.h b/code/cpp/car_dealer_util/source/Data/DataManipulation/oracle/ImportToOracle.h index ed07688..dd5ed2b 100644 --- a/code/cpp/car_dealer_util/source/Data/DataManipulation/oracle/ImportToOracle.h +++ b/code/cpp/car_dealer_util/source/Data/DataManipulation/oracle/ImportToOracle.h @@ -5,7 +5,7 @@ #include "../../Datastructure/CarDealerAchievement/CarDealerAchievement.h" #include "../../Datastructure/CarDealerScheme/CarDealerScheme.h" #include "../../Datastructure/RepairOrder/RepairOrder.h" -#include "../../Datastructure/RepairSuggestion/RepairSuggestionRecord.h" +#include "../../Datastructure/RepairSuggestion/RepairRecommandationRecord.h" #include "../Excel/LoadFromExcel.h" @@ -65,12 +65,13 @@ void ImportRepairOrderToOracle( const std::string & userName, * \param tnsName * \param recordVector ************************************************/ -void ImportRepairSuggestionToOracle( const std::string & userName, - const std::string & password, - const std::string & tnsName, - const std::vector & recordVector ); +void ImportRepairRecommandationToOracle( const std::string & userName, + const std::string & password, + const std::string & tnsName, + const std::vector & recordVector ); -void ImportNewRepairMonitorToOracle( const std::string & userName, - const std::string & password, - const std::string & tnsName, + +void ImportNewRepairMonitorToOracle( const std::string & userName, + const std::string & password, + const std::string & tnsName, const std::vector & recordVector ); diff --git a/code/cpp/car_dealer_util/source/Widgets/ContentWidget/QRepairRecommendationWidget/QRepairRecommendationWidget.cpp b/code/cpp/car_dealer_util/source/Widgets/ContentWidget/QRepairRecommendationWidget/QRepairRecommendationWidget.cpp index 3b59c3a..f9f7d93 100644 --- a/code/cpp/car_dealer_util/source/Widgets/ContentWidget/QRepairRecommendationWidget/QRepairRecommendationWidget.cpp +++ b/code/cpp/car_dealer_util/source/Widgets/ContentWidget/QRepairRecommendationWidget/QRepairRecommendationWidget.cpp @@ -1,5 +1,10 @@ -#include +#include +#include #include "QRepairRecommendationWidget.h" +#include "../../Data/DataManipulation/Excel/LoadFromExcel.h" +#include "../../Data/DataManipulation/oracle/ImportToOracle.h" + +using namespace std; QRepairRecommendationWidget::QRepairRecommendationWidget( QWidget * parent ) : QWidget( parent ) @@ -14,9 +19,8 @@ QRepairRecommendationWidget::~QRepairRecommendationWidget() void QRepairRecommendationWidget::onImport() { //打开文件 - QString dir = QString::fromLocal8Bit( "." ); - QString filter = QString::fromLocal8Bit( "Excel文件(*.xlsx)" ); - + QString dir = QString::fromLocal8Bit( "." ); + QString filter = QString::fromLocal8Bit( "Excel文件(*.xlsx)" ); QStringList fileList = QFileDialog::getOpenFileNames( this, QString::fromLocal8Bit( "请选择要导入的数据文件" ), dir, @@ -26,11 +30,50 @@ void QRepairRecommendationWidget::onImport() recommandationVector.clear(); //遍历文件列表,导入每一个文件 - for ( auto iterFile = fileList.begin(); - iterFile != fileList.end(); - ++iterFile ) + try { - + for ( auto iterFile = fileList.begin(); + iterFile != fileList.end(); + ++iterFile ) + { + LoadRepairRecommandationFromXlsx( (*iterFile).toStdWString(), + 0, + 1, + recommandationVector ); + } + } + catch ( runtime_error & error ) + { + //清理数据,退出函数 + recommandationVector.clear(); + + QMessageBox::critical( nullptr, + QString::fromLocal8Bit( "读取Excel表格出错!" ), + QString::fromLocal8Bit( error.what() ) ); + + return; + } + + //写入数据 + try + { + //以后要修改 + string userName = "car_dealer"; + string password = "cpic123456"; + string tnsName = "xmcx1"; + + ImportRepairRecommandationToOracle(userName, password, tnsName, recommandationVector); + } + catch ( runtime_error & error ) + { + //清理数据,退出函数 + recommandationVector.clear(); + + QMessageBox::critical( nullptr, + QString::fromLocal8Bit( "保存数据出错!" ), + QString::fromLocal8Bit( error.what() ) ); + + return; } } diff --git a/code/cpp/car_dealer_util/source/test/test.cpp b/code/cpp/car_dealer_util/source/test/test.cpp index 4ab5f10..505947d 100644 --- a/code/cpp/car_dealer_util/source/test/test.cpp +++ b/code/cpp/car_dealer_util/source/test/test.cpp @@ -49,7 +49,7 @@ void excelTest() //测试送返修推荐 //LoadRepairSuggestionFromXlsx( filePathRepairSuggestion, 0, 1, suggestionRecordsVector ); - //ImportRepairSuggestionToOracle( userName, password, tnsName, suggestionRecordsVector); + //ImportRepairRecommandationToOracle( userName, password, tnsName, suggestionRecordsVector); //测试新送返修监控报表 //LoadNewRepairMonitorReportFromXlsx(filePathNewRepairMonitor, 0, 1, repairMonitorVector);