124 lines
3.1 KiB
C++
124 lines
3.1 KiB
C++
#if !defined(AFX_DLG_USER_INPORTP2_H__ECB14260_30C1_4BAA_88E4_8A308E477E27__INCLUDED_)
|
|
#define AFX_DLG_USER_INPORTP2_H__ECB14260_30C1_4BAA_88E4_8A308E477E27__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DLG_User_InportP2.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// DLG_User_InportP2 dialog
|
|
|
|
typedef struct _Inport_Field
|
|
{
|
|
TCHAR szName[64];
|
|
long lType;
|
|
long lIndex;
|
|
long lDesIndex;
|
|
}Inport_Field;
|
|
|
|
#define MENU_INPORTP_ALL WM_USER+199
|
|
#define MENU_INPORTP_FIRST WM_USER+200
|
|
|
|
#include "DLG_User_ModifyP.h"
|
|
#include "DLG_GetUser.h"
|
|
|
|
typedef CTypedPtrList<CPtrList, PAddress*> CAddress;
|
|
class CFGAddress;
|
|
class CFGAddress2;
|
|
class CFPAddress;
|
|
class CFCAddress;
|
|
class CFSAddress;
|
|
class DLG_SendFax;
|
|
class DLG_SendMms;
|
|
class DLG_Send;
|
|
class CFBack;
|
|
class CFTDSet;
|
|
class DLG_PLFile_Add;
|
|
class DLG_QXBox_Group_Modify;
|
|
class DLG_White2;
|
|
class DLG_User_InportP2 : public CDialog
|
|
{
|
|
public:
|
|
Inport_Field m_Field[60]; //最多导入60个字段
|
|
long m_lField; //导入字段的计数
|
|
long m_lInportType; //导入类型
|
|
long m_lColCount;
|
|
long m_lCurCol;
|
|
CAddress m_User;
|
|
|
|
DLG_GetUser m_DlgProcess;
|
|
BOOL m_bShowProcess;
|
|
CString m_strDefName;
|
|
|
|
|
|
protected:
|
|
CWnd * m_pParent;
|
|
CFGAddress2 * m_pFGAddress;
|
|
CFPAddress * m_pFPAddress;
|
|
DLG_Send * m_pDlgSend;
|
|
DLG_SendFax * m_pDlgSendFax;
|
|
DLG_SendMms * m_pDlgSendMms;
|
|
CFCAddress * m_pFCAddress;
|
|
CFSAddress * m_pFSAddress;
|
|
CFBack * m_pFBack;
|
|
CFTDSet * m_pTDSet;
|
|
DLG_PLFile_Add * m_pPLFile;
|
|
DLG_QXBox_Group_Modify * m_pQXBox_GroupDlg;
|
|
DLG_White2 * m_pWhite2;
|
|
|
|
CAdoRecordSet m_AdoRS;
|
|
CString m_strTable;
|
|
TCHAR m_szLocal[128];
|
|
|
|
// Construction
|
|
public:
|
|
void Inport();
|
|
static UINT Process_T(void *pParam);
|
|
CString GetExcelDriver();
|
|
void Close();
|
|
long ReadLine(CFile *file, char * pSplit,char *szBuf, long lLen , BYTE * pFileBuf , long & lFileBufLen);
|
|
void SetParam( Inport_Field * pField , long lFieldCount , long lInportType );
|
|
DLG_User_InportP2(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(DLG_User_InportP2)
|
|
enum { IDD = IDD_USER_INPORTP2 };
|
|
CButton m_B_Add0;
|
|
CButton m_B_Birthday;
|
|
CButton m_B_Tips;
|
|
CButton m_B_ReMobile;
|
|
CListCtrl m_wndList;
|
|
CEdit m_E_FileName;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(DLG_User_InportP2)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(DLG_User_InportP2)
|
|
afx_msg void OnUserInportGetfile();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnColumnclickUserInportList(NMHDR* pNMHDR, LRESULT* pResult);
|
|
//}}AFX_MSG
|
|
afx_msg void On_User_All();
|
|
afx_msg void On_User_SelField(UINT nID);
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
afx_msg void OnBnClickedOk();
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DLG_USER_INPORTP2_H__ECB14260_30C1_4BAA_88E4_8A308E477E27__INCLUDED_)
|