2025-02-27 16:58:16 +08:00
|
|
|
|
// DLG_Login.cpp : implementation file
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "CorpSms.h"
|
|
|
|
|
#include "DLG_Login.h"
|
|
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
|
#undef THIS_FILE
|
|
|
|
|
static char THIS_FILE[] = __FILE__;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// DLG_Login dialog
|
|
|
|
|
|
|
|
|
|
//#include "MainFrm.h"
|
|
|
|
|
#include "ProcessSocket.h"
|
|
|
|
|
|
|
|
|
|
DLG_Login::DLG_Login(CWnd* pParent /*=NULL*/)
|
|
|
|
|
: CDialog(DLG_Login::IDD, pParent)
|
|
|
|
|
, m_bSaveLoginPasswd(FALSE)
|
|
|
|
|
{
|
|
|
|
|
//{{AFX_DATA_INIT(DLG_Login)
|
|
|
|
|
m_strPasswd = _T("");
|
|
|
|
|
m_strProxyIP = _T("");
|
|
|
|
|
m_strProxyPasswd = _T("");
|
|
|
|
|
m_strProxyPort = _T("");
|
|
|
|
|
m_iProxyType = -1;
|
|
|
|
|
m_strProxyUser = _T("");
|
|
|
|
|
m_bProxyUse = FALSE;
|
|
|
|
|
m_strIP = _T("");
|
|
|
|
|
m_strUser = _T("");
|
|
|
|
|
m_strCorpID = _T("");
|
|
|
|
|
m_strSQLDB = _T("");
|
|
|
|
|
m_strSQLIP = _T("");
|
|
|
|
|
m_strSQLPasswd = _T("");
|
|
|
|
|
m_strSQLUser = _T("");
|
|
|
|
|
m_bSQLUse = FALSE;
|
|
|
|
|
m_bGateWay = FALSE;
|
|
|
|
|
//}}AFX_DATA_INIT
|
|
|
|
|
|
|
|
|
|
m_bSetup = false;
|
|
|
|
|
memset( &m_Setup , 0 , sizeof(m_Setup) );
|
|
|
|
|
memset( &m_User , 0 , sizeof(m_User) );
|
|
|
|
|
memset( &m_Ans_Login,0,sizeof(m_Ans_Login));
|
|
|
|
|
memset( &m_Ans_Login2,0,sizeof(m_Ans_Login2));
|
|
|
|
|
m_bAnsLogin2 = false; //û<><C3BB>Login2<6E><32><EFBFBD><EFBFBD>
|
|
|
|
|
m_lUserID = 0;
|
|
|
|
|
m_ulPurview=0;
|
|
|
|
|
m_pUser = NULL;
|
|
|
|
|
m_bShowLogo = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void DLG_Login::DoDataExchange(CDataExchange* pDX)
|
|
|
|
|
{
|
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
|
//{{AFX_DATA_MAP(DLG_Login)
|
|
|
|
|
DDX_Control(pDX, IDC_LOGIN_KF, m_S_KF);
|
|
|
|
|
DDX_Control(pDX, IDC_LOGIN_S3, m_S_S3);
|
|
|
|
|
DDX_Control(pDX, IDC_LOGIN_REG, m_S_Reg);
|
|
|
|
|
DDX_Control(pDX, IDC_LOGO, m_B_Logo);
|
|
|
|
|
DDX_Control(pDX, IDC_LOGIN_USER, m_L_User);
|
|
|
|
|
DDX_Control(pDX, IDC_LOGIN_S2, m_S_S2);
|
|
|
|
|
DDX_Control(pDX, IDC_LOGIN_S1, m_S_S1);
|
|
|
|
|
DDX_Control(pDX, IDC_LOGIN_SETUP, m_wndSetup);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_PASSWD, m_strPasswd);
|
|
|
|
|
DDV_MaxChars(pDX, m_strPasswd, 15);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_PROXYIP, m_strProxyIP);
|
|
|
|
|
DDV_MaxChars(pDX, m_strProxyIP, 30);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_PROXYPASSWD, m_strProxyPasswd);
|
|
|
|
|
DDV_MaxChars(pDX, m_strProxyPasswd, 15);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_PROXYPORT, m_strProxyPort);
|
|
|
|
|
DDV_MaxChars(pDX, m_strProxyPort, 5);
|
|
|
|
|
DDX_CBIndex(pDX, IDC_LOGIN_PROXYTYPE, m_iProxyType);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_PROXYUSER, m_strProxyUser);
|
|
|
|
|
DDV_MaxChars(pDX, m_strProxyUser, 15);
|
|
|
|
|
DDX_Check(pDX, IDC_LOGIN_USEPROXY, m_bProxyUse);
|
|
|
|
|
DDX_CBString(pDX, IDC_LOGIN_USER, m_strUser);
|
|
|
|
|
DDV_MaxChars(pDX, m_strUser, 15);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_CORPID, m_strCorpID);
|
|
|
|
|
DDV_MaxChars(pDX, m_strCorpID, 12);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_SQLDB, m_strSQLDB);
|
|
|
|
|
DDV_MaxChars(pDX, m_strSQLDB, 30);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_SQLIP, m_strSQLIP);
|
|
|
|
|
DDV_MaxChars(pDX, m_strSQLIP, 30);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_SQLPASSWD, m_strSQLPasswd);
|
|
|
|
|
DDV_MaxChars(pDX, m_strSQLPasswd, 30);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_SQLUSER, m_strSQLUser);
|
|
|
|
|
DDV_MaxChars(pDX, m_strSQLUser, 30);
|
|
|
|
|
DDX_Check(pDX, IDC_LOGIN_USESQL, m_bSQLUse);
|
|
|
|
|
DDX_Check(pDX, IDC_LOGIN_GATEWAY, m_bGateWay);
|
|
|
|
|
//}}AFX_DATA_MAP
|
|
|
|
|
DDX_Control(pDX, IDC_LOGO2, m_S_Logo2);
|
|
|
|
|
DDX_Check(pDX, IDC_SAVELOGINPASSWD, m_bSaveLoginPasswd);
|
|
|
|
|
DDX_Control(pDX, IDC_LOGIN_IP, m_L_Server);
|
|
|
|
|
DDX_Text(pDX, IDC_LOGIN_IP, m_strIP);
|
|
|
|
|
DDV_MaxChars(pDX, m_strIP, 30);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(DLG_Login, CDialog)
|
|
|
|
|
//{{AFX_MSG_MAP(DLG_Login)
|
|
|
|
|
ON_BN_CLICKED(IDC_LOGIN_SETUP, OnLoginSetup)
|
|
|
|
|
ON_BN_CLICKED(IDC_LOGIN_USEPROXY, OnLoginUseproxy)
|
|
|
|
|
ON_CBN_SELCHANGE(IDC_LOGIN_PROXYTYPE, OnSelchangeLoginProxytype)
|
|
|
|
|
ON_WM_TIMER()
|
|
|
|
|
//}}AFX_MSG_MAP
|
|
|
|
|
|
|
|
|
|
ON_MESSAGE( PROCESSSOCKET_ERROR , ProcessSocket_Error )
|
|
|
|
|
ON_MESSAGE( PROCESSSOCKET_FRAME , ProcessSocket_Frame )
|
|
|
|
|
ON_CBN_SELCHANGE(IDC_LOGIN_USER, &DLG_Login::OnCbnSelchangeLoginUser)
|
|
|
|
|
ON_STN_CLICKED(IDC_LOGIN_REG, &DLG_Login::OnStnClickedLoginReg)
|
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// DLG_Login message handlers
|
|
|
|
|
|
|
|
|
|
void DLG_Login::OnOK()
|
|
|
|
|
{
|
|
|
|
|
if ( !GetPara() )
|
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
m_lLoginCount = 0;
|
|
|
|
|
SetTimer( 2 , 100 , NULL ); //<2F><>¼Timer
|
|
|
|
|
//CDialog::OnOK();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DLG_Login::OnCancel()
|
|
|
|
|
{
|
|
|
|
|
CDialog::OnCancel();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DLG_Login::OnLoginSetup()
|
|
|
|
|
{
|
|
|
|
|
CRect rectwnd;
|
|
|
|
|
this->GetWindowRect( &rectwnd );
|
|
|
|
|
CRect rectS1;
|
|
|
|
|
m_S_S1.GetWindowRect( &rectS1 );
|
|
|
|
|
CRect rectS2;
|
|
|
|
|
m_S_S2.GetWindowRect( &rectS2 );
|
|
|
|
|
CRect rectS3;
|
|
|
|
|
m_S_S3.GetWindowRect( &rectS3 );
|
|
|
|
|
|
|
|
|
|
if ( m_bSetup )
|
|
|
|
|
{
|
|
|
|
|
#ifdef YQ_VER_SQL
|
|
|
|
|
rectwnd.bottom = rectS3.bottom+=15;
|
|
|
|
|
this->MoveWindow( rectwnd );
|
|
|
|
|
this->CenterWindow();
|
|
|
|
|
#else
|
|
|
|
|
rectwnd.bottom = rectS2.bottom+=15;
|
|
|
|
|
this->MoveWindow( rectwnd );
|
|
|
|
|
#endif
|
|
|
|
|
m_wndSetup.SetWindowText( _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <<") );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
rectwnd.bottom = rectS1.bottom+=15;
|
|
|
|
|
this->MoveWindow( rectwnd );
|
|
|
|
|
m_wndSetup.SetWindowText( _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD> >>") );
|
|
|
|
|
}
|
|
|
|
|
m_bSetup = !m_bSetup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL DLG_Login::OnInitDialog()
|
|
|
|
|
{
|
|
|
|
|
CDialog::OnInitDialog();
|
|
|
|
|
|
|
|
|
|
#ifdef MOBSET_CARD_VER
|
|
|
|
|
m_strCorpID = _T("80000000");
|
|
|
|
|
m_strIP = m_Setup.szIP;
|
|
|
|
|
m_strUser= _T("");
|
|
|
|
|
#else
|
|
|
|
|
m_strCorpID = _T("100000");
|
|
|
|
|
m_strIP = m_Setup.szIP;
|
|
|
|
|
m_strUser= _T("Admin");
|
|
|
|
|
m_L_Server.AddString(DEFAULT_AUTO_SERVER);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
m_bShowLogo = false; //Ĭ<>ϲ<EFBFBD><CFB2><EFBFBD>ʾLogo
|
|
|
|
|
m_B_Logo.ShowWindow(SW_HIDE);
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
m_S_Logo2.SetBitmap((HBITMAP)::LoadImage(::AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_LOGO2_OEM),IMAGE_BITMAP, 0,0, LR_CREATEDIBSECTION ));
|
|
|
|
|
m_S_S1.SetWindowText(_T("<EFBFBD><EFBFBD>¼"));
|
|
|
|
|
#else
|
|
|
|
|
//m_B_Logo.SetBitmaps(IDB_LOGO, RGB(255,255,255));
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(MOBSET_OEM_SHXH ) || defined(MOBSET_OEM_SUNPO ) || defined(MOBSET_OEM_MANI ) || defined(MOBSET_OEM_LONGZX ) || defined(MOBSET_OEM_WFCTT ) || defined(MOBSET_OEM_KMSR) || defined(MOBSET_OEM_JMHL) || defined(MOBSET_OEM_AUYOU) || defined(MOBSET_OEM_MDT) || defined(MOBSET_OEM_SZMDT) || defined(MOBSET_OEM_SHQX) || defined(MOBSET_OEM_1798) || defined(MOBSET_OEM_NJLH) || defined(MOBSET_OEM_TYF) || defined(MOBSET_OEM_HYBL) || defined(MOBSET_OEM_SDRW) || defined(MOBSET_OEM_HKLC) || defined(MOBSET_OEM_TCKJ) || defined(MOBSET_OEM_CQZX) || defined(MOBSET_OEM_WHPGY) || defined(MOBSET_OEM_FSRRX) || defined(MOBSET_OEM_FSFB) || defined(MOBSET_OEM_JMSB) || defined(MOBSET_OEM_BJZX) || defined(MOBSET_OEM_NJJML) || defined(MOBSET_OEM_ZSWE) || defined(MOBSET_OEM_NJBG) || defined(MOBSET_OEM_TLQP) || defined(MOBSET_OEM_NJJT) || defined(MOBSET_OEM_SGLX) || defined(MOBSET_OEM_WAZH) || defined(MOBSET_OEM_GZTM) || defined(MOBSET_OEM_NBBX) \
|
|
|
|
|
|| defined(MOBSET_OEM_DGZR) || defined(MOBSET_OEM_SZJS) || defined(MOBSET_OEM_NFTC) || defined(MOBSET_OEM_WHLW) || defined(MOBSET_OEM_HNCX) || defined(MOBSET_OEM_CQBX) || defined(MOBSET_OEM_BJBM) || defined(MOBSET_OEM_SJZZR) || defined(MOBSET_OEM_GZTGB) || defined(MOBSET_OEM_GSZWT) || defined(MOBSET_OEM_ZSSWT) || defined(MOBSET_OEM_ZSZWT) || defined(MOBSET_OEM_CQYC) || defined(MOBSET_OEM_FSYX) || defined(MOBSET_OEM_DLXS) || defined (MOBSET_OEM_XADFSJ) || defined(MOBSET_OEM_CSRC) || defined(MOBSET_OEM_QZXXG) || defined(MOBSET_OEM_DGCW) /*|| defined(MOBSET_OEM_ZHYX)*/ || defined(MOBSET_OEM_JMYD) || defined(MOBSET_OEM_NJHW) || defined(MOBSET_OEM_LZBX) || defined(MOBSET_OEM_NXBX) /*|| defined(MOBSET_OEM_BJMCT)*/ || defined(MOBSET_OEM_SZYF) || defined(MOBSET_OEM_WHFS) || defined(MOBSET_OEM_SHWZ) || defined (MOBSET_OEM_GZHK) || defined(MOBSET_OEM_SZZL) || /*defined(MOBSET_OEM_SZYY) ||*/ defined(MOBSET_OEM_YHWL) || defined(MOBSET_OEM_DGKST) || defined(MOBSET_OEM_SZSDW) || defined(MOBSET_OEM_SZUU) \
|
|
|
|
|
|| defined(MOBSET_OEM_GZJX) || defined(MOBSET_OEM_BJJSY) || defined(MOBSET_OEM_SALN) || defined(MOBSET_OEM_FSKJT) || defined(MOBSET_OEM_HZDS) || defined(MOBSET_OEM_GZJZ) || defined(MOBSET_OEM_WHDB) || defined(MOBSET_OEM_CSJX) || defined(MOBSET_OEM_GZCYDN) || defined(MOBSET_OEM_YWKC) || defined(MOBSET_OEM_PXAYZX) || defined(MOBSET_OEM_TYJY) || defined(MOBSET_OEM_KMWH) || defined(MOBSET_OEM_DGJN) || defined(MOBSET_OEM_SZZS) || defined(MOBSET_OEM_SZLR) || defined(MOBSET_OEM_KMRX) || defined(MOBSET_OEM_TYF_LZT) || defined(MOBSET_OEM_TYF_ZXT) || defined(MOBSET_OEM_KMJR) || defined(MOBSET_OEM_HEBWLY) || defined(MOBSET_OEM_GZTJ) || defined(MOBSET_OEM_WHBS) || defined(MOBSET_OEM_SZCGWX) || defined(MOBSET_OEM_GSYLX) || defined(MOBSET_OEM_GZXY) || defined(MOBSET_OEM_TYF_FG) || defined(MOBSET_OEM_TYF_LLL) || defined(MOBSET_OEM_DGSM) || defined(MOBSET_OEM_GZRZX) || defined(MOBSET_OEM_ZHOK) || defined(MOBSET_OEM_GZJT) || defined(MOBSET_OEM_AHLY) || defined(MOBSET_OEM_ZJLT) || defined(MOBSET_OEM_SHSS) \
|
|
|
|
|
|| defined(MOBSET_OEM_BFCB) || defined(MOBSET_OEM_ZQLT) || defined(MOBSET_OEM_SZSHJ) || defined(MOBSET_OEM_HZYJD) || defined(MOBSET_OEM_GZNX) || defined(MOBSET_OEM_HYLT) || defined(MOBSET_OEM_SZZBW) || defined(MOBSET_OEM_NJTDJSJ) || defined(MOBSET_OEM_LZYLX) || defined(MOBSET_OEM_MMDX) ||defined(MOBSET_OEM_GDDX) || defined(MOBSET_OEM_GZXY) || defined(MOBSET_OEM_LHSK) || defined(MOBSET_OEM_ZYWD) || defined(MOBSET_OEM_GZJYKX) || defined(MOBSET_OEM_ZHJB) || defined(MOBSET_OEM_LWXX) || defined(MOBSET_OEM_NJYC) || defined(MOBSET_OEM_SHHWT) || defined(MOBSET_OEM_GZHFXX) || defined(MOBSET_OEM_DYDFKJ) || defined(MOBSET_OEM_QXKD) || defined(MOBSET_OEM_GDYK) || defined(MOBSET_OEM_SHCD) || defined(MOBSET_OEM_TJYS) || defined(MOBSET_OEM_GZXDL) || defined(MOBSET_OEM_GZBYK) || defined(MOBSET_OEM_SGYD) || defined(MOBSET_OEM_HBSYL)
|
|
|
|
|
|
|
|
|
|
m_S_Logo2.ShowWindow(SW_HIDE);
|
|
|
|
|
m_B_Logo.SetBitmaps(IDB_LOGO_OEM, RGB(255,255,255)); //OEM_LOGO
|
|
|
|
|
//m_B_Logo.ShowWindow(SW_SHOW);
|
|
|
|
|
//m_B_Logo.DrawTransparent();
|
|
|
|
|
m_B_Logo.DrawBorder(false);
|
|
|
|
|
m_bShowLogo = true; //Ĭ<>ϲ<EFBFBD><CFB2><EFBFBD>ʾLogo
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD>СС
|
|
|
|
|
|
|
|
|
|
CRect rect;
|
|
|
|
|
GetDlgItem(IDC_LOGIN_CORPID_S)->GetWindowRect(&rect);
|
|
|
|
|
rect.top += 10;
|
|
|
|
|
rect.bottom +=10;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_CORPID_S)->MoveWindow(rect);
|
|
|
|
|
|
|
|
|
|
GetDlgItem(IDC_LOGIN_CORPID)->GetWindowRect(&rect);
|
|
|
|
|
rect.top += 10;
|
|
|
|
|
rect.bottom +=10;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_CORPID)->MoveWindow(rect);
|
|
|
|
|
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER_S)->GetWindowRect(&rect);
|
|
|
|
|
rect.top += 10;
|
|
|
|
|
rect.bottom +=10;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER_S)->MoveWindow(rect);
|
|
|
|
|
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER)->GetWindowRect(&rect);
|
|
|
|
|
rect.top += 10;
|
|
|
|
|
rect.bottom +=10;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER)->MoveWindow(rect);
|
|
|
|
|
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD_S)->GetWindowRect(&rect);
|
|
|
|
|
rect.top += 10;
|
|
|
|
|
rect.bottom +=10;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD_S)->MoveWindow(rect);
|
|
|
|
|
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD)->GetWindowRect(&rect);
|
|
|
|
|
rect.top += 10;
|
|
|
|
|
rect.bottom +=10;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD)->MoveWindow(rect);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef SMSCENTER_NX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_REG)->ShowWindow(SW_HIDE);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
m_bGateWay=m_Setup.bGateWay;
|
|
|
|
|
m_bProxyUse=m_Setup.bProxyUse;
|
|
|
|
|
m_strProxyIP=m_Setup.szProxyIP;
|
|
|
|
|
m_strProxyPort.Format( _T("%d") , m_Setup.lProxyPort );
|
|
|
|
|
m_iProxyType=m_Setup.lProxyType;
|
|
|
|
|
m_strProxyUser=m_Setup.szProxyUser;
|
|
|
|
|
m_strProxyPasswd=m_Setup.szProxyPasswd;
|
|
|
|
|
|
|
|
|
|
#ifndef YQ_VER_SQL
|
|
|
|
|
m_Setup.bSQLUse = false; //<2F><>ʹ<EFBFBD><CAB9>SQL<51><4C><EFBFBD>ݿ<EFBFBD>
|
|
|
|
|
#endif
|
|
|
|
|
m_bSQLUse = m_Setup.bSQLUse;
|
|
|
|
|
m_strSQLIP = m_Setup.szSQLIP;
|
|
|
|
|
m_strSQLDB = m_Setup.szSQLDB;
|
|
|
|
|
m_strSQLUser = m_Setup.szSQLUser;
|
|
|
|
|
m_strSQLPasswd = m_Setup.szSQLPasswd;
|
|
|
|
|
m_bSaveLoginPasswd = m_Setup.bSaveLoginPasswd;
|
|
|
|
|
long lUserSel = -1;
|
|
|
|
|
if ( m_pUser->GetCount() )
|
|
|
|
|
{
|
|
|
|
|
SM_User * pUser;
|
|
|
|
|
POSITION pos = m_pUser->GetHeadPosition();
|
|
|
|
|
BOOL bLast=false;
|
|
|
|
|
while (pos)
|
|
|
|
|
{
|
|
|
|
|
pUser = m_pUser->GetNext( pos );
|
|
|
|
|
long lSel = m_L_User.AddString( pUser->szUser );
|
|
|
|
|
if ( !bLast && pUser->bLast )
|
|
|
|
|
{
|
|
|
|
|
m_strCorpID.Format( _T("%d") , pUser->lCorpID );
|
|
|
|
|
m_strUser = pUser->szUser;
|
|
|
|
|
if ( m_bSaveLoginPasswd )
|
|
|
|
|
{
|
|
|
|
|
m_strPasswd = pUser->szPasswd;
|
|
|
|
|
}
|
|
|
|
|
bLast = true;
|
|
|
|
|
lUserSel = lSel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ( !bLast ) //û<><C3BB>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,ȡ<><C8A1>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ΪĬ<CEAA><C4AC>
|
|
|
|
|
{
|
|
|
|
|
POSITION pos = m_pUser->GetHeadPosition();
|
|
|
|
|
if ( pos )
|
|
|
|
|
{
|
|
|
|
|
pUser = m_pUser->GetNext( pos );
|
|
|
|
|
m_strCorpID.Format( _T("%d") , pUser->lCorpID );
|
|
|
|
|
m_strUser = pUser->szUser;
|
|
|
|
|
if ( m_bSaveLoginPasswd )
|
|
|
|
|
{
|
|
|
|
|
m_strPasswd = pUser->szPasswd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef MOBSET_CARD_VER
|
|
|
|
|
m_strCorpID.Format( _T("%d") , CARD_CORPID );
|
|
|
|
|
GetDlgItem(IDC_LOGIN_CORPID)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_CORPID_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
|
|
|
|
|
CRect rect;
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER_S)->GetWindowRect(&rect);
|
|
|
|
|
rect.top -= 20;
|
|
|
|
|
rect.bottom -=20;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER_S)->MoveWindow(rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER_S)->SetWindowText("<EFBFBD><EFBFBD> <20><>");
|
|
|
|
|
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER)->GetWindowRect(&rect);
|
|
|
|
|
rect.top -= 20;
|
|
|
|
|
rect.bottom -=20;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER)->MoveWindow(rect);
|
|
|
|
|
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD_S)->GetWindowRect(&rect);
|
|
|
|
|
rect.top -= 10;
|
|
|
|
|
rect.bottom -=10;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD_S)->MoveWindow(rect);
|
|
|
|
|
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD)->GetWindowRect(&rect);
|
|
|
|
|
rect.top -= 10;
|
|
|
|
|
rect.bottom -=10;
|
|
|
|
|
this->ScreenToClient(&rect);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD)->MoveWindow(rect);
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_S_Reg.SetTextColor( RGB(0,0,255) );
|
|
|
|
|
m_S_Reg.SetLinkText( MOBSET_URL_REG );
|
|
|
|
|
m_S_Reg.SetLink( true );
|
|
|
|
|
m_S_Reg.SetLinkCursor( AfxGetApp()->LoadCursor( IDC_C_HAND ) );
|
|
|
|
|
m_S_Reg.SetFontUnderline(true);
|
|
|
|
|
//m_S_Reg.SetFontSize(12);
|
|
|
|
|
|
|
|
|
|
m_S_KF.SetTextColor( RGB(255,0,0) );
|
|
|
|
|
|
|
|
|
|
#ifdef SMSCENTER_ADC
|
|
|
|
|
SetWindowText("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ƶ<EFBFBD>ADC<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨");
|
|
|
|
|
GetDlgItem(IDC_LOGIN_REG)->ShowWindow(SW_HIDE);
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef SMSCENTER_DGSB
|
|
|
|
|
SetWindowText(_T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨"));
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
GetDlgItem(IDC_LOGIN_REG)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_HIDE);
|
|
|
|
|
//GetDlgItem(IDC_LOGIN_IP)->ShowWindow(SW_HIDE);
|
|
|
|
|
//GetDlgItem(IDC_LOGIN_IP_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
#ifdef SMSCENTER_ADC
|
|
|
|
|
SetWindowText("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD>ADC<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨");
|
|
|
|
|
#else
|
|
|
|
|
SetWindowText(_T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨"));
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>绰һ<E7BBB0><D2BB>
|
|
|
|
|
CRect rect2;
|
|
|
|
|
m_S_KF.GetWindowRect(&rect2);
|
|
|
|
|
rect2.right+= 100;
|
|
|
|
|
this->ScreenToClient(&rect2);
|
|
|
|
|
m_S_KF.MoveWindow(&rect2);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MOBSET_OEM_AUYOU //<2F><>Ҫ<EFBFBD><D2AA>ʾע<CABE><D7A2><EFBFBD><EFBFBD>ַ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_REG)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_Reg.SetLinkText( "http://www.mobset.com/try.htm" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TYF //<2F><>Ҫ<EFBFBD><D2AA>ʾע<CABE><D7A2><EFBFBD><EFBFBD>ַ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_REG)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_Reg.SetLinkText( "http://web-fax.com.cn/product_dxt.htm" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TYF_LZT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:400-700-8128" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TYF_ZXT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:400-700-8128" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TYF_FG
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-61132932") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TYF_LLL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:020-31573661" );
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MOBSET_OEM_SHQX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0898-66666116" );
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef MOBSET_OEM_JHXXG
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0579-2399990" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SDRW
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:13119891616" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_1798
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0577-62376586" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_XADFSJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:029-88135528" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SDHL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0532-85789999-8001" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_QZXXG
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0570-3032123" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_DGCW
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0769-22302285" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZSJHL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0755-61279925" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_WHDB
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:027-86812779" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_WHLW
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:027-82831088") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_JMYD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0750-3391118 3081118" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJBG
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:02583692298") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJHW
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:025-51913318" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_LZBX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0931-2183370" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NXBX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:15909530953,QQ:418544854" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_BJMCT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:4006121828") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZYF
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:0755-83144250" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJJML
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( "<EFBFBD>ͷ<EFBFBD>:025-66613777" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_WHFS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:027-87538974") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TYJY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13327408080") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SHWZ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0571-82866635") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_AHXT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13956964397") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZHK
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-38844969") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZZL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0512-85187338") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CDWL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:028-68226168") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CQYC
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:023-68516612") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZYY
|
|
|
|
|
// GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
// m_S_KF.SetWindowText( _T("<22>ͷ<EFBFBD>:0755-26100241 26410044") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_YCZW
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0951-6031208") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZBC
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0755-26403703") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_YHWL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0311-85101100") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJFB
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:025-86566121") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HYBL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0762-3297969") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GDLL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13829666281,0754-8845889") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HEBXLT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0451-82352018") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZJXM
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0311-86169660") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_DGKST
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0769-22472514") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZSDW
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0512-52239835") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZUU
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0512-68057325") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SJZZR
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13582112183") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_KMSR
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0871-6306155") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJYS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13851725798") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CQZX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13101342337") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SYBY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:024-88689222") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SHXH
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13971396119") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HZDS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0572-7226025") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZJZ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-38319299") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SUNPO
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-61139319") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_FSFB
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0757-22228048-801") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TYHSY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0351-7235278") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CSJX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0731-5115860") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZHYX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:15992645122") );
|
|
|
|
|
//GetDlgItem(IDC_LOGIN_IP)->ShowWindow(SW_SHOW);
|
|
|
|
|
//GetDlgItem(IDC_LOGIN_IP_S)->ShowWindow(SW_SHOW);
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZCYDN
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-89501528") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_YWKC
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0579-85580667") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HKLC
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0898-66193825") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_WLMQYMK
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0991-2333613") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CSCL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0731-2120671") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZYZ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-85801211") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_PXAYZX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0799-6222678") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_JMSB
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0750-3062388") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_DLYQL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:4006041186/0411-39631886") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZSY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-61131881") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_KMWH
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0871-5107288 5107388") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_DGJN
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0769-22907868-813") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZZS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0755-83563712") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJTD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:025-83197813") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SGLX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0751-8888890") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_FSYX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0757-83888328") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SYTC
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:024-62144368") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_LSLT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0578-2500250") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CQZB
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:023-68436531") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZLR
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0755-26423520") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_KMRX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0871-6225500") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HFXBM
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13365511283 0551-4493059") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_KMJR
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0871-8252769") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_FSRRX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0757-83300114") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HEBWLY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0451-87526863") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZTJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-62983072") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_WHBS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:027-59229855") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZCGWX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0755-86250805") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_FSSL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0757-83630806") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CSXN
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0731-6620270") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GSYLX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:(0931)8878876") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZXY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-87587611") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZYTX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:024-31589888") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_DLXS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:18941110310") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_DGSM
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0769-22882728") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZRZX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-86359890") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZHOK
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:13532233395") );
|
|
|
|
|
GetDlgItem(IDC_LOGIN_IP)->ShowWindow(SW_SHOW);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_IP_S)->ShowWindow(SW_SHOW);
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZWYZS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-34320358") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZHST
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:15992645122") );
|
|
|
|
|
GetDlgItem(IDC_LOGIN_IP)->ShowWindow(SW_SHOW);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_IP_S)->ShowWindow(SW_SHOW);
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZZKJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0411-84798702") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZJT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:4006786896") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_BJJSY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:010-51668284") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_AHLY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:0562-2169888") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZJLT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:18675998750") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SHSS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:400 000 5057") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SHSS //<2F><>Ҫ<EFBFBD><D2AA>ʾע<CABE><D7A2><EFBFBD><EFBFBD>ַ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_REG)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_Reg.SetLinkText( "http://www.mwsms.com" );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_BFCB
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:020-83587213") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZQLT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>:10010") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CCKD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD>QQ<EFBFBD><EFBFBD>1318609359") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZSHJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>400 700 2505") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJZZD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CQRT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>18858196653") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HZYJD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>13829969926") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZHH
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>020-87275610") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZNX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>020-87549986") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HYLT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>18676060300") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZZBW
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>0755-82807556") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TJTH
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>022-60393585") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJTDJSJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>025-84615070") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_LZYLX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>0931-8484415") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_MMDX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>0668-2993785") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GDDX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>100000") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZXY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>400-637-1771") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_LHSK
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>4001686466") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZYWD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>15915900079") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZJYKX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>13682295850") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_ZHJB
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("ͳһ<EFBFBD>ͷ<EFBFBD><EFBFBD>绰4006865596") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_PYAJJZ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>0939-8189911") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TJJJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>18222042453") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_LWXX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>4006-628-727") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_NJYC
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>400-8558-945") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SHHWT
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>40080-10086") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_XMKJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>0592-2208990") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZHFXX
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>020-85239335") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_DYDFKJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>0579-86375619") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_QXKD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>4001112829") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_DGKF
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD>13929220054") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_CRM
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GDYK
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("020-87306755 020-87617223") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZMY
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("400-6027-009") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SHCD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("021-50498266") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_TJYS
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText( _T("022-60956768") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_YLCQ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_HIDE);
|
|
|
|
|
//m_S_KF.SetWindowText( _T("022-60956768") );
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SZTJ
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_HIDE);
|
|
|
|
|
m_S_KF.SetWindowText(_T("0755-23595973"));
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZXDL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText(_T("020-81748173"));
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_GZBYK
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText(_T("13710245443"));
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_SGYD
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_HIDE);
|
|
|
|
|
m_S_KF.SetWindowText(_T("10086"));
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef MOBSET_OEM_HBSYL
|
|
|
|
|
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
|
|
|
|
|
m_S_KF.SetWindowText(_T("<EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߣ<EFBFBD>13387606916"));
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
if ( m_strMasTitle.GetLength()>0 )
|
|
|
|
|
{
|
|
|
|
|
SetWindowText( CString(_T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD>"))+m_strMasTitle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CString strTitle;
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
|
//GetDlgItem(IDC_LOGIN_GATEWAY)->ShowWindow(SW_HIDE);
|
|
|
|
|
strTitle.Format(_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD>˷<EFBFBD><CBB7><EFBFBD>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<>˿<EFBFBD>)"),DEFAULT_SERVERPORT_UNI );
|
|
|
|
|
#else
|
|
|
|
|
strTitle.Format(_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD>˷<EFBFBD><CBB7><EFBFBD>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<>˿<EFBFBD>)"),DEFAULT_SERVERPORT );
|
|
|
|
|
#endif
|
|
|
|
|
m_S_S2.SetWindowText(strTitle);
|
|
|
|
|
|
|
|
|
|
UpdateData(false);
|
|
|
|
|
if ( lUserSel>=0 )
|
|
|
|
|
m_L_User.SetCurSel(lUserSel);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OnLoginSetup();
|
|
|
|
|
OnLoginUseproxy();
|
|
|
|
|
|
|
|
|
|
SetTimer(10 , 50 , NULL );
|
|
|
|
|
//GetDlgItem(IDC_LOGIN_PASSWD)->SetFocus();
|
|
|
|
|
|
|
|
|
|
SetTimer(20 , 100 , NULL );
|
|
|
|
|
|
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
|
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DLG_Login::OnLoginUseproxy()
|
|
|
|
|
{
|
|
|
|
|
UpdateData(true);
|
|
|
|
|
|
|
|
|
|
if ( m_bProxyUse )
|
|
|
|
|
{
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYTYPE)->EnableWindow(true);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYIP)->EnableWindow(true);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYPORT)->EnableWindow(true);
|
|
|
|
|
OnSelchangeLoginProxytype();
|
|
|
|
|
//GetDlgItem(IDC_LOGIN_PROXYUSER)->EnableWindow(true);
|
|
|
|
|
//GetDlgItem(IDC_LOGIN_PROXYPASSWD)->EnableWindow(true);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYTYPE)->EnableWindow(false);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYIP)->EnableWindow(false);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYPORT)->EnableWindow(false);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYUSER)->EnableWindow(false);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYPASSWD)->EnableWindow(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DLG_Login::OnSelchangeLoginProxytype()
|
|
|
|
|
{
|
|
|
|
|
UpdateData(true);
|
|
|
|
|
if ( m_iProxyType == 2 ||
|
|
|
|
|
m_iProxyType == 3 )
|
|
|
|
|
{
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYUSER)->EnableWindow(true);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYPASSWD)->EnableWindow(true);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYUSER)->EnableWindow(false);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYPASSWD)->EnableWindow(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL DLG_Login::GetPara()
|
|
|
|
|
{
|
|
|
|
|
UpdateData(true);
|
|
|
|
|
|
|
|
|
|
if ( m_strCorpID == _T("") )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD><EFBFBD>ҵID<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>գ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!") ,_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_CORPID)->SetFocus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( m_strUser == _T("") )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD><EFBFBD>¼<EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʋ<EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>գ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!") ,_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_USER)->SetFocus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( m_strIP == _T("") )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD>벻<EFBFBD><EFBFBD>Ϊ<EFBFBD>գ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!") ,_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_IP)->SetFocus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( m_bProxyUse )
|
|
|
|
|
{
|
|
|
|
|
if ( m_strProxyIP == _T("") )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD>벻<EFBFBD><EFBFBD>Ϊ<EFBFBD>գ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!") ,_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYIP)->SetFocus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
long lPort = _ttol( m_strProxyPort );
|
|
|
|
|
if ( lPort<=0 || lPort >= 65535 )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!") ,_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING);
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PROXYPORT)->SetFocus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//ȡ<><C8A1><EFBFBD>û<EFBFBD><C3BB><EFBFBD>Ϣ
|
|
|
|
|
m_User.lCorpID = _ttol( m_strCorpID );
|
|
|
|
|
_tcscpy( m_User.szUser , m_strUser );
|
|
|
|
|
_tcscpy( m_User.szPasswd , m_strPasswd );
|
|
|
|
|
|
|
|
|
|
//ȡ<><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
_tcscpy( m_Setup.szIP , m_strIP );
|
|
|
|
|
m_Setup.bGateWay = m_bGateWay;
|
|
|
|
|
m_Setup.bProxyUse = m_bProxyUse;
|
|
|
|
|
m_Setup.lProxyType= m_iProxyType;
|
|
|
|
|
_tcscpy( m_Setup.szProxyIP , m_strProxyIP );
|
|
|
|
|
m_Setup.lProxyPort = _ttol( m_strProxyPort);
|
|
|
|
|
_tcscpy( m_Setup.szProxyUser , m_strProxyUser );
|
|
|
|
|
_tcscpy( m_Setup.szProxyPasswd , m_strProxyPasswd );
|
|
|
|
|
|
|
|
|
|
//ȡ<><C8A1><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
m_Setup.bSQLUse = m_bSQLUse;
|
|
|
|
|
_tcscpy(m_Setup.szSQLIP , m_strSQLIP);
|
|
|
|
|
_tcscpy(m_Setup.szSQLDB , m_strSQLDB);
|
|
|
|
|
_tcscpy(m_Setup.szSQLUser,m_strSQLUser);
|
|
|
|
|
_tcscpy(m_Setup.szSQLPasswd,m_strSQLPasswd);
|
|
|
|
|
m_Setup.bSaveLoginPasswd = m_bSaveLoginPasswd;
|
|
|
|
|
|
|
|
|
|
#ifndef YQ_VER_SQL
|
|
|
|
|
m_Setup.bSQLUse = false; //<2F><>ʹ<EFBFBD><CAB9>SQL<51><4C><EFBFBD>ݿ<EFBFBD>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-11 17:19:25 +08:00
|
|
|
|
LONG_PTR DLG_Login::ProcessSocket_Error( WPARAM wParam , LPARAM lParam )
|
2025-02-27 16:58:16 +08:00
|
|
|
|
{
|
|
|
|
|
KillTimer(1); //ɱ<><C9B1><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
|
|
|
|
this->EndWaitCursor();
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD>Ӷ<EFBFBD><D3B6>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>!"));
|
|
|
|
|
#else
|
|
|
|
|
#ifdef SMSCENTER_ADC
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ƶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD>Ӷ<EFBFBD><D3B6>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>!"));
|
|
|
|
|
#else
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD>Ӷ<EFBFBD><D3B6>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>!"));
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
m_lLoginCount ++;
|
|
|
|
|
if ( m_lLoginCount >= 10 )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD><EFBFBD><EFBFBD>Ӷ<EFBFBD><EFBFBD>ŷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!") , _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>") , MB_ICONWARNING );
|
|
|
|
|
return 0 ;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SetTimer(2 , 3000 , NULL ); //3<><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2025-04-11 17:19:25 +08:00
|
|
|
|
LONG_PTR DLG_Login::ProcessSocket_Frame( WPARAM wParam , LPARAM lParam )
|
2025-02-27 16:58:16 +08:00
|
|
|
|
{
|
|
|
|
|
KillTimer(1); //ɱ<><C9B1><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
|
|
|
|
BOOL bOK = false;
|
|
|
|
|
Socket_Head * pHead = (Socket_Head *)wParam;
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_LOGIN ) //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD>ܺ<EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
m_strLoginIP = m_Setup.szIP;
|
|
|
|
|
if ( m_strIP == DEFAULT_AUTO_SERVER )
|
|
|
|
|
{
|
|
|
|
|
_tcscpy(m_Setup.szIP , DEFAULT_AUTO_SERVER); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>¼<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD>¼<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD>Ĭ<EFBFBD><C4AC>ʹ<EFBFBD><CAB9>"AUTO"
|
|
|
|
|
}
|
|
|
|
|
ANS_Login * pLogin = (ANS_Login *)pHead->pFrame;
|
|
|
|
|
m_Ans_Login = *pLogin;
|
|
|
|
|
if ( pLogin->ucState == SMS_LOGIN_OK )
|
|
|
|
|
{
|
|
|
|
|
m_lUserID = pLogin->lUserID;
|
|
|
|
|
m_ulPurviewType = pLogin->ulPurviewType;
|
|
|
|
|
m_ulPurview = pLogin->ulPurview;
|
|
|
|
|
m_pSocket->SetUserID( m_lUserID );
|
|
|
|
|
m_Setup.bSDK = pLogin->bSDK; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>SDK<44><4B><EFBFBD><EFBFBD>
|
|
|
|
|
//MessageBox( pLogin->szMsg , _T("<22>ɹ<EFBFBD>") );
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><>¼<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD>...") );
|
|
|
|
|
#else
|
|
|
|
|
#ifdef SMSCENTER_ADC
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ƶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><>¼<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD>...") );
|
|
|
|
|
#else
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><>¼<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD>...") );
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
//<2F>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7><EFBFBD>Login2<6E><32><EFBFBD><EFBFBD>
|
|
|
|
|
//if ( pHead->lFrameLen == sizeof(m_Ans_Login)+sizeof(m_Ans_Login2) )
|
|
|
|
|
if ( pHead->lFrameLen > sizeof(m_Ans_Login) )
|
|
|
|
|
{
|
|
|
|
|
//memcpy(&m_Ans_Login2 , pHead->pFrame+sizeof(m_Ans_Login) , sizeof(m_Ans_Login2) );
|
|
|
|
|
long lCopyLen = sizeof(m_Ans_Login2);
|
|
|
|
|
if ( lCopyLen > pHead->lFrameLen-sizeof(m_Ans_Login) )
|
|
|
|
|
{
|
|
|
|
|
lCopyLen = pHead->lFrameLen-sizeof(m_Ans_Login);
|
|
|
|
|
}
|
|
|
|
|
memcpy(&m_Ans_Login2 , pHead->pFrame+sizeof(m_Ans_Login) , lCopyLen );
|
|
|
|
|
if ( m_Ans_Login2.lMaxSmsLen >=30 && m_Ans_Login2.lMaxSmsLen<= MSG_MAXSENDLEN)
|
|
|
|
|
{
|
|
|
|
|
m_bAnsLogin2 = true;
|
|
|
|
|
#ifdef _UNICODE
|
|
|
|
|
m_pSocket->SetCompressType( m_Ans_Login2.lCompressType );
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
bOK = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MessageBox( pLogin->szMsg , _T("<EFBFBD><EFBFBD>¼ʧ<EFBFBD><EFBFBD>") ,MB_ICONEXCLAMATION );
|
|
|
|
|
}
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨") );
|
|
|
|
|
#else
|
|
|
|
|
#ifdef SMSCENTER_ADC
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ƶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨") );
|
|
|
|
|
#else
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨") );
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef SMSCENTER_DGSB
|
|
|
|
|
this->SetWindowText(_T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨"));
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
delete pHead->pFrame;
|
|
|
|
|
delete pHead;
|
|
|
|
|
if (bOK) //<2F><>¼<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD>ر<EFBFBD>Dialog
|
|
|
|
|
{
|
|
|
|
|
CDialog::OnOK();
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-04-11 17:19:25 +08:00
|
|
|
|
void DLG_Login::OnTimer(UINT_PTR nIDEvent)
|
2025-02-27 16:58:16 +08:00
|
|
|
|
{
|
|
|
|
|
CDialog::OnTimer(nIDEvent);
|
|
|
|
|
|
|
|
|
|
if ( nIDEvent == 10 )
|
|
|
|
|
{
|
|
|
|
|
KillTimer(nIDEvent); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>뽹<EFBFBD>㡣
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD)->SetFocus();
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
if ( nIDEvent == 20 )
|
|
|
|
|
{
|
|
|
|
|
KillTimer(nIDEvent);
|
|
|
|
|
CWnd * pWnd=(CWnd*)this->GetParent();
|
|
|
|
|
if ( pWnd )
|
|
|
|
|
{
|
|
|
|
|
pWnd->SetForegroundWindow();
|
|
|
|
|
pWnd->SetFocus();
|
|
|
|
|
}
|
|
|
|
|
this->SetForegroundWindow();
|
|
|
|
|
this->SetFocus();
|
|
|
|
|
GetDlgItem(IDC_LOGIN_PASSWD)->SetFocus(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>뽹<EFBFBD>㡣
|
|
|
|
|
if ( m_bShowLogo )
|
|
|
|
|
{
|
|
|
|
|
m_B_Logo.DrawTransparent(true);
|
|
|
|
|
GetDlgItem(IDC_LOGO)->ShowWindow(SW_SHOW);
|
|
|
|
|
}
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
if ( nIDEvent == 1 )
|
|
|
|
|
{
|
|
|
|
|
KillTimer(1); //<2F><>¼<EFBFBD><C2BC>ʱ<EFBFBD><CAB1>
|
|
|
|
|
this->EndWaitCursor();
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><>¼<EFBFBD><C2BC><EFBFBD>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ!"));
|
|
|
|
|
#else
|
|
|
|
|
#ifdef SMSCENTER_ADC
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ƶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><>¼<EFBFBD><C2BC><EFBFBD>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ!"));
|
|
|
|
|
#else
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><>¼<EFBFBD><C2BC><EFBFBD>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ!"));
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
m_lLoginCount ++;
|
|
|
|
|
if ( m_lLoginCount >= 13 )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>ŷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!") , _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>") , MB_ICONWARNING );
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SetTimer(2 , 3000 , NULL ); //3<><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
if ( nIDEvent == 2 ) //<2F><>¼Timer
|
|
|
|
|
{
|
|
|
|
|
KillTimer(2);
|
|
|
|
|
this->BeginWaitCursor();
|
|
|
|
|
m_pSocket->SetParent( this );
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...") );
|
|
|
|
|
#else
|
|
|
|
|
#ifdef SMSCENTER_ADC
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ƶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...") );
|
|
|
|
|
#else
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...") );
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
/*
|
|
|
|
|
//<2F>任<EFBFBD><E4BBBB>һ<EFBFBD><D2BB>ʽ<EFBFBD><CABD>¼
|
|
|
|
|
if ( m_lLoginCount > 0 )
|
|
|
|
|
m_Setup.bGateWay = m_lLoginCount%2;
|
|
|
|
|
*/
|
|
|
|
|
CString IP1 = DEFAULT_ONE_SERVER;
|
|
|
|
|
CString IP2 = DEFAULT_ONE_SERVER2;
|
|
|
|
|
CString IP3 = DEFAULT_ONE_SERVER3;
|
|
|
|
|
CString IP4 = DEFAULT_ONE_SERVER4;
|
|
|
|
|
if ( m_User.lCorpID>=200000 && m_User.lCorpID<300000 )
|
|
|
|
|
{
|
|
|
|
|
IP1 = DEFAULT_TWO_SERVER;
|
|
|
|
|
IP2 = DEFAULT_TWO_SERVER2;
|
|
|
|
|
IP3 = DEFAULT_TWO_SERVER3;
|
|
|
|
|
IP4 = DEFAULT_TWO_SERVER4;
|
|
|
|
|
}
|
|
|
|
|
if ( m_User.lCorpID>=300000 && m_User.lCorpID<400000 )
|
|
|
|
|
{
|
|
|
|
|
IP1 = DEFAULT_THREE_SERVER;
|
|
|
|
|
IP2 = DEFAULT_THREE_SERVER2;
|
|
|
|
|
IP3 = DEFAULT_THREE_SERVER3;
|
|
|
|
|
IP4 = DEFAULT_THREE_SERVER4;
|
|
|
|
|
}
|
|
|
|
|
if ( m_strIP == DEFAULT_AUTO_SERVER )
|
|
|
|
|
{
|
|
|
|
|
//#ifdef MOBSET_OEM
|
|
|
|
|
// _tcscpy(m_Setup.szIP , IP2 );
|
|
|
|
|
//#else
|
|
|
|
|
_tcscpy(m_Setup.szIP , IP1 );
|
|
|
|
|
//#endif
|
|
|
|
|
}
|
|
|
|
|
long lLoginCountAdd=0;
|
|
|
|
|
if ( m_lLoginCount>=(2+lLoginCountAdd) && _tcslen(m_Setup.szBIP1)>8 )
|
|
|
|
|
{
|
|
|
|
|
_tcscpy(m_Setup.szIP , m_Setup.szBIP1 );
|
|
|
|
|
lLoginCountAdd += 2;
|
|
|
|
|
}
|
|
|
|
|
if ( m_lLoginCount>=(2+lLoginCountAdd) && _tcslen(m_Setup.szBIP2)>8 )
|
|
|
|
|
{
|
|
|
|
|
_tcscpy(m_Setup.szIP , m_Setup.szBIP2 );
|
|
|
|
|
lLoginCountAdd += 2;
|
|
|
|
|
}
|
|
|
|
|
//<2F><>¼<EFBFBD><C2BC><EFBFBD>ˣ<EFBFBD><CBA3>Զ<EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD>¼
|
|
|
|
|
//#ifdef MOBSET_OEM
|
|
|
|
|
// if ( m_lLoginCount >=(2+lLoginCountAdd) )
|
|
|
|
|
// _tcscpy(m_Setup.szIP , IP2 );
|
|
|
|
|
// if ( m_lLoginCount >=(4+lLoginCountAdd) )
|
|
|
|
|
// _tcscpy(m_Setup.szIP , IP3 );
|
|
|
|
|
// if ( m_lLoginCount>= (6+lLoginCountAdd) )
|
|
|
|
|
// m_lLoginCount = 0;
|
|
|
|
|
//#else
|
|
|
|
|
//if ( m_lLoginCount >=(2+lLoginCountAdd) )
|
|
|
|
|
// _tcscpy(m_Setup.szIP , IP1 );
|
|
|
|
|
if ( m_lLoginCount >=(2+lLoginCountAdd) )
|
|
|
|
|
_tcscpy(m_Setup.szIP , IP2 );
|
|
|
|
|
if ( m_lLoginCount >=(4+lLoginCountAdd) )
|
|
|
|
|
_tcscpy(m_Setup.szIP , IP3 );
|
|
|
|
|
if ( m_lLoginCount >=(6+lLoginCountAdd) )
|
|
|
|
|
_tcscpy(m_Setup.szIP , IP4 );
|
|
|
|
|
if ( m_lLoginCount>= (8+lLoginCountAdd) )
|
|
|
|
|
m_lLoginCount = 0;
|
|
|
|
|
//#endif
|
|
|
|
|
/*
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
|
m_Setup.bGateWay = false;
|
|
|
|
|
#endif
|
|
|
|
|
*/
|
|
|
|
|
BOOL bRet = m_pSocket->ConnectToServer( m_Setup , true );
|
|
|
|
|
if ( !bRet )
|
|
|
|
|
{
|
|
|
|
|
this->EndWaitCursor();
|
|
|
|
|
#ifdef MOBSET_OEM
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD>Ӷ<EFBFBD><D3B6>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>!"));
|
|
|
|
|
#else
|
|
|
|
|
#ifdef SMSCENTER_ADC
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><EFBFBD>ƶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD>Ӷ<EFBFBD><D3B6>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>!"));
|
|
|
|
|
#else
|
|
|
|
|
this->SetWindowText( _T("<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ̨ <20><><EFBFBD>Ӷ<EFBFBD><D3B6>ŷ<EFBFBD><C5B7><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>!"));
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
m_lLoginCount ++;
|
|
|
|
|
if ( m_lLoginCount >= 13 )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD><EFBFBD><EFBFBD>Ӷ<EFBFBD><EFBFBD>ŷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!") , _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>") , MB_ICONWARNING );
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SetTimer(2 , 3000 , NULL ); //3<><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
REQ_Login * pLogin = new REQ_Login;
|
|
|
|
|
memset( pLogin , 0 , sizeof(REQ_Login) );
|
|
|
|
|
pLogin->ucUserType = LOGINTYPE_USER;
|
|
|
|
|
pLogin->lCorpVer = MAKELPARAM(CORPSMS_VER,CORPSMS_VER2);//<2F><><EFBFBD><EFBFBD><EFBFBD>汾
|
|
|
|
|
pLogin->lCorpID = m_User.lCorpID;
|
|
|
|
|
#ifdef MOBSET_CARD_VER
|
|
|
|
|
pLogin->lCorpID = CARD_CORPID;
|
|
|
|
|
#endif
|
|
|
|
|
_tcscpy( pLogin->szUserName , m_User.szUser );
|
|
|
|
|
CDes des;
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
|
char szPasswd[64]={0};
|
|
|
|
|
char szPasswd2[64]={0};
|
|
|
|
|
char szUser[64]={0};
|
|
|
|
|
strcpy( szPasswd , CW2A(m_User.szPasswd) );
|
|
|
|
|
strcpy( szUser , CW2A(pLogin->szUserName ) );
|
|
|
|
|
long lLen=sizeof(szPasswd2);
|
|
|
|
|
des.Encrypt( szPasswd , strlen(szPasswd) , szPasswd2 , lLen , szUser , 8 );
|
|
|
|
|
_tcscpy(pLogin->szPasswd,CA2W(szPasswd2));
|
|
|
|
|
#else
|
|
|
|
|
long lLen=sizeof(pLogin->szPasswd);
|
|
|
|
|
des.Encrypt( m_User.szPasswd , _tcslen(m_User.szPasswd) , pLogin->szPasswd , lLen , pLogin->szUserName , 8 );
|
|
|
|
|
#endif
|
|
|
|
|
m_strPasswdEnc = pLogin->szPasswd; //<2F><>¼<EFBFBD><C2BC><EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
#if defined(MOBSET_OEM) && defined(MOBSET_OEM_AGENTNAME)
|
|
|
|
|
_tcscpy( pLogin->szOEMName , MOBSET_OEM_AGENTNAME+4);
|
|
|
|
|
#endif
|
|
|
|
|
m_pSocket->SendFrame( SMSFUNC_LOGIN , (BYTE*)pLogin , sizeof(REQ_Login) );
|
|
|
|
|
SetTimer( 1 , 10*1000 , NULL ); //<2F><>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>,15<31><35><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD>ϻ<EFBFBD>һ<EFBFBD><D2BB>IP
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void DLG_Login::OnCbnSelchangeLoginUser()
|
|
|
|
|
{
|
|
|
|
|
((CEdit *)GetDlgItem(IDC_LOGIN_PASSWD))->SetWindowText(_T(""));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DLG_Login::OnStnClickedLoginReg()
|
|
|
|
|
{
|
|
|
|
|
// TODO: <20>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD>ӿؼ<D3BF>֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
}
|