This commit is contained in:
jiayulong 2026-05-19 13:46:26 +08:00
commit b9c46c2ab9
2 changed files with 29 additions and 27 deletions

View File

@ -426,8 +426,10 @@ void WellLogInformation::OnSave()
} }
WriteTable(pLogio,nTableFlag); WriteTable(pLogio,nTableFlag);
delete pLogio; delete pLogio;
QStringList Names;
Names.append("测井信息表");
emit CallGlobalManage::getInstance()->sig_Notice_AddObject("WellLogModule",szWellName,Names);
// GetObjectEvent().OnRefreshMessage(szWellName,"Message",this); // GetObjectEvent().OnRefreshMessage(szWellName,"Message",this);
QMessageBox::information(nullptr,("提示"),("存储成功!")); QMessageBox::information(nullptr,("提示"),("存储成功!"));
} }

View File

@ -3201,7 +3201,7 @@ bool QMyCustomPlot::SaveToSLF_SwallCore()
return false; return false;
} }
bool isfirst=false; bool isfirst=false;
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
if (iIndex < 0) if (iIndex < 0)
{ {
if(!m_mapDraggable_SwallCore.size()) { if(!m_mapDraggable_SwallCore.size()) {
@ -3403,7 +3403,7 @@ bool QMyCustomPlot::SaveToSLF_GeoLith()
return false; return false;
} }
bool isfirst=false; bool isfirst=false;
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
if (iIndex < 0) if (iIndex < 0)
{ {
if(!m_mapDraggable_GeoLith.size()) { if(!m_mapDraggable_GeoLith.size()) {
@ -3529,7 +3529,7 @@ bool QMyCustomPlot::SaveToSLF_Text()
} }
QString name=m_strLineName; QString name=m_strLineName;
bool isfirst=false; bool isfirst=false;
int iIndex=logio->OpenTable(name.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(name));
if (iIndex < 0) if (iIndex < 0)
{ {
if(!m_mapDraggable_Rect.size()) { if(!m_mapDraggable_Rect.size()) {
@ -3642,7 +3642,7 @@ bool QMyCustomPlot::SaveToSLF_Layer()
return false; return false;
} }
bool isfirst=false; bool isfirst=false;
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
if(iIndex<0) { if(iIndex<0) {
iIndex=logio->OpenTable("LAYER_DATA"); iIndex=logio->OpenTable("LAYER_DATA");
if(iIndex<0) { if(iIndex<0) {
@ -3768,7 +3768,7 @@ bool QMyCustomPlot::SaveToSLF_Gujing()
return false; return false;
} }
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
bool isfirst=false; bool isfirst=false;
if (iIndex < 0) if (iIndex < 0)
{ {
@ -3861,7 +3861,7 @@ bool QMyCustomPlot::SaveToSLFImage()
} }
//QString ssss = m_strLineName.toStdString().c_str(); //QString ssss = m_strLineName.toStdString().c_str();
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
bool isfirst=false; bool isfirst=false;
if (iIndex < 0) if (iIndex < 0)
{ {
@ -3960,7 +3960,7 @@ bool QMyCustomPlot::saveToSLFCorePhysics()
} }
//QString ssss = m_strLineName.toStdString().c_str(); //QString ssss = m_strLineName.toStdString().c_str();
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
bool isfirst=false; bool isfirst=false;
if (iIndex < 0) if (iIndex < 0)
{ {
@ -4542,7 +4542,7 @@ bool QMyCustomPlot::LoadFromSLF_GeoLith(QString strSlfName, QString strLineName)
delete logio; delete logio;
return false; return false;
} }
int iIndex=logio->OpenTable(strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
if(iIndex>-1) { if(iIndex>-1) {
int len=logio->GetTableRecordLength(iIndex); int len=logio->GetTableRecordLength(iIndex);
int sl=sizeof(GeoLith_DATA); int sl=sizeof(GeoLith_DATA);
@ -4683,7 +4683,7 @@ bool QMyCustomPlot::LoadFromIMAGE_SLF(QString strSlfName, QString strLineName)
// QMessageBox::information(NULL,"提示","SLF文件打开失败请检查",QMessageBox::Yes); // QMessageBox::information(NULL,"提示","SLF文件打开失败请检查",QMessageBox::Yes);
return false; return false;
} }
int iIndex=logio->OpenTable(strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
if(iIndex>-1) { if(iIndex>-1) {
int len=logio->GetTableRecordLength(iIndex); int len=logio->GetTableRecordLength(iIndex);
if(len<sizeof(IMAGE_DATA)) len=sizeof(IMAGE_DATA); if(len<sizeof(IMAGE_DATA)) len=sizeof(IMAGE_DATA);
@ -4735,7 +4735,7 @@ bool QMyCustomPlot::loadFromSLFCorePhysics(QString strSlfName, QString strLineNa
// QMessageBox::information(NULL,"提示","SLF文件打开失败请检查",QMessageBox::Yes); // QMessageBox::information(NULL,"提示","SLF文件打开失败请检查",QMessageBox::Yes);
return false; return false;
} }
int iIndex=logio->OpenTable(strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
if(iIndex>-1) { if(iIndex>-1) {
int FieldNo=0; int FieldNo=0;
int count=logio->GetTableRecordCount(iIndex); int count=logio->GetTableRecordCount(iIndex);
@ -4849,7 +4849,7 @@ bool QMyCustomPlot::LoadFromSLF_SwallCore(QString strSlfName, QString strLineNam
} }
// //
int iIndex=logio->OpenTable(strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
if(iIndex>-1) { if(iIndex>-1) {
int count=logio->GetTableRecordCount(iIndex); int count=logio->GetTableRecordCount(iIndex);
for(int i=0;i<count;i++) { for(int i=0;i<count;i++) {
@ -4942,7 +4942,7 @@ void QMyCustomPlot::addItems_Core()
return; return;
} }
bool isfirst=false; bool isfirst=false;
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
if(iIndex<=0){ if(iIndex<=0){
delete logio; delete logio;
QMessageBox::information(NULL,"提示","缺失表"+m_strLineName+",请检查!!",QMessageBox::Yes); QMessageBox::information(NULL,"提示","缺失表"+m_strLineName+",请检查!!",QMessageBox::Yes);
@ -5304,7 +5304,7 @@ bool QMyCustomPlot::LoadFromSLF_Gujing(QString strSlfName, QString strLineName)
zoneOrder_Gujing.insert(lines[i],QString::number(i)); zoneOrder_Gujing.insert(lines[i],QString::number(i));
} }
int iIndex=logio->OpenTable(strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
if(iIndex>-1) { if(iIndex>-1) {
//------------------------------------// //------------------------------------//
//判断 //判断
@ -8929,7 +8929,7 @@ bool QMyCustomPlot::LoadFromSLF_Layer(QString strSlfName, QString strLineName)
return false; return false;
} }
int iIndex=logio->OpenTable(strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
if (iIndex <0) { if (iIndex <0) {
iIndex=logio->OpenTable("LAYER_DATA"); iIndex=logio->OpenTable("LAYER_DATA");
} }
@ -8985,7 +8985,7 @@ bool QMyCustomPlot::LoadFromSLF_Text(QString strSlfName, QString strLineName)
// QMessageBox::information(NULL,"提示","SLF文件打开失败请检查",QMessageBox::Yes); // QMessageBox::information(NULL,"提示","SLF文件打开失败请检查",QMessageBox::Yes);
return false; return false;
} }
int iIndex=logio->OpenTable(strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
if(iIndex>-1) { if(iIndex>-1) {
int len=logio->GetTableRecordLength(iIndex); int len=logio->GetTableRecordLength(iIndex);
if(len<sizeof(WORDS_DATA)) len=sizeof(WORDS_DATA); if(len<sizeof(WORDS_DATA)) len=sizeof(WORDS_DATA);
@ -9258,7 +9258,7 @@ bool QMyCustomPlot::LoadFromSLF_Jiegutext(QString strSlfName, QString csCurve, Q
return false; return false;
} }
int iIndex=logio->OpenTable(csCurve.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(csCurve));
if(iIndex<0) { if(iIndex<0) {
delete logio; delete logio;
return false; return false;
@ -9394,7 +9394,7 @@ void QMyCustomPlot::addItems_Jiegutext()
int k=0; int k=0;
QStringList coredat=line[0].split(" "); QStringList coredat=line[0].split(" ");
if((istab==-1||isd==-1)&&isspace>=0) coredat.removeAll(""); if((istab==-1||isd==-1)&&isspace>=0) coredat.removeAll("");
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
if(iIndex>=0) { if(iIndex>=0) {
int count=logio->GetTableFieldCount(iIndex); int count=logio->GetTableFieldCount(iIndex);
if(count!=coredat.size()) { if(count!=coredat.size()) {
@ -9598,7 +9598,7 @@ bool QMyCustomPlot::SaveToSLF_Jiegutext()
return false; return false;
} }
bool isfirst=false; bool isfirst=false;
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
if (iIndex < 0) if (iIndex < 0)
{ {
if(!m_mapDraggable_Jiegutext.size()) { if(!m_mapDraggable_Jiegutext.size()) {
@ -9833,7 +9833,7 @@ bool QMyCustomPlot::SaveToSLF_Result()
} }
int resultGroupSize = m_mapDragGroup.size(); int resultGroupSize = m_mapDragGroup.size();
bool isfirst = false; bool isfirst = false;
int iIndex = logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex = logio->OpenTable(UTF8ToGBK(m_strLineName));
if (iIndex < 0) if (iIndex < 0)
{ {
if (!resultGroupSize) { if (!resultGroupSize) {
@ -10422,7 +10422,7 @@ void QMyCustomPlot::ReadData_Fac(QString strSlfName, QString csCurve, bool bAdd)
if (mrw.Open(strSlfName.toStdString().c_str()) ) // 打开井文件 if (mrw.Open(strSlfName.toStdString().c_str()) ) // 打开井文件
{ {
iIndex=mrw.OpenTable(csCurve.toStdString().c_str()); iIndex=mrw.OpenTable(UTF8ToGBK(csCurve));
if(iIndex>=0) if(iIndex>=0)
{ {
nField=mrw.GetTableFieldCount(iIndex); nField=mrw.GetTableFieldCount(iIndex);
@ -10912,7 +10912,7 @@ bool QMyCustomPlot::LoadFromSLF_Tubing(QString strSlfName, QString csCurve)
return false; return false;
} }
int iIndex=logio->OpenTable(csCurve.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(csCurve));
if(iIndex<0) if(iIndex<0)
{ {
delete logio; delete logio;
@ -11047,7 +11047,7 @@ bool QMyCustomPlot::LoadFromSLF_ReDrawTubing(QString strSlfName, QString csCurve
return false; return false;
} }
int iIndex=logio->OpenTable(csCurve.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(csCurve));
if(iIndex<0) if(iIndex<0)
{ {
delete logio; delete logio;
@ -11124,7 +11124,7 @@ bool QMyCustomPlot::SaveToSLF_Tubing()
return false; return false;
} }
bool isfirst=false; bool isfirst=false;
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
if (iIndex < 0) if (iIndex < 0)
{ {
if(!m_mapDraggable_Guan.size()) { if(!m_mapDraggable_Guan.size()) {
@ -11280,7 +11280,7 @@ void QMyCustomPlot::addItems_Tubing()
int k=0; int k=0;
QStringList coredat=line[0].split(" "); QStringList coredat=line[0].split(" ");
if((istab==-1||isd==-1)&&isspace>=0) coredat.removeAll(""); if((istab==-1||isd==-1)&&isspace>=0) coredat.removeAll("");
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str()); int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
if(iIndex>=0) { if(iIndex>=0) {
int count=logio->GetTableFieldCount(iIndex); int count=logio->GetTableFieldCount(iIndex);
if(count!=coredat.size()) { if(count!=coredat.size()) {
@ -12457,7 +12457,7 @@ void QMyCustomPlot::drawDipAngle(double centerX, double centerY, float ifdir[360
for (int i = 0; i < lineNumber; ++i) for (int i = 0; i < lineNumber; ++i)
{ {
double currY = startX - i * step; double currY = startX - i * step;
// 🔥🔥🔥 核心每个刻度单独计算长度和你GDI完全一样每个长度不同 // <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 核心每个刻度单独计算长度和你GDI完全一样每个长度不同
double dynamicLen = 0.1 * ifdir[i] / dirmax + lineHeight; double dynamicLen = 0.1 * ifdir[i] / dirmax + lineHeight;
QCPItemLine *scaleLine = new QCPItemLine(this); QCPItemLine *scaleLine = new QCPItemLine(this);
@ -12605,7 +12605,7 @@ bool QMyCustomPlot::ReadData(QString strSlfName, QString strLineName)
if ( mrw.Open(strSlfName.toStdString().c_str()) ) // 打开井文件 if ( mrw.Open(strSlfName.toStdString().c_str()) ) // 打开井文件
{ {
//CString strFracTable(m_qsTable); //CString strFracTable(m_qsTable);
iIndex = mrw.OpenTable(m_qsTable.toStdString().c_str()); iIndex = mrw.OpenTable(UTF8ToGBK(m_qsTable));
if (iIndex >= 0) if (iIndex >= 0)
{ {
nField = mrw.GetTableFieldCount(iIndex); nField = mrw.GetTableFieldCount(iIndex);