CorpSms/DLG_Login.cpp

1426 lines
44 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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; //ûÓÐLogin2·µ»Ø
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 ); //怬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("ÉèÖÃ <<") );
}
else
{
rectwnd.bottom = rectS1.bottom+=15;
this->MoveWindow( rectwnd );
m_wndSetup.SetWindowText( _T("ÉèÖÃ >>") );
}
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; //ĬÈϲ»ÏÔʾ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("怬"));
#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; //ĬÈϲ»ÏÔʾLogo
//ÏòÏÂÒÆ¶¯Ð¡Ð¡
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; //²»Ê¹ÓÃSQLÊý¾Ý¿â
#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 ) //ûÓÐÈ¡µÃ×îºóµÄ,È¡µÚÒ»¸ö×öΪĬÈÏ
{
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("ÕÊ ºÅ");
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("µÇ¼µ½ÖйúÒÆ¶¯ADC¶ÌÐÅÒׯ½Ì¨");
GetDlgItem(IDC_LOGIN_REG)->ShowWindow(SW_HIDE);
#endif
#ifdef SMSCENTER_DGSB
SetWindowText(_T("µÇ¼µ½¶«Ý¸ÈËÉç¶ÌÐÅÆ½Ì¨"));
#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("µÇ¼µ½ADC¶ÌÐÅÆ½Ì¨");
#else
SetWindowText(_T("µÇ¼µ½¶ÌÐÅÆ½Ì¨"));
#endif
#ifdef MOBSET_OEM
//Ôö³¤µç»°Ò»À¸
CRect rect2;
m_S_KF.GetWindowRect(&rect2);
rect2.right+= 100;
this->ScreenToClient(&rect2);
m_S_KF.MoveWindow(&rect2);
#endif
#ifdef MOBSET_OEM_AUYOU //ÐèÒªÏÔʾע²áÍøÖ·
GetDlgItem(IDC_LOGIN_REG)->ShowWindow(SW_SHOW);
m_S_Reg.SetLinkText( "http://www.mobset.com/try.htm" );
#endif
#ifdef MOBSET_OEM_TYF //ÐèÒªÏÔʾע²áÍøÖ·
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( "¿Í·þ:400-700-8128" );
#endif
#ifdef MOBSET_OEM_TYF_ZXT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:400-700-8128" );
#endif
#ifdef MOBSET_OEM_TYF_FG
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-61132932") );
#endif
#ifdef MOBSET_OEM_TYF_LLL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:020-31573661" );
#endif
#ifdef MOBSET_OEM_SHQX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0898-66666116" );
#endif
#ifdef MOBSET_OEM_JHXXG
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0579-2399990" );
#endif
#ifdef MOBSET_OEM_SDRW
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:13119891616" );
#endif
#ifdef MOBSET_OEM_1798
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0577-62376586" );
#endif
#ifdef MOBSET_OEM_XADFSJ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:029-88135528" );
#endif
#ifdef MOBSET_OEM_SDHL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0532-85789999-8001" );
#endif
#ifdef MOBSET_OEM_QZXXG
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0570-3032123" );
#endif
#ifdef MOBSET_OEM_DGCW
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0769-22302285" );
#endif
#ifdef MOBSET_OEM_SZSJHL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0755-61279925" );
#endif
#ifdef MOBSET_OEM_WHDB
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:027-86812779" );
#endif
#ifdef MOBSET_OEM_WHLW
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:027-82831088") );
#endif
#ifdef MOBSET_OEM_JMYD
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0750-3391118 3081118" );
#endif
#ifdef MOBSET_OEM_NJBG
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:02583692298") );
#endif
#ifdef MOBSET_OEM_NJHW
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:025-51913318" );
#endif
#ifdef MOBSET_OEM_LZBX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0931-2183370" );
#endif
#ifdef MOBSET_OEM_NXBX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:15909530953,QQ:418544854" );
#endif
#ifdef MOBSET_OEM_BJMCT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:4006121828") );
#endif
#ifdef MOBSET_OEM_SZYF
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:0755-83144250" );
#endif
#ifdef MOBSET_OEM_NJJML
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( "¿Í·þ:025-66613777" );
#endif
#ifdef MOBSET_OEM_WHFS
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:027-87538974") );
#endif
#ifdef MOBSET_OEM_TYJY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:13327408080") );
#endif
#ifdef MOBSET_OEM_SHWZ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0571-82866635") );
#endif
#ifdef MOBSET_OEM_AHXT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:13956964397") );
#endif
#ifdef MOBSET_OEM_GZHK
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-38844969") );
#endif
#ifdef MOBSET_OEM_SZZL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0512-85187338") );
#endif
#ifdef MOBSET_OEM_CDWL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:028-68226168") );
#endif
#ifdef MOBSET_OEM_CQYC
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:023-68516612") );
#endif
#ifdef MOBSET_OEM_SZYY
// GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
// m_S_KF.SetWindowText( _T("¿Í·þ:0755-26100241 26410044") );
#endif
#ifdef MOBSET_OEM_YCZW
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0951-6031208") );
#endif
#ifdef MOBSET_OEM_SZBC
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0755-26403703") );
#endif
#ifdef MOBSET_OEM_YHWL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0311-85101100") );
#endif
#ifdef MOBSET_OEM_NJFB
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:025-86566121") );
#endif
#ifdef MOBSET_OEM_HYBL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0762-3297969") );
#endif
#ifdef MOBSET_OEM_GDLL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:13829666281,0754-8845889") );
#endif
#ifdef MOBSET_OEM_HEBXLT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0451-82352018") );
#endif
#ifdef MOBSET_OEM_SZJXM
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0311-86169660") );
#endif
#ifdef MOBSET_OEM_DGKST
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0769-22472514") );
#endif
#ifdef MOBSET_OEM_SZSDW
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0512-52239835") );
#endif
#ifdef MOBSET_OEM_SZUU
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0512-68057325") );
#endif
#ifdef MOBSET_OEM_SJZZR
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:13582112183") );
#endif
#ifdef MOBSET_OEM_KMSR
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0871-6306155") );
#endif
#ifdef MOBSET_OEM_NJYS
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:13851725798") );
#endif
#ifdef MOBSET_OEM_CQZX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:13101342337") );
#endif
#ifdef MOBSET_OEM_SYBY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:024-88689222") );
#endif
#ifdef MOBSET_OEM_SHXH
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:13971396119") );
#endif
#ifdef MOBSET_OEM_HZDS
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0572-7226025") );
#endif
#ifdef MOBSET_OEM_GZJZ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-38319299") );
#endif
#ifdef MOBSET_OEM_SUNPO
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-61139319") );
#endif
#ifdef MOBSET_OEM_FSFB
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0757-22228048-801") );
#endif
#ifdef MOBSET_OEM_TYHSY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0351-7235278") );
#endif
#ifdef MOBSET_OEM_CSJX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0731-5115860") );
#endif
#ifdef MOBSET_OEM_ZHYX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ: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("¿Í·þ:020-89501528") );
#endif
#ifdef MOBSET_OEM_YWKC
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0579-85580667") );
#endif
#ifdef MOBSET_OEM_HKLC
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0898-66193825") );
#endif
#ifdef MOBSET_OEM_WLMQYMK
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0991-2333613") );
#endif
#ifdef MOBSET_OEM_CSCL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0731-2120671") );
#endif
#ifdef MOBSET_OEM_GZYZ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-85801211") );
#endif
#ifdef MOBSET_OEM_PXAYZX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0799-6222678") );
#endif
#ifdef MOBSET_OEM_JMSB
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0750-3062388") );
#endif
#ifdef MOBSET_OEM_DLYQL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:4006041186/0411-39631886") );
#endif
#ifdef MOBSET_OEM_GZSY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-61131881") );
#endif
#ifdef MOBSET_OEM_KMWH
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0871-5107288 5107388") );
#endif
#ifdef MOBSET_OEM_DGJN
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0769-22907868-813") );
#endif
#ifdef MOBSET_OEM_SZZS
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0755-83563712") );
#endif
#ifdef MOBSET_OEM_NJTD
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:025-83197813") );
#endif
#ifdef MOBSET_OEM_SGLX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0751-8888890") );
#endif
#ifdef MOBSET_OEM_FSYX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0757-83888328") );
#endif
#ifdef MOBSET_OEM_SYTC
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:024-62144368") );
#endif
#ifdef MOBSET_OEM_LSLT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0578-2500250") );
#endif
#ifdef MOBSET_OEM_CQZB
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:023-68436531") );
#endif
#ifdef MOBSET_OEM_SZLR
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0755-26423520") );
#endif
#ifdef MOBSET_OEM_KMRX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0871-6225500") );
#endif
#ifdef MOBSET_OEM_HFXBM
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:13365511283 0551-4493059") );
#endif
#ifdef MOBSET_OEM_KMJR
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0871-8252769") );
#endif
#ifdef MOBSET_OEM_FSRRX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0757-83300114") );
#endif
#ifdef MOBSET_OEM_HEBWLY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0451-87526863") );
#endif
#ifdef MOBSET_OEM_GZTJ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-62983072") );
#endif
#ifdef MOBSET_OEM_WHBS
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:027-59229855") );
#endif
#ifdef MOBSET_OEM_SZCGWX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0755-86250805") );
#endif
#ifdef MOBSET_OEM_FSSL
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0757-83630806") );
#endif
#ifdef MOBSET_OEM_CSXN
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0731-6620270") );
#endif
#ifdef MOBSET_OEM_GSYLX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:(0931)8878876") );
#endif
#ifdef MOBSET_OEM_GZXY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-87587611") );
#endif
#ifdef MOBSET_OEM_ZYTX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:024-31589888") );
#endif
#ifdef MOBSET_OEM_DLXS
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:18941110310") );
#endif
#ifdef MOBSET_OEM_DGSM
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0769-22882728") );
#endif
#ifdef MOBSET_OEM_GZRZX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:020-86359890") );
#endif
#ifdef MOBSET_OEM_ZHOK
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ: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("¿Í·þ:020-34320358") );
#endif
#ifdef MOBSET_OEM_ZHST
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ: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("¿Í·þ:0411-84798702") );
#endif
#ifdef MOBSET_OEM_GZJT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:4006786896") );
#endif
#ifdef MOBSET_OEM_BJJSY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:010-51668284") );
#endif
#ifdef MOBSET_OEM_AHLY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:0562-2169888") );
#endif
#ifdef MOBSET_OEM_ZJLT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:18675998750") );
#endif
#ifdef MOBSET_OEM_SHSS
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:400 000 5057") );
#endif
#ifdef MOBSET_OEM_SHSS //ÐèÒªÏÔʾע²áÍøÖ·
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("¿Í·þ:020-83587213") );
#endif
#ifdef MOBSET_OEM_ZQLT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ:10010") );
#endif
#ifdef MOBSET_OEM_CCKD
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þQQ£º1318609359") );
#endif
#ifdef MOBSET_OEM_SZSHJ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º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("¿Í·þ£º18858196653") );
#endif
#ifdef MOBSET_OEM_HZYJD
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º13829969926") );
#endif
#ifdef MOBSET_OEM_GZHH
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º020-87275610") );
#endif
#ifdef MOBSET_OEM_GZNX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º020-87549986") );
#endif
#ifdef MOBSET_OEM_HYLT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º18676060300") );
#endif
#ifdef MOBSET_OEM_SZZBW
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º0755-82807556") );
#endif
#ifdef MOBSET_OEM_TJTH
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º022-60393585") );
#endif
#ifdef MOBSET_OEM_NJTDJSJ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º025-84615070") );
#endif
#ifdef MOBSET_OEM_LZYLX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º0931-8484415") );
#endif
#ifdef MOBSET_OEM_MMDX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º0668-2993785") );
#endif
#ifdef MOBSET_OEM_GDDX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º100000") );
#endif
#ifdef MOBSET_OEM_GZXY
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º400-637-1771") );
#endif
#ifdef MOBSET_OEM_LHSK
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º4001686466") );
#endif
#ifdef MOBSET_OEM_ZYWD
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º15915900079") );
#endif
#ifdef MOBSET_OEM_GZJYKX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º13682295850") );
#endif
#ifdef MOBSET_OEM_ZHJB
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("ͳһ¿Í·þµç»°4006865596") );
#endif
#ifdef MOBSET_OEM_PYAJJZ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º0939-8189911") );
#endif
#ifdef MOBSET_OEM_TJJJ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º18222042453") );
#endif
#ifdef MOBSET_OEM_LWXX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º4006-628-727") );
#endif
#ifdef MOBSET_OEM_NJYC
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º400-8558-945") );
#endif
#ifdef MOBSET_OEM_SHHWT
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º40080-10086") );
#endif
#ifdef MOBSET_OEM_XMKJ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º0592-2208990") );
#endif
#ifdef MOBSET_OEM_GZHFXX
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º020-85239335") );
#endif
#ifdef MOBSET_OEM_DYDFKJ
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º0579-86375619") );
#endif
#ifdef MOBSET_OEM_QXKD
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º4001112829") );
#endif
#ifdef MOBSET_OEM_DGKF
GetDlgItem(IDC_LOGIN_KF)->ShowWindow(SW_SHOW);
m_S_KF.SetWindowText( _T("¿Í·þ£º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("¿Í·þÈÈÏߣº13387606916"));
#endif
#endif
if ( m_strMasTitle.GetLength()>0 )
{
SetWindowText( CString(_T("µÇ¼µ½"))+m_strMasTitle);
}
CString strTitle;
#ifdef UNICODE
//GetDlgItem(IDC_LOGIN_GATEWAY)->ShowWindow(SW_HIDE);
strTitle.Format(_T("ÍøÂçÉèÖÃ(Èç¹ûʹÓÃÁË·À»ðǽ£¬Çë´ò¿ª%d¶Ë¿Ú)"),DEFAULT_SERVERPORT_UNI );
#else
strTitle.Format(_T("ÍøÂçÉèÖÃ(Èç¹ûʹÓÃÁË·À»ðǽ£¬Çë´ò¿ª%d¶Ë¿Ú)"),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("ÆóÒµID²»ÄÜΪ¿Õ£¬ÇëÊäÈë!") ,_T("´íÎó"),MB_ICONWARNING);
GetDlgItem(IDC_LOGIN_CORPID)->SetFocus();
return false;
}
if ( m_strUser == _T("") )
{
MessageBox( _T("µÇ¼Óû§Ãû³Æ²»ÄÜΪ¿Õ£¬ÇëÊäÈë!") ,_T("´íÎó"),MB_ICONWARNING);
GetDlgItem(IDC_LOGIN_USER)->SetFocus();
return false;
}
if ( m_strIP == _T("") )
{
MessageBox( _T("·þÎñÆ÷µØÖ·ÊäÈë²»ÄÜΪ¿Õ£¬ÇëÊäÈë!") ,_T("´íÎó"),MB_ICONWARNING);
GetDlgItem(IDC_LOGIN_IP)->SetFocus();
return false;
}
if ( m_bProxyUse )
{
if ( m_strProxyIP == _T("") )
{
MessageBox( _T("´úÀí·þÎñÆ÷µØÖ·ÊäÈë²»ÄÜΪ¿Õ£¬ÇëÊäÈë!") ,_T("´íÎó"),MB_ICONWARNING);
GetDlgItem(IDC_LOGIN_PROXYIP)->SetFocus();
return false;
}
long lPort = _ttol( m_strProxyPort );
if ( lPort<=0 || lPort >= 65535 )
{
MessageBox( _T("´úÀí·þÎñÆ÷¶Ë¿ÚÊäÈëÓÐÎó£¬ÇëÖØÊä!") ,_T("´íÎó"),MB_ICONWARNING);
GetDlgItem(IDC_LOGIN_PROXYPORT)->SetFocus();
return false;
}
}
//È¡µÃÓû§ÐÅÏ¢
m_User.lCorpID = _ttol( m_strCorpID );
_tcscpy( m_User.szUser , m_strUser );
_tcscpy( m_User.szPasswd , m_strPasswd );
//È¡µÃÍøÂçÐÅÏ¢
_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 );
//È¡Êý¾Ý¿âÁ¬½ÓÐÅÏ¢
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; //²»Ê¹ÓÃSQLÊý¾Ý¿â
#endif
return true;
}
LONG_PTR DLG_Login::ProcessSocket_Error( WPARAM wParam , LPARAM lParam )
{
KillTimer(1); //ɱµô³¬Ê±¼ì²â
this->EndWaitCursor();
#ifdef MOBSET_OEM
this->SetWindowText( _T("µÇ¼µ½¶ÌÐÅÆ½Ì¨ Á¬½Ó¶ÌÐÅ·þÎñÆ÷ʧ°Ü!"));
#else
#ifdef SMSCENTER_ADC
this->SetWindowText( _T("µÇ¼µ½ÖйúÒÆ¶¯¶ÌÐÅÒׯ½Ì¨ Á¬½Ó¶ÌÐÅ·þÎñÆ÷ʧ°Ü!"));
#else
this->SetWindowText( _T("µÇ¼µ½Ê×Ò×¶ÌÐÅÆ½Ì¨ Á¬½Ó¶ÌÐÅ·þÎñÆ÷ʧ°Ü!"));
#endif
#endif
m_lLoginCount ++;
if ( m_lLoginCount >= 10 )
{
MessageBox( _T("Á¬½Ó¶ÌÐÅ·þÎñÆ÷ʧ°Ü£¬Çë¼ì²éÍøÂçÁ¬½Ó!") , _T("´íÎó") , MB_ICONWARNING );
return 0 ;
}
else
{
SetTimer(2 , 3000 , NULL ); //3ÃëºóÖØÊÔ
}
return 0;
}
LONG_PTR DLG_Login::ProcessSocket_Frame( WPARAM wParam , LPARAM lParam )
{
KillTimer(1); //ɱµô³¬Ê±¼ì²â
BOOL bOK = false;
Socket_Head * pHead = (Socket_Head *)wParam;
if ( pHead->lFuncType == SMSFUNC_LOGIN ) //½ö´¦ÀíµÇ¼¹¦ÄܺÅ
{
m_strLoginIP = m_Setup.szIP;
if ( m_strIP == DEFAULT_AUTO_SERVER )
{
_tcscpy(m_Setup.szIP , DEFAULT_AUTO_SERVER); //Èç¹ûÊÇ×Ô¶¯µÇ¼µÄ£¬µÇ¼³É¹¦ºóĬÈÏʹÓÃ"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; //ÊÇ·ñ¾ßÓÐSDK¹¦ÄÜ
//MessageBox( pLogin->szMsg , _T("³É¹¦") );
#ifdef MOBSET_OEM
this->SetWindowText( _T("µÇ¼µ½¶ÌÐÅÆ½Ì¨ µÇ¼³É¹¦£¬ÕýÔÚ½øÈë...") );
#else
#ifdef SMSCENTER_ADC
this->SetWindowText( _T("µÇ¼µ½ÖйúÒÆ¶¯¶ÌÐÅÒׯ½Ì¨ µÇ¼³É¹¦£¬ÕýÔÚ½øÈë...") );
#else
this->SetWindowText( _T("µÇ¼µ½Ê×Ò×¶ÌÐÅÆ½Ì¨ µÇ¼³É¹¦£¬ÕýÔÚ½øÈë...") );
#endif
#endif
//ÅжÏÊÇ·ñÓÐLogin2·µ»Ø
//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("µÇ¼ʧ°Ü") ,MB_ICONEXCLAMATION );
}
#ifdef MOBSET_OEM
this->SetWindowText( _T("µÇ¼µ½¶ÌÐÅÆ½Ì¨") );
#else
#ifdef SMSCENTER_ADC
this->SetWindowText( _T("µÇ¼µ½ÖйúÒÆ¶¯¶ÌÐÅÒׯ½Ì¨") );
#else
this->SetWindowText( _T("µÇ¼µ½Ê×Ò×¶ÌÐÅÆ½Ì¨") );
#endif
#endif
#ifdef SMSCENTER_DGSB
this->SetWindowText(_T("µÇ¼µ½¶«Ý¸ÈËÉç¶ÌÐÅÆ½Ì¨"));
#endif
}
delete pHead->pFrame;
delete pHead;
if (bOK) //µÇ¼³É¹¦£¬¹Ø±ÕDialog
{
CDialog::OnOK();
}
return 0;
}
void DLG_Login::OnTimer(UINT_PTR nIDEvent)
{
CDialog::OnTimer(nIDEvent);
if ( nIDEvent == 10 )
{
KillTimer(nIDEvent); //ÉèÖÃÃÜÂëΪÊäÈë½¹µã¡£
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(); //ÉèÖÃÃÜÂëΪÊäÈë½¹µã¡£
if ( m_bShowLogo )
{
m_B_Logo.DrawTransparent(true);
GetDlgItem(IDC_LOGO)->ShowWindow(SW_SHOW);
}
return ;
}
if ( nIDEvent == 1 )
{
KillTimer(1); //µÇ¼³¬Ê±ÁË
this->EndWaitCursor();
#ifdef MOBSET_OEM
this->SetWindowText( _T("µÇ¼µ½¶ÌÐÅÆ½Ì¨ µÇ¼¶ÌÐÅ·þÎñÆ÷³¬Ê±!"));
#else
#ifdef SMSCENTER_ADC
this->SetWindowText( _T("µÇ¼µ½ÖйúÒÆ¶¯¶ÌÐÅÒׯ½Ì¨ µÇ¼¶ÌÐÅ·þÎñÆ÷³¬Ê±!"));
#else
this->SetWindowText( _T("µÇ¼µ½Ê×Ò×¶ÌÐÅÆ½Ì¨ µÇ¼¶ÌÐÅ·þÎñÆ÷³¬Ê±!"));
#endif
#endif
m_lLoginCount ++;
if ( m_lLoginCount >= 13 )
{
MessageBox( _T("µÇ¼¶ÌÐÅ·þÎñÆ÷³¬Ê±£¬Çë¼ì²éÍøÂçÁ¬½Ó!") , _T("´íÎó") , MB_ICONWARNING );
return ;
}
else
{
SetTimer(2 , 3000 , NULL ); //3ÃëºóÖØÊÔ
}
return ;
}
if ( nIDEvent == 2 ) //怬Timer
{
KillTimer(2);
this->BeginWaitCursor();
m_pSocket->SetParent( this );
#ifdef MOBSET_OEM
this->SetWindowText( _T("µÇ¼µ½¶ÌÐÅÆ½Ì¨ ÕýÔÚÁ¬½Ó...") );
#else
#ifdef SMSCENTER_ADC
this->SetWindowText( _T("µÇ¼µ½ÖйúÒÆ¶¯¶ÌÐÅÒׯ½Ì¨ ÕýÔÚÁ¬½Ó...") );
#else
this->SetWindowText( _T("µÇ¼µ½Ê×Ò×¶ÌÐÅÆ½Ì¨ ÕýÔÚÁ¬½Ó...") );
#endif
#endif
/*
//±ä»»ÁíÒ»·½Ê½µÇ¼
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;
}
//µÇ¼²»ÁË£¬×Ô¶¯×ªÆäËü·½Ê½µÇ¼
//#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("µÇ¼µ½¶ÌÐÅÆ½Ì¨ Á¬½Ó¶ÌÐÅ·þÎñÆ÷ʧ°Ü!"));
#else
#ifdef SMSCENTER_ADC
this->SetWindowText( _T("µÇ¼µ½ÖйúÒÆ¶¯¶ÌÐÅÒׯ½Ì¨ Á¬½Ó¶ÌÐÅ·þÎñÆ÷ʧ°Ü!"));
#else
this->SetWindowText( _T("µÇ¼µ½Ê×Ò×¶ÌÐÅÆ½Ì¨ Á¬½Ó¶ÌÐÅ·þÎñÆ÷ʧ°Ü!"));
#endif
#endif
m_lLoginCount ++;
if ( m_lLoginCount >= 13 )
{
MessageBox( _T("Á¬½Ó¶ÌÐÅ·þÎñÆ÷ʧ°Ü£¬Çë¼ì²éÍøÂçÁ¬½Ó!") , _T("´íÎó") , MB_ICONWARNING );
return ;
}
else
{
SetTimer(2 , 3000 , NULL ); //3ÃëºóÖØÊÔ
}
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);//Èí¼þ°æ±¾
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; //¼Ç¼¼ÓÃܺóµÄÃÜÂë
#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 ); //³¬Ê±¼ì²â,15ÃëºóµÇ¼²»ÉÏ»»Ò»¸öIP
}
return;
}
}
void DLG_Login::OnCbnSelchangeLoginUser()
{
((CEdit *)GetDlgItem(IDC_LOGIN_PASSWD))->SetWindowText(_T(""));
}
void DLG_Login::OnStnClickedLoginReg()
{
// TODO: ÔÚ´ËÌí¼Ó¿Ø¼þ֪ͨ´¦Àí³ÌÐò´úÂë
}