⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 merchantdatamovedlg.cpp

📁 网络游戏龙族服务器端管理工具 rmtool 源代码
💻 CPP
字号:
// MerchantDataMoveDlg.cpp : implementation file
//

#include "stdafx.h"
#include "rmtool.h"
#include "MerchantDataMoveDlg.h"
#include "CharacterView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMerchantDataMoveDlg dialog


CMerchantDataMoveDlg::CMerchantDataMoveDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMerchantDataMoveDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMerchantDataMoveDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CMerchantDataMoveDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMerchantDataMoveDlg)
	DDX_Control(pDX, IDC_COMBO_YEAR0, m_ctrlComboYear0);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMerchantDataMoveDlg, CDialog)
	//{{AFX_MSG_MAP(CMerchantDataMoveDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMerchantDataMoveDlg message handlers

BOOL CMerchantDataMoveDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	SYSTEMTIME st;
	GetLocalTime(&st);		// 肺拿 鸥烙 掘扁

	m_ctrlComboYear0.ResetContent();
	CString str;

	for(int i = 1999; i <= st.wYear; i++)
	{
		str.Format(_T("%d"), i);
		m_ctrlComboYear0.AddString(str);		//霓焊冠胶俊 斥档 眠啊
	}

	m_ctrlComboYear0.SetCurSel(0);

	// 岿 老狼 悸泼
	SetDlgItemInt(IDC_EDIT_MONTH0, 1);
	SetDlgItemInt(IDC_EDIT_DAY0, 1);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CMerchantDataMoveDlg::OnOK() 
{
	// TODO: Add extra validation here
	CCharacterView *pView = (CCharacterView*)GetParent();
	CString datetime0;
	// 朝磊 器杆 备己
	datetime0.Format("'%d-%02d-%02d 0:00:00'", GetDlgItemInt(IDC_COMBO_YEAR0),
		GetDlgItemInt(IDC_EDIT_MONTH0), GetDlgItemInt(IDC_EDIT_DAY0));

	WCHAR query[ 0x1ff ];
	char str[ 0x1ff ];

	sprintf(str, "Exec up_RM_MerchantData_Move %s", datetime0.GetBuffer(128));

	g_pDb->KSCToUnicode(str, query);

	int ret = g_pDb->ExecuteSQL(query, (BYTE)DRAGON_DB[ pView->m_nCurDbIndex ]);		// 孽府角青
	
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -