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,166 @@
|
||||
//{{AFX_INCLUDES()
|
||||
#include "ctschedule.h"
|
||||
//}}AFX_INCLUDES
|
||||
#if !defined(AFX_SCHEDULEFRM_H__C5A2FB05_B94D_11D4_964F_00C0F02C4B69__INCLUDED_)
|
||||
#define AFX_SCHEDULEFRM_H__C5A2FB05_B94D_11D4_964F_00C0F02C4B69__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// ScheduleFrm.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CScheduleFrm form view
|
||||
#include <afxcoll.h>
|
||||
#ifndef __AFXEXT_H__
|
||||
#include <afxext.h>
|
||||
#endif
|
||||
|
||||
#include "gzrset.h"
|
||||
#include "label.h"
|
||||
#include "DlgDispStatPopup.h"
|
||||
#include "scheduletimebardata.h"
|
||||
#include "perftimer.h"
|
||||
|
||||
class CScheduleFrm : public CFormView
|
||||
{
|
||||
public:
|
||||
CScheduleFrm(); // protected constructor used by dynamic creation
|
||||
DECLARE_DYNCREATE(CScheduleFrm)
|
||||
GZRset* rs;
|
||||
GZRset* rs2;
|
||||
GZRset* rs3;
|
||||
CSpApp* m_pApp;
|
||||
//used by various calcs
|
||||
COleDateTime m_dt1900;
|
||||
CObArray arBar;
|
||||
CScheduleTimeBarData * m_ptbData;
|
||||
CPerfTimer pTimer;
|
||||
CPerfTimer pTimerSQL;
|
||||
double m_dFastest,m_dSlowest, m_dLast, m_dAverage, m_dOverallTime;
|
||||
unsigned int m_uiRefreshCount;
|
||||
bool m_bZoneView;
|
||||
|
||||
// Form Data
|
||||
public:
|
||||
//{{AFX_DATA(CScheduleFrm)
|
||||
enum { IDD = IDD_SCHEDULEFRM_FORM };
|
||||
CStatic m_lblZone;
|
||||
CgzCombo m_cbZone;
|
||||
CButton m_btnBack;
|
||||
CButton m_btnForward;
|
||||
CButton m_btnPrint;
|
||||
CButton m_lblView;
|
||||
CStatic m_lblStartDate;
|
||||
CButton m_btnRefresh;
|
||||
CButton m_ckLock;
|
||||
CButton m_rdWeek;
|
||||
CButton m_rdMonth;
|
||||
CButton m_rdDay;
|
||||
CLabel m_lblDetails;
|
||||
CDateTimeCtrl m_dtDate;
|
||||
CctSchedule m_sc;
|
||||
//}}AFX_DATA
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
|
||||
bool m_bUpdating;
|
||||
bool m_bTimerIsActive;
|
||||
long m_lLastRefreshValue;
|
||||
int m_nTimer;
|
||||
int m_nBarStyleOverlapping;
|
||||
int m_nBarStyleTimeOff;//added 07/24/01 to handle flagging tech time off
|
||||
int m_nBarStyleAllDayText;//added 07/24/01 to handle descriptive text for all day backcolor
|
||||
void FillZoneList();
|
||||
void ClearTimeBarObjects();
|
||||
int m_nTotalAllocated;
|
||||
bool m_bUndoing;
|
||||
|
||||
// long m_lBarDateStart;
|
||||
// long m_lBarTimeStart;
|
||||
// long m_lBarDateEnd;
|
||||
// long m_lBarTimeEnd;
|
||||
bool m_bLocked;
|
||||
bool m_bRefresh;
|
||||
COleDateTime m_dtWindowStart;
|
||||
COleDateTime m_dtWindowStop;
|
||||
void GetUserHoursPreferences();
|
||||
int m_nDayWeekMonth;
|
||||
void ZoomClick(int nItem);
|
||||
void Scroll(bool bForward);
|
||||
int m_nZoomFactor;
|
||||
void SchedToOleDT(long lSchedDateValue,long lSchedTimeValue, COleDateTime* dt);
|
||||
short m_nOldBar;
|
||||
short m_nOldIndex;
|
||||
unsigned long m_ulHighLightedBar;
|
||||
unsigned long m_ulStandardBar;
|
||||
void FillView();
|
||||
void DeActivate();
|
||||
void Activate();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CScheduleFrm)
|
||||
public:
|
||||
virtual void OnInitialUpdate();
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
virtual ~CScheduleFrm();
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CScheduleFrm)
|
||||
afx_msg void OnDatetimechangeDtdate(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnBtnprint();
|
||||
afx_msg void OnItemMoveCtsched(short nIndex, short nBar);
|
||||
afx_msg void OnBarDblClickCtsched(short nIndex, short nBar);
|
||||
afx_msg void OnBarSizingCtsched(short nIndex, short nBar, short nType, long lTimeStart, long lTimeEnd, long lDateStart, long lDateEnd);
|
||||
afx_msg void OnBarChangedCtsched(short nIndex, short nBar, LPCTSTR cKeyID, long lTimeStart, long lTimeEnd, long lDateStart, long lDateEnd);
|
||||
afx_msg void OnBarAddedCtsched(short nIndex, short nBar, BOOL bMouseBar, BOOL bKeyedBar);
|
||||
afx_msg void OnBarRightClickCtsched(short nIndex, short nBar);
|
||||
afx_msg void OnBtnback();
|
||||
afx_msg void OnBtnforward();
|
||||
afx_msg void OnRdday();
|
||||
afx_msg void OnRdmonth();
|
||||
afx_msg void OnRdweek();
|
||||
afx_msg void OnBtnrefresh();
|
||||
afx_msg void OnCKLOCk();
|
||||
afx_msg void OnCloseupCbzone();
|
||||
afx_msg void OnTimer(UINT nIDEvent);
|
||||
DECLARE_EVENTSINK_MAP()
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
private:
|
||||
void RoundTime(long* lMinutes, long* lHours);
|
||||
bool m_bLayoutDone;
|
||||
void LayoutControls();
|
||||
void Undo(short nIndex, short nBar);
|
||||
void GetTimeBarObject(short nIndex, short nBar);
|
||||
long m_lUserStopHour;
|
||||
long m_lUserStartHour;
|
||||
public:
|
||||
bool m_bShowProblemDetailsInStatusDisplay;
|
||||
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
|
||||
void CleanupForExit(void);
|
||||
afx_msg void OnDestroy();
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_SCHEDULEFRM_H__C5A2FB05_B94D_11D4_964F_00C0F02C4B69__INCLUDED_)
|
||||
Reference in New Issue
Block a user