#if !defined(AFX_PERSONPROPDLG_H__736BA2AB_FAEC_49A3_A9BC_2E07FCD7F1AD__INCLUDED_)
#define AFX_PERSONPROPDLG_H__736BA2AB_FAEC_49A3_A9BC_2E07FCD7F1AD__INCLUDED_

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

#include "resource.h"
#include "aplNetStepData.h"	// Added by ClassView
#include "apl_gui.h"
#include "afxwin.h"
#include "afxcmn.h"
/////////////////////////////////////////////////////////////////////////////
// CPersonPropDlg dialog

class CPersonPropDlg : public CaplResizableDialog
{
// Construction
public:
	CaplInstance *m_person;
	CaplAPI *m_api;
	CPersonPropDlg(CWnd* pParent = NULL);   // standard constructor

	bool m_bEnableEdit;

// Dialog Data
	//{{AFX_DATA(CPersonPropDlg)
	enum { IDD = IDD_PERSON_DIALOG };
	CaplButton	m_cancel_btn;
	CSortListCtrl	m_keysList;
	CListBox	m_listRoleDo;
	CString	m_sFirstName;
	CString	m_sID;
	CString	m_sLastName;
	CString	m_sMiddleName;
	CString	m_sPrefix;
	CString m_sDescription;
	CString m_sCode;
	CString m_sPhone;
	CString m_sEmail;
	CString m_sActualAddress;
	//}}AFX_DATA


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

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

	// Generated message map functions
	//{{AFX_MSG(CPersonPropDlg)
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CEdit m_pers_id_ctrl;
	CEdit m_pers_prefix_ctrl;
	CEdit m_pers_last_name_ctrl;
	CEdit m_pers_first_name_ctrl;
	CEdit m_pers_middle_name_ctrl;
	CEdit m_pers_descr_ctrl;
protected:
	virtual void OnOK();
public:
	CaplButton m_ok_btn;
	CEdit m_pers_code_ctrl;
	CEdit m_pers_phone_ctrl;
	CEdit m_pers_email_ctrl;
	CEdit m_pers_actual_address_ctrl;
	CSortListCtrl m_list_org;
	afx_msg void OnNMDblclkListOrg(NMHDR *pNMHDR, LRESULT *pResult);
};

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

#endif // !defined(AFX_PERSONPROPDLG_H__736BA2AB_FAEC_49A3_A9BC_2E07FCD7F1AD__INCLUDED_)
