#if !defined(AFX_TRANSACTIONSREPORTLIST_H__F3482F89_80A4_445C_9039_F2B0B8FADBA4__INCLUDED_)
#define AFX_TRANSACTIONSREPORTLIST_H__F3482F89_80A4_445C_9039_F2B0B8FADBA4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TransactionsReportList.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTransactionsReportList dialog
#include "aplProjectMgr.h"
#include "resource.h"
#include <apl_gui.h>
#include "afxwin.h"
#include "afxcmn.h"


class CTransactionsReportList : public CaplResizableDialog
{
// Construction
public:
	CTransactionsReportList(CWnd* pParent = NULL);   // standard constructor

	CaplProjectManager *m_prj_mgr;
	CaplProjectManager::STransactionFilter m_Filter;
	CaplProjectManager::aplTransactionsArray	*m_AllTransactions;
	CaplProjectManager::aplTransactionsArray	*m_FilteredTransactions;

	void CalcSelected();

// Dialog Data
	//{{AFX_DATA(CTransactionsReportList)
	enum { IDD = IDD_TRANSACTIONS_REPORTLIST_DLG };
	CaplButton	m_save_btn;
	CaplButton	m_ok_btn;
	CSortListCtrl m_TransactionsListCtrl;
	CSortListCtrl m_sumlist;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTransactionsReportList)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	void UpdateList();

	// Generated message map functions
	//{{AFX_MSG(CTransactionsReportList)
	virtual BOOL OnInitDialog();
	afx_msg void OnFilter();
	afx_msg void OnSaveToFile();
	afx_msg void OnItemchangedList(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CEdit m_balance;
	CEdit m_balance_all;
	afx_msg void OnSize(UINT nType, int cx, int cy);
	CaplButton m_FilterBtn;
//	afx_msg void OnHdnEndFilterEditSumlist(NMHDR *pNMHDR, LRESULT *pResult);
//	afx_msg void OnLvnItemchangedSumlist(NMHDR *pNMHDR, LRESULT *pResult);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TRANSACTIONSREPORTLIST_H__F3482F89_80A4_445C_9039_F2B0B8FADBA4__INCLUDED_)
