| 
					
				 | 
			
			
				@@ -3,56 +3,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include "CharEncoding.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include "Global.h" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// MID表; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define _CREATE_MID_TABLE_ \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	"CREATE TABLE mid \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-(bid  TEXT(16) NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-number  INTEGER NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-pid  INTEGER NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-ctype  TEXT(32) NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-version  TEXT(32) NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-purl  TEXT NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-psize  INTEGER NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-pmd5  TEXT(32) NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-status  INTEGER NOT NULL DEFAULT 0,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-start_date  DATETIME DEFAULT current_timestamp,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-finish_date  DATETIME DEFAULT '',\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-des  TEXT NOT NULL DEFAULT \"未下载\",\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-PRIMARY KEY (bid ASC));" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define _SELECT_MID_TABLE_ "SELECT bid, number, pid, ctype, version, purl, psize, pmd5, status, start_date, finish_date, des FROM mid" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define _INSERT_MID_TABLE_ "INSERT INTO mid(bid, number, pid, ctype, version, purl, psize, pmd5)VALUES\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-(%s, %s, %s, %s, %s, %s, %s, %s);" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// Key表; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define _CREATE_KEYS_TABLE_ \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	"CREATE TABLE keys \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-(bid  TEXT(16) NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-sn  TEXT(32) PRIMARY KEY NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-pid  INTEGER NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-keys  TEXT NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-copy_date  DATETIME DEFAULT '',\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-report_date  DATETIME DEFAULT '');" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define _SELECT_KEYS_TABLE_ "SELECT bid, pid, sn, keys, copy_date, report_date FROM keys" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// Log表; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define _CREATE_LOG_TABLE_ \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	"CREATE TABLE log \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-(bid  TEXT(16) NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-type  TEXT(32) NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-sn  TEXT(32) NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-content  TEXT NOT NULL,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-gdate  DATETIME DEFAULT current_timestamp,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-report_date  DATETIME DEFAULT '',\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-PRIMARY KEY (type, sn));" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define _SELECT_LOG_TABLE_ "SELECT type, bid, sn, content, gdate, report_date FROM log" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#define _SELECT_BID_INFO__ \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	"select ifnull(mid.number,0) as tc, \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-count(keys.bid) as ac,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-count(case when keys.copy_date <> '' then '抄写成功' end) as cc,\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-count(case when keys.report_date <> '' and keys.copy_date <> '' then '上报成功' end) as rc \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-from mid inner join keys on mid.bid = keys.bid where mid.bid = '%s';" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #define FREE_MSG if ( psqlite_error )  \ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	printf("%s\n",psqlite_error),\ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	sqlite3_free(psqlite_error),\ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -204,23 +154,25 @@ INT CDataImpl::InsertOrder(std::string strOrder, std::string strDeltaEType, std: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 INT CDataImpl::InsertSN(const TB_SN &sn_data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	return InsertSN(sn_data.strOrder, sn_data.strLine, sn_data.strSN, sn_data.strTestTime, sn_data.nElapsed, sn_data.nTestResult, sn_data.dDeltaAVGEValue, sn_data.dDeltaEValue, sn_data.strDetails); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	return InsertSN(sn_data.strOrder, sn_data.strLine, sn_data.strSN, sn_data.strStartTime, sn_data.strFinishTime, sn_data.nElapsed, sn_data.nTestResult, sn_data.dDeltaAVGEValue, sn_data.dDeltaEValue, sn_data.strDetails); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-INT CDataImpl::InsertSN(std::string strOrder, std::string strLine, std::string strSN, std::string strTestTime, int nElapsed, int nTestResult, DOUBLE dDeltaAVGEValue, DOUBLE dDeltaEValue, std::string strDetails ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+INT CDataImpl::InsertSN(std::string strOrder, std::string strLine, std::string strSN, std::string strStartTime, std::string strFinishTime,int nElapsed, int nTestResult, DOUBLE dDeltaAVGEValue, DOUBLE dDeltaEValue, std::string strDetails ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if(m_psqlite3 == NULL) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return -1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	char szValue[16] = {0}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	std::string strInsert = "INSERT INTO DebugSN(OrderID, Line, SN, TestTime, ElapsedTime, TestResult, DEAvgValue, DEValue, Outcome) VALUES ('"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	std::string strInsert = "INSERT INTO DebugSN(OrderID, Line, SN, StartTime, FinishTime, ElapsedTime, TestResult, DEAvgValue, DEValue, Outcome) VALUES ('"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append(strOrder); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append("','"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append(strLine); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append("','"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append(strSN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append("','"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	strInsert.append(strTestTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	strInsert.append(strStartTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	strInsert.append("','"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	strInsert.append(strFinishTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	_itoa_s(nElapsed, szValue, 10); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append("','"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -432,31 +384,33 @@ INT CDataImpl::QuerySNData(std::string strSN, TB_SN &sn_data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sn_data.strOrder = pazResult[nCol+0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sn_data.strSN = pazResult[nCol+1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sn_data.strLine = pazResult[nCol+2]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strTestTime = pazResult[nCol+3]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strElapsed = pazResult[nCol+4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strStartTime = pazResult[nCol+3]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strFinishTime = pazResult[nCol + 4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strElapsed = pazResult[nCol+5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sn_data.nElapsed = atoi(sn_data.strElapsed.c_str()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strTestResult = pazResult[nCol+5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.nTestResult = atoi(pazResult[nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strDeltaAVGEValue = pazResult[nCol+6]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.dDeltaAVGEValue = atof(pazResult[nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strDeltaEValue = pazResult[nCol+7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.dDeltaEValue = atof(pazResult[nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strDetails = pazResult[nCol+8]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strTestResult = pazResult[nCol+6]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.nTestResult = atoi(pazResult[nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strDeltaAVGEValue = pazResult[nCol+7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.dDeltaAVGEValue = atof(pazResult[nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strDeltaEValue = pazResult[nCol+8]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.dDeltaEValue = atof(pazResult[nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strDetails = pazResult[nCol+9]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		// 由Native for SQLite3插入的数据,都是utf8格式; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sn_data.strOrder = CharEncoding::UTF82ASCII(pazResult[nCol+0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sn_data.strSN = CharEncoding::UTF82ASCII(pazResult[nCol+1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sn_data.strLine = CharEncoding::UTF82ASCII(pazResult[nCol+2]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strTestTime = CharEncoding::UTF82ASCII(pazResult[nCol+3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strElapsed = CharEncoding::UTF82ASCII(pazResult[nCol+4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.nElapsed = atoi(pazResult[nCol+4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strTestResult = CharEncoding::UTF82ASCII(pazResult[nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.nTestResult = atoi(pazResult[nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strDeltaAVGEValue = CharEncoding::UTF82ASCII(pazResult[nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.dDeltaAVGEValue = atof(pazResult[nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strDeltaEValue = CharEncoding::UTF82ASCII(pazResult[nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.dDeltaEValue = atof(pazResult[nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		sn_data.strDetails = CharEncoding::UTF82ASCII(pazResult[nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strStartTime = CharEncoding::UTF82ASCII(pazResult[nCol+3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strFinishTime = CharEncoding::UTF82ASCII(pazResult[nCol + 4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strElapsed = CharEncoding::UTF82ASCII(pazResult[nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.nElapsed = atoi(pazResult[nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strTestResult = CharEncoding::UTF82ASCII(pazResult[nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.nTestResult = atoi(pazResult[nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strDeltaAVGEValue = CharEncoding::UTF82ASCII(pazResult[nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.dDeltaAVGEValue = atof(pazResult[nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strDeltaEValue = CharEncoding::UTF82ASCII(pazResult[nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.dDeltaEValue = atof(pazResult[nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		sn_data.strDetails = CharEncoding::UTF82ASCII(pazResult[nCol+9]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -495,31 +449,33 @@ INT CDataImpl::QuerySNData(std::string strOrder, std::vector<TB_SN> &vtSNdata) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->strOrder = pazResult[i*nCol+0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->strSN = pazResult[i*nCol+1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->strLine = pazResult[i*nCol+2]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestTime = pazResult[i*nCol+3]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strElapsed = pazResult[i*nCol+4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strStartTime = pazResult[i*nCol+3]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strFinishTime = pazResult[i * nCol + 4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strElapsed = pazResult[i*nCol+5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->nElapsed = atoi(it->strElapsed.c_str()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestResult = pazResult[i*nCol+5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nTestResult = atoi(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaAVGEValue = pazResult[i*nCol+6]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaAVGEValue = atof(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaEValue = pazResult[i*nCol+7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaEValue = atof(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDetails = pazResult[i*nCol+8]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strTestResult = pazResult[i*nCol+6]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nTestResult = atoi(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaAVGEValue = pazResult[i*nCol+7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaAVGEValue = atof(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaEValue = pazResult[i*nCol+8]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaEValue = atof(pazResult[i*nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDetails = pazResult[i*nCol+9]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		// 由Native for SQLite3插入的数据,都是utf8格式; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->strOrder = CharEncoding::UTF82ASCII(pazResult[i*nCol+0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->strSN = CharEncoding::UTF82ASCII(pazResult[i*nCol+1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->strLine = CharEncoding::UTF82ASCII(pazResult[i*nCol+2]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestTime = CharEncoding::UTF82ASCII(pazResult[i*nCol+3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strElapsed = CharEncoding::UTF82ASCII(pazResult[i*nCol+4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nElapsed = atoi(pazResult[i*nCol+4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestResult = CharEncoding::UTF82ASCII(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nTestResult = atoi(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaAVGEValue = CharEncoding::UTF82ASCII(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaAVGEValue = atof(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaEValue = CharEncoding::UTF82ASCII(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaEValue = atof(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDetails = CharEncoding::UTF82ASCII(pazResult[i*nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strStartTime = CharEncoding::UTF82ASCII(pazResult[i*nCol+3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strFinishTime = CharEncoding::UTF82ASCII(pazResult[i * nCol + 4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strElapsed = CharEncoding::UTF82ASCII(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nElapsed = atoi(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strTestResult = CharEncoding::UTF82ASCII(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nTestResult = atoi(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaAVGEValue = CharEncoding::UTF82ASCII(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaAVGEValue = atof(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaEValue = CharEncoding::UTF82ASCII(pazResult[i*nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaEValue = atof(pazResult[i*nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDetails = CharEncoding::UTF82ASCII(pazResult[i*nCol+9]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -557,34 +513,36 @@ INT CDataImpl::QuerySNData(std::vector<TB_SN> &vtSNData, std::string strBeginTim 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	for(int i = 1; i <= nRow; i++, it++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #ifndef USE_UTF8 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strOrder = pazResult[i*nCol+0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strSN = pazResult[i*nCol+1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strLine = pazResult[i*nCol+2]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestTime = pazResult[i*nCol+3]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strElapsed = pazResult[i*nCol+4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strOrder = pazResult[i * nCol + 0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strSN = pazResult[i * nCol + 1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strLine = pazResult[i * nCol + 2]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strStartTime = pazResult[i * nCol + 3]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strFinishTime = pazResult[i * nCol + 4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strElapsed = pazResult[i * nCol + 5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->nElapsed = atoi(it->strElapsed.c_str()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestResult = pazResult[i*nCol+5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nTestResult = atoi(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaAVGEValue = pazResult[i*nCol+6]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaAVGEValue = atof(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaEValue = pazResult[i*nCol+7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaEValue = atof(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDetails = pazResult[i*nCol+8]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strTestResult = pazResult[i * nCol + 6]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nTestResult = atoi(pazResult[i * nCol + 6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaAVGEValue = pazResult[i * nCol + 7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaAVGEValue = atof(pazResult[i * nCol + 7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaEValue = pazResult[i * nCol + 8]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaEValue = atof(pazResult[i * nCol + 8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDetails = pazResult[i * nCol + 9]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		// 由Native for SQLite3插入的数据,都是utf8格式; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strOrder = CharEncoding::UTF82ASCII(pazResult[i*nCol+0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strSN = CharEncoding::UTF82ASCII(pazResult[i*nCol+1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strLine = CharEncoding::UTF82ASCII(pazResult[i*nCol+2]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestTime = CharEncoding::UTF82ASCII(pazResult[i*nCol+3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strElapsed = CharEncoding::UTF82ASCII(pazResult[i*nCol+4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nElapsed = atoi(pazResult[i*nCol+4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestResult = CharEncoding::UTF82ASCII(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nTestResult = atoi(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaAVGEValue = CharEncoding::UTF82ASCII(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaAVGEValue = atof(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaEValue = CharEncoding::UTF82ASCII(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaEValue = atof(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDetails = CharEncoding::UTF82ASCII(pazResult[i*nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strOrder = CharEncoding::UTF82ASCII(pazResult[i * nCol + 0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strSN = CharEncoding::UTF82ASCII(pazResult[i * nCol + 1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strLine = CharEncoding::UTF82ASCII(pazResult[i * nCol + 2]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strStartTime = CharEncoding::UTF82ASCII(pazResult[i * nCol + 3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strFinishTime = CharEncoding::UTF82ASCII(pazResult[i * nCol + 4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strElapsed = CharEncoding::UTF82ASCII(pazResult[i * nCol + 5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nElapsed = atoi(pazResult[i * nCol + 5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strTestResult = CharEncoding::UTF82ASCII(pazResult[i * nCol + 6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nTestResult = atoi(pazResult[i * nCol + 6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaAVGEValue = CharEncoding::UTF82ASCII(pazResult[i * nCol + 7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaAVGEValue = atof(pazResult[i * nCol + 7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaEValue = CharEncoding::UTF82ASCII(pazResult[i * nCol + 8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaEValue = atof(pazResult[i * nCol + 8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDetails = CharEncoding::UTF82ASCII(pazResult[i * nCol + 9]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -623,34 +581,36 @@ INT CDataImpl::QuerySNData(std::vector<TB_SN> &vtSNData, std::string strWhere) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	for(int i = 1; i <= nRow; i++, it++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #ifndef USE_UTF8 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strOrder = pazResult[i*nCol+0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strSN = pazResult[i*nCol+1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strLine = pazResult[i*nCol+2]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestTime = pazResult[i*nCol+3]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strElapsed = pazResult[i*nCol+4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strOrder = pazResult[i * nCol + 0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strSN = pazResult[i * nCol + 1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strLine = pazResult[i * nCol + 2]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strStartTime = pazResult[i * nCol + 3]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strFinishTime = pazResult[i * nCol + 4]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strElapsed = pazResult[i * nCol + 5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		it->nElapsed = atoi(it->strElapsed.c_str()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestResult = pazResult[i*nCol+5]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nTestResult = atoi(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaAVGEValue = pazResult[i*nCol+6]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaAVGEValue = atof(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaEValue = pazResult[i*nCol+7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaEValue = atof(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDetails = pazResult[i*nCol+8]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strTestResult = pazResult[i * nCol + 6]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nTestResult = atoi(pazResult[i * nCol + 6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaAVGEValue = pazResult[i * nCol + 7]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaAVGEValue = atof(pazResult[i * nCol + 7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaEValue = pazResult[i * nCol + 8]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaEValue = atof(pazResult[i * nCol + 8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDetails = pazResult[i * nCol + 9]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		// 由Native for SQLite3插入的数据,都是utf8格式; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strOrder = CharEncoding::UTF82ASCII(pazResult[i*nCol+0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strSN = CharEncoding::UTF82ASCII(pazResult[i*nCol+1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strLine = CharEncoding::UTF82ASCII(pazResult[i*nCol+2]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestTime = CharEncoding::UTF82ASCII(pazResult[i*nCol+3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strElapsed = CharEncoding::UTF82ASCII(pazResult[i*nCol+4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nElapsed = atoi(pazResult[i*nCol+4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strTestResult = CharEncoding::UTF82ASCII(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->nTestResult = atoi(pazResult[i*nCol+5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaAVGEValue = CharEncoding::UTF82ASCII(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaAVGEValue = atof(pazResult[i*nCol+6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDeltaEValue = CharEncoding::UTF82ASCII(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->dDeltaEValue = atof(pazResult[i*nCol+7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		it->strDetails = CharEncoding::UTF82ASCII(pazResult[i*nCol+8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strOrder = CharEncoding::UTF82ASCII(pazResult[i * nCol + 0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strSN = CharEncoding::UTF82ASCII(pazResult[i * nCol + 1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strLine = CharEncoding::UTF82ASCII(pazResult[i * nCol + 2]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strStartTime = CharEncoding::UTF82ASCII(pazResult[i * nCol + 3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strFinishTime = CharEncoding::UTF82ASCII(pazResult[i * nCol + 4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strElapsed = CharEncoding::UTF82ASCII(pazResult[i * nCol + 5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nElapsed = atoi(pazResult[i * nCol + 5]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strTestResult = CharEncoding::UTF82ASCII(pazResult[i * nCol + 6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->nTestResult = atoi(pazResult[i * nCol + 6]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaAVGEValue = CharEncoding::UTF82ASCII(pazResult[i * nCol + 7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaAVGEValue = atof(pazResult[i * nCol + 7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDeltaEValue = CharEncoding::UTF82ASCII(pazResult[i * nCol + 8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->dDeltaEValue = atof(pazResult[i * nCol + 8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		it->strDetails = CharEncoding::UTF82ASCII(pazResult[i * nCol + 9]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -754,10 +714,10 @@ BOOL CDataImpl::UpdateOrder(std::string strOrder, std::string strDeltaEType, std 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 BOOL CDataImpl::UpdateSNData(TB_SN &sn_data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	return UpdateSNData(sn_data.strOrder, sn_data.strSN, sn_data.strLine, sn_data.strTestTime, sn_data.nElapsed, sn_data.nTestResult, sn_data.dDeltaAVGEValue, sn_data.dDeltaEValue, sn_data.strDetails); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	return UpdateSNData(sn_data.strOrder, sn_data.strSN, sn_data.strLine, sn_data.strStartTime, sn_data.strFinishTime, sn_data.nElapsed, sn_data.nTestResult, sn_data.dDeltaAVGEValue, sn_data.dDeltaEValue, sn_data.strDetails); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-BOOL CDataImpl::UpdateSNData(std::string strOrder,std::string strSN, std::string strLine, std::string strTestTime, int nElapsed, int nTestResult, double dAVGDeltaEVlaue, DOUBLE dDeltaEValue, std::string strDetails) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+BOOL CDataImpl::UpdateSNData(std::string strOrder,std::string strSN, std::string strLine, std::string strStartTime, std::string strFinishTime, int nElapsed, int nTestResult, double dAVGDeltaEVlaue, DOUBLE dDeltaEValue, std::string strDetails) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if(m_psqlite3 == NULL) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return FALSE; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -767,8 +727,10 @@ BOOL CDataImpl::UpdateSNData(std::string strOrder,std::string strSN, std::string 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append(strOrder); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append("', Line='"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append(strLine); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	strInsert.append("', TestTime='"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	strInsert.append(strTestTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	strInsert.append("', StartTime='"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	strInsert.append(strStartTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	strInsert.append("', FinishTime='"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	strInsert.append(strFinishTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	_itoa_s(nElapsed, szValue, 10); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append("', ElapsedTime='"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	strInsert.append(szValue); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -798,10 +760,6 @@ BOOL CDataImpl::UpdateSNData(std::string strOrder,std::string strSN, std::string 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 BOOL CDataImpl::DeleteOrder(std::string strOrder) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	if(m_psqlite3 == NULL) 
			 |