#pragma once #include "afxdialogex.h" #include "..\public\reportctrl\ReportCtrl.h" #include "DLG_Process.h" typedef CTypedPtrList CAllQuery_ReportData; typedef CTypedPtrList CYWYName; #define MENU_ALLQUERY_REPORT_SEE WM_USER + 250 #define MENU_ALLQUERY_REPORT_COPYID WM_USER + 252 #define MENU_ALLQUERY_REPORT_COPYNAME WM_USER + 253 #define MENU_ALLQUERY_REPORT_COPYDATA WM_USER + 254 #define MENU_ALLQUERY_REPORT_OPER_TEST WM_USER + 260 //修改为测试充值 #define MENU_ALLQUERY_REPORT_OPER_CB WM_USER + 261 //修改为成本短信 #define MENU_ALLQUERY_REPORT_OPER_FPEXPRESS WM_USER + 262 //修改发票类型 #define MENU_ALLQUERY_REPORT_OPER_FPMSG WM_USER + 263 //修改开票信息 #define MENU_ALLQUERY_REPORT_OPER_FPISSUE WM_USER + 264 //开具开票信息 #define MENU_ALLQUERY_REPORT_OPER_FPDEL WM_USER + 265 //删除开票信息 #define MENU_ALLQUERY_REPORT_OPER_BANK WM_USER + 266 //修改收款信息 #define MENU_ALLQUERY_REPORT_OPER_LP WM_USER + 267 //修改赠送信息 #define MENU_ALLQUERY_REPORT_OPER_PAYTIME WM_USER + 268 //修改充值时间 #define MENU_ALLQUERY_REPORT_OPER_YS WM_USER + 269 //核销应收 #define MENU_ALLQUERY_REPORT_OPER_CJZF WM_USER + 270 //作废充值 #define MENU_ALLQUERY_REPORT_OPER_CJQR WM_USER + 271 //确认充值 #define MENU_ALLQUERY_REPORT_OPER_CANCEL WM_USER + 272 //撤销充值 class CMainFrame; class CProcessSocket; class DLG_Pay_Detail; // CK_AllQuery_Report 对话框 class CK_AllQuery_Report : public CDialogEx { DECLARE_DYNAMIC(CK_AllQuery_Report) public: double m_fTotal; double m_fLPTotal; long m_lCommend_VipIntTotal; long m_lSms; long m_lPresent; long m_lSmsAll; long m_iCorpNameIndex; long m_iPriceIndex; long m_iSmsCountIndex; long m_iSmsPresentIndex; long m_iSmsPriceOneIndex; long m_iLPPresentIndex; private: DLG_Pay_Detail* m_pDetail; protected: CMainFrame* m_pMainFrame; CProcessSocket* m_pSocket; CImageList m_Image; CAllQuery_ReportData m_ListData; CYWYName m_YWY; long m_lMsgCount; BOOL m_bRefresh; BOOL m_bInit; //是否已初始化 public: void Close_ListData(); long GetCurrentSelected(); void ShowRMenu(); void Close(); BOOL ProcessSocket(Socket_Head* pHead); BOOL ProcessSocket(Socket_Head_Add* pHead, BYTE* pFrame); BOOL RefreshInfo(); BOOL ReHide(); BOOL ReShow(BOOL bRefresh = false); CK_AllQuery_Report(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CK_AllQuery_Report(); // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_K_ALLQUERY_REPORT }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 DECLARE_MESSAGE_MAP() public: CReportCtrl m_wndList; CStatic m_S_S1; virtual BOOL OnInitDialog(); virtual void OnOK(); virtual void OnCancel(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnClose(); afx_msg void OnDblclkAllqueryReportList(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnRdblclkAllqueryReportList(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnBnClickedAllqueryReportQuery(); afx_msg void On_User_See(); afx_msg void On_User_CopyID(); afx_msg void On_User_CopyName(); afx_msg void On_User_CopyData(); afx_msg void On_User_Oper_Test(); afx_msg void On_User_Oper_CB(); afx_msg void On_User_Oper_FPExpress(); afx_msg void On_User_Oper_FPMsg(); afx_msg void On_User_Oper_FPIssue(); afx_msg void On_User_Oper_FPDel(); afx_msg void On_User_Oper_Bank(); afx_msg void On_User_Oper_LP(); afx_msg void On_User_Oper_PayTime(); afx_msg void On_User_Oper_YS(); afx_msg void On_User_Oper_CJZF(); afx_msg void On_User_Oper_CJQR(); afx_msg void On_User_Oper_Cancel(); static CString GetPTName(int lPTNum, BOOL bAddLocal = false); static CString GetUserType(int lUserType); static CString GetPayType(int lPayType); static CString GetYSType(int lYSType); static CString GetFPStatus(int lFPStatus); static CString GetLPType(int lLPType); void Close_YWY(); CString m_strID; CComboBox m_L_PT; afx_msg void OnRclickAllqueryReportList(NMHDR* pNMHDR, LRESULT* pResult); BOOL m_bVaild; CComboBox m_L_YS; CComboBox m_L_Test; CComboBox m_L_ReportType; BOOL m_bYSTime; COleDateTime m_tYSTimeBegin; COleDateTime m_tYSTimeEnd; CComboBox m_L_YWY; // CString m_E_FPNum; CComboBox m_L_FPStatus; BOOL m_bFPTime; COleDateTime m_tFPTimeBegin; COleDateTime m_tFPTimeEnd; CComboBox m_L_FPType; CString m_strPayMode; BOOL m_bPayTime; COleDateTime m_tPayTimeBegin; COleDateTime m_tPayTimeEnd; COleDateTime GetDateTime(long lMonDifference, long lGetType=0); afx_msg void OnSelchangeAllqueryReportType(); CString m_strFPNum; void SetDefaultQueryParam(); CButton m_B_Query; CComboBox m_L_AgentType; BOOL ShowDataInList(long lItem, ANS_AllQuery_Report_Data* pData); CString m_strBankReference; };