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

83 lines
2.2 KiB
C++

#if !defined(AFX_WOTABLABOUR_H__CA8D53C5_2FB6_11D4_964F_00C0F02C4B69__INCLUDED_)
#define AFX_WOTABLABOUR_H__CA8D53C5_2FB6_11D4_964F_00C0F02C4B69__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WOTABLabour.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CWOTABLabour dialog
#include "ReportCtrl.h"
#include "gzrset.h"
class CXTabCtrl;
class CWOTABLabour : public CDialog
{
// Construction
public:
~CWOTABLabour();
CString* m_pstrClientID;
void Security();
bool bModified;
//used to determine if user prefs should be saved
//if saved with no items, causes crash on next
//entry if there are items.
bool m_bIsItemsInList;
void FillList();
CWOTABLabour(CWnd* pParent = NULL); // standard constructor
CXTabCtrl* m_pTab;
CString* m_pstrProblemID;
CString* m_pstrWorkorderID;
CSpApp* m_pApp;
GZRset* rs;
CStringList lsNotes;
void OnRvnItemDbClick(NMHDR* pNMHDR, LRESULT* pResult);
void OnRvnItemDrawPreview(NMHDR* pNMHDR, LRESULT* pResult);
// Convert a float to ascii preserving locale format
CString FtoA(float fData)
{
_variant_t vItem(fData);
_bstr_t bs;
VarFormatNumber(&vItem,-1,-2,-2,-2,0,bs.GetAddress());
return CString((BSTR)bs);
}
// Dialog Data
//{{AFX_DATA(CWOTABLabour)
enum { IDD = IDD_WOTABLABOUR };
CButton m_btnDelete;
CButton m_btnAdd;
CButton m_ckShowDetails;
CReportCtrl m_rcLabour;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWOTABLabour)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CWOTABLabour)
virtual BOOL OnInitDialog();
afx_msg void OnBtnadd();
afx_msg void OnClose();
afx_msg void OnCKDetails();
afx_msg void OnBtndelete();
afx_msg void OnBtnedit();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WOTABLABOUR_H__CA8D53C5_2FB6_11D4_964F_00C0F02C4B69__INCLUDED_)