Merge branch 'main' of http://git.hivekion.com:3000/jiayulong/logplus
This commit is contained in:
commit
b9c46c2ab9
|
|
@ -426,8 +426,10 @@ void WellLogInformation::OnSave()
|
|||
}
|
||||
|
||||
WriteTable(pLogio,nTableFlag);
|
||||
|
||||
delete pLogio;
|
||||
QStringList Names;
|
||||
Names.append("测井信息表");
|
||||
emit CallGlobalManage::getInstance()->sig_Notice_AddObject("WellLogModule",szWellName,Names);
|
||||
// GetObjectEvent().OnRefreshMessage(szWellName,"Message",this);
|
||||
QMessageBox::information(nullptr,("提示"),("存储成功!"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3201,7 +3201,7 @@ bool QMyCustomPlot::SaveToSLF_SwallCore()
|
|||
return false;
|
||||
}
|
||||
bool isfirst=false;
|
||||
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
|
||||
if (iIndex < 0)
|
||||
{
|
||||
if(!m_mapDraggable_SwallCore.size()) {
|
||||
|
|
@ -3403,7 +3403,7 @@ bool QMyCustomPlot::SaveToSLF_GeoLith()
|
|||
return false;
|
||||
}
|
||||
bool isfirst=false;
|
||||
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
|
||||
if (iIndex < 0)
|
||||
{
|
||||
if(!m_mapDraggable_GeoLith.size()) {
|
||||
|
|
@ -3529,7 +3529,7 @@ bool QMyCustomPlot::SaveToSLF_Text()
|
|||
}
|
||||
QString name=m_strLineName;
|
||||
bool isfirst=false;
|
||||
int iIndex=logio->OpenTable(name.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(name));
|
||||
if (iIndex < 0)
|
||||
{
|
||||
if(!m_mapDraggable_Rect.size()) {
|
||||
|
|
@ -3642,7 +3642,7 @@ bool QMyCustomPlot::SaveToSLF_Layer()
|
|||
return false;
|
||||
}
|
||||
bool isfirst=false;
|
||||
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
|
||||
if(iIndex<0) {
|
||||
iIndex=logio->OpenTable("LAYER_DATA");
|
||||
if(iIndex<0) {
|
||||
|
|
@ -3768,7 +3768,7 @@ bool QMyCustomPlot::SaveToSLF_Gujing()
|
|||
return false;
|
||||
}
|
||||
|
||||
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
|
||||
bool isfirst=false;
|
||||
if (iIndex < 0)
|
||||
{
|
||||
|
|
@ -3861,7 +3861,7 @@ bool QMyCustomPlot::SaveToSLFImage()
|
|||
}
|
||||
|
||||
//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;
|
||||
if (iIndex < 0)
|
||||
{
|
||||
|
|
@ -3960,7 +3960,7 @@ bool QMyCustomPlot::saveToSLFCorePhysics()
|
|||
}
|
||||
|
||||
//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;
|
||||
if (iIndex < 0)
|
||||
{
|
||||
|
|
@ -4542,7 +4542,7 @@ bool QMyCustomPlot::LoadFromSLF_GeoLith(QString strSlfName, QString strLineName)
|
|||
delete logio;
|
||||
return false;
|
||||
}
|
||||
int iIndex=logio->OpenTable(strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
|
||||
if(iIndex>-1) {
|
||||
int len=logio->GetTableRecordLength(iIndex);
|
||||
int sl=sizeof(GeoLith_DATA);
|
||||
|
|
@ -4683,7 +4683,7 @@ bool QMyCustomPlot::LoadFromIMAGE_SLF(QString strSlfName, QString strLineName)
|
|||
// QMessageBox::information(NULL,"提示","SLF文件打开失败,请检查!!",QMessageBox::Yes);
|
||||
return false;
|
||||
}
|
||||
int iIndex=logio->OpenTable(strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
|
||||
if(iIndex>-1) {
|
||||
int len=logio->GetTableRecordLength(iIndex);
|
||||
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);
|
||||
return false;
|
||||
}
|
||||
int iIndex=logio->OpenTable(strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
|
||||
if(iIndex>-1) {
|
||||
int FieldNo=0;
|
||||
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) {
|
||||
int count=logio->GetTableRecordCount(iIndex);
|
||||
for(int i=0;i<count;i++) {
|
||||
|
|
@ -4942,7 +4942,7 @@ void QMyCustomPlot::addItems_Core()
|
|||
return;
|
||||
}
|
||||
bool isfirst=false;
|
||||
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
|
||||
if(iIndex<=0){
|
||||
delete logio;
|
||||
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));
|
||||
}
|
||||
|
||||
int iIndex=logio->OpenTable(strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
|
||||
if(iIndex>-1) {
|
||||
//------------------------------------//
|
||||
//判断
|
||||
|
|
@ -8929,7 +8929,7 @@ bool QMyCustomPlot::LoadFromSLF_Layer(QString strSlfName, QString strLineName)
|
|||
return false;
|
||||
}
|
||||
|
||||
int iIndex=logio->OpenTable(strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
|
||||
if (iIndex <0) {
|
||||
iIndex=logio->OpenTable("LAYER_DATA");
|
||||
}
|
||||
|
|
@ -8985,7 +8985,7 @@ bool QMyCustomPlot::LoadFromSLF_Text(QString strSlfName, QString strLineName)
|
|||
// QMessageBox::information(NULL,"提示","SLF文件打开失败,请检查!!",QMessageBox::Yes);
|
||||
return false;
|
||||
}
|
||||
int iIndex=logio->OpenTable(strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(strLineName));
|
||||
if(iIndex>-1) {
|
||||
int len=logio->GetTableRecordLength(iIndex);
|
||||
if(len<sizeof(WORDS_DATA)) len=sizeof(WORDS_DATA);
|
||||
|
|
@ -9258,7 +9258,7 @@ bool QMyCustomPlot::LoadFromSLF_Jiegutext(QString strSlfName, QString csCurve, Q
|
|||
return false;
|
||||
}
|
||||
|
||||
int iIndex=logio->OpenTable(csCurve.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(csCurve));
|
||||
if(iIndex<0) {
|
||||
delete logio;
|
||||
return false;
|
||||
|
|
@ -9394,7 +9394,7 @@ void QMyCustomPlot::addItems_Jiegutext()
|
|||
int k=0;
|
||||
QStringList coredat=line[0].split(" ");
|
||||
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) {
|
||||
int count=logio->GetTableFieldCount(iIndex);
|
||||
if(count!=coredat.size()) {
|
||||
|
|
@ -9598,7 +9598,7 @@ bool QMyCustomPlot::SaveToSLF_Jiegutext()
|
|||
return false;
|
||||
}
|
||||
bool isfirst=false;
|
||||
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
|
||||
if (iIndex < 0)
|
||||
{
|
||||
if(!m_mapDraggable_Jiegutext.size()) {
|
||||
|
|
@ -9833,7 +9833,7 @@ bool QMyCustomPlot::SaveToSLF_Result()
|
|||
}
|
||||
int resultGroupSize = m_mapDragGroup.size();
|
||||
bool isfirst = false;
|
||||
int iIndex = logio->OpenTable(m_strLineName.toStdString().c_str());
|
||||
int iIndex = logio->OpenTable(UTF8ToGBK(m_strLineName));
|
||||
if (iIndex < 0)
|
||||
{
|
||||
if (!resultGroupSize) {
|
||||
|
|
@ -10422,7 +10422,7 @@ void QMyCustomPlot::ReadData_Fac(QString strSlfName, QString csCurve, bool bAdd)
|
|||
|
||||
if (mrw.Open(strSlfName.toStdString().c_str()) ) // 打开井文件
|
||||
{
|
||||
iIndex=mrw.OpenTable(csCurve.toStdString().c_str());
|
||||
iIndex=mrw.OpenTable(UTF8ToGBK(csCurve));
|
||||
if(iIndex>=0)
|
||||
{
|
||||
nField=mrw.GetTableFieldCount(iIndex);
|
||||
|
|
@ -10912,7 +10912,7 @@ bool QMyCustomPlot::LoadFromSLF_Tubing(QString strSlfName, QString csCurve)
|
|||
return false;
|
||||
}
|
||||
|
||||
int iIndex=logio->OpenTable(csCurve.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(csCurve));
|
||||
if(iIndex<0)
|
||||
{
|
||||
delete logio;
|
||||
|
|
@ -11047,7 +11047,7 @@ bool QMyCustomPlot::LoadFromSLF_ReDrawTubing(QString strSlfName, QString csCurve
|
|||
return false;
|
||||
}
|
||||
|
||||
int iIndex=logio->OpenTable(csCurve.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(csCurve));
|
||||
if(iIndex<0)
|
||||
{
|
||||
delete logio;
|
||||
|
|
@ -11124,7 +11124,7 @@ bool QMyCustomPlot::SaveToSLF_Tubing()
|
|||
return false;
|
||||
}
|
||||
bool isfirst=false;
|
||||
int iIndex=logio->OpenTable(m_strLineName.toStdString().c_str());
|
||||
int iIndex=logio->OpenTable(UTF8ToGBK(m_strLineName));
|
||||
if (iIndex < 0)
|
||||
{
|
||||
if(!m_mapDraggable_Guan.size()) {
|
||||
|
|
@ -11280,7 +11280,7 @@ void QMyCustomPlot::addItems_Tubing()
|
|||
int k=0;
|
||||
QStringList coredat=line[0].split(" ");
|
||||
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) {
|
||||
int count=logio->GetTableFieldCount(iIndex);
|
||||
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)
|
||||
{
|
||||
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;
|
||||
|
||||
QCPItemLine *scaleLine = new QCPItemLine(this);
|
||||
|
|
@ -12605,7 +12605,7 @@ bool QMyCustomPlot::ReadData(QString strSlfName, QString strLineName)
|
|||
if ( mrw.Open(strSlfName.toStdString().c_str()) ) // 打开井文件
|
||||
{
|
||||
//CString strFracTable(m_qsTable);
|
||||
iIndex = mrw.OpenTable(m_qsTable.toStdString().c_str());
|
||||
iIndex = mrw.OpenTable(UTF8ToGBK(m_qsTable));
|
||||
if (iIndex >= 0)
|
||||
{
|
||||
nField = mrw.GetTableFieldCount(iIndex);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user