#if !defined(AFX_ADDSERIALNUM_H__E6E1E79F_57E1_40A0_849A_EBE3213DFD11__INCLUDED_)
#define AFX_ADDSERIALNUM_H__E6E1E79F_57E1_40A0_849A_EBE3213DFD11__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AddSerialNum.h : header file
//

#include "resource.h"
#include "apl_api.h"

class CaplNetStepData;
class CaplInstance;
class CManagerEffectivityDlg;
/////////////////////////////////////////////////////////////////////////////
// CAddSerialNum dialog
// класс для добавления и редактирования применяемости 
// по серийному номеру
class CAddSerialNum : public CaplTranslateDialog
{
// Construction
public:
	CAddSerialNum(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CAddSerialNum)
	enum { IDD = IDD_ADDSERIALNUMBER };
	CButton	m_start_check;
	CButton	m_end_check;
	CButton	m_cancel_btn;
	CButton	m_ok_btn;
	CEdit	m_stop_sn_ctrl;
	CEdit	m_start_sn_ctrl;
	CEdit	m_eff_id_ctrl;
	CString	m_start_sn;
	//}}AFX_DATA
	bool m_RO;
	CaplNetStepData *m_data;
	CaplInstance *m_eff;
	CaplInstance *m_rel;
	CaplProductManager *m_PrMan;
	CManagerEffectivityDlg *maindlg;
	int flag;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAddSerialNum)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CAddSerialNum)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnStartCheckSn();
	afx_msg void OnEndCheckSn();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ADDSERIALNUM_H__E6E1E79F_57E1_40A0_849A_EBE3213DFD11__INCLUDED_)
