#if !defined(AFX_ANALIZEGROUPINSTANCES_H__65B93F11_D8F2_45D2_94E1_F0F5C0457640__INCLUDED_)
#define AFX_ANALIZEGROUPINSTANCES_H__65B93F11_D8F2_45D2_94E1_F0F5C0457640__INCLUDED_

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

#include "apl_api.h"
#include "ResizableDialog.h"
#include "InstPropertyCtrl.h"

/////////////////////////////////////////////////////////////////////////////
// CAnalizeGroupInstances dialog

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

// Dialog Data
	//{{AFX_DATA(CAnalizeGroupInstances)
	enum { IDD = IDD_ANALIZE_GROUPE_INST };
	CEdit	m_EdtNameCombinedTable;
	CaplButton	m_BtnSave2Db;
	CaplButton	m_cancel_btn;
	CaplButton	m_BtnSelectData;
	CaplButton	m_BtnSaveToFile;
	CaplButton	m_BtnSelectChsrscteristic1;
	CaplButton	m_BtnSelectColumns1;
	CaplButton	m_BtnSelectChsrscteristic2;
	CaplButton	m_BtnSelectColumns2;
	CaplButton	m_BtnSelectChsrscteristic3;
	CaplButton	m_BtnSelectColumns3;
	//}}AFX_DATA

	aplExtent* m_content;
	CaplAPI *m_api;

	CaplInstance* m_combined_table; 
	void SaveColumnData();



// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAnalizeGroupInstances)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	CInstPropertyCtrl	m_ListObjects;
	CaplTAggr<SEntColumnsMask*,SEntColumnsMask*,APLAGGR_LIST_OR_AUTOKILLREF> m_Mask;
	CaplTAggr<SItemColumnData*,SItemColumnData*,APLAGGR_LIST_OR_AUTOKILLREF> m_Items;
	aplExtent m_content_internal;

// Implementation
protected:
	// предотвращаем потерю модальности после диалога с бочками из aplSocketTransport
	CaplParentWndProcesser m_pwp;

	bool FeelTableCtrl();	

	// Generated message map functions
	//{{AFX_MSG(CAnalizeGroupInstances)
	afx_msg void OnRclickListObjects(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelectColumns2();
	afx_msg void OnBtnSelect();
	afx_msg void OnSelectCharacterysticSet3();
	afx_msg void OnSelectColumns3();
	afx_msg void OnSelectCharacterysticSet2();
	afx_msg void OnSelectCharacterysticSet1();
	afx_msg void OnSelectColumns1();
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnSave2File();
	afx_msg void OnSave2db();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ANALIZEGROUPINSTANCES_H__65B93F11_D8F2_45D2_94E1_F0F5C0457640__INCLUDED_)
