Files

95 lines
2.6 KiB
C++

#if !defined(AFX_LOANERSDLG_H__AC027B41_4377_11D4_964F_00C0F02C4B69__INCLUDED_)
#define AFX_LOANERSDLG_H__AC027B41_4377_11D4_964F_00C0F02C4B69__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LoanersDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CLoanersDlg dialog
#include "ReportCtrl.h"
#include "gzrset.h"
#include "ResizeCtrl.h"
#include "afxwin.h"
class CLoanersDlg : public CDialog
{
// Construction
public:
CResizeCtrl m_resize;
BOOL bColumnSortAsc[9];//<---COLUMN COUNT HERE MUST BE UPDATED WHEN NEW ONES ADDED
CString m_strOrderBy;
void Security();
~CLoanersDlg();
void ShowDateFields(bool bShow);
int m_nDateCriteriaX;
int m_nTypeCriteriaX;
CString m_strCriteria;
void Criteria();
void FillView();
CLoanersDlg(CWnd* pParent = NULL); // standard constructor
GZRset* rs;
GZRset* rsPrint;
CSpApp* m_pApp;
void OnRvnItemDbClick(NMHDR* pNMHDR, LRESULT* pResult);
void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
// Dialog Data
//{{AFX_DATA(CLoanersDlg)
enum { IDD = IDD_LOANERS };
CButton m_btnPrint;
CButton m_btnDelete;
CButton m_btnAdd;
CButton m_ckReceivedDate;
CButton m_ckDueDate;
CButton m_ckAnyDate;
CButton m_ckSentDate;
CButton m_ckShowReturned;
CButton m_ckShowOut;
CButton m_ckShowAll;
CReportCtrl m_rc;
CStatic m_lblTo;
CDateTimeCtrl m_dtTo;
CDateTimeCtrl m_dtFrom;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLoanersDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CImageList m_ilReport;
// Generated message map functions
//{{AFX_MSG(CLoanersDlg)
virtual BOOL OnInitDialog();
afx_msg void OnCkanydate();
afx_msg void OnCksentdate();
afx_msg void OnCkduedate();
afx_msg void OnCkreceiveddate();
afx_msg void OnCkshowreturned();
afx_msg void OnCkshowout();
afx_msg void OnCkshowallitems();
afx_msg void OnDatetimechangeDtto(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDatetimechangeDtfrom(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBtnprint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnNew();
afx_msg void OnDelete();
afx_msg void OnCloseThisScreen();
afx_msg void OnHelponloaners();
void Layout(void);
CStatic m_lblShow;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LOANERSDLG_H__AC027B41_4377_11D4_964F_00C0F02C4B69__INCLUDED_)