Files
ayanova7/archive/ayanova 1.9.4 CE final release db schema 171/sp/RatesDlg.h

96 lines
2.6 KiB
C++

#if !defined(AFX_RATESDLG_H__9E6B12A1_19D6_11D4_964F_00C0F02C4B69__INCLUDED_)
#define AFX_RATESDLG_H__9E6B12A1_19D6_11D4_964F_00C0F02C4B69__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RatesDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CRatesDlg dialog
#include "gzcombo.h"
#include "gzrset.h"
#include "label.h"
#include "gzCurrencyFormatter.h"
class CRatesDlg : public CDialog
{
// Construction
public:
void Security();
void DisableAll(bool disable);
bool AddRecord();
void SetReturnString(CString* ret);
void FillFields();
CString m_strSelectedRate;
CString * m_strReturnValue;
bool m_bAddMode;
void FillRateList();
CRatesDlg(CWnd* pParent = NULL); // standard constructor
~CRatesDlg(); //destructor
GZRset* rs;
CSpApp* m_pApp;
CgzCurrencyFormatter* cfm;
//Save fields
bool SaveField(CEdit* edControl,CString fldname,bool AllowEmpty);
bool SaveField(CgzCombo* cbControl,CString fldname);
bool SaveField(CButton* ckControl,CString fldname);
bool SaveField(CDateTimeCtrl* dtControl,CString fldname);
bool SaveCurrencyField(CEdit *crControl,CString fldname);
bool UpdateModified();
//-------------------------------
// Dialog Data
//{{AFX_DATA(CRatesDlg)
enum { IDD = IDD_RATES };
CButton m_ckTravel;
CButton m_btnAdd;
CDateTimeCtrl m_dtExpiry;
CButton m_ckActive;
CButton m_btnDone;
CEdit m_edCost;
CButton m_btnDelete;
CButton m_ckFlat;
CEdit m_edPartNumber;
CEdit m_edCharge;
CEdit m_edRateName;
CStatic m_lblRates;
CgzCombo m_cbRates;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRatesDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CRatesDlg)
virtual BOOL OnInitDialog();
afx_msg void OnCloseupRatelist();
afx_msg void OnAdd();
afx_msg void OnKillfocusCost();
afx_msg void OnActive();
afx_msg void OnDelete();
afx_msg void OnFlatrate();
afx_msg void OnKillfocusPartnumber();
afx_msg void OnKillfocusRate();
afx_msg void OnKillfocusRatename();
virtual void OnOK();
afx_msg void OnDatetimechangeExpirydate(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnTravelrate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RATESDLG_H__9E6B12A1_19D6_11D4_964F_00C0F02C4B69__INCLUDED_)