#if !defined(AFX_EXPORTSPECIFICATIONDLG_H__D3C48361_33EA_11D4_B92D_DF4F638BF25F__INCLUDED_)
#define AFX_EXPORTSPECIFICATIONDLG_H__D3C48361_33EA_11D4_B92D_DF4F638BF25F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ExportSpecificationDlg.h : header file
//
#include <apl_gui.h>
/////////////////////////////////////////////////////////////////////////////
// CExportSpecificationDlg dialog
class CaplProductTreeItem;

class CExportSpecificationDlg : public CaplTranslateDialog
{
// Construction
	struct CSpecificationItem
	{
		CString Format,Zone,Pos,Identification,Name,Count,Comments,pos1;
	};

public:
	void SortItems(CArray <CSpecificationItem*, CSpecificationItem*> &items);
	void PrintItemsToFile(CArray <CSpecificationItem*, CSpecificationItem*> &items, LPCTSTR file);
	void FreeItems(CArray <CSpecificationItem*, CSpecificationItem*> &items);

	
public:
	CExportSpecificationDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	CaplProductTreeItem *m_item;

	//{{AFX_DATA(CExportSpecificationDlg)
	enum { IDD = IDD_EXPORT_SPECIFIC };
	CComboBox	m_sel_context;
	CaplButton	m_cancel_btn;
	CaplButton	m_ok_btn;
	CEdit	m_doc_substring_ctrl;
	CButton	m_insert_doc_only_if_substr_ctrl;
	CEdit	m_out_file_ctrl;
	CString	m_prd_id;
	CString	m_prd_name;
	CString	m_ver_id;
	CButton	m_ins_docver_id_ctrl;
	CButton	m_use_ser_num_ctrl;
	CButton	m_use_date_ctrl;
	CButton	m_ins_ver_id_ctrl;
	CDateTimeCtrl	m_time_ctrl;
	CDateTimeCtrl	m_date_ctrl;
	CEdit	m_ser_num_ctrl;
	CEdit	m_docver_id_spacer_ctrl;
	CEdit	m_ver_id_spacer_ctrl;
	CString	m_out_file;
	//}}AFX_DATA
	static BOOL	m_std_individual;
	static BOOL	m_ins_ver_id;
	static BOOL	m_use_date;
	static BOOL	m_use_ser_num;
	static BOOL	m_ins_docver_id;
	static BOOL	m_del_temp_file;
	static CString	m_ser_num;
	static CString	m_ver_id_spacer;
	static CString	m_docver_id_spacer;
	static COleDateTime	m_date;
	static COleDateTime m_time;
	static CString	m_doc_substring;
	static BOOL	m_insert_doc_only_if_substr;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CExportSpecificationDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL


// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CExportSpecificationDlg)
	afx_msg void OnInsVerId();
	afx_msg void OnUseDate();
	afx_msg void OnUseSernum();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnInsDocverId();
	afx_msg void OnBrowseFile();
	afx_msg void OnInsertDocOnlyIfSubstring();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_EXPORTSPECIFICATIONDLG_H__D3C48361_33EA_11D4_B92D_DF4F638BF25F__INCLUDED_)
