lyfzAttendanceDlg.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // ClyfzAttendanceDlg.h : 头文件
  2. //
  3. #pragma once
  4. #include "afxcmn.h"
  5. #include "ItrayIcon.h" // 托盘操作头文件 [6/8/2013 Z.t]
  6. #include "CDFKAttendOcx.h"
  7. #include "fp_clockctrl1.h"
  8. #include "MachineMgrBase.h"
  9. // ClyfzAttendanceDlg 对话框
  10. class ClyfzAttendanceDlg : public CDialog
  11. {
  12. // 构造
  13. public:
  14. ClyfzAttendanceDlg(CWnd* pParent = NULL); // 标准构造函数
  15. // 对话框数据
  16. enum { IDD = IDD_LYFZAOXIN_DIALOG };
  17. protected:
  18. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  19. // 实现
  20. protected:
  21. HICON m_hIcon;
  22. // 生成的消息映射函数
  23. virtual BOOL OnInitDialog();
  24. //afx_msg void OnClose();
  25. afx_msg void OnExit();
  26. afx_msg void OnShowwindow();
  27. afx_msg void OnAutorun();
  28. afx_msg void OnReadalllog();
  29. afx_msg void OnInitAttend();
  30. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  31. afx_msg void OnPaint();
  32. afx_msg HCURSOR OnQueryDragIcon();
  33. afx_msg void OnDestroy();
  34. afx_msg void OnClose();
  35. DECLARE_MESSAGE_MAP()
  36. public:
  37. void InitCtrlList();
  38. int InitDeviceData();
  39. void ChangeCtrlStatus(int nType = 0);
  40. void ReadConnectInfo(DEVICECFG& cfg);
  41. int GetVerifyMode(const int nMode, CString& strMode);
  42. void TrayRight();
  43. void InitTrayIcon();
  44. void TaskNotifyIcon();
  45. int ReadUserInfo();
  46. public:
  47. afx_msg void OnBnClickedConfig(); //软件配置
  48. afx_msg void OnBnClickedDbConnect(); //数据库连接
  49. afx_msg void OnBnClickedConnectSet(); //连接
  50. afx_msg void OnBnClickedBlack(); //断开
  51. afx_msg void OnBnClickedSaveBtn(); //保存记录
  52. afx_msg void OnBnClickedFilelogBtn(); //文件记录
  53. afx_msg void OnBnClickedAllsubmitBtn(); //全部提交
  54. afx_msg void OnBnClickedSelsubmitBtn(); //选择提交
  55. afx_msg void OnBnClickedDelLogBtn(); //删除记录
  56. afx_msg void OnBnClickedRealtimeconfirmBtn(); //实时提交
  57. afx_msg void OnBnClickedStopconfirmBtn(); //停止提交
  58. afx_msg void OnTimer(UINT_PTR nIDEvent);
  59. afx_msg LRESULT ShowPrompting(WPARAM wParam,LPARAM lParam);
  60. afx_msg LRESULT ShowRealTimeLog(WPARAM wParam,LPARAM lParam);
  61. afx_msg LRESULT OnTaskBarCreated(WPARAM wp, LPARAM lp);
  62. afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
  63. afx_msg void OnBnClickedClearMgrBtn();
  64. private:
  65. // 托盘工作类;
  66. ITrayIcon m_trayIcon;
  67. CDFKAttendOcx m_FKAttend;
  68. CFp_clockctrl1 m_FP_CLOCK;
  69. CRichEditCtrl m_TipsMsgWnd;
  70. CListCtrl m_ctrlListShow;
  71. DEVICECFG m_Devicecfg;
  72. DWORD m_dwRecord;
  73. BOOL m_bAutoRuning;
  74. BOOL m_bNoticeTray; // 是否响应托盘消息;
  75. BOOL m_isNotify; // 托盘是否显示;
  76. CArray<CStringArray, CStringArray> m_strArrayRenyuan;
  77. };