Files
envi-code/SourceCode/Code2026/tg_shs/shs_TwtCalc/SanitaryDangDlg.cpp
T

177 lines
6.7 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
// SanitaryDangDlg.cpp : implementation file
2026-09-28 15:28:50 +08:00
//
#include "stdafx.h"
#include "SanitaryDangDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSanitaryDangDlg dialog
CSanitaryDangDlg::CSanitaryDangDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSanitaryDangDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSanitaryDangDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CSanitaryDangDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSanitaryDangDlg)
DDX_Control(pDX, IDC_LIST_DANG, m_listCtrl);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSanitaryDangDlg, CDialog)
//{{AFX_MSG_MAP(CSanitaryDangDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSanitaryDangDlg message handlers
BOOL CSanitaryDangDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_listCtrl.SetExtendedStyle(LVS_EX_GRIDLINES | LVS_EX_FULLROWSELECT);
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertColumn ( 0, _T("给水配件名称"), LVCFMT_LEFT, 175 );
m_listCtrl.InsertColumn ( 1, _T("额定流量(L/s)"), LVCFMT_LEFT, 90 );
m_listCtrl.InsertColumn ( 2, _T("当量"), LVCFMT_LEFT, 60 );
m_listCtrl.InsertColumn ( 3, _T("管径(mm)"), LVCFMT_LEFT, 60 );
m_listCtrl.InsertColumn ( 4, _T("工作压力(MPa)"), LVCFMT_LEFT, 90 );
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 0, _T("洗涤盆、拖布盆、盥洗槽(15mm)"), 0 );
m_listCtrl.SetItemText ( 0, 1, _T("0.15~0.2"));
m_listCtrl.SetItemText ( 0, 2, _T("0.75~1"));
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 0, 3, _T("15"));
m_listCtrl.SetItemText ( 0, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 1, _T("洗涤盆、拖布盆、盥洗槽(20mm)"), 0 );
m_listCtrl.SetItemText ( 1, 1, _T("0.3~0.4"));
m_listCtrl.SetItemText ( 1, 2, _T("1.5~2"));
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 1, 3, _T("20"));
m_listCtrl.SetItemText ( 1, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 2, _T("洗脸盆"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 2, 1, _T("0.15"));
m_listCtrl.SetItemText ( 2, 2, _T("0.75"));
m_listCtrl.SetItemText ( 2, 3, _T("15"));
m_listCtrl.SetItemText ( 2, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 3, _T("洗手盆"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 3, 1, _T("0.1"));
m_listCtrl.SetItemText ( 3, 2, _T("0.5"));
m_listCtrl.SetItemText ( 3, 3, _T("15"));
m_listCtrl.SetItemText ( 3, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 4, _T("浴盆"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 4, 1, _T("0.2"));
m_listCtrl.SetItemText ( 4, 2, _T("1"));
m_listCtrl.SetItemText ( 4, 3, _T("15"));
m_listCtrl.SetItemText ( 4, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 5, _T("淋浴器"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 5, 1, _T("0.15"));
m_listCtrl.SetItemText ( 5, 2, _T("0.75"));
m_listCtrl.SetItemText ( 5, 3, _T("15"));
2026-10-04 00:04:20 +08:00
m_listCtrl.SetItemText ( 5, 4, _T("0.05~0.1"));
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 6, _T("大便器(冲洗水箱浮球阀)"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 6, 1, _T("0.1"));
m_listCtrl.SetItemText ( 6, 2, _T("0.5"));
m_listCtrl.SetItemText ( 6, 3, _T("15"));
m_listCtrl.SetItemText ( 6, 4, _T("0.02"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 7, _T("大便器(延时自闭式冲洗阀)"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 7, 1, _T("1.2"));
m_listCtrl.SetItemText ( 7, 2, _T("6"));
m_listCtrl.SetItemText ( 7, 3, _T("25"));
2026-10-04 00:04:20 +08:00
m_listCtrl.SetItemText ( 7, 4, _T("0.1~0.15"));
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 8, _T("小便器"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 8, 1, _T("0.1"));
m_listCtrl.SetItemText ( 8, 2, _T("0.5"));
m_listCtrl.SetItemText ( 8, 3, _T("15"));
m_listCtrl.SetItemText ( 8, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 9, _T("小便槽穿孔冲洗管(每米)"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 9, 1, _T("0.05"));
m_listCtrl.SetItemText ( 9, 2, _T("0.25"));
2026-10-04 00:04:20 +08:00
m_listCtrl.SetItemText ( 9, 3, _T("15~20"));
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 9, 4, _T("0.015"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 10, _T("净身盆冲洗水嘴"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 10, 1, _T("0.1"));
m_listCtrl.SetItemText ( 10, 2, _T("0.5"));
m_listCtrl.SetItemText ( 10, 3, _T("15"));
m_listCtrl.SetItemText ( 10, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 11, _T("医院倒便器"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 11, 1, _T("0.2"));
m_listCtrl.SetItemText ( 11, 2, _T("1"));
m_listCtrl.SetItemText ( 11, 3, _T("15"));
m_listCtrl.SetItemText ( 11, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 12, _T("实验室化验水嘴(单联)"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 12, 1, _T("0.07"));
m_listCtrl.SetItemText ( 12, 2, _T("0.35"));
m_listCtrl.SetItemText ( 12, 3, _T("15"));
m_listCtrl.SetItemText ( 12, 4, _T("0.02"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 13, _T("实验室化验水嘴(双联)"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 13, 1, _T("0.15"));
m_listCtrl.SetItemText ( 13, 2, _T("0.75"));
m_listCtrl.SetItemText ( 13, 3, _T("15"));
m_listCtrl.SetItemText ( 13, 4, _T("0.02"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 14, _T("实验室化验水嘴(三联)"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 14, 1, _T("0.2"));
m_listCtrl.SetItemText ( 14, 2, _T("1"));
m_listCtrl.SetItemText ( 14, 3, _T("15"));
m_listCtrl.SetItemText ( 14, 4, _T("0.02"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 15, _T("饮水器喷嘴"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 15, 1, _T("0.05"));
m_listCtrl.SetItemText ( 15, 2, _T("0.25"));
m_listCtrl.SetItemText ( 15, 3, _T("15"));
m_listCtrl.SetItemText ( 15, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 16, _T("洒水拴(20mm)"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 16, 1, _T("0.4"));
m_listCtrl.SetItemText ( 16, 2, _T("2"));
m_listCtrl.SetItemText ( 16, 3, _T("20"));
2026-10-04 00:04:20 +08:00
m_listCtrl.SetItemText ( 16, 4, _T("0.05~0.1"));
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 17, _T("洒水拴(25mm)"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 17, 1, _T("0.7"));
m_listCtrl.SetItemText ( 17, 2, _T("3.5"));
m_listCtrl.SetItemText ( 17, 3, _T("25"));
2026-10-04 00:04:20 +08:00
m_listCtrl.SetItemText ( 17, 4, _T("0.05~0.1"));
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 18, _T("室内地面冲洗水嘴"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 18, 1, _T("0.2"));
m_listCtrl.SetItemText ( 18, 2, _T("1"));
m_listCtrl.SetItemText ( 18, 3, _T("15"));
m_listCtrl.SetItemText ( 18, 4, _T("0.05"));
2026-10-04 00:04:20 +08:00
m_listCtrl.InsertItem ( 19, _T("家用洗衣机水嘴"), 0 );
2026-09-28 15:28:50 +08:00
m_listCtrl.SetItemText ( 19, 1, _T("0.2"));
m_listCtrl.SetItemText ( 19, 2, _T("1"));
m_listCtrl.SetItemText ( 19, 3, _T("15"));
m_listCtrl.SetItemText ( 19, 4, _T("0.05"));
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}