#if !defined(AFX_CALCFEEDINDUSTRYDLG_H__786EBD03_AD0D_4F9E_99A6_FEC7CA93D324__INCLUDED_) #define AFX_CALCFEEDINDUSTRYDLG_H__786EBD03_AD0D_4F9E_99A6_FEC7CA93D324__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // CalcFeedIndustryDlg.h : header file // ///////////////////////////////////////////////////////////////////////////// // CCalcFeedIndustryDlg dialog #include "Resource.h" #include "CalcFeedPublickDlg.h" class CCalcFeedIndustryDlg : public CDialog { // Construction public: CCalcFeedIndustryDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CCalcFeedIndustryDlg) enum { IDD = IDD_CALC_FEED_INDUSTRY }; CString m_csLost; //}}AFX_DATA CFeedPublickGrid m_publicGrid; SSearchPipeList *m_pListAll; AcDbObjectIdArray m_arId; DList m_listNode; //计算 nMode = 0 初算 1 复算 void CacluatePipe(int nMode); //修改管径 void UpdatePipeRadius(); void ResetList(SSearchPipeList *pListAll); void DoCalcPipeQ(SSearchPipeList *pListAll, int iMode); void DoDimFeedPipeDn(SSearchPipeList *pListAll, int iMode); //得到最不利节点 SSearchPipeList *GetFeedDisadvantageNode(SSearchPipeList *pListAll, SSearchPipeList *pDisadvantage); SSearchPipeList *GetNextExportNode2(SSearchPipeList *pListAll, SSearchPipeList *pDisadvantage,std::map mapLable); void DoCalcFeedWaterLost(SSearchPipeList *pDisadvantage, double &dAllLostRet); //输出计算书函数 void ImportFeedCalcWord(DList &lstNode); void SetListAll(SSearchPipeList *pListAll); //显示数据到表中 void UpdatePublicGrid(DList &lstNode,BOOL bShowRe = TRUE); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CCalcFeedIndustryDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CCalcFeedIndustryDlg) virtual BOOL OnInitDialog(); virtual void OnOK(); afx_msg void OnRecaculate(); afx_msg void OnBookbtn(); afx_msg void OnSheetbtn(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: BOOL m_bIsCalc; //是否计算过 }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_CALCFEEDINDUSTRYDLG_H__786EBD03_AD0D_4F9E_99A6_FEC7CA93D324__INCLUDED_)