CostCal.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #if !defined(AFX_CostCal_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_CostCal_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // CostCal.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CostCal form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. class CostCal : public MyFormView
  14. {
  15. CArray<CStringArray, CStringArray>m_sparray;
  16. CArray<CStringArray, CStringArray>m_List1array;
  17. protected:
  18. CostCal(); // protected constructor used by dynamic creation
  19. DECLARE_DYNCREATE(CostCal)
  20. // Form Data
  21. public:
  22. //{{AFX_DATA(CostCal)
  23. enum { IDD = IDD_DLGCostCal };
  24. CComboBox m_combo1;
  25. CSortListCtrl3 m_List1;
  26. CStatic m_static1;
  27. CString m_filter;
  28. CTime m_date1;
  29. CTime m_date2;
  30. //}}AFX_DATA
  31. // Attributes
  32. public:
  33. // Operations
  34. public:
  35. float GetSPPriceFromName(CString name);
  36. void GetData();
  37. void FillGrid();
  38. // Overrides
  39. // ClassWizard generated virtual function overrides
  40. //{{AFX_VIRTUAL(CostCal)
  41. public:
  42. virtual void OnInitialUpdate();
  43. virtual BOOL PreTranslateMessage(MSG* pMsg);
  44. protected:
  45. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. protected:
  49. virtual ~CostCal();
  50. #ifdef _DEBUG
  51. virtual void AssertValid() const;
  52. virtual void Dump(CDumpContext& dc) const;
  53. #endif
  54. // Generated message map functions
  55. //{{AFX_MSG(CostCal)
  56. afx_msg void OnBUTclose();
  57. afx_msg void OnButton1();
  58. afx_msg void OnSelchangeCombo1();
  59. afx_msg void OnTimer(UINT nIDEvent);
  60. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  61. afx_msg void OnDatetimechangeDatetimepicker1(NMHDR* pNMHDR, LRESULT* pResult);
  62. afx_msg void OnDatetimechangeDatetimepicker2(NMHDR* pNMHDR, LRESULT* pResult);
  63. //}}AFX_MSG
  64. afx_msg void OnCustomdrawList(NMHDR*, LRESULT*);
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_CostCal_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)