#if !defined(AFX_PROGRAMMODULEDLG_H__9137570D_0FB3_4895_9C4D_03A87A9E30E0__INCLUDED_)
#define AFX_PROGRAMMODULEDLG_H__9137570D_0FB3_4895_9C4D_03A87A9E30E0__INCLUDED_

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

class CaplAPI;
class CaplInstance;

/////////////////////////////////////////////////////////////////////////////
// CProgramModuleDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CProgramModuleDlg)
	enum { IDD = IDD_PROGRAM_MODULE_DIALOG };
	CDateTimeCtrl	m_endTimeCtrl;
	CDateTimeCtrl	m_endDateCtrl;
	CaplButton	m_cancelBtn;
	CaplButton	m_okBtn;
	CString	m_sDocId;
	CString	m_sDocName;
	CString	m_sLabel;
	BOOL	m_bRemoved;
	COleDateTime	m_beginDate;
	COleDateTime	m_endDate;
	CString	m_sContexts;
	CString	m_sRelDscr;
	CString	m_sRelId;
	CString	m_sRelName;
	CString	m_sDocRevId;
	COleDateTime	m_beginTime;
	COleDateTime	m_endTime;
	//}}AFX_DATA

public:
	CaplAPI* m_api;
	CaplInstance* m_rel;
	CaplInstance* m_rev;
	
	aplExtent m_contexts;

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CProgramModuleDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnDocInstHasRemoved();
	afx_msg void OnDocInstSelContext();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PROGRAMMODULEDLG_H__9137570D_0FB3_4895_9C4D_03A87A9E30E0__INCLUDED_)
