#if !defined(AFX_ADDDATESN_H__4FBF3072_9B76_46B1_857E_C61E4BC83ECB__INCLUDED_)
#define AFX_ADDDATESN_H__4FBF3072_9B76_46B1_857E_C61E4BC83ECB__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CAddDateSn dialog

class CaplProductManager;
class CaplNetStepData;
class CaplInstance;

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

// Dialog Data
	//{{AFX_DATA(CAddDateSn)
	enum { IDD = IDD_ADDDATESN };
	CComboBox	m_sel_context;
	CDateTimeCtrl	m_time;
	CDateTimeCtrl	m_date;
	CEdit	m_editsn;
	CButton	m_checkSn;
	CButton	m_checkDate;
	//}}AFX_DATA
	COleDateTime m_dt;
	CString m_sn;
	
	CaplAPI *m_api;
	CaplInstance *m_pProductPDF;
	CaplInstance *m_pSelectedItem; // Конфигурационный базис / комплектация
	CaplInstance *m_context;
	CaplToolTip m_ttToolTip;

	CaplComboBox m_cbSelectConfiguration;
	CStatic m_statConfigStatic;
	CButton m_btnLoadProductConfigs;
	CButton m_btnOk;
	CButton m_btnCancel;

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CAddDateSn)
	afx_msg void OnCheckdate();
	afx_msg void OnChecsn();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:	
	afx_msg void OnCbnSelchangeSelConfiguration();	
	afx_msg void OnBnClickedLoadChosenProductConfigurationsButton();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
};

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

#endif // !defined(AFX_ADDDATESN_H__4FBF3072_9B76_46B1_857E_C61E4BC83ECB__INCLUDED_)
