2025-01-14 10:46:18 +08:00
|
|
|
|
// OtherDlg.cpp : implementation file
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "smsmanager.h"
|
|
|
|
|
#include "OtherDlg.h"
|
|
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
|
#undef THIS_FILE
|
|
|
|
|
static char THIS_FILE[] = __FILE__;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// COtherDlg dialog
|
|
|
|
|
#include "MainFrm.h"
|
|
|
|
|
#include "ProcessSocket.h"
|
|
|
|
|
#include "DLG_Other_Add.h"
|
|
|
|
|
#include "DLG_Other_AutoSend.h"
|
|
|
|
|
|
|
|
|
|
COtherDlg::COtherDlg(CWnd* pParent /*=NULL*/)
|
|
|
|
|
: CDialog(COtherDlg::IDD, pParent)
|
|
|
|
|
{
|
|
|
|
|
//{{AFX_DATA_INIT(COtherDlg)
|
|
|
|
|
m_tBegin = COleDateTime::GetCurrentTime();
|
|
|
|
|
m_tEnd = COleDateTime::GetCurrentTime();
|
|
|
|
|
m_bOld = FALSE;
|
|
|
|
|
m_lCorp = -1;
|
|
|
|
|
m_strGDText = _T("");
|
|
|
|
|
m_strHTML = _T("");
|
|
|
|
|
m_lVerSel = -1;
|
|
|
|
|
m_lOverBegin = -1;
|
|
|
|
|
m_lOverEnd = -1;
|
|
|
|
|
m_bOverFilt = FALSE;
|
|
|
|
|
m_lOverPercent = -1;
|
|
|
|
|
m_strCorpWork = _T("");
|
|
|
|
|
m_tBegin2 = COleDateTime::GetCurrentTime();
|
|
|
|
|
m_tEnd2 = COleDateTime::GetCurrentTime();
|
|
|
|
|
//}}AFX_DATA_INIT
|
|
|
|
|
|
|
|
|
|
m_bInit = false;
|
|
|
|
|
m_bRefresh = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void COtherDlg::DoDataExchange(CDataExchange* pDX)
|
|
|
|
|
{
|
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
|
//{{AFX_DATA_MAP(COtherDlg)
|
|
|
|
|
DDX_Control(pDX, IDC_OTHER_CORPID, m_E_CorpID);
|
|
|
|
|
DDX_Control(pDX, IDC_OTHER_GIF2, m_B_Gif);
|
|
|
|
|
DDX_Control(pDX, IDC_OTHER_LIST, m_wndList);
|
|
|
|
|
DDX_Control(pDX, IDC_OTHER_MSG, m_E_Msg);
|
|
|
|
|
DDX_Control(pDX, IDC_OTHER_CORP, m_L_Corp);
|
|
|
|
|
DDX_DateTimeCtrl(pDX, IDC_OTHER_TBEGIN, m_tBegin);
|
|
|
|
|
DDX_DateTimeCtrl(pDX, IDC_OTHER_TEND, m_tEnd);
|
|
|
|
|
DDX_Check(pDX, IDC_OTHER_OLD, m_bOld);
|
|
|
|
|
DDX_CBIndex(pDX, IDC_OTHER_CORP, m_lCorp);
|
|
|
|
|
DDX_Text(pDX, IDC_OTHER_GDTEXT, m_strGDText);
|
|
|
|
|
DDV_MaxChars(pDX, m_strGDText, 4094);
|
|
|
|
|
DDX_Text(pDX, IDC_OTHER_HTML, m_strHTML);
|
|
|
|
|
DDV_MaxChars(pDX, m_strHTML, 60);
|
|
|
|
|
DDX_CBIndex(pDX, IDC_OTHER_VERSEL, m_lVerSel);
|
|
|
|
|
DDX_CBIndex(pDX, IDC_OVER_BEGIN, m_lOverBegin);
|
|
|
|
|
DDX_CBIndex(pDX, IDC_OVER_END, m_lOverEnd);
|
|
|
|
|
DDX_Check(pDX, IDC_OVER_FILT, m_bOverFilt);
|
|
|
|
|
DDX_CBIndex(pDX, IDC_OVER_PERCENT, m_lOverPercent);
|
|
|
|
|
DDX_Text(pDX, IDC_OTHER_CORPWORK, m_strCorpWork);
|
|
|
|
|
DDX_DateTimeCtrl(pDX, IDC_OTHER_TBEGIN2, m_tBegin2);
|
|
|
|
|
DDX_DateTimeCtrl(pDX, IDC_OTHER_TEND2, m_tEnd2);
|
|
|
|
|
//}}AFX_DATA_MAP
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(COtherDlg, CDialog)
|
|
|
|
|
//{{AFX_MSG_MAP(COtherDlg)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_QUERY, OnOtherQuery)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_QUERY2, OnOtherQuery2)
|
|
|
|
|
ON_BN_CLICKED(IDC_CORP_LXR_ADD, OnCorpLxrAdd)
|
|
|
|
|
ON_BN_CLICKED(IDC_CORP_LXR_MODIFY, OnCorpLxrModify)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_NUM_DEL, OnOtherNumDel)
|
|
|
|
|
ON_NOTIFY(NM_DBLCLK, IDC_OTHER_LIST, OnDblclkOtherList)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_TEXT, OnOtherText)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_GIF, OnOtherGif)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_REFRESH, OnOtherRefresh)
|
|
|
|
|
ON_BN_CLICKED(IDC_OVER_SETUP, OnOverSetup)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_QUERY3, OnOtherQuery3)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_AUTOSEND, OnOtherAutosend)
|
|
|
|
|
ON_BN_CLICKED(IDC_OTHER_QUERYLL, OnOtherQueryll)
|
|
|
|
|
//}}AFX_MSG_MAP
|
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// COtherDlg message handlers
|
|
|
|
|
|
|
|
|
|
BOOL COtherDlg::RefreshInfo()
|
|
|
|
|
{
|
|
|
|
|
if ( !m_pMainFrame->GetUserPurview(PURVIEW_TAB) )
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if ( !m_pMainFrame->GetUserPurview(PURVIEW_MANAGER_SEE) )
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!UpdateData(true) )
|
|
|
|
|
return false;
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_CORP_NAME,NULL,0);
|
|
|
|
|
|
|
|
|
|
#if !( defined(SMSCENTER_NX) || defined(SMSCENTER_ADC) )
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_REPORTNUM_SEE,NULL,0);
|
|
|
|
|
|
|
|
|
|
REQ_Other_Text_See * pSee=new REQ_Other_Text_See;
|
|
|
|
|
pSee->lVerSel = m_lVerSel;
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_OTHERTEXT_SEE,(BYTE*)pSee,sizeof(REQ_Other_Text_See));
|
|
|
|
|
|
|
|
|
|
REQ_Other_Gif_See * pSee2=new REQ_Other_Gif_See;
|
|
|
|
|
pSee2->lVerSel = m_lVerSel;
|
|
|
|
|
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_OTHERGIF_SEE,(BYTE*)pSee2,sizeof(REQ_Other_Gif_See));
|
|
|
|
|
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_OTHEROVER_SEE,NULL,0);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL COtherDlg::ReHide()
|
|
|
|
|
{
|
|
|
|
|
ShowWindow( SW_HIDE );
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL COtherDlg::ReShow(BOOL bRefresh)
|
|
|
|
|
{
|
|
|
|
|
if ( !m_pMainFrame->GetUserPurview(PURVIEW_MANAGER_SEE) )
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ShowWindow( SW_SHOW );
|
|
|
|
|
if ( bRefresh || !m_bRefresh )
|
|
|
|
|
{
|
|
|
|
|
RefreshInfo();
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL COtherDlg::ProcessSocket(Socket_Head *pHead)
|
|
|
|
|
{
|
|
|
|
|
CString strTemp;
|
|
|
|
|
//ȡ<><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
if (pHead->lFuncType == SMSFUNC_CORP_NAME)
|
|
|
|
|
{
|
|
|
|
|
m_bRefresh = true; //<2F>Ѿ<EFBFBD>ˢ<EFBFBD>¹<EFBFBD>
|
|
|
|
|
ANS_Corp_Name * pCorp = (ANS_Corp_Name *)pHead->pFrame;
|
|
|
|
|
ANS_Corp_NameData * pData = (ANS_Corp_NameData *)(pHead->pFrame+sizeof(ANS_Corp_Name));
|
|
|
|
|
m_L_Corp.ResetContent(); //ɾ<><C9BE>ԭ<EFBFBD><D4AD><EFBFBD>е<EFBFBD><D0B5><EFBFBD>ҵ
|
|
|
|
|
m_L_Corp.AddString( _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ") );
|
|
|
|
|
this->Close(); //<2F>ر<EFBFBD>ԭ<EFBFBD><D4AD><EFBFBD><EFBFBD>
|
|
|
|
|
for ( int i=0;i<pCorp->lCount;i++ )
|
|
|
|
|
{
|
|
|
|
|
ANS_Corp_NameData * pNewData = new ANS_Corp_NameData;
|
|
|
|
|
*pNewData = *pData;
|
|
|
|
|
POSITION pos = m_Corp.AddTail(pNewData);
|
|
|
|
|
strTemp.Format( _T("%d-%s"),pData->lCorpID,pData->szCorpName);
|
|
|
|
|
long lItem = m_L_Corp.AddString( strTemp );
|
2025-04-11 17:21:56 +08:00
|
|
|
|
m_L_Corp.SetItemData( lItem , (DWORD_PTR)pos);
|
2025-01-14 10:46:18 +08:00
|
|
|
|
pData ++;
|
|
|
|
|
}
|
|
|
|
|
m_L_Corp.SetCurSel(0);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
//ȡ<><C8A1><EFBFBD>ͼ<EFBFBD>¼
|
|
|
|
|
if (pHead->lFuncType == SMSFUNC_SUCCEED)
|
|
|
|
|
{
|
|
|
|
|
ANS_Succeed * pSucceed = (ANS_Succeed *)pHead->pFrame;
|
|
|
|
|
m_E_Msg.SetWindowText( pSucceed->szMsg);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
//ȡMonLog
|
|
|
|
|
if (pHead->lFuncType == SMSFUNC_SMSLOG)
|
|
|
|
|
{
|
|
|
|
|
ANS_SmsLog * pSmsLog = (ANS_SmsLog *)pHead->pFrame;
|
|
|
|
|
m_E_Msg.SetWindowText( pSmsLog->szMsg);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_REPORTNUM_SEE )
|
|
|
|
|
{
|
|
|
|
|
ANS_ReportNum_See * pRetSee =(ANS_ReportNum_See*)pHead->pFrame;
|
|
|
|
|
ANS_ReportNum_Data * pRetData=(ANS_ReportNum_Data*)(pHead->pFrame+sizeof(ANS_ReportNum_See));
|
|
|
|
|
m_wndList.DeleteAllItems();
|
2025-04-11 17:21:56 +08:00
|
|
|
|
CString str;
|
2025-01-14 10:46:18 +08:00
|
|
|
|
for (int i=0 ; i< pRetSee->lCount ; i++ )
|
|
|
|
|
{
|
2025-04-11 17:21:56 +08:00
|
|
|
|
str.Format(_T("%d"), i + 1);
|
|
|
|
|
m_wndList.InsertItem( i , str);
|
2025-01-14 10:46:18 +08:00
|
|
|
|
m_wndList.SetItemText(i,1,pRetData->szName);
|
|
|
|
|
m_wndList.SetItemText(i,2,pRetData->szMobile);
|
|
|
|
|
m_wndList.SetItemText(i, 3, pRetData->szEmail);
|
|
|
|
|
m_wndList.SetItemText(i,4,pRetData->szWxWork);
|
|
|
|
|
if ( pRetData->bEnable )
|
|
|
|
|
m_wndList.SetItemText(i,5, _T(" <20><><EFBFBD><EFBFBD>") );
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(i,5, _T(" ") );
|
|
|
|
|
if (pRetData->bSms)
|
|
|
|
|
m_wndList.SetItemText(i, 6, _T(" <20><>"));
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(i, 6, _T(" "));
|
|
|
|
|
if (pRetData->bWxWork)
|
|
|
|
|
m_wndList.SetItemText(i, 7, _T(" <20><>"));
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(i, 7, _T(" "));
|
|
|
|
|
|
2025-04-11 17:21:56 +08:00
|
|
|
|
str.Format(_T("%d"), pRetData->lType );
|
|
|
|
|
m_wndList.SetItemText(i,8,str );
|
2025-01-14 10:46:18 +08:00
|
|
|
|
|
|
|
|
|
m_wndList.SetItemData(i,pRetData->lID);
|
|
|
|
|
pRetData++;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_REPORTNUM_ADD )
|
|
|
|
|
{
|
|
|
|
|
ANS_ReportNum_Add * pAdd =(ANS_ReportNum_Add*)pHead->pFrame;
|
|
|
|
|
if ( pAdd->lID > 0 )
|
|
|
|
|
{
|
|
|
|
|
TCHAR szBuf[32]={0};
|
|
|
|
|
long lCount = m_wndList.GetItemCount();
|
|
|
|
|
m_wndList.InsertItem( lCount , _itot(lCount+1,szBuf,10));
|
|
|
|
|
m_wndList.SetItemText(lCount,1,pAdd->szName);
|
|
|
|
|
m_wndList.SetItemText(lCount,2,pAdd->szMobile);
|
|
|
|
|
m_wndList.SetItemText(lCount,3,pAdd->szEmail);
|
|
|
|
|
m_wndList.SetItemText(lCount, 4, pAdd->szWxWork);
|
|
|
|
|
if (pAdd->bEnable)
|
|
|
|
|
m_wndList.SetItemText(lCount, 5, _T(" <20><><EFBFBD><EFBFBD>"));
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(lCount, 5, _T(" "));
|
|
|
|
|
if (pAdd->bSms)
|
|
|
|
|
m_wndList.SetItemText(lCount, 6, _T(" <20><>"));
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(lCount, 6, _T(" "));
|
|
|
|
|
if (pAdd->bWxWork)
|
|
|
|
|
m_wndList.SetItemText(lCount, 7, _T(" <20><>"));
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(lCount, 7, _T(" "));
|
|
|
|
|
|
|
|
|
|
_stprintf(szBuf , _T("%d") , pAdd->lType );
|
|
|
|
|
m_wndList.SetItemText(lCount,8,szBuf );
|
|
|
|
|
|
|
|
|
|
m_wndList.SetItemData(lCount,pAdd->lID);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_REPORTNUM_MODIFY )
|
|
|
|
|
{
|
|
|
|
|
ANS_ReportNum_Modify * pModify =(ANS_ReportNum_Modify*)pHead->pFrame;
|
|
|
|
|
if ( pModify->lItemID>=0 )
|
|
|
|
|
{
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID,1,pModify->szName);
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID,2,pModify->szMobile);
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID,3,pModify->szEmail);
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID, 4, pModify->szWxWork);
|
|
|
|
|
if (pModify->bEnable)
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID, 5, _T(" <20><><EFBFBD><EFBFBD>"));
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID, 5, _T(" "));
|
|
|
|
|
if (pModify->bSms)
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID, 6, _T(" <20><>"));
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID, 6, _T(" "));
|
|
|
|
|
if (pModify->bWxWork)
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID, 7, _T(" <20><>"));
|
|
|
|
|
else
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID, 7, _T(" "));
|
|
|
|
|
|
|
|
|
|
TCHAR szBuf[32]={0};
|
|
|
|
|
_stprintf(szBuf , _T("%d") , pModify->lType );
|
|
|
|
|
m_wndList.SetItemText(pModify->lItemID,8,szBuf );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_REPORTNUM_DEL )
|
|
|
|
|
{
|
|
|
|
|
ANS_ReportNum_Del * pDel =(ANS_ReportNum_Del*)pHead->pFrame;
|
|
|
|
|
if ( pDel->lItemID>=0 )
|
|
|
|
|
{
|
|
|
|
|
m_wndList.DeleteItem(pDel->lItemID);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_OTHERTEXT_SEE)
|
|
|
|
|
{
|
|
|
|
|
ANS_Other_Text_Data * pText =(ANS_Other_Text_Data*)pHead->pFrame;
|
|
|
|
|
UpdateData(true);
|
|
|
|
|
m_strGDText = pText->szText;
|
|
|
|
|
m_strHTML = pText->szHTML;
|
|
|
|
|
m_strCorpWork = pText->szCorpWork;
|
|
|
|
|
UpdateData(false);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_OTHERTEXT )
|
|
|
|
|
{
|
|
|
|
|
ANS_Other_Text * pText =(ANS_Other_Text*)pHead->pFrame;
|
|
|
|
|
if ( pText->bOK )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD>Ŀͻ<EFBFBD><EFBFBD>˹<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD>"),_T("<EFBFBD><EFBFBD>Ϣ"),MB_ICONINFORMATION);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD>Ŀͻ<EFBFBD><EFBFBD>˹<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣʧ<EFBFBD>ܣ<EFBFBD>"),_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_OTHERGIF_SEE)
|
|
|
|
|
{
|
|
|
|
|
ANS_Other_Gif_Data * pGif =(ANS_Other_Gif_Data*)pHead->pFrame;
|
|
|
|
|
BYTE * pGifData = (BYTE*)pHead->pFrame +sizeof(ANS_Other_Gif_Data);
|
|
|
|
|
/*
|
|
|
|
|
CFile file;
|
|
|
|
|
if ( file.Open( _T("e:\\gif.gif"),CFile::modeWrite|CFile::modeCreate) )
|
|
|
|
|
{
|
|
|
|
|
file.Write( pGifData , pGif->lLen );
|
|
|
|
|
file.Close();
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
if ( m_B_Gif.Load2((BYTE*)pHead->pFrame+sizeof(ANS_Other_Gif_Data),pGif->lLen) )
|
|
|
|
|
{
|
|
|
|
|
CRect rect;
|
|
|
|
|
m_B_Gif.GetWindowRect(&rect);
|
|
|
|
|
m_B_Gif.SetStaticRect(rect.Width(),rect.Height());
|
|
|
|
|
m_B_Gif.Draw();
|
|
|
|
|
m_B_Gif.ShowWindow(SW_SHOW);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_OTHERGIF)
|
|
|
|
|
{
|
|
|
|
|
ANS_Other_Gif * pGif =(ANS_Other_Gif*)pHead->pFrame;
|
|
|
|
|
if ( pGif->bOK )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD>Ŀͻ<EFBFBD><EFBFBD><EFBFBD>banner<EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD>"),_T("<EFBFBD><EFBFBD>Ϣ"),MB_ICONINFORMATION);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD>Ŀͻ<EFBFBD><EFBFBD><EFBFBD>bannerʧ<EFBFBD>ܣ<EFBFBD>"),_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_OTHEROVER_SEE)
|
|
|
|
|
{
|
|
|
|
|
ANS_Other_Over_Data * pOver =(ANS_Other_Over_Data*)pHead->pFrame;
|
|
|
|
|
|
|
|
|
|
UpdateData(true);
|
|
|
|
|
|
|
|
|
|
m_bOverFilt = pOver->bFilt;
|
|
|
|
|
m_lOverBegin= pOver->lBegin;
|
|
|
|
|
m_lOverEnd = pOver->lEnd;
|
|
|
|
|
m_lOverPercent=(pOver->lPercent-1);
|
|
|
|
|
|
|
|
|
|
UpdateData(false);
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_OTHEROVER)
|
|
|
|
|
{
|
|
|
|
|
ANS_Other_Over * pOver =(ANS_Other_Over*)pHead->pFrame;
|
|
|
|
|
if ( pOver->bOK )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD>Ķ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD>"),_T("<EFBFBD><EFBFBD>Ϣ"),MB_ICONINFORMATION);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<EFBFBD>Ķ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD>"),_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( pHead->lFuncType == SMSFUNC_QUERYLL)
|
|
|
|
|
{
|
|
|
|
|
ANS_QueryLL * pQueryLL =(ANS_QueryLL*)pHead->pFrame;
|
|
|
|
|
CString strMsg;
|
|
|
|
|
strMsg.Format( _T("%04d.%02d.%02d %02d:%02d:\r\n\r\nǰһСʱ<EFBFBD>ύ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%d\r\nǰһСʱ<EFBFBD><EFBFBD><EFBFBD>Ͷ<EFBFBD><EFBFBD><EFBFBD>:%d\r\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%d\r\n"),
|
|
|
|
|
pQueryLL->tNow.wYear,pQueryLL->tNow.wMonth,pQueryLL->tNow.wDay,pQueryLL->tNow.wHour,pQueryLL->tNow.wMinute,
|
|
|
|
|
pQueryLL->lSubSms,pQueryLL->lSentSms,pQueryLL->lNoSendSms );
|
|
|
|
|
|
|
|
|
|
m_E_Msg.SetWindowText( strMsg );
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
BOOL COtherDlg::ProcessSocket(Socket_Head_Add* pHead, BYTE* pFrame)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (pHead->lFuncType == SMSFUNC_OTHERAUTOSEND2_SEE)
|
|
|
|
|
{
|
|
|
|
|
ANS_Other_AutoSend2_Data * pData = (ANS_Other_AutoSend2_Data*)pFrame;
|
|
|
|
|
|
|
|
|
|
DLG_Other_AutoSend dlg(this);
|
|
|
|
|
dlg.SetParam(*pData);
|
|
|
|
|
if (dlg.DoModal() == IDOK)
|
|
|
|
|
{
|
|
|
|
|
long lSize = sizeof(REQ_Other_AutoSend2) + sizeof(ANS_Other_AutoSend2_Data);
|
|
|
|
|
BYTE* pDataSend = new BYTE[lSize]; memset(pDataSend, 0, lSize);
|
|
|
|
|
REQ_Other_AutoSend2* pAutoSendReq = (REQ_Other_AutoSend2*)pDataSend;
|
|
|
|
|
ANS_Other_AutoSend2_Data* pAutoSendData = (ANS_Other_AutoSend2_Data*)(pDataSend + sizeof(REQ_Other_AutoSend2));
|
|
|
|
|
|
|
|
|
|
*pAutoSendData = dlg.GetParam();
|
|
|
|
|
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_OTHERAUTOSEND2, (BYTE*)pDataSend, lSize);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (pHead->lFuncType == SMSFUNC_OTHERAUTOSEND2)
|
|
|
|
|
{
|
|
|
|
|
ANS_Other_AutoSend2* pSend = (ANS_Other_AutoSend2*)pFrame;
|
|
|
|
|
if (pSend->bOK)
|
|
|
|
|
{
|
|
|
|
|
MessageBox(_T("<EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݳɹ<EFBFBD><EFBFBD><EFBFBD>"), _T("<EFBFBD><EFBFBD>Ϣ"), MB_ICONINFORMATION);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MessageBox(_T("<EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD>"), _T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), MB_ICONWARNING);
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnSize(UINT nType, int cx, int cy)
|
|
|
|
|
{
|
|
|
|
|
CDialog::OnSize(nType, cx, cy);
|
|
|
|
|
|
|
|
|
|
if ( m_bInit )
|
|
|
|
|
{
|
|
|
|
|
//CRect rect;
|
|
|
|
|
//m_S_S1.GetWindowRect(&rect);
|
|
|
|
|
//m_wndList.MoveWindow( 0 , 0+rect.Height()+5 , cx,cy-rect.Height()-5);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL COtherDlg::OnInitDialog()
|
|
|
|
|
{
|
|
|
|
|
CDialog::OnInitDialog();
|
|
|
|
|
|
|
|
|
|
//ȡ<>ù<EFBFBD><C3B9>ò<EFBFBD><C3B2><EFBFBD>
|
|
|
|
|
//CMainFrame * pFrame = static_cast <CMainFrame *>((CMainFrame *)AfxGetMainWnd());
|
|
|
|
|
this->GetParent()->GetParentFrame();
|
|
|
|
|
m_pMainFrame = (CMainFrame *)this->GetParent()->GetParentFrame();
|
|
|
|
|
m_pSocket = &m_pMainFrame->m_Socket;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Ĭ<><C4AC>ȡǰ7<C7B0><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
m_tEnd = COleDateTime::GetCurrentTime();
|
|
|
|
|
m_tBegin = m_tEnd;
|
|
|
|
|
// COleDateTimeSpan tSpan(7,0,0,0);
|
|
|
|
|
// m_tBegin=m_tEnd - tSpan;
|
|
|
|
|
|
|
|
|
|
m_tBegin2 = COleDateTime(m_tBegin.GetYear(),m_tBegin.GetMonth(),m_tBegin.GetDay(),0,0,0);
|
|
|
|
|
m_tEnd2 = COleDateTime(m_tEnd.GetYear(),m_tEnd.GetMonth(),m_tEnd.GetDay(),23,59,59);
|
|
|
|
|
//<2F><>ʼ<EFBFBD><CABC>List
|
|
|
|
|
m_Image.Create(16,16,ILC_COLOR16|ILC_MASK,5,5);
|
|
|
|
|
m_Image.Add(AfxGetApp()->LoadIcon(IDI_L_CORP) );
|
|
|
|
|
m_wndList.SubClassWindow2();
|
|
|
|
|
m_wndList.SetGridLines(true);
|
2025-04-11 17:21:56 +08:00
|
|
|
|
m_wndList.SetImageList(&m_Image, LVSIL_SMALL);
|
|
|
|
|
m_wndList.SetHeadings(_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,40; <20><> <20><>,90; <20><> <20><>,90; Email,90; <>ź<EFBFBD>,90; ״̬,60;<3B><><EFBFBD><EFBFBD>֪ͨ,60;<><CEA2>֪ͨ,60;<3B><><EFBFBD><EFBFBD>,60;"));
|
|
|
|
|
|
2025-01-14 10:46:18 +08:00
|
|
|
|
|
|
|
|
|
m_lVerSel = 0; //Ĭ<><C4AC>Ϊ<EFBFBD><CEAA>ҵ<EFBFBD><D2B5>
|
|
|
|
|
UpdateData(false);
|
|
|
|
|
|
|
|
|
|
m_bInit = true;
|
|
|
|
|
|
|
|
|
|
#if defined(SMSCENTER_NX) && !defined(SMSCENTER_GDYD_ADC)
|
|
|
|
|
if ( !m_pMainFrame->GetUserPurview(PURVIEW_MANAGER_ADD,false) || !m_pMainFrame->GetUserPurview(PURVIEW_MANAGER_DEL,false) )
|
|
|
|
|
{
|
|
|
|
|
GetDlgItem(IDC_OTHER_LIST)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_LIST_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_CORP_LXR_ADD)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_CORP_LXR_MODIFY)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_NUM_DEL)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_VERSEL)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_VERSEL_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_GDTEXT)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_HTML)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_CORPWORK)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_TEXT)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_REFRESH)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_GIF)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_GIF2)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_GIF2_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_AUTOSEND)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OTHER_AUTOSEND_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OVER_FILT)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OVER_FILT_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OVER_BEGIN)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OVER_BEGIN_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OVER_END)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OVER_PERCENT)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OVER_PERCENT_S)->ShowWindow(SW_HIDE);
|
|
|
|
|
GetDlgItem(IDC_OVER_SETUP)->ShowWindow(SW_HIDE);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
|
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::Close()
|
|
|
|
|
{
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
while (!m_Corp.IsEmpty())
|
|
|
|
|
{
|
|
|
|
|
ANS_Corp_NameData * pData = m_Corp.GetHead();
|
|
|
|
|
m_Corp.RemoveHead();
|
|
|
|
|
delete pData;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherQuery()
|
|
|
|
|
{
|
|
|
|
|
if ( !UpdateData(true) )
|
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
if ( m_tEnd < m_tBegin )
|
|
|
|
|
{
|
|
|
|
|
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 ;
|
|
|
|
|
}
|
|
|
|
|
REQ_Succeed * pSucceed = new REQ_Succeed;memset(pSucceed,0,sizeof(REQ_Succeed));
|
|
|
|
|
|
|
|
|
|
if ( m_lCorp <= 0 ) //ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ
|
|
|
|
|
{
|
|
|
|
|
pSucceed->lCorpID = -1;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
POSITION pos = (POSITION)m_L_Corp.GetItemData(m_lCorp);
|
|
|
|
|
POSITION pos2 = pos;
|
|
|
|
|
ANS_Corp_NameData * pData = m_Corp.GetNext( pos );
|
|
|
|
|
if (pData)
|
|
|
|
|
{
|
|
|
|
|
pSucceed->lCorpID = pData->lCorpID;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
m_tBegin.GetAsSystemTime( pSucceed->tBegin );
|
|
|
|
|
m_tEnd.GetAsSystemTime( pSucceed->tEnd );
|
|
|
|
|
|
|
|
|
|
pSucceed->tBegin.wHour = m_tBegin2.GetHour();
|
|
|
|
|
pSucceed->tBegin.wMinute = m_tBegin2.GetMinute();
|
|
|
|
|
pSucceed->tBegin.wSecond = m_tBegin2.GetSecond();
|
|
|
|
|
|
|
|
|
|
pSucceed->tEnd.wHour = m_tEnd2.GetHour();
|
|
|
|
|
pSucceed->tEnd.wMinute = m_tEnd2.GetMinute();
|
|
|
|
|
pSucceed->tEnd.wSecond = m_tEnd2.GetSecond();
|
|
|
|
|
|
|
|
|
|
if ( COleDateTime(pSucceed->tEnd) < COleDateTime(pSucceed->tBegin) )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<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 ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pSucceed->bOld = m_bOld; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_SUCCEED,(BYTE*)pSucceed,sizeof(REQ_Succeed));
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherQuery2()
|
|
|
|
|
{
|
|
|
|
|
REQ_SmsLog * pSmsLog = new REQ_SmsLog;memset(pSmsLog,0,sizeof(REQ_SmsLog));
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_SMSLOG,(BYTE*)pSmsLog,sizeof(REQ_SmsLog));
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnCorpLxrAdd()
|
|
|
|
|
{
|
|
|
|
|
DLG_Other_Add dlg(this);
|
|
|
|
|
dlg.m_lEnable = true;
|
|
|
|
|
if ( dlg.DoModal()==IDOK )
|
|
|
|
|
{
|
|
|
|
|
REQ_ReportNum_Add * pAdd = new REQ_ReportNum_Add;
|
|
|
|
|
memset(pAdd,0,sizeof(REQ_ReportNum_Add));
|
|
|
|
|
pAdd->bEnable = dlg.m_lEnable;
|
|
|
|
|
pAdd->lType = dlg.m_dwType;
|
|
|
|
|
pAdd->bSms = dlg.m_bSms;
|
|
|
|
|
pAdd->bWxWork = dlg.m_bWxWork;
|
|
|
|
|
|
|
|
|
|
_tcscpy(pAdd->szName , dlg.m_strName );
|
|
|
|
|
_tcscpy(pAdd->szMobile , dlg.m_strMobile );
|
|
|
|
|
_tcscpy(pAdd->szEmail , dlg.m_strEmail );
|
|
|
|
|
_tcscpy(pAdd->szWxWork, dlg.m_strWxWork);
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_REPORTNUM_ADD,(BYTE*)pAdd,sizeof(REQ_ReportNum_Add));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnCorpLxrModify()
|
|
|
|
|
{
|
|
|
|
|
long lItem = m_wndList.GetFirstSelectedItem();
|
|
|
|
|
if ( lItem < 0 )
|
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
CString strName;
|
|
|
|
|
CString strMobile;
|
|
|
|
|
CString strEmail;
|
|
|
|
|
CString strWxWork;
|
|
|
|
|
long lEnable = 0;
|
|
|
|
|
BOOL bSms = false;
|
|
|
|
|
BOOL bWxWork = false;
|
|
|
|
|
long lType = 0;
|
|
|
|
|
strName = m_wndList.GetItemText(lItem,1);
|
|
|
|
|
strMobile = m_wndList.GetItemText(lItem,2);
|
|
|
|
|
strEmail = m_wndList.GetItemText(lItem,3);
|
|
|
|
|
strWxWork = m_wndList.GetItemText(lItem,4);
|
|
|
|
|
CString strTemp = m_wndList.GetItemText(lItem,5);
|
|
|
|
|
if ( strTemp == _T(" <20><><EFBFBD><EFBFBD>") )
|
|
|
|
|
lEnable = 1;
|
|
|
|
|
strTemp = m_wndList.GetItemText(lItem, 6);
|
|
|
|
|
if (strTemp == _T(" <20><>"))
|
|
|
|
|
bSms = 1;
|
|
|
|
|
strTemp = m_wndList.GetItemText(lItem, 7);
|
|
|
|
|
if (strTemp == _T(" <20><>"))
|
|
|
|
|
bWxWork = 1;
|
|
|
|
|
|
|
|
|
|
strTemp = m_wndList.GetItemText(lItem,8);
|
|
|
|
|
lType = _ttol(strTemp);
|
|
|
|
|
|
|
|
|
|
DLG_Other_Add dlg(this);
|
|
|
|
|
dlg.SetParam(strName,strMobile,strEmail,strWxWork,lEnable,bSms,bWxWork,lType);
|
|
|
|
|
if ( dlg.DoModal()==IDOK )
|
|
|
|
|
{
|
|
|
|
|
REQ_ReportNum_Modify * pModify = new REQ_ReportNum_Modify;
|
|
|
|
|
memset(pModify,0,sizeof(REQ_ReportNum_Modify));
|
|
|
|
|
pModify->lID = m_wndList.GetItemData(lItem);
|
|
|
|
|
pModify->lItemID = lItem;
|
|
|
|
|
pModify->bEnable = dlg.m_lEnable;
|
|
|
|
|
pModify->lType = dlg.m_dwType;
|
|
|
|
|
pModify->bSms = dlg.m_bSms;
|
|
|
|
|
pModify->bWxWork = dlg.m_bWxWork;
|
|
|
|
|
_tcscpy(pModify->szName , dlg.m_strName );
|
|
|
|
|
_tcscpy(pModify->szMobile , dlg.m_strMobile );
|
|
|
|
|
_tcscpy(pModify->szEmail , dlg.m_strEmail );
|
|
|
|
|
_tcscpy(pModify->szWxWork, dlg.m_strWxWork);
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_REPORTNUM_MODIFY,(BYTE*)pModify,sizeof(REQ_ReportNum_Modify));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherNumDel()
|
|
|
|
|
{
|
|
|
|
|
long lItem = m_wndList.GetFirstSelectedItem();
|
|
|
|
|
if ( lItem < 0 )
|
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
REQ_ReportNum_Del * pDel = new REQ_ReportNum_Del;
|
|
|
|
|
memset(pDel,0,sizeof(REQ_ReportNum_Del));
|
|
|
|
|
pDel->lID = m_wndList.GetItemData(lItem);
|
|
|
|
|
pDel->lItemID = lItem;
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_REPORTNUM_DEL,(BYTE*)pDel,sizeof(REQ_ReportNum_Del));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnDblclkOtherList(NMHDR* pNMHDR, LRESULT* pResult)
|
|
|
|
|
{
|
|
|
|
|
*pResult = 0;
|
|
|
|
|
|
|
|
|
|
OnCorpLxrModify();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherText()
|
|
|
|
|
{
|
|
|
|
|
if ( !UpdateData(true) )
|
|
|
|
|
return ;
|
|
|
|
|
REQ_Other_Text * pText = new REQ_Other_Text;
|
|
|
|
|
memset(pText,0,sizeof(REQ_Other_Text));
|
|
|
|
|
_tcscpy(pText->szText , m_strGDText );
|
|
|
|
|
_tcscpy(pText->szHTML , m_strHTML );
|
|
|
|
|
_tcscpy(pText->szCorpWork , m_strCorpWork );
|
|
|
|
|
pText->lVerSel = m_lVerSel;
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_OTHERTEXT,(BYTE*)pText,sizeof(REQ_Other_Text));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherGif()
|
|
|
|
|
{
|
|
|
|
|
static TCHAR BASED_CODE szFilter[] = _T("GIF Files (*.gif)|*.gif|All Files (*.*)|*.*||");
|
|
|
|
|
CFileDialog dlg(TRUE,_T("GIF"),NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,szFilter);
|
|
|
|
|
if (dlg.DoModal() != IDOK)
|
|
|
|
|
return ;
|
|
|
|
|
CString strGIF = dlg.GetPathName();
|
|
|
|
|
|
|
|
|
|
if ( m_B_Gif.Load(strGIF) )
|
|
|
|
|
{
|
|
|
|
|
m_B_Gif.Draw();
|
|
|
|
|
m_B_Gif.ShowWindow(SW_SHOW);
|
|
|
|
|
|
|
|
|
|
CFile file;
|
|
|
|
|
if ( !file.Open( strGIF , CFile::modeRead ) )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("<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 ;
|
|
|
|
|
}
|
|
|
|
|
long lSize = sizeof(REQ_Other_Gif) + file.GetLength();
|
|
|
|
|
BYTE * pData = new BYTE[lSize];
|
|
|
|
|
memset(pData,0,lSize);
|
|
|
|
|
REQ_Other_Gif * pGif = (REQ_Other_Gif *)pData;
|
|
|
|
|
BYTE * pGifData = pData+sizeof(REQ_Other_Gif);
|
|
|
|
|
pGif->lVerSel = m_lVerSel;
|
|
|
|
|
pGif->lLen = file.GetLength();
|
|
|
|
|
file.Read(pGifData,pGif->lLen);
|
|
|
|
|
file.Close();
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_OTHERGIF,(BYTE*)pData,lSize);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
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 );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherRefresh()
|
|
|
|
|
{
|
|
|
|
|
this->RefreshInfo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOverSetup()
|
|
|
|
|
{
|
|
|
|
|
if ( !UpdateData(true) )
|
|
|
|
|
return ;
|
|
|
|
|
if ( m_lOverEnd < m_lOverBegin )
|
|
|
|
|
{
|
|
|
|
|
MessageBox( _T("ȫ<EFBFBD><EFBFBD><EFBFBD>յ㲻<EFBFBD><EFBFBD>С<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!"),_T("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"),MB_ICONWARNING );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
ANS_Other_Over_Data * pOver = new ANS_Other_Over_Data;
|
|
|
|
|
memset(pOver,0,sizeof(ANS_Other_Over_Data));
|
|
|
|
|
pOver->bFilt = m_bOverFilt;
|
|
|
|
|
pOver->lBegin= m_lOverBegin;
|
|
|
|
|
pOver->lEnd = m_lOverEnd;
|
|
|
|
|
pOver->lPercent=(m_lOverPercent+1);
|
|
|
|
|
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_OTHEROVER,(BYTE*)pOver,sizeof(ANS_Other_Over_Data));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherQuery3()
|
|
|
|
|
{
|
|
|
|
|
CString strTemp;
|
|
|
|
|
CString strFind;
|
|
|
|
|
m_E_CorpID.GetWindowText(strFind);
|
|
|
|
|
if ( strFind.GetLength()<=0 )
|
|
|
|
|
return ;
|
|
|
|
|
long lSel = m_L_Corp.GetCurSel();
|
|
|
|
|
long lCount = m_L_Corp.GetCount();
|
|
|
|
|
for ( int i=lSel+1 ; i<lCount ; i++ )
|
|
|
|
|
{
|
|
|
|
|
m_L_Corp.GetLBText(i,strTemp);
|
|
|
|
|
if ( strTemp.Find(strFind)>=0 )
|
|
|
|
|
{
|
|
|
|
|
m_L_Corp.SetCurSel(i);
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for ( i=0 ; i<lSel ; i++ )
|
|
|
|
|
{
|
|
|
|
|
m_L_Corp.GetLBText(i,strTemp);
|
|
|
|
|
if ( strTemp.Find(strFind)>=0 )
|
|
|
|
|
{
|
|
|
|
|
m_L_Corp.SetCurSel(i);
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherAutosend()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
REQ_Other_AutoSend2_See* pSee = new REQ_Other_AutoSend2_See;
|
|
|
|
|
memset(pSee, 0, sizeof(REQ_Other_AutoSend2_See));
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_OTHERAUTOSEND2_SEE, (BYTE*)pSee, sizeof(REQ_Other_AutoSend2_See));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void COtherDlg::OnOtherQueryll()
|
|
|
|
|
{
|
|
|
|
|
REQ_QueryLL * pQueryLL = new REQ_QueryLL;memset(pQueryLL,0,sizeof(REQ_QueryLL));
|
|
|
|
|
m_pMainFrame->SendFrame(SMSFUNC_QUERYLL,(BYTE*)pQueryLL,sizeof(REQ_QueryLL));
|
|
|
|
|
return ;
|
|
|
|
|
}
|