#if !defined(AFX_TMPLDIALOG_H__51CA041E_2A5D_41EB_8810_6F2818641E51__INCLUDED_)
#define AFX_TMPLDIALOG_H__51CA041E_2A5D_41EB_8810_6F2818641E51__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TmplDialog.h : header file
//
#include "resource.h"
#include "apl_api.h"
#include "apl_gui.h"
#include "afxwin.h"
/////////////////////////////////////////////////////////////////////////////
// CTmplDialog dialog

class CaplWorkFlowManager;
class CaplAutorizationManager;

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

// Dialog Data
	//{{AFX_DATA(CTmplDialog)
	enum { IDD = IDD_TMPL_DIALOG };
	CTabCtrl	m_tabCtrl;
	CaplButton	m_okBtn;
	CStatic	m_finish;
//	CButton	m_per;
	CListCtrl	m_perList;
	CString	m_sFinish;
	CString	m_sStart;
	CStatic	m_start;
	CString	m_sId;
	CString	m_sName;
	CString	m_sDscr;
	CString	m_sRole;
	//}}AFX_DATA
	
	CaplAPI* m_api;
	CaplWorkFlowManager *m_wfMgr;
	CaplInstance* m_instance;

	CImageList m_imageList;
	
	void ShowPersonsInList(CaplAggr &aggr);

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTmplDialog)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeTmplTab(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedGiveProcessOwner();
	CButton m_give_process_owner_ctrl;
};

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

#endif // !defined(AFX_TMPLDIALOG_H__51CA041E_2A5D_41EB_8810_6F2818641E51__INCLUDED_)
