AyaNova CE Archive added as recovered from storage during attempt to upgrade a customer from v1.7 to v8!
This commit is contained in:
184
archive/ayanova 1.9.4 CE final release db schema 171/sp/PM.h
Normal file
184
archive/ayanova 1.9.4 CE final release db schema 171/sp/PM.h
Normal file
@@ -0,0 +1,184 @@
|
||||
#if !defined(AFX_PM_H__BA63E282_9608_11D4_964F_00C0F02C4B69__INCLUDED_)
|
||||
#define AFX_PM_H__BA63E282_9608_11D4_964F_00C0F02C4B69__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// PM.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPM dialog
|
||||
#include "gzcombo.h"
|
||||
#include "gzrset.h"
|
||||
#include "gzlistbox.h"
|
||||
#include "label.h"
|
||||
#include "afxwin.h"
|
||||
#include "afxdtctl.h"
|
||||
|
||||
class CPM : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CString m_strPrompt;
|
||||
bool m_bQuick;
|
||||
CString m_strSelCategory;
|
||||
CString m_strSelProject;
|
||||
void FillTypeList();
|
||||
void FillProjectList();
|
||||
bool m_bModel;
|
||||
void UpdateMeterCount(bool bWriting);
|
||||
void Aging();
|
||||
COleDateTime m_dtUnitPurchasedDate;
|
||||
int m_nSeries;
|
||||
long m_lCurrentRecordID;
|
||||
void Schedule();
|
||||
void ScheduleClear();
|
||||
bool m_bEditing;
|
||||
bool m_bReschedule;
|
||||
void FillRequiredPartsList();
|
||||
CString m_strSelectedTech;
|
||||
void FillTechList();
|
||||
void ClearFields();
|
||||
void FillFields();
|
||||
CString m_strSelectedPM;
|
||||
void FillPMList();
|
||||
void FillPartsList();
|
||||
bool m_bNoRecord;
|
||||
CSpApp* m_pApp;
|
||||
GZRset* rs;
|
||||
GZRset* cbrs;
|
||||
bool m_bAddMode;
|
||||
bool m_bAutoRepeat;
|
||||
bool m_bAutoWO;
|
||||
int m_nCurrentMode;
|
||||
void SwitchMode();
|
||||
bool m_bReadOnly;
|
||||
void EnableFields(bool bEnable);
|
||||
CString m_strCriteria;
|
||||
bool m_bClientMode;
|
||||
void PreInitialize(bool bClientMode, bool bModel, CString strCriteria, CString strPrompt, bool bResave=false);
|
||||
void GroupClick(int nClicked);
|
||||
~CPM();
|
||||
CPM(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPM)
|
||||
enum { IDD = IDD_PM };
|
||||
CStatic m_lblSeries;
|
||||
CEdit m_edSeries;
|
||||
CStatic m_lblTime5;
|
||||
CStatic m_lblTime4;
|
||||
CEdit m_edTimeRepeatEveryWeeks;
|
||||
CEdit m_edTimeRepeatEveryDays;
|
||||
CgzCombo m_cbCategories;
|
||||
CLabel m_lblType;
|
||||
CLabel m_lblProject;
|
||||
CButton m_ckQuick;
|
||||
CButton m_ckOnsite;
|
||||
CgzCombo m_cbProjects;
|
||||
CButton m_btnEdit;
|
||||
CButton m_ckHold;
|
||||
CStatic m_lblQuant;
|
||||
CStatic m_lblPartsList;
|
||||
CLabel m_lblPart;
|
||||
CgzListBox m_lbParts;
|
||||
CEdit m_edPartQuantity;
|
||||
CButton m_btnRemovePart;
|
||||
CButton m_btnAddPart;
|
||||
CgzCombo m_cbParts;
|
||||
CButton m_rdTime;
|
||||
CButton m_rdMetric;
|
||||
CButton m_rdAge;
|
||||
CStatic m_lblTime3;
|
||||
CStatic m_lblTime2;
|
||||
CStatic m_lblTime1;
|
||||
CStatic m_lblTech;
|
||||
CStatic m_lblPMList;
|
||||
CStatic m_lblMeter4;
|
||||
CStatic m_lblMeter3;
|
||||
CStatic m_lblMeter2;
|
||||
CStatic m_lblMeter1;
|
||||
CStatic m_lblDayOfWeek;
|
||||
CStatic m_lblConvertMeter;
|
||||
CStatic m_lblConvertDays;
|
||||
CStatic m_lblAge5;
|
||||
CStatic m_lblAge4;
|
||||
CStatic m_lblAge3;
|
||||
CStatic m_lblAge2;
|
||||
CStatic m_lblAge1;
|
||||
CEdit m_edTimeRepeatEveryMonths;
|
||||
CEdit m_edNotes;
|
||||
CEdit m_edMeterRepeat;
|
||||
CEdit m_edMeterLastReading;
|
||||
CEdit m_edMeterFirstService;
|
||||
CEdit m_edDescription;
|
||||
CEdit m_edConvertToWoAfter;
|
||||
CEdit m_edAgeYears;
|
||||
CEdit m_edAgeRepeat;
|
||||
CEdit m_edAgeMonths;
|
||||
CDateTimeCtrl m_dtTimeNextServiceDate;
|
||||
CDateTimeCtrl m_dtAgeFirstServiceDate;
|
||||
CButton m_ckAutoWO;
|
||||
CButton m_ckAutoRepeat;
|
||||
CgzCombo m_cbTech;
|
||||
CgzCombo m_cbPMList;
|
||||
CComboBox m_cbDayOfWeek;
|
||||
CButton m_btnDone;
|
||||
CButton m_btnDelete;
|
||||
CButton m_btnClone;
|
||||
CButton m_btnAdd;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPM)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPM)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnRdage();
|
||||
afx_msg void OnRdmetric();
|
||||
afx_msg void OnRdtime();
|
||||
afx_msg void OnBtndone();
|
||||
afx_msg void OnCkautorepeat();
|
||||
afx_msg void OnCkautowo();
|
||||
afx_msg void OnBtnadd();
|
||||
afx_msg void OnCloseupCbpmlist();
|
||||
afx_msg void OnBtnaddpart();
|
||||
afx_msg void OnBtnremovepart();
|
||||
afx_msg void OnBtnedit();
|
||||
afx_msg void OnBtndelete();
|
||||
virtual void OnOK();
|
||||
afx_msg void OnKillfocusEdageyrs();
|
||||
afx_msg void OnKillfocusEdagemonths();
|
||||
afx_msg void OnKillfocusEdmeterlastreading();
|
||||
afx_msg void OnCkquick();
|
||||
afx_msg void OnLblpart();
|
||||
afx_msg void OnLblproject();
|
||||
afx_msg void OnLbltype();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
private:
|
||||
void Security();
|
||||
bool m_bReadOnlySecurity;
|
||||
public:
|
||||
CStatic m_lblStartTime;
|
||||
CStatic m_lblEndTime;
|
||||
CDateTimeCtrl m_dtStartTime;
|
||||
CDateTimeCtrl m_dtEndtime;
|
||||
// Used to force auto resaves when called from the client screen when a unit is selected as part of a model's PM
|
||||
bool m_bResave;
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_PM_H__BA63E282_9608_11D4_964F_00C0F02C4B69__INCLUDED_)
|
||||
Reference in New Issue
Block a user