#if !defined(AFX_FINDADJUSTAPPRDLG_H__4857D7E5_7265_48CA_AE0A_0BBE157B3425__INCLUDED_)
#define AFX_FINDADJUSTAPPRDLG_H__4857D7E5_7265_48CA_AE0A_0BBE157B3425__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FindAdjustApprDlg.h : header file
//
#include "resource.h"
#include "apl_gui.h"
#include "afxwin.h"

struct ElValApproval;
class CaplNetStepData;


/////////////////////////////////////////////////////////////////////////////
// CFindAdjustApprDlg dialog

class CFindAdjustApprDlg : public CaplTranslateDialog
{
// Construction
public:
	CaplAPI *m_api;
	bool m_read_only;
	bool m_mode_slave;

	ElValApproval* m_el;
	CFindAdjustApprDlg(CWnd* pParent = NULL);   // standard constructor
	void MakeDateState();
	void MakeRevoceState();
	CaplInstance *m_po;
// Dialog Data
	//{{AFX_DATA(CFindAdjustApprDlg)
	enum { IDD = IDD_FIND_ADJUST_APPROVAL };
	CaplButton	m_BtnOk;
	CaplButton	m_BtnCancel;
	CButton	m_chk_st_status;
	CButton	m_chk_st_dig_sign;
	CButton	m_chk_st_role;
	CButton	m_chk_st_person;
	CButton	m_chk_st_date;
	CEdit	m_CtrlPO;
	CEdit	m_CtrlDescr;
	CButton	m_BtnSelPO;
	CComboBox	m_ExistApproval;
	CButton	m_chk_date_end_ctrl;
	CButton	m_chk_date_beg_ctrl;
	CButton	m_chk_revoc_date_end_ctrl;
	CButton	m_chk_revoc_date_beg_ctrl;
	CComboBox	m_type_date;
	CDateTimeCtrl	m_date_end_ctrl;
	CDateTimeCtrl	m_date_beg_ctrl;
	CDateTimeCtrl	m_time_end_ctrl;
	CDateTimeCtrl	m_time_beg_ctrl;
	CDateTimeCtrl	m_revoc_date_beg_ctrl;
	CDateTimeCtrl	m_revoc_time_beg_ctrl;
	CDateTimeCtrl	m_revoc_date_end_ctrl;
	CDateTimeCtrl	m_revoc_time_end_ctrl;
	CComboBox	m_status;
	CComboBox	m_dig_sign;
	CComboBox	m_po_role;
	BOOL	m_chk_date_beg;
	BOOL	m_chk_date_end;
	BOOL	m_chk_revoc_beg;
	BOOL	m_chk_revoc_end;
	BOOL	m_chk_person;
	BOOL	m_chk_descr;
	BOOL	m_chk_role;
	BOOL	m_chk_status;
	BOOL	m_chk_dig_sign;
	BOOL	m_role_eq;
	BOOL	m_chk_date;
	CString	m_EdtPO;
	CString	m_EdtDescr;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CFindAdjustApprDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnCancelMode();
	virtual void OnOK();
	afx_msg void OnChk();
	afx_msg void OnSelchangeTypeDate();
	afx_msg void OnSelchangeExistApproval();
	afx_msg void OnSelPo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CComboBox m_CmbxDescrRel;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


#endif // !defined(AFX_FINDADJUSTAPPRDLG_H__4857D7E5_7265_48CA_AE0A_0BBE157B3425__INCLUDED_)
