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:
123
Server/AdminTool/AdminToolClient/CharInfoTime.cpp
Normal file
123
Server/AdminTool/AdminToolClient/CharInfoTime.cpp
Normal file
@@ -0,0 +1,123 @@
|
||||
// CharInfoTime.cpp : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "AdminToolClient.h"
|
||||
#include "CharInfoTime.h"
|
||||
#include ".\charinfotime.h"
|
||||
#include "PacketManager.h"
|
||||
#include "GlobalFunctions.h"
|
||||
#include "WindowMgr.h"
|
||||
#include "CharacterDoc.h"
|
||||
|
||||
|
||||
// CCharInfoTime <20><>ȭ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
IMPLEMENT_DYNAMIC(CCharInfoTime, CDialog)
|
||||
CCharInfoTime::CCharInfoTime(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CCharInfoTime::IDD, pParent)
|
||||
, m_szSearchValue(_T(""))
|
||||
, m_szCreateTime(_T(""))
|
||||
, m_szUpdateTime(_T(""))
|
||||
{
|
||||
}
|
||||
|
||||
CCharInfoTime::~CCharInfoTime()
|
||||
{
|
||||
}
|
||||
|
||||
void CCharInfoTime::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
DDX_Control(pDX, IDC_BM_TYPECOMBO, m_ctrlSearchConditionCb);
|
||||
DDX_Control(pDX, IDC_BM_SERVERCOMBO, m_ctrlServerGroupCb);
|
||||
DDX_Text(pDX, IDC_SEARCHVALUE, m_szSearchValue);
|
||||
DDX_Text(pDX, IDC_RESULTCREATETIME, m_szCreateTime);
|
||||
DDX_Text(pDX, IDC_RESULTUPDATETIME, m_szUpdateTime);
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CCharInfoTime, CDialog)
|
||||
ON_BN_CLICKED(IDC_CMDSEARCH, OnBnClickedCmdsearch)
|
||||
ON_WM_DESTROY()
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// CCharInfoTime <20><EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
BOOL CCharInfoTime::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// TODO: <20><><EFBFBD> <20>߰<EFBFBD> <20>ʱ<EFBFBD>ȭ <20>۾<EFBFBD><DBBE><EFBFBD> <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
|
||||
m_ctrlSearchConditionCb.InsertString(0, _T("CID"));
|
||||
m_ctrlSearchConditionCb.InsertString(1, _T("Name"));
|
||||
|
||||
ServerGroupComboSet(m_ctrlServerGroupCb);
|
||||
|
||||
SetWindowText(static_cast<LPCTSTR>(GetLocalString("ADDED_STRING_099")));
|
||||
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_001, "ADDED_STRING_100");
|
||||
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_002, "ADDED_STRING_101");
|
||||
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_003, "ADDED_STRING_102");
|
||||
SetUIString(this->m_hWnd, IDC_CMDSEARCH, "ADDED_STRING_103");
|
||||
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_004, "ADDED_STRING_104");
|
||||
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_005, "ADDED_STRING_105");
|
||||
SetUIString(this->m_hWnd, IDC_CHARINFOTIME_006, "ADDED_STRING_106");
|
||||
|
||||
INSERT_WINDOW(IDD_CHARINFOTIMEDLG, this);
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// <20><><EFBFBD><EFBFBD>: OCX <20>Ӽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> FALSE<53><45> <20><>ȯ<EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4>.
|
||||
}
|
||||
|
||||
void CCharInfoTime::OnBnClickedCmdsearch()
|
||||
{
|
||||
// TODO: <20><><EFBFBD> <20><>Ʈ<EFBFBD><C6AE> <20>˸<EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
|
||||
|
||||
UpdateData(TRUE);
|
||||
|
||||
unsigned char SearchType = static_cast<unsigned char>(m_ctrlSearchConditionCb.GetCurSel());
|
||||
unsigned long ServerGroup = 0;
|
||||
CString strServerName;
|
||||
|
||||
m_ctrlServerGroupCb.GetLBText(m_ctrlServerGroupCb.GetCurSel(), strServerName);
|
||||
CCharacterDoc::GetInstance().GetServerIndex(strServerName, ServerGroup);
|
||||
|
||||
// <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƹ<EFBFBD><C6B9>͵<EFBFBD> <20><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD> <20>ʾ<EFBFBD><CABE><EFBFBD>.
|
||||
if(0xFF == SearchType)
|
||||
{
|
||||
MessageBox(GetLocalString("ADDED_STRING_111"), "Notifiacation", MB_ICONINFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD> <20><EFBFBD><D7B7><EFBFBD> <20>ƹ<EFBFBD><C6B9>͵<EFBFBD> <20><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD> <20>ʾ<EFBFBD><CABE><EFBFBD>.
|
||||
if(CB_ERR == ServerGroup)
|
||||
{
|
||||
MessageBox(GetLocalString("ADDED_STRING_112"), "Notification", MB_ICONINFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
// <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD><EFBFBD><EFBFBD> <20>ʾ<EFBFBD><CABE><EFBFBD>.
|
||||
if(0 == m_szSearchValue.GetLength())
|
||||
{
|
||||
MessageBox(GetLocalString("ADDED_STRING_113"), "Notification", MB_ICONINFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
m_szCreateTime.Empty();
|
||||
m_szUpdateTime.Empty();
|
||||
UpdateData(FALSE);
|
||||
|
||||
if(FALSE == CPacketMgr::GetInstance()->SendSearchCharInfoTime(SearchType, ServerGroup, m_szSearchValue))
|
||||
{
|
||||
Report(GetLocalString("ADDED_STRING_109"), FAILED);
|
||||
}
|
||||
}
|
||||
|
||||
void CCharInfoTime::OnDestroy()
|
||||
{
|
||||
CDialog::OnDestroy();
|
||||
|
||||
// TODO: <20><><EFBFBD> <20><EFBFBD><DEBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD> <20>ڵ带 <20>߰<EFBFBD><DFB0>մϴ<D5B4>.
|
||||
ERASE_WINDOW(IDD_CHARINFOTIMEDLG);
|
||||
}
|
||||
Reference in New Issue
Block a user