Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
373
Server/Billing/GetHanBilling/GetHanBilling.cpp
Normal file
373
Server/Billing/GetHanBilling/GetHanBilling.cpp
Normal file
@@ -0,0 +1,373 @@
|
||||
// GetHanBilling.cpp : <20>ܼ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include <myOLEDB.h>
|
||||
#include <Config.h>
|
||||
#include <Log.h>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <ctime>
|
||||
#include <vector>
|
||||
#include <oledb.h>
|
||||
#include <srv.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
//##### KTE - EDIT 20041207 #####
|
||||
struct HanBillingData
|
||||
{
|
||||
//DBCHAR m_EndDate[20];
|
||||
//DBCHAR m_MemberID[20];
|
||||
//DBCHAR m_BillNum[11];
|
||||
//DBCHAR m_RylUID[11];
|
||||
//DBCHAR m_GameMin[11];
|
||||
//DBCHAR m_BillingType[2];
|
||||
|
||||
DBCHAR m_MemberID[20];
|
||||
DBCHAR m_RegDate[20];
|
||||
DBCHAR m_BillEndDate[20];
|
||||
DBCHAR m_KeeperSeq[11];
|
||||
DBCHAR m_RylUID[11];
|
||||
DBCHAR m_AddedDay[11];
|
||||
DBCHAR m_AddedTime[11];
|
||||
DBCHAR m_AddedMonth[11];
|
||||
DBCHAR m_AutoBill[2];
|
||||
};
|
||||
|
||||
#pragma pack()
|
||||
|
||||
template<class _Elem, class _Traits>
|
||||
inline basic_ostream<_Elem, _Traits>& __cdecl writetime(basic_ostream<_Elem, _Traits>& _Ostr)
|
||||
{
|
||||
SYSTEMTIME systime;
|
||||
GetLocalTime(&systime);
|
||||
|
||||
_Elem fill = _Ostr.fill();
|
||||
|
||||
_Ostr << setfill('0')
|
||||
<< "["
|
||||
<< setw(4) << systime.wYear << "-"
|
||||
<< setw(2) << systime.wMonth << "-"
|
||||
<< setw(2) << systime.wDay << " "
|
||||
<< setw(2) << systime.wHour << ":"
|
||||
<< setw(2) << systime.wMinute << ":"
|
||||
<< setw(2) << systime.wSecond << "] " << setfill(fill);
|
||||
|
||||
return (_Ostr);
|
||||
}
|
||||
|
||||
int APIENTRY _tWinMain(HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPTSTR lpCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
CLog log;
|
||||
CConfigurator config;
|
||||
|
||||
OleDB hanDB;
|
||||
OleDB billingDB;
|
||||
|
||||
char szQuery[OleDB::MaxQueryTextLen];
|
||||
int nQueryLen = 0;
|
||||
|
||||
if(!log.RedirectStdOut("GetHanBillingLog"))
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
cout << endl << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>." << endl;
|
||||
|
||||
TCHAR* tszConfigFileName = TEXT("BillingInfo.cfg");
|
||||
|
||||
if(!config.Load(tszConfigFileName))
|
||||
{
|
||||
cout << writetime << tszConfigFileName << "DB<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>." << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
const char* szHanServerName = config.Get("HanServerName");
|
||||
const char* szHanDBName = config.Get("HanDBName");
|
||||
const char* szHanUserName = config.Get("HanUserName");
|
||||
const char* szHanPassword = config.Get("HanPassword");
|
||||
|
||||
if(!hanDB.ConnectSQLServer(szHanServerName, szHanDBName,
|
||||
szHanUserName, szHanPassword, OleDB::ConnType_ORACLE))
|
||||
{
|
||||
cout << writetime << "<EFBFBD>Ѱ<EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. : " << hanDB.GetErrorString()
|
||||
<< " ServerName : " << szHanServerName
|
||||
<< " DBName : " << szHanDBName
|
||||
<< " UserName : " << szHanUserName
|
||||
<< " Password : " << szHanPassword
|
||||
<< endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
const char* szBillingServerName = config.Get("BillingServerName");
|
||||
const char* szBillingDBName = config.Get("BillingDBName");
|
||||
const char* szBillingUserName = config.Get("BillingUserName");
|
||||
const char* szBillingPassword = config.Get("BillingPassword");
|
||||
|
||||
if(!billingDB.ConnectSQLServer(szBillingServerName, szBillingDBName,
|
||||
szBillingUserName, szBillingPassword, OleDB::ConnType_MSSQL))
|
||||
{
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. : " << billingDB.GetErrorString()
|
||||
<< " ServerName : " << szBillingServerName
|
||||
<< " DBName : " << szBillingDBName
|
||||
<< " UserName : " << szBillingUserName
|
||||
<< " Password : " << szBillingPassword
|
||||
<< endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
// <20><><EFBFBD>̺<EFBFBD> Ŭ<><C5AC><EFBFBD><EFBFBD>
|
||||
if(!billingDB.ExcuteQuery("EXEC agt_PersonBilling_Delete"))
|
||||
{
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DB : <20>ӽ<EFBFBD> <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD> : "
|
||||
<< billingDB.GetErrorString() << endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
int nMinNum = 0;
|
||||
|
||||
if(!billingDB.ExcuteQueryGetData(
|
||||
"SELECT intCount FROM TblImportedNum WHERE strCompType = 'H'", &nMinNum))
|
||||
{
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǽ<EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> : "
|
||||
<< billingDB.GetErrorString() << endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
//##### KTE - EDIT 20041207 #####
|
||||
//nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen,
|
||||
// "SELECT TO_CHAR(ENDDATE, 'YYYY-MM-DD HH24:MI:SS '), "
|
||||
// "MEMBERID, "
|
||||
// "CAST(BILLNUM AS VARCHAR(11)),"
|
||||
// "CAST(RYLUID AS VARCHAR(11)),"
|
||||
// "CAST(GAMEMIN AS VARCHAR(11)),"
|
||||
// "CAST(BILLTYPE AS VARCHAR(2)) "
|
||||
// " FROM RYLBILLINGT WHERE BILLNUM > ? AND HanCHK = 'N' ORDER BY BILLNUM ASC");
|
||||
|
||||
nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen,
|
||||
"SELECT MEMBERID,"
|
||||
"TO_CHAR(REGDATE, 'YYYY-MM-DD HH24:MI:SS '),"
|
||||
"TO_CHAR(BILLENDDATE,'YYYY-MM-DD HH24:MI:SS '),"
|
||||
"CAST(KEEPERSEQ AS VARCHAR(11)),"
|
||||
"CAST(RYLUID AS VARCHAR(11)),"
|
||||
"CAST(ADDEDDAY AS VARCHAR(11)),"
|
||||
"CAST(ADDEDTIME AS VARCHAR(11)),"
|
||||
"CAST(ADDEDMONTH AS VARCHAR(11)),"
|
||||
"CAST(AUTOBILL AS VARCHAR(2)) "
|
||||
"FROM RYLCHECKT WHERE KEEPERSEQ > ? AND CHECKFLAG = 'N' ORDER BY KEEPERSEQ ASC");
|
||||
|
||||
if(nQueryLen < 0)
|
||||
{
|
||||
cout << writetime << "<EFBFBD>Ѱ<EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>." << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
OleDB::PARAM_INFO BillingInfoParam;
|
||||
memset(&BillingInfoParam, 0, sizeof(OleDB::PARAM_INFO));
|
||||
|
||||
BillingInfoParam.ColNum = 1;
|
||||
|
||||
BillingInfoParam.ColSize[0] = sizeof(int);
|
||||
BillingInfoParam.ColType[0] = DBTYPE_I4;
|
||||
|
||||
if(!hanDB.ExcuteQueryWithParams(szQuery,
|
||||
reinterpret_cast<char*>(&nMinNum), BillingInfoParam, OleDB::Rowset_Get))
|
||||
{
|
||||
cout << writetime << "<EFBFBD>Ѱ<EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> : "
|
||||
<< hanDB.GetErrorString() << endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
typedef std::vector<HanBillingData> BillingDataArray;
|
||||
|
||||
BillingDataArray hanBillingArray;
|
||||
hanBillingArray.reserve(5000);
|
||||
|
||||
const int MAX_DATA = 1000;
|
||||
HanBillingData hanBillingData[MAX_DATA];
|
||||
memset(hanBillingData, 0, sizeof(HanBillingData) * MAX_DATA);
|
||||
|
||||
int nReturnRow = 0;
|
||||
while(hanDB.GetData((void**)&hanBillingData,
|
||||
sizeof(HanBillingData), MAX_DATA, &nReturnRow))
|
||||
{
|
||||
if(0 == nReturnRow)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
hanBillingArray.insert(hanBillingArray.end(),
|
||||
hanBillingData, hanBillingData + nReturnRow);
|
||||
|
||||
memset(hanBillingData, 0, sizeof(HanBillingData) * MAX_DATA);
|
||||
}
|
||||
|
||||
|
||||
//##### KTE - EDIT 20041207 #####
|
||||
// BillNum, MemberID, RylUID, BillingType, EndTime, GameMin
|
||||
//const char* szInsertQuery = "INSERT INTO TblPersonBilling_log "
|
||||
// "(intIndex, strClientID, UID, strBillingType, dateEndTime, intServiceTime, strConvertChk, dateInsertTime) "
|
||||
// "values (%s, '%s', %s, '%s', '%s', %s, 'N', GetDate())";
|
||||
|
||||
//const char* szNullEndInsertQuery = "INSERT INTO TblPersonBilling_log "
|
||||
// "(intIndex, strClientID, UID, strBillingType, dateEndTime, intServiceTime, strConvertChk, dateInsertTime) "
|
||||
// "values (%s, '%s', %s, '%s', NULL, %s, 'N', GetDate())";
|
||||
|
||||
// BillNum , ClientID , UID , RegDate , AddedDay , AddedTime , AddedMonth , BillEndDate , AutoBill ,CheckFlag,InsertTime
|
||||
const char* szInsertQuery = "INSERT INTO dbo.TblRYLCheckT "
|
||||
"(BillNum , ClientID , UID , RegDate , AddedDay , AddedTime , AddedMonth , BillEndDate , AutoBill,CheckFlag ,InsertTime) "
|
||||
"VALUES (%s, '%s' , %s , '%s' , %s , %s , %s , '%s' , '%s' , 'N' , GETDATE() )" ;
|
||||
|
||||
const char* szNullEndInsertQuery = "INSERT INTO dbo.TblRYLCheckT "
|
||||
"(BillNum , ClientID , UID , RegDate , AddedDay , AddedTime , AddedMonth , AutoBill,CheckFlag ,InsertTime) "
|
||||
"VALUES (%s, '%s' , %s , '%s' , %s , %s , %s , '%s' , 'N' , GETDATE() )" ;
|
||||
|
||||
BillingDataArray::iterator pos = hanBillingArray.begin();
|
||||
BillingDataArray::iterator end = hanBillingArray.end();
|
||||
|
||||
for(; pos != end; ++pos)
|
||||
{
|
||||
HanBillingData& data = *pos;
|
||||
|
||||
//if(0 == strlen(data.m_EndDate))
|
||||
//{
|
||||
// nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen, szNullEndInsertQuery,
|
||||
// data.m_BillNum, data.m_MemberID, data.m_RylUID, data.m_BillingType, data.m_GameMin);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen, szInsertQuery,
|
||||
// data.m_BillNum, data.m_MemberID, data.m_RylUID, data.m_BillingType,
|
||||
// data.m_EndDate, data.m_GameMin);
|
||||
//}
|
||||
if( 0 == strlen(data.m_BillEndDate))
|
||||
{
|
||||
nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen,szNullEndInsertQuery,
|
||||
data.m_KeeperSeq, data.m_MemberID, data.m_RylUID, data.m_RegDate,
|
||||
data.m_AddedDay, data.m_AddedTime, data.m_AddedMonth, data.m_AutoBill);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen,szInsertQuery,
|
||||
data.m_KeeperSeq, data.m_MemberID, data.m_RylUID, data.m_RegDate,
|
||||
data.m_AddedDay, data.m_AddedTime, data.m_AddedMonth, data.m_BillEndDate, data.m_AutoBill);
|
||||
}
|
||||
|
||||
if(nQueryLen < 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(!billingDB.ExcuteQuery(szQuery))
|
||||
{
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DB : <20>Ѱ<EFBFBD><D1B0>ӿ<EFBFBD><D3BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>. : " << billingDB.GetErrorString()
|
||||
<< " <20><><EFBFBD><EFBFBD> BillNum : " << data.m_KeeperSeq << endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
int nMaxNum = 0;
|
||||
|
||||
//##### KTE - EDIT 20041207 #####
|
||||
//if(!billingDB.ExcuteQueryGetData(
|
||||
// "SELECT MAX(intIndex) FROM TblPersonBilling_log WHERE strConvertCHK ='N'", &nMaxNum))
|
||||
|
||||
if(!billingDB.ExcuteQueryGetData(
|
||||
"SELECT MAX(BillNum) FROM dbo.TblRYLCheckT WHERE CheckFlag = 'N'", &nMaxNum))
|
||||
{
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DB : <20>Ѱ<EFBFBD><D1B0>ӿ<EFBFBD><D3BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǽ<EFBFBD> <20>ִ<EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> : "
|
||||
<< billingDB.GetErrorString() << endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(0 < nMaxNum)
|
||||
{
|
||||
//##### KTE - EDIT 20041207 #####
|
||||
//nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen,
|
||||
// "UPDATE RYLBILLINGT SET HANCHK = 'Y' "
|
||||
// "WHERE BILLNUM > ? AND BILLNUM <= ? AND HANCHK = 'N'");
|
||||
nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen,
|
||||
"UPDATE RYLCHECKT SET CHECKFLAG = 'Y' "
|
||||
"WHERE KEEPERSEQ > ? AND KEEPERSEQ <= ? AND CHECKFLAG = 'N'");
|
||||
|
||||
if(nQueryLen < 0)
|
||||
{
|
||||
cout << writetime << "<EFBFBD>Ѱ<EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD> ó<><C3B3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
OleDB::PARAM_INFO BillingUpdateParam;
|
||||
memset(&BillingUpdateParam, 0, sizeof(OleDB::PARAM_INFO));
|
||||
|
||||
BillingUpdateParam.ColNum = 2;
|
||||
|
||||
BillingUpdateParam.ColSize[0] = sizeof(int);
|
||||
BillingUpdateParam.ColType[0] = DBTYPE_I4;
|
||||
|
||||
BillingUpdateParam.ColSize[1] = sizeof(int);
|
||||
BillingUpdateParam.ColType[1] = DBTYPE_I4;
|
||||
|
||||
char szData[sizeof(int) * 2];
|
||||
memcpy(szData, &nMinNum, sizeof(int));
|
||||
memcpy(szData + sizeof(int), &nMaxNum, sizeof(int));
|
||||
|
||||
if(!hanDB.ExcuteQueryWithParams(szQuery, szData, BillingUpdateParam, OleDB::Rowset_Update))
|
||||
{
|
||||
cout << writetime << "<EFBFBD>Ѱ<EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD> ó<><C3B3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : "
|
||||
<< hanDB.GetErrorString() << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
nQueryLen = _snprintf(szQuery, OleDB::MaxQueryTextLen,
|
||||
"UPDATE TblImportedNum SET intCount = %d WHERE strCompType = 'H'", nMaxNum);
|
||||
|
||||
if(nQueryLen < 0)
|
||||
{
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD> ó<><C3B3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> "
|
||||
<< " MinBillingNum : " << nMinNum
|
||||
<< " MaxBillingNum : " << nMaxNum << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(!billingDB.ExcuteQuery(szQuery, OleDB::Rowset_Update))
|
||||
{
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD> ó<><C3B3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : "
|
||||
<< billingDB.GetErrorString()
|
||||
<< " MinBillingNum : " << nMinNum
|
||||
<< " MaxBillingNum : " << nMaxNum << endl;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>
|
||||
if(!billingDB.ExcuteQuery("EXEC agt_PersonBilling_CHK"))
|
||||
{
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DB : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD>ϴ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>. : "
|
||||
<< billingDB.GetErrorString()
|
||||
<< " MinBillingNum : " << nMinNum
|
||||
<< " MaxBillingNum : " << nMaxNum << endl;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
cout << writetime << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>." << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
157
Server/Billing/GetHanBilling/GetHanBilling.vcproj
Normal file
157
Server/Billing/GetHanBilling/GetHanBilling.vcproj
Normal file
@@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" encoding="ks_c_5601-1987"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="GetHanBilling"
|
||||
ProjectGUID="{56E2A7F7-7BAD-4095-BCDB-AE1015B981D0}"
|
||||
SccProjectName=""
|
||||
SccLocalPath=""
|
||||
Keyword="Win32Proj">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="../Executable/$(ConfigurationName)"
|
||||
IntermediateDirectory="../Intermediate/$(ProjectName)/$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../DB"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="TRUE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="FALSE"
|
||||
DebugInformationFormat="4"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="$(OutDir)/GetHanBilling.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="TRUE"
|
||||
ProgramDatabaseFile="$(OutDir)/GetHanBilling.pdb"
|
||||
SubSystem="2"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="../Executable/$(ConfigurationName)"
|
||||
IntermediateDirectory="../Intermediate/$(ProjectName)/$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="../DB"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="FALSE"
|
||||
DebugInformationFormat="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="$(OutDir)/GetHanBilling.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="<22>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
|
||||
<File
|
||||
RelativePath=".\GetHanBilling.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\stdafx.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
|
||||
<File
|
||||
RelativePath=".\stdafx.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="<22><><EFBFBD>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
32
Server/Billing/GetHanBilling/ReadMe.txt
Normal file
32
Server/Billing/GetHanBilling/ReadMe.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
========================================================================
|
||||
<20>ܼ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> : GetHanBilling <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
========================================================================
|
||||
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>翡<EFBFBD><E7BFA1> <20><> GetHanBilling <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.
|
||||
<EFBFBD><EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> GetHanBilling <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
|
||||
GetHanBilling.vcproj
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>縦 <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> VC++ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>⺻ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
<20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Visual C++<2B><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>翡<EFBFBD><E7BFA1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>ɿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
GetHanBilling.cpp
|
||||
<20>⺻ <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
<EFBFBD><EFBFBD>Ÿ ǥ<><C7A5> <20><><EFBFBD><EFBFBD>:
|
||||
|
||||
StdAfx.h <20><> StdAfx.cpp<70><70>
|
||||
GetHanBilling.pch<63><68><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> PCH(<28≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD>) <20><><EFBFBD>ϰ<EFBFBD>
|
||||
StdAfx.obj<62><6A><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
<EFBFBD><EFBFBD>Ÿ <20><><EFBFBD><EFBFBD>:
|
||||
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>翡<EFBFBD><E7BFA1> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> "TODO:" <20>ּ<EFBFBD><D6BC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20>߰<EFBFBD><DFB0>ϰų<CFB0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>ϴ<EFBFBD>
|
||||
<EFBFBD>ҽ<EFBFBD> <20>ڵ<EFBFBD> <20>κ<EFBFBD><CEBA><EFBFBD> <20><>Ÿ<EFBFBD><C5B8><EFBFBD>ϴ<EFBFBD>.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
8
Server/Billing/GetHanBilling/stdafx.cpp
Normal file
8
Server/Billing/GetHanBilling/stdafx.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
// stdafx.cpp : ǥ<><C7A5> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ϸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
// GetHanBilling.pch<63><68> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>.
|
||||
// stdafx.obj<62><6A><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե˴ϴ<CBB4>.
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
// TODO: <20>ʿ<EFBFBD><CABF><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƴ<EFBFBD> STDAFX.H<><48><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
12
Server/Billing/GetHanBilling/stdafx.h
Normal file
12
Server/Billing/GetHanBilling/stdafx.h
Normal file
@@ -0,0 +1,12 @@
|
||||
// stdafx.h : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʴ<EFBFBD>
|
||||
// ǥ<><C7A5> <20>ý<EFBFBD><C3BD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include <tchar.h>
|
||||
|
||||
// TODO: <20><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E2BFA1> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
Reference in New Issue
Block a user