
#if !defined(AFX_ADDRULEDATE_H__290B5466_CA58_4D5D_9B2C_04B421A374FE__INCLUDED_)
#define AFX_ADDRULEDATE_H__290B5466_CA58_4D5D_9B2C_04B421A374FE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AddRuleDate.h : header file
//
#include "resource.h"
#include "apl_api.h"

class CaplNetStepData;
class CaplInstance;

/////////////////////////////////////////////////////////////////////////////
// CAddRuleDate dialog
// класс для добавления и редактирования правил применяемости
// по дате
class CAddRuleDate : public CaplTranslateDialog
{
// Construction
public:

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

// Dialog Data
	//{{AFX_DATA(CAddRuleDate)
	enum { IDD = IDD_ADDRULEDATE };
	CButton	m_end_check;
	CButton	m_start_check;
	CButton	m_ok_btn;
	CButton	m_cancel_btn;
	CDateTimeCtrl	m_stop_date_ctrl;
	CDateTimeCtrl	m_start_date_ctrl;
	CEdit	m_eff_id_ctrl;
	COleDateTime	m_start_date;
	//}}AFX_DATA

	bool m_RO;
	CaplNetStepData *m_data;
	CaplInstance *m_eff;
	CaplInstance *m_rel;
	CString s_dt;
	CaplProductManager *m_PrMan;
	int flag;
	COleDateTime d_time;

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

// Implementation
protected:
	
	// Generated message map functions
	//{{AFX_MSG(CAddRuleDate)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnStartCheck();
	afx_msg void OnEndCheck();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ADDRULEDATE_H__290B5466_CA58_4D5D_9B2C_04B421A374FE__INCLUDED_)
