www.pudn.com > stocksoft.rar > Accobook_CEView.h


// Accobook_CEView.h : interface of the CAccobook_CEView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_ACCOBOOK_CEVIEW_H__8312E04D_A530_11D2_83D1_0000210056C3__INCLUDED_) 
#define AFX_ACCOBOOK_CEVIEW_H__8312E04D_A530_11D2_83D1_0000210056C3__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
#include "MyEdit.h" 
#include "FloatEdit2.h" 
#include "ListCtrlEx.h" 
class CSearchDlg; 
class CCalcDlg; 
class CKXianTu; 
class CMyTime:public CObject 
{ 
public: 
	CMyTime(); 
	CMyTime(double&,double&,double&); 
	CMyTime(CString&); 
	~CMyTime(); 
	//operator CMyTime(); 
	//CMyTime operator =(CMyTime &f); 
	CString GetStrBeforePoint(CString&); 
	BOOL YearMonthDayIn(CMyTime,CMyTime,CMyTime); 
	double m_dYear; 
	double m_dMonth; 
	double m_dDay; 
}; 
 
class CAccobook_CEView : public CFormView 
{ 
protected: // create from serialization only 
	CAccobook_CEView(); 
	DECLARE_DYNCREATE(CAccobook_CEView) 
 
public: 
	CSearchDlg* p_SearchDlg; 
	CCalcDlg* p_CalcDlg; 
	CKXianTu* p_KXianTu; 
	//{{AFX_DATA(CAccobook_CEView) 
	enum { IDD = IDD_ACCOBOOK_CE_FORM }; 
	CMyEdit	m_BeiZhuCtrl; 
	CFloatEdit2	m_RiQiCtrl; 
	CFloatEdit2	m_ShuECtrl; 
	BOOL	m_bShouRu; 
	BOOL	m_bZhiChu; 
	CString	m_s2; 
	CString	m_s1; 
	double	m_dIncome; 
	double	m_dOutcome; 
	double	m_dYingyu; 
	CString	m_sDaiMa; 
	CString	m_sMingChen; 
	CString	m_sJiaGe; 
	CString	m_sKaiPanJia; 
	CString	m_sShouPanJia; 
	CString	m_sZuiDiJia; 
	CString	m_sZuiGaoJia; 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CAccobook_CEDoc* GetDocument(); 
	void ShowAll(); 
	void ReShow(); 
	void MyUpdate(); 
	int UpdateList(int nField,CString s); 
	int UpdateList2(int nField,CString s1,CString s2); 
	int UpdateListByTime(int nField,CString s1,CString s2); 
	int UpdateListWithAll(CString sType, 
							CString sShuE1,CString sShuE2, 
							CString sRIQI1,CString sRIQI2, 
							CString sBeiZhu, 
							CString m_sDaiMa=_T(""),CString m_sMingChen=_T("")); 
	int UpdateListForKXianTu(CString sRIQI1,CString sRIQI2, 
							CString m_sDaiMa=_T(""),CString m_sMingChen=_T("")); 
	int PrePareKXianTuValues(); 
	int Swap(double& d1,double& d2); 
	int PrePareTimeIndex(); 
	void RefreshCtrl(); 
	void InitCtrl(); 
	int StationIn(PBYTE cc,CString s); 
	int StationIn2(const char* cc,const char* c); 
	BOOL YearMonthDayIn(double y1,double m1,double d1, 
						double y2,double m2,double d2, 
						double y3,double m3,double d3); 
	CString MyMakeUpperAndRemoveSpaces(CString str); 
 
// Operations 
public: 
//	BOOL m_bLiuLan; 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CAccobook_CEView) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual void OnInitialUpdate(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CAccobook_CEView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CAccobook_CEView) 
	afx_msg void OnButton1(); 
	afx_msg void OnButton2(); 
	afx_msg void OnButton3(); 
	afx_msg void OnButton4(); 
	afx_msg void OnCheck1(); 
	afx_msg void OnCheck2(); 
	afx_msg void OnButtonPrev(); 
	afx_msg void OnButtonNext(); 
	afx_msg void OnFileDeleteall(); 
	afx_msg void OnButtonListall(); 
	afx_msg void OnButtonTest(); 
	afx_msg void OnButtonDelete(); 
	afx_msg void OnButtonModify(); 
	afx_msg void OnButtonStatistics(); 
	afx_msg void OnButtonCalc(); 
	afx_msg void OnButtonK(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in Accobook_CEView.cpp 
inline CAccobook_CEDoc* CAccobook_CEView::GetDocument() 
   { return (CAccobook_CEDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ACCOBOOK_CEVIEW_H__8312E04D_A530_11D2_83D1_0000210056C3__INCLUDED_)