#if !defined(AFX_TodayForm_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_) #define AFX_TodayForm_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // TodayForm.h : header file // ///////////////////////////////////////////////////////////////////////////// // TodayForm form view #ifndef __AFXEXT_H__ #include #endif #include "MyFormView.h" #include "Calendarfrm.h" #include "XTable.h" #include "TodayFormChild.h" #include "TreeComboBox2.h" class TodayForm : public MyFormView // Jeff:摄控本 { CString m_date1,m_date2; int m_page; TodayFormChild m_childdlg; // 控件 XTable m_table; // 控件 BOOL m_bShowCalendar; int m_nAdd; int m_nAdd2; BOOL m_bInit; int m_mode; CArraym_List1array;// 拍照客人; CArraym_List2array;// 选片客人; CArraym_List3array;// 看设计客人; CArraym_List4array;// 取件客人; CArraym_List5array; CArraym_List6array; CArraym_List7array; CStringArray m_datearray1; CStringArray m_datearray2; CStringArray m_datearray3; CStringArray m_datearray4; CStringArray m_datearray5; CStringArray m_datearray6; protected: TodayForm(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(TodayForm) CCalendarFrm m_CalendarFrm; // Jeff:摄控本图表控件 // Form Data public: enum { IDD = IDD_DLGTodayForm }; CTreeComboBox2 m_combo1; CScrollBar m_vScroll; INT nVscroll; CRect rt_mvScroll; CSortListCtrl3 m_List6; CSortListCtrl3 m_List5; CSortListCtrl3 m_List4; // 取件客人列表; CSortListCtrl3 m_List3; // 看设计客人列表; CSortListCtrl3 m_List2; // 选片客人列表; CSortListCtrl3 m_List1; // 拍照客人列表; CSpinButtonCtrl m_spinday; CSpinButtonCtrl m_spinmonth; CSpinButtonCtrl m_spinyear; CStatic m_static1; UINT m_year; UINT m_month; UINT m_day; // m_radio // 0:拍照客人; // 1:选片客人; // 2:看设计客人; // 3:取件客人; // 4:婚庆客人; // 5:近期生日; // 6:其他预约; int m_radio; BOOL m_check; // 近一个星期; BOOL m_check2; // 近半个月; // m_radio2: // 0:生日; // 1:婚期/宝宝满月; // 2:结婚纪念日/宝宝100天; // 3:孕妇预产期; int m_radio2; int m_nscrollpos; //}}AFX_DATA // Attributes public: // Operations public: void OnBUTtakeaway1(); void OnBUTtakeaway2(); void OnBUTtakeaway3(); void OnBUTtakeaway4(); void OnBUTtakeaway5(); CString GetDate(); void ReLoad1(); void OnBUTall2(); void SetDate(int m_iYear, int m_iMonth, int m_iDay); void GetCalendarData(); void GetData1(CString strdate, CString strdate2); void GetData2(CString strdate, CString strdate2); void GetData3(CString strdate, CString strdate2); void GetData4(CString strdate, CString strdate2); void GetData5(CString strdate, CString strdate2); void HidePrice(); void GetClientPhone5(); void GetClientPhone4(); void GetClientPhone3(); void GetClientPhone2(); void GetClientPhone(); void DateChange(); void FillGrid(); public: virtual void OnInitialUpdate(); virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual ~TodayForm(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif afx_msg void OnBUTclose(); // 关闭; afx_msg void OnBUTtake(); // 客人预约; afx_msg void OnBUTchoose(); // 重新安排; afx_msg void OnBUTtakeaway(); // 打印; afx_msg void OnBUTall(); // 详情; afx_msg void OnBUTtake3(); // 统计未拍; afx_msg void OnBUTmsg(); // 短信; afx_msg void OnBUTchoose3(); afx_msg void OnCheck1(); afx_msg void OnChangeEDITyear(); afx_msg void OnChangeEDITmonth(); afx_msg void OnChangeEDITday(); afx_msg void OnRadio3(); // 拍照客人; afx_msg void OnRadio4(); // 选片客人; afx_msg void OnRadio5(); // 看设计客人; afx_msg void OnRadio6(); // 取件客人; afx_msg void OnRadio7(); // 婚庆客人; afx_msg void OnRadio8(); // 近期生日; afx_msg void OnCheck2(); afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnClickList3(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnClickList4(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnClickList7(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnClickList8(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDblclkList2(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDblclkList3(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDblclkList4(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDblclkList7(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnClickList10(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnRadio9(); afx_msg void OnRadio14(); afx_msg void OnRadio15(); afx_msg void OnRadio10(); afx_msg void OnRadio16(); afx_msg void OnDblclkList8(NMHDR* pNMHDR, LRESULT* pResult); //}}AFX_MSG afx_msg void OnCustomdrawList4(NMHDR*, LRESULT*); afx_msg void OnCustomdrawList3(NMHDR*, LRESULT*); afx_msg void OnCustomdrawList1(NMHDR*, LRESULT*); afx_msg void OnCustomdrawList2(NMHDR*, LRESULT*); afx_msg void OnCustomdrawList5(NMHDR*, LRESULT*); afx_msg void OnCustomdrawList6(NMHDR*, LRESULT*); DECLARE_MESSAGE_MAP() BOOL m_bHospital; ////////////////////////////////////////////////////////////////////////// // Jeff add 2015-05-13 近期生日; void DealChildBrithday( IN const int& nCheckDays, IN int& nItemSize, IN CString strCustomerKind, IN CTime& tmOftoday, IN CArray& AryOfCustomer); void DealChildDate( IN const int& nCheckDays, IN int &nItemIndex, IN CString &strCustomerType, IN CString &strCustomer, IN CString strSex, IN CString& strBirthday, IN CString& strPhone, IN BOOL bDateType, IN CTime& tmOftoday); void DealWeddingBrithday( IN const int& nCheckDays, IN int& nItemSize, IN CString strCustomerKind, IN CTime& tmOftoday, IN CArray& AryOfCustomer); void DealWeddingDate( IN const int& nCheckDays, IN int &nItemIndex, IN CString &strCustomerType, IN CString &strCustomer, IN CString strSex, IN CString& strBirthday, IN CString& strPhone, IN BOOL bDateType, IN CTime& tmOftoday); }; #endif