#if !defined(AFX_SELECTWFSDLG_H__28FECDED_8BF8_49E0_8B4A_4D72F60856E5__INCLUDED_)
#define AFX_SELECTWFSDLG_H__28FECDED_8BF8_49E0_8B4A_4D72F60856E5__INCLUDED_

#include "apl_api.h"	// Added by ClassView
#include "apl_gui.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SelectWFSDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSelectWFSDlg dialog
#include "resource.h"

class CSelectWFSDlg : public CaplTranslateDialog
{
// Construction
public:
	CString m_new_state;
	CaplInstance *m_inst;
	CaplAPI *m_api;
	CSelectWFSDlg(CWnd* pParent = NULL);   // standard constructor

	bool m_bModeFreeChange;
	BOOL m_bNoSetApproved;
	bool m_bOnlyFreeChange;

	bool m_dDisableChangeState; // Запрет изменения состояний.
	
// Dialog Data
	//{{AFX_DATA(CSelectWFSDlg)
	enum { IDD = IDD_WFS_SELECT_DLG };
	CButton	m_show_all_states_dlg;
	CStatic	m_state_ico_6;
	CStatic	m_state_ico_5;
	CStatic	m_state_ico_4;
	CStatic	m_state_ico_3;
	CStatic	m_state_ico_2;
	CStatic	m_state_ico_1;
	CStatic	m_state_ico_0;
	CButton	m_mrevision;
	CButton	m_changing;
	CButton	m_working;
	CButton	m_canceled;
	CButton	m_approving_change;
	CButton	m_approving;
	CButton	m_approved;
	CaplButton	m_ok_btn;
	CaplButton	m_cancel_btn;
	CString	m_current;
	int		m_nState;
	//}}AFX_DATA

	void SetPossibleStates();
	void SetAllStatesAsPossible();

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSelectWFSDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnShowAllStates();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CStringArray m_states;
};

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

#endif // !defined(AFX_SELECTWFSDLG_H__28FECDED_8BF8_49E0_8B4A_4D72F60856E5__INCLUDED_)
