把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
This commit is contained in:
gjm committed 2026-10-04 00:04:20 +08:00
1 parent 2b0c2055ff
commit 164968b62e
6171 files changed
+191244 -191243

No files matched your search

@@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "CFLEndFGsDlg.h"
#include "PipelineTools.h"
@@ -10,7 +10,7 @@ CFLEndFGsDlg::CFLEndFGsDlg(CWnd* pParent /*=NULL*/)
m_sEndF1 = _T("FF");
m_sEndF2 = _T("FF");
m_nTrade = WPipe::eCivial;//行业 默认市政
m_nTrade = WPipe::eCivial;//行业 默认市政
m_sPro = _T("");
m_sLevel = _T("");
m_dPress = 1.6;
@@ -52,15 +52,15 @@ BOOL CFLEndFGsDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_wndListGasket.InsertColumn(0, _T("材质"), LVCFMT_LEFT, 100, 80);
m_wndListGasket.InsertColumn(1, _T("压力"), LVCFMT_LEFT, 50, 50);
m_wndListGasket.InsertColumn(2, _T("垫片厚度"), LVCFMT_LEFT, 50, 50);
m_wndListGasket.InsertColumn(3, _T("描述"), LVCFMT_LEFT, 200, 200);
m_wndListGasket.InsertColumn(0, _T("材质"), LVCFMT_LEFT, 100, 80);
m_wndListGasket.InsertColumn(1, _T("压力"), LVCFMT_LEFT, 50, 50);
m_wndListGasket.InsertColumn(2, _T("垫片厚度"), LVCFMT_LEFT, 50, 50);
m_wndListGasket.InsertColumn(3, _T("描述"), LVCFMT_LEFT, 200, 200);
m_wndListGasket.SetExtendedStyle(LVS_EX_FULLROWSELECT);
if (!PipelineTools::getSqliteDB(_T("Plumbing.db"), m_db))
{
AfxMessageBox(_T("未找到数据库文件Plumbing.db,请重新安装!"));
AfxMessageBox(_T("未找到数据库文件Plumbing.db,请重新安装!"));
return FALSE;
}
@@ -73,7 +73,7 @@ BOOL CFLEndFGsDlg::OnInitDialog()
void CFLEndFGsDlg::ShowFlange()
{
CStringArray arVals;
CString sSQL = _T("select distinct [端面型式] from AecFace");
CString sSQL = _T("select distinct [端面型式] from AecFace");
m_db.GetSelData(sSQL, arVals);
for (int i = 0; i < arVals.GetSize(); i++)
@@ -90,16 +90,16 @@ void CFLEndFGsDlg::ShowGasket()
CString sSQL, sTemp;
int nSel = 1;
if (m_sLevel.IsEmpty() || m_nTrade == WPipe::eCivial)//市政不考虑等级
if (m_sLevel.IsEmpty() || m_nTrade == WPipe::eCivial)//市政不考虑等级
{
sSQL.Format(_T("select distinct [材质],[压力],[垫片厚度],[描述] from AecSpecGasket where [压力]>%.2f and [压力]<%.2f"),
sSQL.Format(_T("select distinct [材质],[压力],[垫片厚度],[描述] from AecSpecGasket where [压力]>%.2f and [压力]<%.2f"),
m_dPress - 0.05,m_dPress + 0.05);
}
else
{
//等级库中查找
sSQL.Format(_T("select distinct [材质],[压力],[垫片厚度],[描述] from AecSpecGasket where [项目名称]='%s' \
and [等级名称]='%s' and [类别]='垫片' and [公称直径]=%d and [压力]>%.2f and [压力]<%.2f"),
//等级库中查找
sSQL.Format(_T("select distinct [材质],[压力],[垫片厚度],[描述] from AecSpecGasket where [项目名称]='%s' \
and [等级名称]='%s' and [类别]='垫片' and [公称直径]=%d and [压力]>%.2f and [压力]<%.2f"),
m_sPro,m_sLevel,(int)(m_dDN+0.5),m_dPress - 0.05, m_dPress + 0.05);
nSel = 2;
}
@@ -131,9 +131,9 @@ void CFLEndFGsDlg::ShowGasket()
{
CString sTip;
if (nSel == 1)
sTip.Format(_T("缺少压力%.2f 的垫片数据!"), m_dPress);
sTip.Format(_T("缺少压力%.2f 的垫片数据!"), m_dPress);
else
sTip.Format(_T("缺少项目=%s 等级=%s 公称直径=%d 压力=%.2f 的垫片选型数据!"), m_sPro, m_sLevel, (int)(m_dDN + 0.5),m_dPress);
sTip.Format(_T("缺少项目=%s 等级=%s 公称直径=%d 压力=%.2f 的垫片选型数据!"), m_sPro, m_sLevel, (int)(m_dDN + 0.5),m_dPress);
AfxMessageBox(sTip);
}
@@ -145,7 +145,7 @@ void CFLEndFGsDlg::OnBnClickedOk()
nSel = m_wndFlangeEndF1.GetCurSel();
if (nSel == -1)
{
AfxMessageBox(_T("请选择法兰端面!"));
AfxMessageBox(_T("请选择法兰端面!"));
return;
}
m_wndFlangeEndF1.GetText(nSel, m_sEndF1);
@@ -155,7 +155,7 @@ void CFLEndFGsDlg::OnBnClickedOk()
POSITION ps = m_wndListGasket.GetFirstSelectedItemPosition();
if (ps != NULL)
{
//[材质],[压力],[垫片厚度],[描述]
//[材质],[压力],[垫片厚度],[描述]
int nItem = m_wndListGasket.GetNextSelectedItem(ps);
if (nItem != -1)
{
@@ -164,7 +164,7 @@ void CFLEndFGsDlg::OnBnClickedOk()
}
else
{
AfxMessageBox(_T("请选择垫片行!"));
AfxMessageBox(_T("请选择垫片行!"));
return;
}
}