#if !defined(AFX_SELECTPRDINSTDLG_H__62DA3A05_875B_43A1_94C4_625EC0F6B0A3__INCLUDED_)
#define AFX_SELECTPRDINSTDLG_H__62DA3A05_875B_43A1_94C4_625EC0F6B0A3__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSelectPrdInstDlg dialog
#include <apl_gui.h>
#include "apl_api.h"


class CSelectPrdInstDlg : public CaplTranslateDialog
{
// Construction
protected:
	aplExtent m_pdfs;
public:
	void LoadData();
	CaplAPI* m_api;
	CaplInstance* m_pdf;
	CaplInstance* m_selected_prd_inst;
	
	bool m_bShowCreate;

	//Заголовок окна
	CString	m_sTitle;
	//Фильтры
	CStringArray	m_FiltersName;//По наименованию
	bool			m_bNOT_Name;//Имя не должно совпадать с тем, что в массиве (Да/Нет)
	CStringArray	m_FiltersId;//По обозначению
	bool			m_bNOT_Id;
	CStringArray	m_FiltersVer;//Обозначение версии
	bool			m_bNOT_Ver;
	CStringArray	m_FiltersSN;//Серийный номер
	bool			m_bNOT_SN;

	CSelectPrdInstDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSelectPrdInstDlg)
	enum { IDD = IDD_SELECT_PRDINST_DLG };
	CSortListCtrl	m_prdinst_lict_ctrl;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSelectPrdInstDlg)
	afx_msg void OnCreatePrdinst();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SELECTPRDINSTDLG_H__62DA3A05_875B_43A1_94C4_625EC0F6B0A3__INCLUDED_)
