Files

144 lines
3.4 KiB
C++

#if !defined(AFX_DBUTILS_H__F544FA42_4065_11D4_964F_00C0F02C4B69__INCLUDED_)
#define AFX_DBUTILS_H__F544FA42_4065_11D4_964F_00C0F02C4B69__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DBUtils.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDBUtils form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "spdoc.h"
#include "gzrset.h"
#include "gzk.h"
class CDBUtils : public CFormView
{
public:
CDBUtils(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDBUtils)
CSpApp* m_pApp;
GZRset* rs2;
GZRset* rs3;
GZRset* rs;
CProgressCtrl* ppg[11];
bool Execute(CString strQuery);
// Form Data
public:
//{{AFX_DATA(CDBUtils)
enum { IDD = IDD_DBUTILS_FORM };
CStatic m_st11;
CProgressCtrl m_pg11;
CButton m_btnTest;
CStatic m_st9;
CStatic m_st8;
CStatic m_st7;
CStatic m_st6;
CStatic m_st10;
CProgressCtrl m_pg9;
CProgressCtrl m_pg8;
CProgressCtrl m_pg7;
CProgressCtrl m_pg6;
CProgressCtrl m_pg10;
CButton m_btnDelAll;
CButton m_btnQuickIndex;
CButton m_btnIndexAll;
CButton m_btnDefaults;
CButton m_btnCompact;
CButton m_btnCM3;
CStatic m_lblWordCount;
CStatic m_lblPartialInfo;
CStatic m_lblFullInfo;
CStatic m_st5;
CStatic m_st4;
CStatic m_st3;
CStatic m_st2;
CStatic m_st1;
CProgressCtrl m_pg5;
CProgressCtrl m_pg4;
CProgressCtrl m_pg3;
CProgressCtrl m_pg2;
CProgressCtrl m_pg1;
//}}AFX_DATA
// Attributes
public:
// Operations
public:
void EvaluationDatesAdvance();
void WelcomeToSC();
bool m_bBootScanDone;
void BootScan();
void MakeIntoWorkorder(CString strPMItem);
void UpdateDatabaseSchema();
void EraseAll();
void SetRights();
CString m_strErrorLog;
void LogError(CString strError);
void zTrace(CString msg, bool bShow);
void ShowMe(CString txt);
long FindMaxChar();
void ShowIndexInfo();
bool SuckWords(int nTable);
BOOL PeekAndPump();
void ShowProgressControls(bool bShow);
void Index(bool bFullIndex);
bool ExclusiveAccess();
void DeActivate();
void Activate();
CSpDoc* GetDocument();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDBUtils)
public:
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDBUtils();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDBUtils)
afx_msg void OnBtncompact();
afx_msg void OnBtndefaults();
afx_msg void OnBtnindexall();
afx_msg void OnBtnquickindex();
afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnBtncm3();
afx_msg void OnBtndeleteall();
afx_msg void OnBtntest();
afx_msg void OnBtnexport();
afx_msg void OnBtnimport();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
// _ConnectionPtr pConnection;
public:
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DBUTILS_H__F544FA42_4065_11D4_964F_00C0F02C4B69__INCLUDED_)