#if !defined(AFX_PRDINSTCHANGEDLG_H__F9F099AB_438B_420A_94E4_4DABBF4ADFBC__INCLUDED_)
#define AFX_PRDINSTCHANGEDLG_H__F9F099AB_438B_420A_94E4_4DABBF4ADFBC__INCLUDED_

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

class CaplAPI;
class CaplInstance;
/////////////////////////////////////////////////////////////////////////////
// CPrdInstChangeDlg dialog

class CPrdInstChangeDlg : public CaplTranslateDialog
{
// Construction
protected:
	CaplInstance* m_old_pdf;
	CaplInstance* m_bp;
public:
	CPrdInstChangeDlg(CWnd* pParent = NULL);   // standard constructor

	CaplAPI *m_api;
	CaplInstance *m_src_pi_rel;
	CaplInstance *m_new_pi;
	CaplInstance *m_par_pi;
	CaplInstance *m_new_pi_rel;
	CaplInstance *m_new_pi_change;

// Dialog Data
	//{{AFX_DATA(CPrdInstChangeDlg)
	enum { IDD = IDD_PI_CHANGE };
	CComboBox	m_bp_names_ctrl;
	CButton	m_select_prd_inst;
	CButton	m_select_bp;
	CaplButton	m_cancel_btn;
	CaplButton	m_ok_btn;
	COleDateTime	m_date0;
	COleDateTime	m_time0;
	COleDateTime	m_date1;
	COleDateTime	m_time1;
	CString	m_prichina;
	CString	m_prd_ver_1;
	CString	m_prd_ver_0;
	CString	m_prd_id_0;
	CString	m_prd_id_1;
	CString	m_prd_name_0;
	CString	m_prd_name_1;
	CString	m_pi_id_0;
	CString	m_pi_id_1;
	CString	m_pi_sn_0;
	CString	m_pi_sn_1;
	CString	m_base_bp;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPrdInstChangeDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnSelectPrdInst();
	afx_msg void OnSelectBp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PRDINSTCHANGEDLG_H__F9F099AB_438B_420A_94E4_4DABBF4ADFBC__INCLUDED_)
