AyaNova CE Archive added as recovered from storage during attempt to upgrade a customer from v1.7 to v8!
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
#if !defined(AFX_WOTABPARTS_H__CA8D53C3_2FB6_11D4_964F_00C0F02C4B69__INCLUDED_)
|
||||
#define AFX_WOTABPARTS_H__CA8D53C3_2FB6_11D4_964F_00C0F02C4B69__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// WOTABParts.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CWOTABParts dialog
|
||||
#include "gzcombo.h"
|
||||
#include "gzrset.h"
|
||||
#include "label.h"
|
||||
#include "gzlistbox.h"
|
||||
#include "gzCurrencyFormatter.h"
|
||||
#include "afxwin.h"
|
||||
|
||||
class CXTabCtrl;
|
||||
|
||||
class CWOTABParts : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
bool m_bReadOnly;
|
||||
void Security();
|
||||
bool bModified;
|
||||
void FillPartsCB();
|
||||
void FillPartsLB();
|
||||
~CWOTABParts();
|
||||
CWOTABParts(CWnd* pParent = NULL); // standard constructor
|
||||
CString* m_pstrProblemID;
|
||||
CString* m_pstrWorkorderID;
|
||||
CXTabCtrl* m_pTab;
|
||||
GZRset* rs;
|
||||
CSpApp* m_pApp;
|
||||
CgzCurrencyFormatter* cfm;
|
||||
//so that user is only prompted the first time
|
||||
//when deleting a part.
|
||||
bool m_bPromptDelete;
|
||||
|
||||
// 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(CWOTABParts)
|
||||
enum { IDD = IDD_WOTABPARTS };
|
||||
CEdit m_edSN;
|
||||
CgzListBox m_lbParts;
|
||||
CLabel m_lblPart;
|
||||
CStatic m_lblMisc;
|
||||
CEdit m_edQuantity;
|
||||
CEdit m_edPrice;
|
||||
CEdit m_edMisc;
|
||||
CgzCombo m_cbParts;
|
||||
CButton m_btnRemove;
|
||||
CButton m_btnAdd;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CWOTABParts)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CWOTABParts)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnCloseupCbparts();
|
||||
afx_msg void OnBtnadd();
|
||||
afx_msg void OnSelchangeLbparts();
|
||||
afx_msg void OnBtnremove();
|
||||
afx_msg void OnLblpart();
|
||||
virtual void OnOK();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
public:
|
||||
CButton m_btnUpdatePart;
|
||||
afx_msg void OnBnClickedBtnupdate();
|
||||
// last selected item for updating
|
||||
CString m_strSelectedItem;
|
||||
CEdit m_edMiscCost;
|
||||
CStatic m_lblMiscCost;
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_WOTABPARTS_H__CA8D53C3_2FB6_11D4_964F_00C0F02C4B69__INCLUDED_)
|
||||
Reference in New Issue
Block a user