BookingPage1.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. #if !defined(AFX_BOOKINGPAGE1_H__787DCABB_FEDF_4B87_A4F4_876CD968B2BF__INCLUDED_)
  2. #define AFX_BOOKINGPAGE1_H__787DCABB_FEDF_4B87_A4F4_876CD968B2BF__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // BookingPage1.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // BookingPage1 dialog
  10. #include "TreeComboBox3.h"
  11. #include "EditListCtrl.h"
  12. /*
  13. #ifdef CHILD_VERSION
  14. enum { IDD = IDD_DLGBookingPage11 };
  15. #else
  16. enum { IDD = IDD_DLGBookingPage1 };
  17. #endif
  18. */
  19. class BookingPage1 : public CDialog
  20. {
  21. int m_ncurgrowth;
  22. float m_cost1;
  23. float m_cost2;
  24. CString m_oldtaoxijiage;
  25. // Construction
  26. public:
  27. void UpDateGrowthTX();
  28. void SelFirst();
  29. BOOL m_bGrowthTX;
  30. float m_saleprice1;
  31. float m_saleprice2;
  32. void NewDan();
  33. CArray<CStringArray, CStringArray>m_List1arrayM;
  34. CArray<CStringArray, CStringArray>m_Bakarray;
  35. CArray<CStringArray, CStringArray>m_List1Bakarray;
  36. CArray<CStringArray, CStringArray>m_List3Bakarray;
  37. CArray<CStringArray, CStringArray>m_List1array;
  38. CArray<CStringArray, CStringArray>m_List2array;
  39. CArray<CStringArray, CStringArray>m_List3array;
  40. CArray<CStringArray, CStringArray>m_sparray;
  41. CArray<CStringArray, CStringArray>m_txlbarray;
  42. CArray<CStringArray, CStringArray>m_List1arraygrowthbak;
  43. CString m_from;
  44. CString m_txtype;
  45. CString m_growthtxselname;
  46. CString m_taoxiid;
  47. CString m_dindantype;
  48. CString m_authorize;
  49. BOOL NewID();
  50. BOOL CheckOK();
  51. float GetSPPriceFromId(CString id);
  52. float GetSPPriceFromId3(CString id);
  53. void CalculateCost2();
  54. void CalculateCost();
  55. void CalculateCostGrowthTX();
  56. CString GetSPPriceFromId2(CString id);
  57. CString GetSPNameFromId(CString id);
  58. void FillGrid();
  59. CRect m_rc;
  60. BookingPage1(CWnd* pParent = NULL); // standard constructor
  61. // Dialog Data
  62. //{{AFX_DATA(BookingPage1)
  63. #ifdef CHILD_VERSION
  64. enum { IDD = IDD_DLGBookingPage11 };
  65. #else
  66. enum { IDD = IDD_DLGBookingPage1 };
  67. #endif
  68. CListBox m_listbox1;
  69. CNumEdit m_editnum3;
  70. CNumEdit m_editnum2;
  71. CNumEdit m_editnum1;
  72. CEditListCtrl m_List3;
  73. CEditListCtrl m_List1;
  74. CTreeComboBox3 m_combotaoxiname;
  75. CComboBox m_combotype;
  76. CComboBox m_combofrom;
  77. CComboBox m_combodindantype;
  78. CString m_contractno;
  79. CString m_contractno2;
  80. CString m_bz;
  81. CString m_taoxijiage;
  82. CString m_payed1;
  83. CString m_zs;
  84. CString m_zs2;
  85. CString m_id;
  86. CString m_taoxiname;
  87. //}}AFX_DATA
  88. // Overrides
  89. // ClassWizard generated virtual function overrides
  90. //{{AFX_VIRTUAL(BookingPage1)
  91. protected:
  92. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  93. //}}AFX_VIRTUAL
  94. // Implementation
  95. protected:
  96. // Generated message map functions
  97. //{{AFX_MSG(BookingPage1)
  98. virtual void OnCancel();
  99. virtual void OnOK();
  100. virtual BOOL OnInitDialog();
  101. afx_msg void OnSelchangeCOMBOtaoxiname();
  102. afx_msg void OnBUTdelall2();
  103. afx_msg void OnBUTdel3();
  104. afx_msg void OnBUTspbox2();
  105. afx_msg void OnBUTdelall();
  106. afx_msg void OnBUTdel();
  107. afx_msg void OnBUTspbox();
  108. afx_msg void OnBUTdeljd();
  109. afx_msg void OnBUTSetJD();
  110. afx_msg void OnBUTaddjd();
  111. afx_msg void OnButton1();
  112. afx_msg void OnButton22();
  113. afx_msg void OnButton2();
  114. afx_msg void OnButton9();
  115. afx_msg void OnDropdownCOMBOtype2();
  116. afx_msg void OnDropdownCOMBOtype3();
  117. afx_msg void OnSelchangeCOMBOtype2();
  118. afx_msg void OnButton14();
  119. afx_msg void OnListInputEnd(WPARAM a,LPARAM lParam);
  120. afx_msg void OnCloseupCOMBOtaoxiname();
  121. afx_msg void OnSelchangeList9();
  122. //}}AFX_MSG
  123. DECLARE_MESSAGE_MAP()
  124. };
  125. //{{AFX_INSERT_LOCATION}}
  126. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  127. #endif // !defined(AFX_BOOKINGPAGE1_H__787DCABB_FEDF_4B87_A4F4_876CD968B2BF__INCLUDED_)