// 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: 在此添加控件通知处理程序代码 }