|
|
|
|
|
/*************************************************
|
|
|
|
|
|
|
|
|
|
|
|
ʵ<EFBFBD>ֵ<EFBFBD><EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><EFBFBD>ʾ<EFBFBD>Լ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Խ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵ<EFBFBD><EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
Others:
|
|
|
|
|
|
Function List:
|
|
|
|
|
|
1. virtual BOOL InitPropertyGrid(CXTPPropertyGrid& grid); <EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2. virtual BOOL OnGridItemChangeValue(CXTPPropertyGridItem* pItem);<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD>Կ<EFBFBD><EFBFBD>ı<EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>ĺ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
3. virtual void OnInplaceButtonDown(CXTPPropertyGridItem* pItem);<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD>Կ<EFBFBD><EFBFBD>ڰ<EFBFBD>ť<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>µĶԻ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
4. void RemoveSelectedTrackIn();ɾ<EFBFBD><EFBFBD>ѡ<EFBFBD>еĵ<EFBFBD><EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
5. virtual void DeleteSelection(void);<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>դ״ͼʱ<EFBFBD><EFBFBD><EFBFBD>Ƴ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҲҪɾ<EFBFBD><EFBFBD>
|
|
|
|
|
|
*************************************************/
|
|
|
|
|
|
#include "StdAfx.h"
|
|
|
|
|
|
//#include "CustomItemButton.h"
|
|
|
|
|
|
//
|
|
|
|
|
|
//#include "TextDlg.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "ItemText.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "WellPoleDoc.h"
|
|
|
|
|
|
#include "WellPoleView.h"
|
|
|
|
|
|
//#include "DlgTrackText.h"
|
|
|
|
|
|
//#include "DlgTrackOilAnaly.h"
|
|
|
|
|
|
//#include "DlgTrackOilStatis.h"
|
|
|
|
|
|
//#include "DlgTrackProductionNow.h"
|
|
|
|
|
|
//#include "DlgTrackProductionOld.h"
|
|
|
|
|
|
//#include "DlgTrackProductionTotal.h"
|
|
|
|
|
|
#include "WellPoleLib/WellMarkNamesList.h"
|
|
|
|
|
|
#include "WellPoleLib/WellBaseObj.h"
|
|
|
|
|
|
#include "WellPoleLib/WellClassObjGroup.h"
|
|
|
|
|
|
#include "WellPoleLib/InTrackDepthSegment.h"
|
|
|
|
|
|
#include "WellPoleLib/InTrackTextBase.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "WellPoleLib\InTrackLith.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackTextRange.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackPicture.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackSymbol.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackResult.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackCoring.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackCoreWell.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackShot.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackSample.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackOilTest.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackLayerGroup.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackLayerGroup.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackTestExtraction.h"
|
|
|
|
|
|
#include "WellPoleLib\InTrackFaultPoint.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "WellPoleLib/TrackObj.h"
|
|
|
|
|
|
#include "WellPoleLib/InclinedTrack.h"
|
|
|
|
|
|
#include "WellPoleLib\TrackOilTest.h"
|
|
|
|
|
|
#include "WellPoleLib\TrackResult.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "WellPoleLib\TrackCoreWell.h"
|
|
|
|
|
|
#include "WellPoleLib\WellPole.h"
|
|
|
|
|
|
|
|
|
|
|
|
//#include "PropertyGridItemAdd.h"//#include "DataPropertyPage.h"
|
|
|
|
|
|
#include "ItemTrackIn.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "CxImage\CxImage\ximagegeotiff.h"
|
|
|
|
|
|
//#include "DlgTrackText.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define TrackInOilTestMid 98304
|
|
|
|
|
|
namespace NItem
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
CItemTrackIn::CItemTrackIn(CSigmaDoc* pDoc)
|
|
|
|
|
|
: CItemWellBase(pDoc)
|
|
|
|
|
|
{
|
|
|
|
|
|
SetType(ITEM_TRACKIN);
|
|
|
|
|
|
m_bChangeAllLayerSet = FALSE;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CItemTrackIn::~CItemTrackIn(void)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CImageInsert* CItemTrackIn::ReadImage(LPCTSTR lpcsImageName)
|
|
|
|
|
|
{
|
|
|
|
|
|
int type = CImageBase::GetImageType(lpcsImageName);
|
|
|
|
|
|
|
|
|
|
|
|
if (type == CXIMAGE_FORMAT_TIF) //<2F><>ȡGeoTiff<66>ļ<EFBFBD>
|
|
|
|
|
|
{
|
|
|
|
|
|
FILE* hFile = fopen(lpcsImageName, "rb");
|
|
|
|
|
|
if (hFile == NULL) return FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
CImageBase *pi = new CImageBase;
|
|
|
|
|
|
CxImageGeoTIFF newima;
|
|
|
|
|
|
if (!newima.CxImageTIF::Decode(hFile))
|
|
|
|
|
|
{
|
|
|
|
|
|
fclose(hFile);
|
|
|
|
|
|
delete pi;
|
|
|
|
|
|
return FALSE;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CImageInsert* pImage = new CImageInsert();
|
|
|
|
|
|
pi->Transfer(newima);
|
|
|
|
|
|
pImage->m_pImage = pi;
|
|
|
|
|
|
pImage->SetName(lpcsImageName);
|
|
|
|
|
|
|
|
|
|
|
|
if (newima.m_bIsGeoTiff && fabs(newima.dx) > 1e-15 && fabs(newima.dy) > 1e-15)
|
|
|
|
|
|
{
|
|
|
|
|
|
pImage->x0 = newima.x0;
|
|
|
|
|
|
pImage->y0 = newima.y0;
|
|
|
|
|
|
pImage->m_size.cx = newima.dx*pImage->m_pImage->GetWidth();
|
|
|
|
|
|
pImage->m_size.cy = newima.dy*pImage->m_pImage->GetHeight();
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
pImage->m_size.cx = pImage->GetImage()->GetWidth();
|
|
|
|
|
|
pImage->m_size.cy = pImage->GetImage()->GetHeight();
|
|
|
|
|
|
pImage->x0 = 0;
|
|
|
|
|
|
pImage->y0 = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fclose(hFile);
|
|
|
|
|
|
return pImage;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CImageInsert* pImage = new CImageInsert();
|
|
|
|
|
|
if (!pImage->LoadImage(lpcsImageName))
|
|
|
|
|
|
{
|
|
|
|
|
|
delete pImage;
|
|
|
|
|
|
::AfxMessageBox("Load image file error!");
|
|
|
|
|
|
return NULL;
|
|
|
|
|
|
}
|
|
|
|
|
|
pImage->m_size.cx = pImage->GetImage()->GetWidth();
|
|
|
|
|
|
pImage->m_size.cy = pImage->GetImage()->GetHeight();
|
|
|
|
|
|
pImage->x0 = 0;
|
|
|
|
|
|
pImage->y0 = 0;
|
|
|
|
|
|
return pImage;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//void CItemTrackIn::OnInplaceButtonDown(CXTPPropertyGridItem* pItem)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// if(pItem == NULL)
|
|
|
|
|
|
// return;
|
|
|
|
|
|
// if(pItem->GetID() == IDS_STR_TRACK_TEXTCONTENT) //<2F><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ı<EFBFBD><C4B1>ĶԻ<C4B6><D4BB><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
|
|
|
|
|
|
// CTextDlg dlg;
|
|
|
|
|
|
// dlg.m_text = pTextRange->m_Text.GetName();
|
|
|
|
|
|
// dlg.m_nElementType = 0;
|
|
|
|
|
|
// if(dlg.DoModal() == IDOK)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTextRange->m_Text.SetName(dlg.m_text);
|
|
|
|
|
|
// if (pTextRange->m_Text.GetName().Find("<Font") > -1 && pTextRange->m_Text.GetName().Find("</Font>") > -1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTextRange->m_Text.m_bScript = TRUE;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// GetDoc()->Invalidate();// pTextRange);
|
|
|
|
|
|
// pItem->SetValue(pTextRange->m_Text.GetName());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if(pItem->GetID() == IDS_STR_LAYERGROUP_TEXT) //<2F><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ı<EFBFBD><C4B1>ĶԻ<C4B6><D4BB><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* pLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// CDlgTrackText dlg;
|
|
|
|
|
|
// dlg.SetText(pLayerGroup->m_strLayerText);
|
|
|
|
|
|
// if(dlg.DoModal() == IDOK)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pLayerGroup->m_strLayerText = dlg.GetText();
|
|
|
|
|
|
// GetDoc()->Invalidate();
|
|
|
|
|
|
// pItem->SetValue(pLayerGroup->m_strLayerText);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItem->GetID() == IDS_STR_OIL_STATISTICS || pItem->GetID() == IDS_STR_OIL_ANALYSIS)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// if (pItem->GetID() == IDS_STR_OIL_STATISTICS)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackOilTest* pTrackInOilTest = (CInTrackOilTest*)m_pTrackIn;
|
|
|
|
|
|
// CDlgTrackOilStatis pOilStatis;
|
|
|
|
|
|
// pOilStatis.SetConclusion(pTrackInOilTest->m_strResult);
|
|
|
|
|
|
// pOilStatis.SetStyle(pTrackInOilTest->m_strMethod);
|
|
|
|
|
|
// pOilStatis.SetDayGas(pTrackInOilTest->m_fGas);
|
|
|
|
|
|
// pOilStatis.SetDGasUnit(pTrackInOilTest->m_strGasMode);
|
|
|
|
|
|
// pOilStatis.SetDayOil(pTrackInOilTest->m_fOil);
|
|
|
|
|
|
// pOilStatis.SetDOilUnit(pTrackInOilTest->m_strOilMode);
|
|
|
|
|
|
// pOilStatis.SetDayWater(pTrackInOilTest->m_fWater);
|
|
|
|
|
|
// pOilStatis.SetDWaterUnit(pTrackInOilTest->m_strWaterMode);
|
|
|
|
|
|
// pOilStatis.SetBendNumber(pTrackInOilTest->m_nLayerNumber);
|
|
|
|
|
|
// pOilStatis.SettotalOil(pTrackInOilTest->m_fTotalOil);
|
|
|
|
|
|
// pOilStatis.SetOilUnit(pTrackInOilTest->m_strTotalOilMode);
|
|
|
|
|
|
// pOilStatis.SettotalGas(pTrackInOilTest->m_fTotalGas);
|
|
|
|
|
|
// pOilStatis.SetGasUnit(pTrackInOilTest->m_strTotalGasMode);
|
|
|
|
|
|
// pOilStatis.SettotalWater(pTrackInOilTest->m_fTotalWater);
|
|
|
|
|
|
// pOilStatis.SetWaterUnit(pTrackInOilTest->m_strTotalWaterMode);
|
|
|
|
|
|
// pOilStatis.SettotalStatis(pTrackInOilTest->IsShowTotal());
|
|
|
|
|
|
// if (pOilStatis.DoModal() == IDOK)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInOilTest->m_strResult=pOilStatis.GetConclusion();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInOilTest->m_strResult.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_STRATUMFLUID);
|
|
|
|
|
|
// strMark = strMark + pTrackInOilTest->m_strResult;
|
|
|
|
|
|
// pTrackInOilTest->m_pMarkResult = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_FLUIDCOLOR);
|
|
|
|
|
|
// strMark = strMark + pTrackInOilTest->m_strResult;
|
|
|
|
|
|
// pTrackInOilTest->m_brush.m_color = GetMarkColor((CXy*)AfxGetGlobalWellXy()->FindMark(strMark));
|
|
|
|
|
|
// //pTrackInOilTest->m_brush.m_color = GetColorFromFluid(pTrackInOilTest->m_strResult);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInOilTest->m_pMarkResult = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// pTrackInOilTest->m_strMethod=pOilStatis.GetStyle();
|
|
|
|
|
|
// pTrackInOilTest->m_fGas=pOilStatis.GetDayGas();
|
|
|
|
|
|
// pTrackInOilTest->m_strGasMode=pOilStatis.GetDGasUnit();
|
|
|
|
|
|
// pTrackInOilTest->m_fOil=pOilStatis.GetDayOil();
|
|
|
|
|
|
// pTrackInOilTest->m_strOilMode=pOilStatis.GetDOilUnit();
|
|
|
|
|
|
// pTrackInOilTest->m_fWater=pOilStatis.GetDayWater();
|
|
|
|
|
|
// pTrackInOilTest->m_strWaterMode=pOilStatis.GetDWaterUnit();
|
|
|
|
|
|
// pTrackInOilTest->m_nLayerNumber=pOilStatis.GetBendNumber();
|
|
|
|
|
|
// pTrackInOilTest->m_fTotalOil=pOilStatis.GettotalOil();
|
|
|
|
|
|
// pTrackInOilTest->m_strTotalOilMode=pOilStatis.GetOilUnit();
|
|
|
|
|
|
// pTrackInOilTest->m_fTotalGas=pOilStatis.GettotalGas();
|
|
|
|
|
|
// pTrackInOilTest->m_strTotalGasMode=pOilStatis.GetGasUnit();
|
|
|
|
|
|
// pTrackInOilTest->m_fTotalWater=pOilStatis.GettotalWater();
|
|
|
|
|
|
// pTrackInOilTest->m_strTotalWaterMode=pOilStatis.GetWaterUnit();
|
|
|
|
|
|
// pTrackInOilTest->SetShowTotal(pOilStatis.GettotalStatis());
|
|
|
|
|
|
// GetDoc()->Invalidate();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItem->GetID() == IDS_STR_OIL_ANALYSIS)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackOilTest* pTrackInOilTest = (CInTrackOilTest*)m_pTrackIn;
|
|
|
|
|
|
// CDlgTrackOilAnaly pOilAanly;
|
|
|
|
|
|
// pOilAanly.SetOilDensity(pTrackInOilTest->m_fOilDensity);
|
|
|
|
|
|
// pOilAanly.SetOilConglutinate(pTrackInOilTest->m_fOilConglutinate);
|
|
|
|
|
|
// pOilAanly.SetWacteCL(pTrackInOilTest->m_fWater_CL);
|
|
|
|
|
|
// pOilAanly.SetWaterPPM(pTrackInOilTest->m_fWater_PPM);
|
|
|
|
|
|
// pOilAanly.SetWaterPH(pTrackInOilTest->m_fWaterPH);
|
|
|
|
|
|
// pOilAanly.SetWaterType(pTrackInOilTest->m_strWaterType);
|
|
|
|
|
|
// pOilAanly.SetOilAnaly(pTrackInOilTest->IsShowOil());
|
|
|
|
|
|
// pOilAanly.SetWaterAnaly(pTrackInOilTest->IsShowWater());
|
|
|
|
|
|
// if (pOilAanly.DoModal() == IDOK)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInOilTest->m_fOilDensity=pOilAanly.GetOilDensity();
|
|
|
|
|
|
// pTrackInOilTest->m_fOilConglutinate=pOilAanly.GetOilConglutinate();
|
|
|
|
|
|
// pTrackInOilTest->m_fWater_CL=pOilAanly.GetWacteCL();
|
|
|
|
|
|
// pTrackInOilTest->m_fWater_PPM=pOilAanly.GetWaterPPM();
|
|
|
|
|
|
// pTrackInOilTest->m_fWaterPH=pOilAanly.GetWaterPH();
|
|
|
|
|
|
// pTrackInOilTest->m_strWaterType=pOilAanly.GetWaterType();
|
|
|
|
|
|
// pTrackInOilTest->SetShowOil(pOilAanly.GetOilAnaly());
|
|
|
|
|
|
// pTrackInOilTest->SetShowWater(pOilAanly.GetWaterAnaly());
|
|
|
|
|
|
// GetDoc()->Invalidate();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItem->GetID() == IDS_INSERT_IMAGE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackPicture* pPicture = (CInTrackPicture*)m_pTrackIn;
|
|
|
|
|
|
// CWellPoleDoc* pDoc =(CWellPoleDoc*) GetDoc();
|
|
|
|
|
|
// CString name;
|
|
|
|
|
|
// CImageBase ib;
|
|
|
|
|
|
// if(ib.FileDialog(TRUE, name)!=IDOK)
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
|
|
|
|
// CXy* pxy = pDoc->GetDraw();
|
|
|
|
|
|
// CRect8 rect = pPicture->GetPos();
|
|
|
|
|
|
// CRect8 rt = pDoc->GetDC().GetReal(pPicture->GetPos());
|
|
|
|
|
|
|
|
|
|
|
|
// CSplitPath sp(name);
|
|
|
|
|
|
// CString ext = sp.GetExtension();
|
|
|
|
|
|
// ext.MakeUpper();
|
|
|
|
|
|
|
|
|
|
|
|
// CString strFilter = ib.GetImageFilter(TRUE);
|
|
|
|
|
|
// strFilter.MakeUpper();
|
|
|
|
|
|
// POSITION pos = NULL;
|
|
|
|
|
|
// if(strFilter.Find(ext)>=0)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CImageInsert* pImage = ReadImage(name);
|
|
|
|
|
|
// if (pImage != NULL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pos = pxy->AddElement(pImage, DOUBLEFOX_IMAGE);
|
|
|
|
|
|
|
|
|
|
|
|
// if (pos != NULL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// COne* pOne = pDoc->GetDraw()->RemoveAtNoClear(pos);
|
|
|
|
|
|
|
|
|
|
|
|
// CImageInsert* pImage = (CImageInsert*)pOne->value;
|
|
|
|
|
|
// pImage->x0 = rt.left;
|
|
|
|
|
|
// pImage->y0 = rt.bottom;
|
|
|
|
|
|
// if (pImage->m_size.cx > pImage->m_size.cy)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pImage->m_size.cy = rt.Width()*pImage->m_size.cy / pImage->m_size.cx;
|
|
|
|
|
|
// pImage->m_size.cx = rt.Width();
|
|
|
|
|
|
// pImage->y0 += (rt.Height() - pImage->m_size.cy)*0.5;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pImage->m_size.cx = rt.Height()*pImage->m_size.cx / pImage->m_size.cy;
|
|
|
|
|
|
// pImage->m_size.cy = rt.Height();
|
|
|
|
|
|
// pImage->x0 += (rt.Width() - pImage->m_size.cx)*0.5;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// pPicture->m_pImage = pImage;
|
|
|
|
|
|
// pPicture->m_pImage->SetRect(pPicture->GetPos());
|
|
|
|
|
|
// pPicture->m_pImage->SetName("");
|
|
|
|
|
|
|
|
|
|
|
|
// GetDoc()->Invalidate();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItem->GetID() == IDS_STR_TESTEXTRACTION_OUTPUTNEW)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //Ŀǰ<C4BF><C7B0><EFBFBD><EFBFBD>
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// CDlgTrackProductionNow ProductionNowDlg;
|
|
|
|
|
|
// ProductionNowDlg.SetDayGas(pTrackInTestExtraction->m_fGas);
|
|
|
|
|
|
// ProductionNowDlg.SetDGasUnit(pTrackInTestExtraction->m_strGasMode);
|
|
|
|
|
|
// ProductionNowDlg.SetDayOil(pTrackInTestExtraction->m_fOil);
|
|
|
|
|
|
// ProductionNowDlg.SetDOilUnit(pTrackInTestExtraction->m_strOilMode);
|
|
|
|
|
|
// ProductionNowDlg.SetDayWater(pTrackInTestExtraction->m_fWater);
|
|
|
|
|
|
// ProductionNowDlg.SetDWaterUnit(pTrackInTestExtraction->m_strWaterMode);
|
|
|
|
|
|
// ProductionNowDlg.SetGasOil(pTrackInTestExtraction->m_fGasOilScale);
|
|
|
|
|
|
// ProductionNowDlg.SetTimeNow(pTrackInTestExtraction->m_DateTime);
|
|
|
|
|
|
// ProductionNowDlg.SetOilPressure(pTrackInTestExtraction->m_fOilPressure);
|
|
|
|
|
|
// ProductionNowDlg.SetFluidPressure(pTrackInTestExtraction->m_fFluidPressure);
|
|
|
|
|
|
// ProductionNowDlg.SetSuitPressure(pTrackInTestExtraction->m_fSuitPressure);
|
|
|
|
|
|
// ProductionNowDlg.SetStaticPressure(pTrackInTestExtraction->m_fStaticPressure);
|
|
|
|
|
|
// ProductionNowDlg.SetSystem(pTrackInTestExtraction->m_StrSystem);
|
|
|
|
|
|
// ProductionNowDlg.SetStroke(pTrackInTestExtraction->m_fStroke);
|
|
|
|
|
|
// if (ProductionNowDlg.DoModal() == IDOK)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInTestExtraction->m_fGas = ProductionNowDlg.GetDayGas();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strGasMode = ProductionNowDlg.GetDGasUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fOil = ProductionNowDlg.GetDayOil();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strOilMode = ProductionNowDlg.GetDOilUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fWater = ProductionNowDlg.GetDayWater();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strWaterMode = ProductionNowDlg.GetDWaterUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fGasOilScale = ProductionNowDlg.GetGasOil();
|
|
|
|
|
|
// pTrackInTestExtraction->m_DateTime = ProductionNowDlg.GetTimeNow();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fOilPressure = ProductionNowDlg.GetOilPressure();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fFluidPressure = ProductionNowDlg.GetFluidPressure();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fSuitPressure = ProductionNowDlg.GetSuitPressure();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fStaticPressure = ProductionNowDlg.GetStaticPressure();
|
|
|
|
|
|
// pTrackInTestExtraction->m_StrSystem = ProductionNowDlg.GetSystem();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fStroke = ProductionNowDlg.GetStroke();
|
|
|
|
|
|
// GetDoc()->Invalidate();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItem->GetID() == IDS_STR_TESTEXTRACTION_OUTPUTOLD)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //Ͷ<><CDB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// CDlgTrackProductionOld ProductionOldDlg;
|
|
|
|
|
|
// ProductionOldDlg.SetDayGas(pTrackInTestExtraction->m_fGasOld);
|
|
|
|
|
|
// ProductionOldDlg.SetDGasUnit(pTrackInTestExtraction->m_strGasModeOld);
|
|
|
|
|
|
// ProductionOldDlg.SetDayOil(pTrackInTestExtraction->m_fOilOld);
|
|
|
|
|
|
// ProductionOldDlg.SetDOilUnit(pTrackInTestExtraction->m_strOilModeOld);
|
|
|
|
|
|
// ProductionOldDlg.SetDayWater(pTrackInTestExtraction->m_fWaterOld);
|
|
|
|
|
|
// ProductionOldDlg.SetDWaterUnit(pTrackInTestExtraction->m_strWaterModeOld);
|
|
|
|
|
|
// ProductionOldDlg.SetGasOil(pTrackInTestExtraction->m_fGasOilScaleOld);
|
|
|
|
|
|
// ProductionOldDlg.SetTimeNow(pTrackInTestExtraction->m_DateTimeOld);
|
|
|
|
|
|
// ProductionOldDlg.SetOilPressure(pTrackInTestExtraction->m_fOilPressureOld);
|
|
|
|
|
|
// ProductionOldDlg.SetFluidPressure(pTrackInTestExtraction->m_fFluidPressureOld);
|
|
|
|
|
|
// ProductionOldDlg.SetSuitPressure(pTrackInTestExtraction->m_fSuitPressureOld);
|
|
|
|
|
|
// ProductionOldDlg.SetStaticPressure(pTrackInTestExtraction->m_fStaticPressureOld);
|
|
|
|
|
|
// ProductionOldDlg.SetSystem(pTrackInTestExtraction->m_StrSystemOld);
|
|
|
|
|
|
// ProductionOldDlg.SetStroke(pTrackInTestExtraction->m_fStrokeOld);
|
|
|
|
|
|
// if (ProductionOldDlg.DoModal() == IDOK)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInTestExtraction->m_fGasOld = ProductionOldDlg.GetDayGas();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strGasModeOld = ProductionOldDlg.GetDGasUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fOilOld = ProductionOldDlg.GetDayOil();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strOilModeOld = ProductionOldDlg.GetDOilUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fWaterOld = ProductionOldDlg.GetDayWater();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strWaterModeOld = ProductionOldDlg.GetDWaterUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fGasOilScaleOld = ProductionOldDlg.GetGasOil();
|
|
|
|
|
|
// pTrackInTestExtraction->m_DateTimeOld = ProductionOldDlg.GetTimeNow();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fOilPressureOld = ProductionOldDlg.GetOilPressure();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fFluidPressureOld = ProductionOldDlg.GetFluidPressure();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fSuitPressureOld = ProductionOldDlg.GetSuitPressure();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fStaticPressureOld = ProductionOldDlg.GetStaticPressure();
|
|
|
|
|
|
// pTrackInTestExtraction->m_StrSystemOld = ProductionOldDlg.GetSystem();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fStrokeOld = ProductionOldDlg.GetStroke();
|
|
|
|
|
|
// GetDoc()->Invalidate();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItem->GetID() == IDS_STR_TESTEXTRACTION_OUTPUTTOTAL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //<2F>ۼƲ<DBBC><C6B2><EFBFBD>
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// CDlgTrackProductionTotal ProductionTotalDlg;
|
|
|
|
|
|
// ProductionTotalDlg.SetDayGas(pTrackInTestExtraction->m_fTotalGas);
|
|
|
|
|
|
// ProductionTotalDlg.SetDGasUnit(pTrackInTestExtraction->m_strTotalGasMode);
|
|
|
|
|
|
// ProductionTotalDlg.SetDayOil(pTrackInTestExtraction->m_fTotalOil);
|
|
|
|
|
|
// ProductionTotalDlg.SetDOilUnit(pTrackInTestExtraction->m_strTotalOilMode);
|
|
|
|
|
|
// ProductionTotalDlg.SetDayWater(pTrackInTestExtraction->m_fTotalWater);
|
|
|
|
|
|
// ProductionTotalDlg.SetDWaterUnit(pTrackInTestExtraction->m_strTotalWaterMode);
|
|
|
|
|
|
// ProductionTotalDlg.SetTimeNow(pTrackInTestExtraction->m_DateTimeEnd);
|
|
|
|
|
|
// if (ProductionTotalDlg.DoModal() == IDOK)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInTestExtraction->m_fTotalGas = ProductionTotalDlg.GetDayGas();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strTotalGasMode = ProductionTotalDlg.GetDGasUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fTotalOil = ProductionTotalDlg.GetDayOil();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strTotalOilMode = ProductionTotalDlg.GetDOilUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_fTotalWater = ProductionTotalDlg.GetDayWater();
|
|
|
|
|
|
// pTrackInTestExtraction->m_strTotalWaterMode = ProductionTotalDlg.GetDWaterUnit();
|
|
|
|
|
|
// pTrackInTestExtraction->m_DateTimeEnd = ProductionTotalDlg.GetTimeNow();
|
|
|
|
|
|
// GetDoc()->Invalidate();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItem->GetID() == IDS_STRING_PAN_PLOT_DATA)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackSample* pSample = (CInTrackSample*)m_pTrackIn;
|
|
|
|
|
|
|
|
|
|
|
|
// vector<CString> fields;
|
|
|
|
|
|
// CString str;
|
|
|
|
|
|
// str.LoadString(IDS_POSITION);
|
|
|
|
|
|
// fields.push_back(str);
|
|
|
|
|
|
// str.LoadString(IDS_SAMPLE);
|
|
|
|
|
|
// fields.push_back(str);
|
|
|
|
|
|
// str.LoadString(IDS_POROSITY);
|
|
|
|
|
|
// fields.push_back(str);
|
|
|
|
|
|
// str.LoadString(IDS_STR_PROP_PERMEAB);
|
|
|
|
|
|
// fields.push_back(str);
|
|
|
|
|
|
// str.LoadString(IDS_SATURATION);
|
|
|
|
|
|
// fields.push_back(str);
|
|
|
|
|
|
// str.LoadString(IDS_CACO3);
|
|
|
|
|
|
// fields.push_back(str);
|
|
|
|
|
|
// StringVectorSet content;
|
|
|
|
|
|
|
|
|
|
|
|
// for(int i=0; i<pSample->m_sampleArr.size(); i++)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// vector<CString>data;
|
|
|
|
|
|
// str.Format("%g", pSample->m_fSdep+pSample->m_sampleArr[i]->thick);
|
|
|
|
|
|
// data.push_back(str);
|
|
|
|
|
|
// str.Format("%d", pSample->m_sampleArr[i]->num);
|
|
|
|
|
|
// data.push_back(str);
|
|
|
|
|
|
// str.Format("%g", pSample->m_sampleArr[i]->Por);
|
|
|
|
|
|
// data.push_back(str);
|
|
|
|
|
|
// str.Format("%g", pSample->m_sampleArr[i]->Perm);
|
|
|
|
|
|
// data.push_back(str);
|
|
|
|
|
|
// str.Format("%g", pSample->m_sampleArr[i]->Os);
|
|
|
|
|
|
// data.push_back(str);
|
|
|
|
|
|
// str.Format("%g", pSample->m_sampleArr[i]->Ca);
|
|
|
|
|
|
// data.push_back(str);
|
|
|
|
|
|
|
|
|
|
|
|
// content.push_back(data);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// CPropertySheet sheet(IDS_STRING_PANE_PROPERTIES);
|
|
|
|
|
|
// sheet.m_psh.dwFlags |= PSH_NOAPPLYNOW;
|
|
|
|
|
|
// //CDataPropertyPage page(fields, content, true);
|
|
|
|
|
|
// //sheet.AddPage(&page);
|
|
|
|
|
|
// //if(sheet.DoModal() ==IDOK)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // content = page.GetContent();
|
|
|
|
|
|
|
|
|
|
|
|
// // pSample->m_sampleArr.DepthErase();
|
|
|
|
|
|
// // for(int i=0; i<content.size(); i++)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // SAMPLESTRUCT* pData = new SAMPLESTRUCT;
|
|
|
|
|
|
// // pData->thick = atof(content[i][0])-pSample->m_fSdep;
|
|
|
|
|
|
// // pData->num = atoi(content[i][1]);
|
|
|
|
|
|
// // pData->Por = atof(content[i][2]);
|
|
|
|
|
|
// // pData->Perm = atof(content[i][3]);
|
|
|
|
|
|
// // pData->Os = atof(content[i][4]);
|
|
|
|
|
|
// // pData->Ca = atof(content[i][5]);
|
|
|
|
|
|
|
|
|
|
|
|
// // pSample->m_sampleArr.push_back(pData);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // GetDoc()->Invalidate(pSample);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //else if(pItem->GetID() == IDS_STR_LAYERGROUP_NAME)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CInTrackLayerGroup* pLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// // CTrackTextDlg dlg;
|
|
|
|
|
|
// // dlg.SetText(pLayerGroup->m_strName);
|
|
|
|
|
|
// // if(dlg.DoModal() == IDOK)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pLayerGroup->m_strName = dlg.GetText();
|
|
|
|
|
|
// // GetDoc()->Invalidate(pLayerGroup);
|
|
|
|
|
|
// // pItem->SetValue(pLayerGroup->m_strName);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// else
|
|
|
|
|
|
// return;
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
//BOOL CItemTrackIn::InitPropertyGrid(CXTPPropertyGrid& grid)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// TRACE(" ItemTrackIn init PropertyGrid \r\n");
|
|
|
|
|
|
// if (m_pTrackIn == NULL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// return FALSE;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //if (!this->IsEditState())
|
|
|
|
|
|
// // return FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
// grid.ResetContent();
|
|
|
|
|
|
|
|
|
|
|
|
// CPropertyGridItemAdd ItemAdd(NULL);
|
|
|
|
|
|
// UINT strName;
|
|
|
|
|
|
// if (m_pTrackIn->GetType()== KEP_LITH)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName =IDS_STR_EDIT_LITHO;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType()==KEP_IMAGE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_SET_PICTURE;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_TEXTRANGE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_SET_TEXT;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_SYMBOL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_SET_SYMBOL;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_RESULT)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_SET_LAYER;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_CORING || m_pTrackIn->GetType() == KEP_COREWELL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_SET_CORE_DATA;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_LAYER)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // TrackName = IDS_STR_EDIT_LAYER_PROPERTY;
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_SAMPLE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_SET_SAMPLE_DATA;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_OILTEST)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_SET_OIL_TEST_LAYER;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_CEMENT)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // strName = IDS_STR_TRACKIN_CEMENTING_QUALITY;
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_PRODUCEDPARAMENTER)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // strName = IDS_STR_TRACKIN_PRODUCEFLUID;
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_ABSORPTIONWATER)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // strName = IDS_STR_TRACKIN_ABSORPTIONWATER;
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_TESTEXTRACTION)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_TRACKIN_TEST_EXTRACTION;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_LAYERGROUP)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_TRACKIN_LAYERGROUP;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_STANDARD)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_STANDARD_LAYER;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_FAULTPOINT)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_FAULTPOINT;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// strName = IDS_STR_TRACK_LAYERSETCHILD;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// CXTPPropertyGridItem *pItem = grid.AddCategory(strName);
|
|
|
|
|
|
// ItemAdd.SetItem(pItem); pItem->Expand();
|
|
|
|
|
|
// CInTrackDepthSegment* DrawTopEndObj = (CInTrackDepthSegment*) m_pTrackIn;
|
|
|
|
|
|
// CString strFormat;
|
|
|
|
|
|
// strFormat.Format("%%0.%dlf",2);
|
|
|
|
|
|
|
|
|
|
|
|
// if (m_pTrackIn->GetType() == KEP_FAULTPOINT ||
|
|
|
|
|
|
// m_pTrackIn->GetType() == KEP_STANDARD ||
|
|
|
|
|
|
// m_pTrackIn->GetType() == KEP_COREWELL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// ItemAdd.AddItemUnitDouble(IDS_STRING_DEPTH, CUnit::UNIT_M, DrawTopEndObj->m_fSdep, strFormat);//<2F><><EFBFBD><EFBFBD>ף<EFBFBD>
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// ItemAdd.AddItemUnitDouble(IDS_STR_TOPDEPTH, CUnit::UNIT_M, DrawTopEndObj->m_fSdep, strFormat);//<2F><><EFBFBD><EFBFBD>ף<EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemUnitDouble(IDS_STR_BOTDEPTH, CUnit::UNIT_M, DrawTopEndObj->m_fEdep, strFormat);//<2F><><EFBFBD><EFBFBD>ף<EFBFBD>
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// if (m_pTrackIn->GetType()==KEP_LITH)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLith* pTrackInLith = (CInTrackLith *)m_pTrackIn;
|
|
|
|
|
|
// CStringArray strClr;
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_COLOR, pTrackInLith->m_strClr, MarkLithoColor);//<2F><>ɫ
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_OILGAS, pTrackInLith->m_strOilGas, MarkLithoOilGas);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_CONTENT, pTrackInLith->m_strContent, MarkLithoContent);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_FORNT, pTrackInLith->m_strFront, MarkLithoFront);//<2F><><EFBFBD><EFBFBD>ǰ
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_CONSTITUTION, pTrackInLith->m_strConstitution, MarkLithoConstitution);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_MAIN, pTrackInLith->m_strLith, MarkLithoMain);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType()==KEP_IMAGE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackPicture* pTrackInPicture = (CInTrackPicture*)m_pTrackIn;
|
|
|
|
|
|
// CString style;
|
|
|
|
|
|
// style.LoadString(IDS_STR_TRACK_PICTURE_STYLE);
|
|
|
|
|
|
// long nMode = pTrackInPicture->m_nMode;
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TRACK_TITLE,pTrackInPicture->GetName());//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemCombo(IDS_STR_TRACK_SHOWMODE, style, nMode);//ͼƬģʽ
|
|
|
|
|
|
// CCustomItemButton* pItemButton = new CCustomItemButton(IDS_INSERT_IMAGE, GetOwner());//<2F><><EFBFBD><EFBFBD>ͼƬ
|
|
|
|
|
|
// pItemButton->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButton);
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_TEXTRANGE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
// ItemAdd.AddItemColor(IDS_STR_TRACK_BGCOLOR,pTrackInTextRange->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
|
|
|
|
|
|
// CCustomItemButton* pItemButton = new CCustomItemButton(IDS_STR_TRACK_TEXTCONTENT, GetOwner(), pTrackInTextRange->m_Text.GetName());//<2F>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// pItemButton->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButton);
|
|
|
|
|
|
|
|
|
|
|
|
// ItemAdd.AddItemFont(IDS_STR_RECTLABEL_TEXT_FONT,pTrackInTextRange->m_font.m_logFont,pTrackInTextRange->m_font.m_color);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// //ItemAdd.AddItemColor(IDS_SRT_TRACK_FRAMECOLOR,pTrackInTextRange->m_pen.m_color);//<2F>߿<EFBFBD><DFBF><EFBFBD>ɫ
|
|
|
|
|
|
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_TEXTLITHO, pTrackInTextRange->m_strLitho, MarkStratumLitho);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// //ItemAdd.AddItemDouble(IDS_STR_TRACK_LINESPACE,pTrackInTextRange->m_Text.m_dLineSpace);//<2F>м<EFBFBD><D0BC><EFBFBD>
|
|
|
|
|
|
// CString Hstyle;
|
|
|
|
|
|
// Hstyle.LoadString(IDS_STR_TRACK_TEXT_ALIGN_HOR);
|
|
|
|
|
|
// long HMode = 0;
|
|
|
|
|
|
// if (pTrackInTextRange->m_Text.GetAlignsH() == CTextFlags::alignLeft)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// HMode = 0;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pTrackInTextRange->m_Text.GetAlignsH() == CTextFlags::alignCenterH)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// HMode = 1;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pTrackInTextRange->m_Text.GetAlignsH() == CTextFlags::alignRight)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// HMode = 2;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ItemAdd.AddItemCombo(IDS_SRT_TRACK_HPOSITION, Hstyle, HMode);//ˮƽλ<C6BD><CEBB>
|
|
|
|
|
|
|
|
|
|
|
|
// CString Vstyle;
|
|
|
|
|
|
// Vstyle.LoadString(IDS_STR_TRACK_TEXT_ALIGN_VER);
|
|
|
|
|
|
// long VMode = 0;
|
|
|
|
|
|
// if (pTrackInTextRange->m_Text.GetAlignsV() == CTextFlags::alignTop)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// VMode = 0;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pTrackInTextRange->m_Text.GetAlignsV() == CTextFlags::alignCenterV)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// VMode = 1;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pTrackInTextRange->m_Text.GetAlignsV() == CTextFlags::alignBottom)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// VMode = 2;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ItemAdd.AddItemCombo(IDS_SRT_TRACK_VPOSITION, Vstyle, VMode);//<2F><>ֱλ<D6B1><CEBB>
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_SYMBOL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackSymbol* pTrackInSymbol = (CInTrackSymbol*)m_pTrackIn;
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_MARK, pTrackInSymbol->m_strName, MarkNormal);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
// CString str;
|
|
|
|
|
|
// str.LoadString(IDS_STR_SHOWMODE_CENTER);
|
|
|
|
|
|
// CXTPPropertyGridItem *pItem = ItemAdd.AddItemCombo(IDS_STR_SYMBOL_SHOWMODE,str,pTrackInSymbol->m_nKind);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_RESULT)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInResult = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// //CWellSection* pSection = (CWellSection* )pTrackInResult->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TRACK_BENDNAME, pTrackInResult->m_strLayer);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// /*if (pSection == NULL)*/
|
|
|
|
|
|
// {
|
|
|
|
|
|
// ItemAdd.AddItemDouble(IDS_STR_TRACK_VALIDTHICK,pTrackInResult->m_fValidThick);//<2F><>Ч<EFBFBD><D0A7><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_RESULT, pTrackInResult->m_strResult, MarkResult1);//<2F><><EFBFBD>ͽ<EFBFBD><CDBD><EFBFBD>
|
|
|
|
|
|
// //ItemAdd.AddItemColor(IDS_STR_TRACK_RESULT_BGCOLOR,pTrackInResult->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// //ItemAdd.AddItemLine1(IDS_STR_TRACK_RESULTPENCHILD, pTrackInResult->m_pen, &pTrackInResult->m_pen, LineType_Curve);//<2F>߿<EFBFBD><DFBF><EFBFBD>
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //else
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // int nBendFillType = 0;
|
|
|
|
|
|
// // if(pSection != NULL)
|
|
|
|
|
|
// // nBendFillType = pSection->GetFeature()->m_nBendFillStyle;
|
|
|
|
|
|
// // ItemAdd.AddItemComboMark(IDS_STR_TRACK_LAYERFLUID, pTrackInResult->m_strResult, MarkStratumFluid, nBendFillType);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemComboMark(IDS_STR_TRACK_LAYERLITHO, pTrackInResult->m_strLitho, MarkStratumLitho);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemBool(IDS_STR_TRACK_LAYERCOLORAUTO, pTrackInResult->IsColorAuto());//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ɫ<EFBFBD>Զ<EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemColor(IDS_STR_TRACK_LAYERCOLOR,pTrackInResult->m_fillColor);//<2F><>ɫ
|
|
|
|
|
|
// // ItemAdd.AddItemBool(IDS_STR_TRACK_LAYERBOOLSYMBOL, pTrackInResult->IsShowSymbol());//<2F>Ƿ<C7B7><F1BBADB7><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemComboMark(IDS_STR_TRACK_LAYERSYMBOL, pTrackInResult->m_strResult, MarkResult1);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_CORING)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoring* pTrackInCoring = (CInTrackCoring*)m_pTrackIn;
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TRACK_COINGNAME,pTrackInCoring->m_Text.GetName());//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemDouble(IDS_STR_TRACK_COINGTIMES, pTrackInCoring->m_nCoringTimes);//ȡо<C8A1><D0BE><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemDouble(IDS_STR_TRACK_COINGLENGTH, pTrackInCoring->m_CoringLength);//ȡо<C8A1><D0BE><EFBFBD><EFBFBD>
|
|
|
|
|
|
// CString strPercent;
|
|
|
|
|
|
// pTrackInCoring->m_CoringPercent = pTrackInCoring->m_CoringLength/(pTrackInCoring->m_fEdep-pTrackInCoring->m_fSdep);
|
|
|
|
|
|
// strPercent.Format("%.1f%s",pTrackInCoring->m_CoringPercent*100,"%");
|
|
|
|
|
|
// //ItemAdd.AddItemDouble(IDS_STR_TRACK_COINGPERCENT, pTrackInCoring->m_CoringPercent); //<2F>ջ<EFBFBD><D5BB><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TRACK_COINGPERCENT,strPercent);//<2F>ջ<EFBFBD><D5BB><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemColor(IDS_STR_TRACK_COINGCOLOR, pTrackInCoring->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// //ItemAdd.AddItemColor(IDS_STR_TRACK_COINGFARMECOLOR,pTrackInCoring->m_pen.m_color);//<2F>߿<EFBFBD><DFBF><EFBFBD>ɫ
|
|
|
|
|
|
// CString Hstyle;
|
|
|
|
|
|
// Hstyle.LoadString(IDS_STR_TRACK_TEXT_ALIGN_HOR);
|
|
|
|
|
|
// long HMode = 0;
|
|
|
|
|
|
// if (pTrackInCoring->m_Text.GetAlignsH() == CTextFlags::alignLeft)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// HMode = 0;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pTrackInCoring->m_Text.GetAlignsH() == CTextFlags::alignCenterH)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// HMode = 1;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pTrackInCoring->m_Text.GetAlignsH() == CTextFlags::alignRight)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// HMode = 2;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ItemAdd.AddItemCombo(IDS_STR_TRACK_COINGPOSITION, Hstyle, HMode);//ˮƽλ<C6BD><CEBB>
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType()==KEP_COREWELL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoreWell* pTrackInCoreWell = (CInTrackCoreWell *)m_pTrackIn;
|
|
|
|
|
|
// CTrackCoreWell* pTrackCore = (CTrackCoreWell*)pTrackInCoreWell->GetParent();
|
|
|
|
|
|
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_CORE_LITH, pTrackInCoreWell->m_strLith, MarkLithoMain);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACK_CORE_OILGAS, pTrackInCoreWell->m_strOilGas, MarkLithoOilGas);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// if(pTrackCore->IsColorFill())
|
|
|
|
|
|
// ItemAdd.AddItemColor(IDS_STR_TRACK_CORE_COLOR,pTrackInCoreWell->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// else
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TRACK_CORE_COLOR, pTrackInCoreWell->m_strClr);//<2F><>ɫ<EFBFBD>ı<EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemLong(IDS_STR_TRACK_CORE_TIMES, pTrackInCoreWell->m_nTimes);//ȡо<C8A1><D0BE><EFBFBD><EFBFBD>
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_SAMPLE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackSample* pTrackInSample = (CInTrackSample*)m_pTrackIn;
|
|
|
|
|
|
// //ItemAdd.AddItemString(IDS_STR_TRACK_SAMPLENAME, pTrackInSample->m_title_name);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemBool(IDS_STR_TRACK_SAMPLESINGLE, pTrackInSample->IsSingle());//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>Ͳ
|
|
|
|
|
|
// ItemAdd.AddItemLine1(IDS_STR_TRACK_SAMPLELINE, pTrackInSample->m_pen, &pTrackInSample->m_pen, LineType_Curve);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// CCustomItemButton* pItemButtonData = new CCustomItemButton(IDS_STRING_PAN_PLOT_DATA, GetOwner());//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// pItemButtonData->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButtonData);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_OILTEST)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackOilTest* TrackInOilTest = (CInTrackOilTest*)m_pTrackIn;
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_OIL_BENDNAME, TrackInOilTest->m_strLayerName);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemDouble(IDS_STR_OIL_BENDNUMBER,TrackInOilTest->m_nLayerNumber);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemFont(IDS_STR_OIL_TEXTFONT, TrackInOilTest->m_font.m_logFont,TrackInOilTest->m_font.m_color);//<2F>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// //ItemAdd.AddItemColor(IDS_STR_OIL_BGCOLOR,TrackInOilTest->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// //ItemAdd.AddItemBool(IDS_STR_OIL_TEST_SHOW_MARK, TrackInOilTest->IsShowMark());//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD>ͱ<EFBFBD>ע
|
|
|
|
|
|
// CCustomItemButton* pItemButtonStatis = new CCustomItemButton(IDS_STR_OIL_STATISTICS, GetOwner());//ͳ<>ƽ<EFBFBD><C6BD><EFBFBD>
|
|
|
|
|
|
// pItemButtonStatis->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButtonStatis);
|
|
|
|
|
|
|
|
|
|
|
|
// CCustomItemButton* pItemButtonAnaly = new CCustomItemButton(IDS_STR_OIL_ANALYSIS, GetOwner());//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// pItemButtonAnaly->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButtonAnaly);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_LAYERGROUP)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* TrackInLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_LAYERGROUP_NAME,TrackInLayerGroup->m_strLayerName);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// CCustomItemButton* pItemButton = new CCustomItemButton(IDS_STR_LAYERGROUP_TEXT, GetOwner(), TrackInLayerGroup->m_strLayerText);//<2F>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// pItemButton->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButton);
|
|
|
|
|
|
// ItemAdd.AddItemColor(IDS_STR_TRACKIN_LAYERGROUP_BGCOLOR,TrackInLayerGroup->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// ItemAdd.AddItemFont(IDS_STR_LAYERGROUP_FONT,TrackInLayerGroup->m_font.m_logFont,TrackInLayerGroup->m_font.m_color);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemComboMark(IDS_STR_TRACKIN_LAYERGROUP_LITHO, TrackInLayerGroup->m_strLitho, MarkStratumLitho);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemBool(IDS_STR_TRACKIN_TOP_UNCOMFORMITY, TrackInLayerGroup->IsTopUnConformity());//<2F>Ƿ<C7B7><F1B6A5B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemBool(IDS_STR_TRACKIN_BOTTOMUNACROSS, TrackInLayerGroup->IsBottomUnDrill());//<2F>Ƿ<EFBFBD><C7B7>ײ<EFBFBD>δ<EFBFBD>괩
|
|
|
|
|
|
|
|
|
|
|
|
// //ItemAdd.AddItemBool(IDS_CHANGEALL_LAYERGROUPS, m_bChangeAllLayerSet);//<2F>Ƿ<EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_STANDARD)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CInTrackStandardLayer* TrackInStandardLayer = (CInTrackStandardLayer*)m_pTrackIn;
|
|
|
|
|
|
// // ItemAdd.AddItemString(IDS_STR_TRACK_STANDARD_NAME,TrackInStandardLayer->m_strLayerName);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemString(IDS_STR_STANDARD_LAYER_TEXT,TrackInStandardLayer->m_strText);//<2F>ı<EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemFont(IDS_STR_STANDARDLAYER_TEXFFONT,TrackInStandardLayer->m_font.m_logFont,TrackInStandardLayer->m_font.m_frColor); //<2F>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemLine(IDS_STR_TRACK_STANDARD_LINE,TrackInStandardLayer->m_pen,&TrackInStandardLayer->m_pen,LineType_Curve);//<2F><>
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_CEMENT)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CInTrackCementing* pTrackInCementing = (CInTrackCementing*)m_pTrackIn;
|
|
|
|
|
|
// // ItemAdd.AddItemString(IDS_STR_CEMENTING_NAME,pTrackInCementing->m_strLayerName);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemString(IDS_STR_CEMENTING_MARK,pTrackInCementing->m_strMark);//<2F><>ע
|
|
|
|
|
|
// // CString Interface;
|
|
|
|
|
|
// // Interface.LoadString(IDS_STR_TRACK_CEMENT_INTERFACE);
|
|
|
|
|
|
// // long FirstMode = 0;
|
|
|
|
|
|
// // if (pTrackInCementing->GetFirstInerface() == CInTrackCementing::TrackInCementingFlagsFirstGood)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // FirstMode = 3;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pTrackInCementing->GetFirstInerface() == CInTrackCementing::TrackInCementingFlagsFirstMedium)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // FirstMode = 2;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pTrackInCementing->GetFirstInerface() == CInTrackCementing::TrackInCementingFlagsFirstBad)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // FirstMode = 1;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pTrackInCementing->GetFirstInerface() == CInTrackCementing::TrackInCementingFlagsFirstFreedomCasing)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // FirstMode = 0;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // ItemAdd.AddItemCombo(IDS_STR_CEMENTING_FIRST_INTERFACE, Interface, FirstMode);//<2F><>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // long SecondMode = 0;
|
|
|
|
|
|
// // if (pTrackInCementing->GetSecondInerface() == CInTrackCementing::TrackInCementingFlagsSecondGood)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // SecondMode = 3;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pTrackInCementing->GetSecondInerface() == CInTrackCementing::TrackInCementingFlagsSecondMedium)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // SecondMode = 2;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pTrackInCementing->GetSecondInerface() == CInTrackCementing::TrackInCementingFlagsSecondBad)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // SecondMode = 1;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pTrackInCementing->GetSecondInerface() == CInTrackCementing::TrackInCementingFlagsSecondFreedomCasing)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // SecondMode = 0;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // ItemAdd.AddItemCombo(IDS_STR_CEMENTING_SECOND_INTERFACE, Interface, SecondMode);//<2F>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_PRODUCEDPARAMENTER)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // ItemAdd.AddItemString(IDS_STR_TRACKIN_PRODUCENAME,pTrackInProduceFluid->m_strLayerName);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemColor(IDS_STR_TRACKIN_PRODUCEBGCOLOR,pTrackInProduceFluid->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// // //ItemAdd.AddItemDouble(IDS_STR_TRACKIN_PRODUCELEFTSPACE,pTrackInProduceFluid->m_fLeftSpace);//<2F><><EFBFBD>߿հ<DFBF>
|
|
|
|
|
|
// // //ItemAdd.AddItemDouble(IDS_STR_TRACKIN_PRODUCERIGHTSPACE,pTrackInProduceFluid->m_fRightSpace);//<2F>ұ߿հ<DFBF>
|
|
|
|
|
|
// // ItemAdd.AddItemFont(IDS_STR_PRODUCE_FONT,pTrackInProduceFluid->m_font.m_logFont,pTrackInProduceFluid->m_font.m_frColor);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // pItem = grid.AddCategory(IDS_STR_TRACKIN_PRODUCEPARAMENTER);
|
|
|
|
|
|
// // ItemAdd.SetItem(pItem); pItem->Expand();
|
|
|
|
|
|
// // ItemAdd.AddItemDouble(IDS_STR_TRACKIN_PRODUCEFLUIDNUMBER,pTrackInProduceFluid->m_dFluidAmount);//<2F><>Һ<EFBFBD><D2BA>
|
|
|
|
|
|
// // ItemAdd.AddItemDouble(IDS_STR_TRACKIN_PRODUCEOILNUMBER,pTrackInProduceFluid->m_dOilAmount);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemDouble(IDS_STR_TRACKIN_PRODUCEWATERNUMBER,pTrackInProduceFluid->m_dWaterAmount);//<2F><>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // ItemAdd.AddItemDouble(IDS_STR_TRACKIN_PRODUCEGASNUMBER,pTrackInProduceFluid->m_dGasdAmount);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemDouble(IDS_STR_TRACKIN_PRODUCEWATERRATE,pTrackInProduceFluid->m_dWaterContent);//<2F><>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // ItemAdd.AddItemString(IDS_STR_TRACKIN_PRODUCECONCLUSION,pTrackInProduceFluid->m_StrResult);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_ABSORPTIONWATER)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // ItemAdd.AddItemString(IDS_STR_TRACKIN_WATERNAME,pTrackinWater->m_strLayerName); //<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // ItemAdd.AddItemColor(IDS_STR_TRACKIN_WATERBGCOLOR,pTrackinWater->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// // //ItemAdd.AddItemDouble(IDS_STR_TRACKIN_WATERLEFTSPACE,pTrackinWater->m_fLeftSpace);//<2F><><EFBFBD>߿հ<DFBF>
|
|
|
|
|
|
// // //ItemAdd.AddItemDouble(IDS_STR_TRACKIN_WATERRIGHTSPACE,pTrackinWater->m_fRightSpace);//<2F>ұ߿հ<DFBF>
|
|
|
|
|
|
// // ItemAdd.AddItemFont(IDS_STR_ABSORPTION_FONT,pTrackinWater->m_font.m_logFont,pTrackinWater->m_font.m_frColor);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // pItem = grid.AddCategory(IDS_STR_TRACKIN_ABSORPTIONPARAMETER);
|
|
|
|
|
|
// // ItemAdd.SetItem(pItem); pItem->Expand();
|
|
|
|
|
|
// // ItemAdd.AddItemBool(IDS_STR_TRACKIN_ISSHOWREATIVE,pTrackinWater->IsShowRelative());//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // ItemAdd.AddItemBool(IDS_STR_TRACKIN_ISSHOWABSOLUTE,pTrackinWater->IsShowAbsolute());//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // ItemAdd.AddItemDouble(IDS_STR_TRACKIN_ABSORPTIONABSOLUTE,pTrackinWater->m_dAbsorptionAmount);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // ItemAdd.AddItemDouble(IDS_STR_TRACKIN_ABSORPTIONRELATIVE,pTrackinWater->m_dRelativeAbsorpt);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // ItemAdd.AddItemString(IDS_STR_TRACKIN_WATERCONCLUSION,pTrackinWater->m_strConclusion);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_TESTEXTRACTION)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TESTEXTRACTION_NAME,pTrackInTestExtraction->m_strLayerName);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemDouble(IDS_STR_TESTEXTRACTION_LAYERNUMBER,pTrackInTestExtraction->m_nLayerNumber);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TESTEXTRACTION_CONCLUSION,pTrackInTestExtraction->m_strResult);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemColor(IDS_STR_TESTEXTRACTION_BGCOLOR,pTrackInTestExtraction->m_brush.m_color);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// ItemAdd.AddItemFont(IDS_STR_TESTEXTRACTION_FONT,pTrackInTestExtraction->m_font.m_logFont,pTrackInTestExtraction->m_font.m_color);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
// CCustomItemButton* pItemButtonNew = new CCustomItemButton(IDS_STR_TESTEXTRACTION_OUTPUTNEW, GetOwner());//Ŀǰ<C4BF><C7B0><EFBFBD><EFBFBD>
|
|
|
|
|
|
// pItemButtonNew->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButtonNew);
|
|
|
|
|
|
|
|
|
|
|
|
// CCustomItemButton* pItemButtonOld = new CCustomItemButton(IDS_STR_TESTEXTRACTION_OUTPUTOLD, GetOwner());//Ͷ<><CDB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// pItemButtonOld->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButtonOld);
|
|
|
|
|
|
|
|
|
|
|
|
// CCustomItemButton* pItemButtonTotal = new CCustomItemButton(IDS_STR_TESTEXTRACTION_OUTPUTTOTAL, GetOwner());//<2F>ۼƲ<DBBC><C6B2><EFBFBD>
|
|
|
|
|
|
// pItemButtonTotal->SetFlags(xtpGridItemHasExpandButton|xtpGridItemHasEdit);
|
|
|
|
|
|
// ItemAdd.AddItem(pItemButtonTotal);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_SHOT)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackShot* pTrackInShot = (CInTrackShot*)m_pTrackIn;
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TRACKIN_SHOOTLAYERNAME, pTrackInShot->m_Text.GetName());//С<><D0A1><EFBFBD><EFBFBD>
|
|
|
|
|
|
// CStringArray strArr;
|
|
|
|
|
|
// pTrackInShot->GetLayerTypeStrArr(strArr);
|
|
|
|
|
|
// int selid = -1;
|
|
|
|
|
|
// for(int ii = 0; ii< strArr.GetSize(); ii++)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// if(strArr[ii].CompareNoCase(pTrackInShot->m_strResult) == 0)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// selid = ii;break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ItemAdd.AddItemCombo(IDS_STR_TRACKIN_SHOTLAYERTYPE,strArr,selid);
|
|
|
|
|
|
|
|
|
|
|
|
// if(pTrackInShot->m_date.GetStatus() == COleDateTime::invalid || pTrackInShot->m_date.GetStatus() == COleDateTime::null)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInShot->m_date.SetStatus(COleDateTime::null);
|
|
|
|
|
|
// pTrackInShot->m_date = COleDateTime::GetCurrentTime();
|
|
|
|
|
|
// ItemAdd.AddItemDate(IDS_STR_TRACKIN_SHOOTDATE,pTrackInShot->m_date);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// ItemAdd.AddItemDate(IDS_STR_TRACKIN_SHOOTDATE,pTrackInShot->m_date);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
//
|
|
|
|
|
|
// ItemAdd.AddItemDouble(IDS_STR_TRACKIN_SHOOTDENISTY,pTrackInShot->m_fDensity);//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_TRACKIN_SHOOTMETHOD,pTrackInShot->m_strMethod);//<2F><><EFBFBD><EFBFBD>ʽ
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_FAULTPOINT)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackFaultPoint *pTrackFaultPoint = (CInTrackFaultPoint *)m_pTrackIn;
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_FAULT_NAME,pTrackFaultPoint->m_strLayerName);
|
|
|
|
|
|
// ItemAdd.AddItemUnitDouble(IDS_STR_FAULTTHROW,CUnit::UNIT_M,pTrackFaultPoint->m_dThrow,strFormat);
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_FAULTED_HORIZON,pTrackFaultPoint->m_sfaultedHori);
|
|
|
|
|
|
// ItemAdd.AddItemString(IDS_STR_COMPARE_WELL,pTrackFaultPoint->m_sCompareWell);
|
|
|
|
|
|
// ItemAdd.AddItemUnitDouble(IDS_STR_COMPARE_WELL_TOPDEPTH,CUnit::UNIT_M,pTrackFaultPoint->m_dCompareWellTop,strFormat);
|
|
|
|
|
|
// ItemAdd.AddItemUnitDouble(IDS_STR_COMPARE_WELL_BOTTOMDEPTH,CUnit::UNIT_M,pTrackFaultPoint->m_dCompareWellBottom,strFormat);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// pItem->Expand();
|
|
|
|
|
|
// //CItem::InitPropertyGrid(grid);
|
|
|
|
|
|
// return TRUE;
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
//BOOL CItemTrackIn::OnGridItemChangeValue(CXTPPropertyGridItem* pItem)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// //if (!this->IsEditState())
|
|
|
|
|
|
// // return FALSE;
|
|
|
|
|
|
// switch(pItem->GetID())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STRING_DEPTH:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackDepthSegment* pDrawTopEndObj = (CInTrackDepthSegment*) m_pTrackIn;
|
|
|
|
|
|
// double ftemp = atof(pItem->GetValue());
|
|
|
|
|
|
|
|
|
|
|
|
// CWellPole *pWellObj = m_pTrackIn->GetWell();
|
|
|
|
|
|
// if(pWellObj->m_dSdep<ftemp && ftemp< pWellObj->m_dEdep)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pDrawTopEndObj->SetDepth(ftemp);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TOPDEPTH://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackDepthSegment* pDrawTopEndObj = (CInTrackDepthSegment*) m_pTrackIn;
|
|
|
|
|
|
// double ftemp = atof(pItem->GetValue());
|
|
|
|
|
|
// if (ftemp<pDrawTopEndObj->m_fEdep)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CWellPole *pWellObj = m_pTrackIn->GetWell();
|
|
|
|
|
|
// pDrawTopEndObj->SetTop(ftemp);
|
|
|
|
|
|
|
|
|
|
|
|
// //CTrackObj* pTrack = (CTrackObj*)m_pTrackIn->GetParentObj();
|
|
|
|
|
|
// //CWellSection* pSection = (CWellSection*)pWellObj->GetParentObj();
|
|
|
|
|
|
// //if (pSection != NULL &&
|
|
|
|
|
|
// // (pDrawTopEndObj->GetType()==KEP_RESULT ||
|
|
|
|
|
|
// // pDrawTopEndObj->GetType()==KEP_LAYERGROUP))
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CRect8 rect = pDrawTopEndObj->GetPos();
|
|
|
|
|
|
// // CDrawTopEndObj* pLayer = pDrawTopEndObj;
|
|
|
|
|
|
// // ////////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵķǼ<C4B7><C7BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı仯
|
|
|
|
|
|
// // pSection->ComputeBendControlsHeight(pLayer,TRUE);
|
|
|
|
|
|
// // POSITION posLeft = pLayer->m_BendLeftList.GetHeadPosition();
|
|
|
|
|
|
// // while(posLeft!=NULL)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBend = (CBendObj*)pLayer->m_BendLeftList.GetNext(posLeft);
|
|
|
|
|
|
// // CDrawTopEndObj* pLayerLeft = pBend->m_pLayerLeft;
|
|
|
|
|
|
// // if(pBend->m_pLayerLeft->GetPos().left > pBend->m_pLayerRight->GetPos().left)
|
|
|
|
|
|
// // pLayerLeft = pBend->m_pLayerRight;
|
|
|
|
|
|
// // pSection->ComputeBendControlsHeight(pLayerLeft,FALSE);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // ////////<2F><><EFBFBD>ұ<EFBFBD><D2B1><EFBFBD><EFBFBD>ӵķǼ<C4B7><C7BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı仯
|
|
|
|
|
|
// // pSection->ComputeBendControlsHeight(pLayer,FALSE);
|
|
|
|
|
|
// // POSITION posRight = pLayer->m_BendRightList.GetHeadPosition();
|
|
|
|
|
|
// // while(posRight!=NULL)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBend = (CBendObj*)pLayer->m_BendRightList.GetNext(posRight);
|
|
|
|
|
|
// // CDrawTopEndObj* pLayerRight = pBend->m_pLayerRight;
|
|
|
|
|
|
// // if(pBend->m_pLayerLeft->GetPos().left > pBend->m_pLayerRight->GetPos().left)
|
|
|
|
|
|
// // pLayerRight = pBend->m_pLayerLeft;
|
|
|
|
|
|
// // pSection->ComputeBendControlsHeight(pLayerRight,TRUE);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // ////////<2F><><EFBFBD><EFBFBD><EFBFBD>ӵļ<D3B5><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı仯
|
|
|
|
|
|
// // CDrawTopEndObj* pObj = pDrawTopEndObj;
|
|
|
|
|
|
// // POSITION pos = pSection->m_BendList.GetHeadPosition();
|
|
|
|
|
|
// // while (pos!=NULL)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBend = (CBendObj*)pSection->m_BendList.GetNext(pos);
|
|
|
|
|
|
// // if (pBend->m_pLayerLeft==pObj&&pBend->m_pLayerRight==NULL)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // double a1,b1,a2,b2;
|
|
|
|
|
|
// // double yRatio;
|
|
|
|
|
|
// // double yLeftNew,yRightNew;
|
|
|
|
|
|
// // if (rect.top!=pObj->GetPos().top||rect.bottom!=pObj->GetPos().bottom)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // a1 = (pBend->m_ptEndBreak.y0-rect.CenterPoint().y0)
|
|
|
|
|
|
// // /(pBend->m_ptEndBreak.x0-pBend->m_ptArrCurveTopOld.GetAt(0).x0);
|
|
|
|
|
|
// // b1 = rect.CenterPoint().y0-a1*pBend->m_ptArrCurveTopOld.GetAt(0).x0;
|
|
|
|
|
|
// // b2 = pObj->GetPos().CenterPoint().y0-a1*pBend->m_ptArrCurveTopOld.GetAt(0).x0;
|
|
|
|
|
|
// // dfPoint dfpoint;
|
|
|
|
|
|
// // for (int kk=0;kk<pBend->m_ptArrCurveTopOld.GetCount();kk++)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // yRatio = (pBend->m_ptArrCurveTopOld.GetAt(kk).y0-(a1*pBend->m_ptArrCurveTopOld.GetAt(kk).x0+b1))/(rect.Height());
|
|
|
|
|
|
// // dfpoint.y0 = yRatio*pObj->GetPos().Height()+(a1*pBend->m_ptArrCurveTopOld.GetAt(kk).x0+b2);
|
|
|
|
|
|
// // pBend->m_ptArrCurveTopOld.GetAt(kk).y0 = dfpoint.y0;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // for (int kk=0;kk<pBend->m_ptArrCurveBotOld.GetCount();kk++)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // yRatio = (pBend->m_ptArrCurveBotOld.GetAt(kk).y0-(a1*pBend->m_ptArrCurveBotOld.GetAt(kk).x0+b1))/(rect.Height());
|
|
|
|
|
|
// // dfpoint.y0 = yRatio*pObj->GetPos().Height()+(a1*pBend->m_ptArrCurveBotOld.GetAt(kk).x0+b2);
|
|
|
|
|
|
// // pBend->m_ptArrCurveBotOld.GetAt(kk).y0 = dfpoint.y0;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // yRatio = (pBend->m_ptEndBreak.y0-(a1*pBend->m_ptEndBreak.x0+b1))/(rect.Height());
|
|
|
|
|
|
// // dfpoint.y0 = yRatio*pObj->GetPos().Height()+(a1*pBend->m_ptEndBreak.x0+b2);
|
|
|
|
|
|
// // pBend->m_ptEndBreak.y0 = dfpoint.y0;
|
|
|
|
|
|
// // yRatio = (pBend->m_ptEndBreakInteract.y0-(a1*pBend->m_ptEndBreakInteract.x0+b1))/(rect.Height());
|
|
|
|
|
|
// // dfpoint.y0 = yRatio*pObj->GetPos().Height()+(a1*pBend->m_ptEndBreakInteract.x0+b2);
|
|
|
|
|
|
// // pBend->m_ptEndBreakInteract.y0 = dfpoint.y0;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // yLeftNew = pBend->m_ptArrCurveTopOld.GetAt(0).y0-(pBend->m_ptArrCurveTopOld.GetAt(0).y0-pBend->m_ptArrCurveBotOld.GetAt(0).y0)/2;
|
|
|
|
|
|
// // yRightNew = pBend->m_ptArrCurveTopOld.GetAt(pBend->m_ptArrCurveTopOld.GetCount()-1).y0-(pBend->m_ptArrCurveTopOld.GetAt(pBend->m_ptArrCurveTopOld.GetCount()-1).y0-pBend->m_ptArrCurveBotOld.GetAt(pBend->m_ptArrCurveBotOld.GetCount()-1).y0)/2;
|
|
|
|
|
|
// // a2 = (yRightNew-yLeftNew)/(pBend->m_ptArrCurveTopOld.GetAt(pBend->m_ptArrCurveTopOld.GetCount()-1).x0-pBend->m_ptArrCurveTopOld.GetAt(0).x0);
|
|
|
|
|
|
// // b2 = yLeftNew-a2*pBend->m_ptArrCurveTopOld.GetAt(0).x0;
|
|
|
|
|
|
// // for (int kk=0;kk<pBend->m_ptArrControls.GetCount();kk++)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBend->m_ptArrControls[kk].Y = -(a2*pBend->m_ptArrControls[kk].X + b2);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // pBend->ComputeSlopeAndConstant();
|
|
|
|
|
|
// // pBend->CreateBendLines();
|
|
|
|
|
|
// // pBend->CreateBendFills();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // GetDoc()->Invalidate(pSection);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// AfxMessageBox("Top should be less than bottom!");
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_BOTDEPTH://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackDepthSegment* pDrawTopEndObj = (CInTrackDepthSegment*) m_pTrackIn;
|
|
|
|
|
|
// double ftemp = atof(pItem->GetValue());
|
|
|
|
|
|
// if (ftemp>pDrawTopEndObj->m_fSdep)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CWellPole *pWellObj = (CWellPole *)m_pTrackIn->GetWell();
|
|
|
|
|
|
// pDrawTopEndObj->SetBottom(ftemp);
|
|
|
|
|
|
|
|
|
|
|
|
// //CTrackObj* pTrack = (CTrackObj*)m_pTrackIn->GetParentObj();
|
|
|
|
|
|
// //CWellSection* pSection = (CWellSection*)pWellObj->GetParentObj();
|
|
|
|
|
|
// //if (pSection != NULL &&
|
|
|
|
|
|
// // (pDrawTopEndObj->GetType()==KEP_RESULT ||
|
|
|
|
|
|
// // pDrawTopEndObj->GetType()==KEP_LAYERGROUP))
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CRect8 rect = pDrawTopEndObj->GetPos();
|
|
|
|
|
|
// // CDrawTopEndObj* pLayer = pDrawTopEndObj;
|
|
|
|
|
|
// // ////////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵķǼ<C4B7><C7BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı仯
|
|
|
|
|
|
// // pSection->ComputeBendControlsHeight(pLayer,TRUE);
|
|
|
|
|
|
// // POSITION posLeft = pLayer->m_BendLeftList.GetHeadPosition();
|
|
|
|
|
|
// // while(posLeft!=NULL)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBend = (CBendObj*)pLayer->m_BendLeftList.GetNext(posLeft);
|
|
|
|
|
|
// // CDrawTopEndObj* pLayerLeft = pBend->m_pLayerLeft;
|
|
|
|
|
|
// // if(pBend->m_pLayerLeft->GetPos().left > pBend->m_pLayerRight->GetPos().left)
|
|
|
|
|
|
// // pLayerLeft = pBend->m_pLayerRight;
|
|
|
|
|
|
// // pSection->ComputeBendControlsHeight(pLayerLeft,FALSE);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // ////////<2F><><EFBFBD>ұ<EFBFBD><D2B1><EFBFBD><EFBFBD>ӵķǼ<C4B7><C7BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı仯
|
|
|
|
|
|
// // pSection->ComputeBendControlsHeight(pLayer,FALSE);
|
|
|
|
|
|
// // POSITION posRight = pLayer->m_BendRightList.GetHeadPosition();
|
|
|
|
|
|
// // while(posRight!=NULL)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBend = (CBendObj*)pLayer->m_BendRightList.GetNext(posRight);
|
|
|
|
|
|
// // CDrawTopEndObj* pLayerRight = pBend->m_pLayerRight;
|
|
|
|
|
|
// // if(pBend->m_pLayerLeft->GetPos().left > pBend->m_pLayerRight->GetPos().left)
|
|
|
|
|
|
// // pLayerRight = pBend->m_pLayerLeft;
|
|
|
|
|
|
// // pSection->ComputeBendControlsHeight(pLayerRight,TRUE);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // ////////<2F><><EFBFBD><EFBFBD><EFBFBD>ӵļ<D3B5><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı仯
|
|
|
|
|
|
// // CDrawTopEndObj* pObj = pDrawTopEndObj;
|
|
|
|
|
|
// // POSITION pos = pSection->m_BendList.GetHeadPosition();
|
|
|
|
|
|
// // while (pos!=NULL)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBend = (CBendObj*)pSection->m_BendList.GetNext(pos);
|
|
|
|
|
|
// // if (pBend->m_pLayerLeft==pObj&&pBend->m_pLayerRight==NULL)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // double a1,b1,a2,b2;
|
|
|
|
|
|
// // double yRatio;
|
|
|
|
|
|
// // double yLeftNew,yRightNew;
|
|
|
|
|
|
// // if (rect.top!=pObj->GetPos().top||rect.bottom!=pObj->GetPos().bottom)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // a1 = (pBend->m_ptEndBreak.y0-rect.CenterPoint().y0)
|
|
|
|
|
|
// // /(pBend->m_ptEndBreak.x0-pBend->m_ptArrCurveTopOld.GetAt(0).x0);
|
|
|
|
|
|
// // b1 = rect.CenterPoint().y0-a1*pBend->m_ptArrCurveTopOld.GetAt(0).x0;
|
|
|
|
|
|
// // b2 = pObj->GetPos().CenterPoint().y0-a1*pBend->m_ptArrCurveTopOld.GetAt(0).x0;
|
|
|
|
|
|
// // dfPoint dfpoint;
|
|
|
|
|
|
// // for (int kk=0;kk<pBend->m_ptArrCurveTopOld.GetCount();kk++)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // yRatio = (pBend->m_ptArrCurveTopOld.GetAt(kk).y0-(a1*pBend->m_ptArrCurveTopOld.GetAt(kk).x0+b1))/(rect.Height());
|
|
|
|
|
|
// // dfpoint.y0 = yRatio*pObj->GetPos().Height()+(a1*pBend->m_ptArrCurveTopOld.GetAt(kk).x0+b2);
|
|
|
|
|
|
// // pBend->m_ptArrCurveTopOld.GetAt(kk).y0 = dfpoint.y0;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // for (int kk=0;kk<pBend->m_ptArrCurveBotOld.GetCount();kk++)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // yRatio = (pBend->m_ptArrCurveBotOld.GetAt(kk).y0-(a1*pBend->m_ptArrCurveBotOld.GetAt(kk).x0+b1))/(rect.Height());
|
|
|
|
|
|
// // dfpoint.y0 = yRatio*pObj->GetPos().Height()+(a1*pBend->m_ptArrCurveBotOld.GetAt(kk).x0+b2);
|
|
|
|
|
|
// // pBend->m_ptArrCurveBotOld.GetAt(kk).y0 = dfpoint.y0;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // yRatio = (pBend->m_ptEndBreak.y0-(a1*pBend->m_ptEndBreak.x0+b1))/(rect.Height());
|
|
|
|
|
|
// // dfpoint.y0 = yRatio*pObj->GetPos().Height()+(a1*pBend->m_ptEndBreak.x0+b2);
|
|
|
|
|
|
// // pBend->m_ptEndBreak.y0 = dfpoint.y0;
|
|
|
|
|
|
// // yRatio = (pBend->m_ptEndBreakInteract.y0-(a1*pBend->m_ptEndBreakInteract.x0+b1))/(rect.Height());
|
|
|
|
|
|
// // dfpoint.y0 = yRatio*pObj->GetPos().Height()+(a1*pBend->m_ptEndBreakInteract.x0+b2);
|
|
|
|
|
|
// // pBend->m_ptEndBreakInteract.y0 = dfpoint.y0;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // yLeftNew = pBend->m_ptArrCurveTopOld.GetAt(0).y0-(pBend->m_ptArrCurveTopOld.GetAt(0).y0-pBend->m_ptArrCurveBotOld.GetAt(0).y0)/2;
|
|
|
|
|
|
// // yRightNew = pBend->m_ptArrCurveTopOld.GetAt(pBend->m_ptArrCurveTopOld.GetCount()-1).y0-(pBend->m_ptArrCurveTopOld.GetAt(pBend->m_ptArrCurveTopOld.GetCount()-1).y0-pBend->m_ptArrCurveBotOld.GetAt(pBend->m_ptArrCurveBotOld.GetCount()-1).y0)/2;
|
|
|
|
|
|
// // a2 = (yRightNew-yLeftNew)/(pBend->m_ptArrCurveTopOld.GetAt(pBend->m_ptArrCurveTopOld.GetCount()-1).x0-pBend->m_ptArrCurveTopOld.GetAt(0).x0);
|
|
|
|
|
|
// // b2 = yLeftNew-a2*pBend->m_ptArrCurveTopOld.GetAt(0).x0;
|
|
|
|
|
|
// // for (int kk=0;kk<pBend->m_ptArrControls.GetCount();kk++)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBend->m_ptArrControls[kk].Y = -(a2*pBend->m_ptArrControls[kk].X + b2);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // pBend->ComputeSlopeAndConstant();
|
|
|
|
|
|
// // pBend->CreateBendLines();
|
|
|
|
|
|
// // pBend->CreateBendFills();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // GetDoc()->Invalidate(pSection);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// AfxMessageBox("Bottom should be greater than top!");
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
|
|
|
|
// if (m_pTrackIn->GetType()==KEP_LITH)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACK_OILGAS://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLith* pTrackInLith = (CInTrackLith *)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLith->m_strOilGas = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInLith->m_strOilGas.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_LITHOOILGAS);
|
|
|
|
|
|
// strMark = strMark + pTrackInLith->m_strOilGas;
|
|
|
|
|
|
// pTrackInLith->m_pMarkOilGas = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInLith->m_pMarkOilGas = NULL;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
|
|
|
|
// case IDS_STR_TRACK_MAIN://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLith* pTrackInLith = (CInTrackLith *)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLith->m_strLith = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInLith->m_strLith.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_LITHOMAIN);
|
|
|
|
|
|
// strMark = strMark + pTrackInLith->m_strLith;
|
|
|
|
|
|
// pTrackInLith->m_pMarkLitho = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInLith->m_pMarkLitho = NULL;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_COLOR://<2F><>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLith* pTrackInLith = (CInTrackLith *)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLith->m_strClr = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInLith->m_strClr.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strClr;
|
|
|
|
|
|
// strClr.Format("%s", LIB_MARK_LITHOCOLOR);
|
|
|
|
|
|
// strClr = strClr + pTrackInLith->m_strClr;
|
|
|
|
|
|
// pTrackInLith->m_brush.m_color = GetMarkColor((CXy*)AfxGetGlobalWellXy()->FindMark(strClr));
|
|
|
|
|
|
// //pTrackInLith->m_brush.m_color = GetColorFromName(pTrackInLith->m_strClr);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_CONTENT://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLith* pTrackInLith = (CInTrackLith *)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLith->m_strContent = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInLith->GetMarkLithFront().IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark = pTrackInLith->GetMarkLithFront();
|
|
|
|
|
|
// pTrackInLith->m_pMarkFront = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_FORNT://<2F><><EFBFBD><EFBFBD>ǰ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLith* pTrackInLith = (CInTrackLith *)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLith->m_strFront = pItem->GetValue();
|
|
|
|
|
|
// if(!pTrackInLith->GetMarkLithFront().IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark = pTrackInLith->GetMarkLithFront();
|
|
|
|
|
|
// pTrackInLith->m_pMarkFront = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_CONSTITUTION://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLith* pTrackInLith = (CInTrackLith *)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLith->m_strConstitution = pItem->GetValue();
|
|
|
|
|
|
// if(!pTrackInLith->GetMarkLithFront().IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark = pTrackInLith->GetMarkLithFront();
|
|
|
|
|
|
// pTrackInLith->m_pMarkFront = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_SYMBOL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACK_MARK://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackSymbol* pTrackInSymbol = (CInTrackSymbol*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInSymbol->m_strName = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInSymbol->m_strName.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_NORMAL);
|
|
|
|
|
|
// strMark = strMark+pTrackInSymbol->m_strName;
|
|
|
|
|
|
// pTrackInSymbol->m_pMarkSymbol = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInSymbol->m_pMarkSymbol = NULL;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_IMAGE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACK_SHOWMODE://ͼƬģʽ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackPicture* pTrackInPicture = (CInTrackPicture*)m_pTrackIn;
|
|
|
|
|
|
// CCustomItemCombo* pItemCombo = (CCustomItemCombo*)pItem;
|
|
|
|
|
|
|
|
|
|
|
|
// if (pItemCombo->GetCurSel() == 0 )
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInPicture->m_nMode = 0;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItemCombo->GetCurSel() == 1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInPicture->m_nMode = 1;
|
|
|
|
|
|
// if(pTrackInPicture->m_pImage != NULL)
|
|
|
|
|
|
// pTrackInPicture->m_pImage->SetRect(pTrackInPicture->GetPos());
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItemCombo->GetCurSel() == 2)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInPicture->m_nMode = 2;
|
|
|
|
|
|
// if(pTrackInPicture->m_pImage != NULL)
|
|
|
|
|
|
// pTrackInPicture->m_pImage->SetRect(pTrackInPicture->GetPos());
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_TITLE://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackPicture* pTrackInPicture = (CInTrackPicture*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInPicture->SetName(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_RESULT)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACK_RESULT_BGCOLOR://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInResult = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInResult->m_fillColor = ((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// //case IDS_STR_TRACK_RESULTPENCHILD://<2F>߿<EFBFBD><DFBF><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackResult* pTrackInResult = (CInTrackResult*) m_pTrackIn;
|
|
|
|
|
|
// // CTrackResult* pTrackResultObj = (CTrackResult*)pTrackInResult->GetParent();
|
|
|
|
|
|
// //
|
|
|
|
|
|
// // pTrackResultObj->m_penChild = pTrackInResult->m_pen;
|
|
|
|
|
|
// // WELLOBJLIST::iterator it = pTrackResultObj->GetChildren().begin();
|
|
|
|
|
|
// // for(; it != pTrackResultObj->GetChildren().end(); it++)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CWellBaseObj* pObj = *it; //
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_RESULT)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackResult* pTrackIn = (CInTrackResult*)pObj;
|
|
|
|
|
|
// // pTrackIn->m_pen = pTrackInResult->m_pen;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// case IDS_STR_TRACK_RESULT://<2F><><EFBFBD>ͽ<EFBFBD><CDBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInResult = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInResult->m_strResult = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInResult->m_strResult.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_STRATUMFLUID);
|
|
|
|
|
|
// strMark = strMark + pTrackInResult->m_strResult;
|
|
|
|
|
|
// pTrackInResult->m_pMarkResult = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
|
|
|
|
|
|
// strMark = pTrackInResult->GetMarkSymbol();
|
|
|
|
|
|
// pTrackInResult->m_pMarkSymbol = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_FLUIDCOLOR);
|
|
|
|
|
|
// strMark = strMark + pTrackInResult->m_strResult;
|
|
|
|
|
|
// pTrackInResult->m_brush.m_color = GetMarkColor((CXy*)AfxGetGlobalWellXy()->FindMark(strMark));
|
|
|
|
|
|
// //pResult->m_brush.m_color = GetColorFromFluid(pResult->m_strResult);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInResult->m_pMarkResult = NULL;
|
|
|
|
|
|
// pTrackInResult->m_pMarkSymbol = NULL;
|
|
|
|
|
|
// pTrackInResult->m_brush.m_color = RGB(255, 255, 255);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_VALIDTHICK:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInResult = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInResult->m_fValidThick = atof(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_LAYERBENDNAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// case IDS_STR_TRACK_BENDNAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInResult = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInResult->m_strLayer = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
|
|
|
|
// case IDS_STR_TRACK_LAYERLITHO://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInLayer = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLayer->m_strLitho = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInLayer->m_strLitho.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_FILL);
|
|
|
|
|
|
// strMark = strMark + pTrackInLayer->m_strLitho;
|
|
|
|
|
|
// pTrackInLayer->m_pMarkLitho = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInLayer->m_pMarkLitho = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// CString strLithoLeft,strLithoRight;
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //POSITION pos = pTrackInLayer->m_BendLeftList.GetHeadPosition();
|
|
|
|
|
|
// //while (pos != NULL)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CDrawObj* pObj = pTrackInLayer->m_BendLeftList.GetNext(pos);
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_SECTIONBEND)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBendObj = (CBendObj*)pObj;
|
|
|
|
|
|
// // CInTrackResult* pLayerLeft = (CInTrackResult*)pBendObj->m_pLayerLeft;
|
|
|
|
|
|
// // CInTrackResult* pLayerRight = (CInTrackResult*)pBendObj->m_pLayerRight;
|
|
|
|
|
|
|
|
|
|
|
|
// // if(pLayerLeft && pLayerRight)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->m_fTopLithoBreakPoint = 0.5;
|
|
|
|
|
|
// // pBendObj->m_fBottomLithoBreakPoint = 0.5;
|
|
|
|
|
|
// // if (pLayerLeft->m_strLitho != pLayerRight->m_strLitho)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (!pBendObj->bBreakLithoTemp)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = TRUE;
|
|
|
|
|
|
// // pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // pBendObj->CreateBendFills();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (pLayerLeft->m_strResult == pLayerRight->m_strResult)
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = FALSE;
|
|
|
|
|
|
// // //pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //pos = pTrackInLayer->m_BendRightList.GetHeadPosition();
|
|
|
|
|
|
// //while (pos != NULL)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CDrawObj* pObj = pTrackInLayer->m_BendRightList.GetNext(pos);
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_SECTIONBEND)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBendObj = (CBendObj*)pObj;
|
|
|
|
|
|
// // CInTrackResult* pLayerLeft = (CInTrackResult*)pBendObj->m_pLayerLeft;
|
|
|
|
|
|
// // CInTrackResult* pLayerRight = (CInTrackResult*)pBendObj->m_pLayerRight;
|
|
|
|
|
|
|
|
|
|
|
|
// // if(pLayerLeft && pLayerRight)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->m_fTopLithoBreakPoint = 0.5;
|
|
|
|
|
|
// // pBendObj->m_fBottomLithoBreakPoint = 0.5;
|
|
|
|
|
|
// // if (pLayerLeft->m_strLitho != pLayerRight->m_strLitho)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (!pBendObj->bBreakLithoTemp)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = TRUE;
|
|
|
|
|
|
// // pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // pBendObj->CreateBendFills();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (pLayerLeft->m_strResult == pLayerRight->m_strResult)
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = FALSE;
|
|
|
|
|
|
// // //pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_LAYERFLUID://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInLayer = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLayer->m_strResult = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInLayer->m_strResult.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_STRATUMFLUID);
|
|
|
|
|
|
// strMark = strMark + pTrackInLayer->m_strResult;
|
|
|
|
|
|
// pTrackInLayer->m_pMarkResult = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_FLUIDCOLOR);
|
|
|
|
|
|
// strMark = strMark + pTrackInLayer->m_strResult;
|
|
|
|
|
|
// pTrackInLayer->m_brush.m_color = GetMarkColor((CXy*)AfxGetGlobalWellXy()->FindMark(strMark));
|
|
|
|
|
|
// //pTrackInLayer->m_brush.m_color = GetColorFromFluid(pTrackInLayer->m_strResult);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInLayer->m_pMarkResult = NULL;
|
|
|
|
|
|
// pTrackInLayer->m_brush.m_color = RGB(255, 255, 255);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// //CString strResultLeft, strResultRight;
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //POSITION pos = pTrackInLayer->m_BendLeftList.GetHeadPosition();
|
|
|
|
|
|
// //while (pos != NULL)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CDrawObj* pObj = pTrackInLayer->m_BendLeftList.GetNext(pos);
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_SECTIONBEND)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBendObj = (CBendObj*)pObj;
|
|
|
|
|
|
// // CInTrackResult* pLayerLeft = (CInTrackResult*)pBendObj->m_pLayerLeft;
|
|
|
|
|
|
// // CInTrackResult* pLayerRight = (CInTrackResult*)pBendObj->m_pLayerRight;
|
|
|
|
|
|
|
|
|
|
|
|
// // if(pLayerLeft && pLayerRight)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (pLayerLeft->m_strResult != pLayerRight->m_strResult)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (!pBendObj->bBreakLithoTemp)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = TRUE;
|
|
|
|
|
|
// // pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // pBendObj->CreateBendFills();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (pLayerLeft->m_strLitho == pLayerRight->m_strLitho)
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = FALSE;
|
|
|
|
|
|
// // pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //pos = pTrackInLayer->m_BendRightList.GetHeadPosition();
|
|
|
|
|
|
// //while (pos != NULL)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CDrawObj* pObj = pTrackInLayer->m_BendRightList.GetNext(pos);
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_SECTIONBEND)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBendObj = (CBendObj*)pObj;
|
|
|
|
|
|
// // CInTrackResult* pLayerLeft = (CInTrackResult*)pBendObj->m_pLayerLeft;
|
|
|
|
|
|
// // CInTrackResult* pLayerRight = (CInTrackResult*)pBendObj->m_pLayerRight;
|
|
|
|
|
|
|
|
|
|
|
|
// // if(pLayerLeft && pLayerRight)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if(pLayerLeft->m_strResult != pLayerRight->m_strResult)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (!pBendObj->bBreakLithoTemp)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = TRUE;
|
|
|
|
|
|
// // pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // pBendObj->CreateBendFills();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (pLayerLeft->m_strLitho == pLayerRight->m_strLitho)
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = FALSE;
|
|
|
|
|
|
// // pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_LAYERCOLORAUTO://<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ɫ<EFBFBD>Զ<EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInLayer = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLayer->SetColorAuto(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_LAYERCOLOR://<2F><>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInLayer = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// if (!pTrackInLayer->IsColorAuto())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInLayer->m_fillColor = ((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// //pTrackInLayer->SetColor(pTrackInLayer->m_fillColor);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_LAYERBOOLSYMBOL://<2F>Ƿ<C7B7><F1BBADB7><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInLayer = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLayer->SetShowSymbol(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_LAYERSYMBOL://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackResult* pTrackInLayer = (CInTrackResult*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLayer->m_strResult = pItem->GetValue();
|
|
|
|
|
|
// if(!pTrackInLayer->m_strResult.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark = pTrackInLayer->GetMarkSymbol();
|
|
|
|
|
|
// pTrackInLayer->m_pMarkSymbol = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_TEXTRANGE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACK_BGCOLOR://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTextRange->m_brush.m_color=((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// //pTrackInTextRange->SetColor(pTrackInTextRange->m_brush.m_color);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_SRT_TRACK_FRAMECOLOR://<2F>߿<EFBFBD><DFBF><EFBFBD>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTextRange->m_pen.m_color=((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_TEXTCONTENT://<2F>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.SetName(pItem->GetValue());
|
|
|
|
|
|
// if (pTrackInTextRange->m_Text.GetName().Find("<Font") > -1 && pTrackInTextRange->m_Text.GetName().Find("</Font>") > -1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInTextRange->m_Text.m_bScript = TRUE;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_RECTLABEL_TEXT_FONT://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
// ((CXTPPropertyGridItemFont*)pItem)->GetFont(&pTrackInTextRange->m_font.m_logFont);
|
|
|
|
|
|
// ((CWellPoleDoc*)GetDoc())->NormalEXTLogFont(pTrackInTextRange->m_font);
|
|
|
|
|
|
// pTrackInTextRange->m_Text.m_logFont = pTrackInTextRange->m_font.m_logFont;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.m_size = CSize8(pTrackInTextRange->m_font.m_dWidth,pTrackInTextRange->m_font.m_dHeight);
|
|
|
|
|
|
// pTrackInTextRange->m_font.m_color = ((CXTPPropertyGridItemFont*)pItem)->GetColor();
|
|
|
|
|
|
// pTrackInTextRange->m_Text.color = pTrackInTextRange->m_font.m_color;
|
|
|
|
|
|
// pTrackInTextRange->SetTextFont(pTrackInTextRange->m_font);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_LINESPACE://<2F>м<EFBFBD><D0BC><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.m_dLineSpace = atof(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_TEXTLITHO://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTextRange->m_strLitho = pItem->GetValue();
|
|
|
|
|
|
// if(!pTrackInTextRange->m_strLitho.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_FILL);
|
|
|
|
|
|
// strMark = strMark + pTrackInTextRange->m_strLitho;
|
|
|
|
|
|
// pTrackInTextRange->m_pMarkFill= (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInTextRange->m_pMarkFill = NULL;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_SRT_TRACK_HPOSITION:////ˮƽλ<C6BD><CEBB>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
// CCustomItemCombo* pItemCombo = (CCustomItemCombo*)pItem;
|
|
|
|
|
|
// DWORD Hmode;
|
|
|
|
|
|
// if (pItemCombo->GetCurSel() == 0)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Hmode = CTextFlags::alignLeft;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.SetAlignsH(Hmode);
|
|
|
|
|
|
// //pTrackInTextRange->m_Text.x0 = m_pTrackIn->GetPos().left;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItemCombo->GetCurSel() == 1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Hmode = CTextFlags::alignCenterH;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.SetAlignsH(Hmode);
|
|
|
|
|
|
// //pTrackInTextRange->m_Text.x0 = m_pTrackIn->GetPos().CenterPoint().x0;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItemCombo->GetCurSel() == 2)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Hmode = CTextFlags::alignRight;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.SetAlignsH(Hmode);
|
|
|
|
|
|
// //pTrackInTextRange->m_Text.x0 = m_pTrackIn->GetPos().right;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_SRT_TRACK_VPOSITION:////<2F><>ֱλ<D6B1><CEBB>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTextRange* pTrackInTextRange = (CInTrackTextRange*)m_pTrackIn;
|
|
|
|
|
|
|
|
|
|
|
|
// CCustomItemCombo* pItemCombo = (CCustomItemCombo*)pItem;
|
|
|
|
|
|
// DWORD Vmode;
|
|
|
|
|
|
// if (pItemCombo->GetCurSel() == 0)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Vmode = CTextFlags::alignTop;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.SetAlignsV(Vmode);
|
|
|
|
|
|
// //pTrackInTextRange->m_Text.y0 = m_pTrackIn->GetPos().top;//m_pTrackIn->GetPos().bottom;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItemCombo->GetCurSel() == 1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Vmode = CTextFlags::alignCenterV;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.SetAlignsV(Vmode);
|
|
|
|
|
|
// pTrackInTextRange->m_Text.y0 = m_pTrackIn->GetPos().CenterPoint().y0;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItemCombo->GetCurSel() == 2)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Vmode = CTextFlags::alignBottom;
|
|
|
|
|
|
// pTrackInTextRange->m_Text.SetAlignsV(Vmode);
|
|
|
|
|
|
// //pTrackInTextRange->m_Text.y0 = m_pTrackIn->GetPos().bottom;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_CORING)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACK_COINGNAME:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoring* pTrackInCoring = (CInTrackCoring*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInCoring->m_Text.SetName(pItem->GetValue());
|
|
|
|
|
|
// if (pTrackInCoring->m_Text.GetName().Find("<Font") > -1 && pTrackInCoring->m_Text.GetName().Find("</Font>") > -1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInCoring->m_Text.m_bScript = TRUE;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_COINGTIMES://ȡо<C8A1><D0BE><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoring* pTrackInCoring = (CInTrackCoring*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInCoring->m_nCoringTimes = atoi(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_COINGLENGTH://ȡо<C8A1><D0BE><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoring* pTrackInCoring = (CInTrackCoring*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInCoring->m_CoringLength = atof(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_COINGCOLOR://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoring* pTrackInCoring = (CInTrackCoring*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInCoring->m_brush.m_color=((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
//
|
|
|
|
|
|
// //pTrackInCoring->SetColor(pTrackInCoring->m_brush.m_color);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_COINGFARMECOLOR://<2F>߿<EFBFBD><DFBF><EFBFBD>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoring* pTrackInCoring = (CInTrackCoring*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInCoring->m_pen.m_color = ((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_COINGPOSITION://ˮƽλ<C6BD><CEBB>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoring* pTrackInCoring = (CInTrackCoring*)m_pTrackIn;
|
|
|
|
|
|
// CCustomItemCombo* pItemCombo = (CCustomItemCombo*)pItem;
|
|
|
|
|
|
// DWORD Hmode;
|
|
|
|
|
|
// if (pItemCombo->GetCurSel() == 0)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Hmode = CTextFlags::alignLeft;
|
|
|
|
|
|
// pTrackInCoring->m_Text.SetAlignsH(Hmode);
|
|
|
|
|
|
// pTrackInCoring->m_Text.x0 = m_pTrackIn->GetPos().left;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItemCombo->GetCurSel() == 1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Hmode = CTextFlags::alignCenterH;
|
|
|
|
|
|
// pTrackInCoring->m_Text.SetAlignsH(Hmode);
|
|
|
|
|
|
// pTrackInCoring->m_Text.x0 = m_pTrackIn->GetPos().CenterPoint().x0;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (pItemCombo->GetCurSel() == 2)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// Hmode = CTextFlags::alignRight;
|
|
|
|
|
|
// pTrackInCoring->m_Text.SetAlignsH(Hmode);
|
|
|
|
|
|
// pTrackInCoring->m_Text.x0 = m_pTrackIn->GetPos().right;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType()==KEP_COREWELL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACK_CORE_LITH://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoreWell* pTrackInCoreWell = (CInTrackCoreWell *)m_pTrackIn;
|
|
|
|
|
|
// pTrackInCoreWell->m_strLith = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInCoreWell->m_strLith.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_LITHOMAIN);
|
|
|
|
|
|
// strMark = strMark + pTrackInCoreWell->m_strLith;
|
|
|
|
|
|
// pTrackInCoreWell->m_pMarkLitho = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInCoreWell->m_pMarkLitho = NULL;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACK_CORE_OILGAS://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoreWell* pTrackInCoreWell = (CInTrackCoreWell *)m_pTrackIn;
|
|
|
|
|
|
|
|
|
|
|
|
// pTrackInCoreWell->m_strOilGas = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInCoreWell->m_strOilGas.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_LITHOOILGAS);
|
|
|
|
|
|
// strMark = strMark + pTrackInCoreWell->m_strOilGas;
|
|
|
|
|
|
// pTrackInCoreWell->m_pMarkOilGas = (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInCoreWell->m_pMarkOilGas = NULL;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
|
|
|
|
// case IDS_STR_TRACK_CORE_COLOR://<2F><>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoreWell* pTrackInCoreWell = (CInTrackCoreWell *)m_pTrackIn;
|
|
|
|
|
|
|
|
|
|
|
|
// CTrackCoreWell* pTrackCore = (CTrackCoreWell*)pTrackInCoreWell->GetParent();
|
|
|
|
|
|
// if(pTrackCore->IsColorFill())
|
|
|
|
|
|
// pTrackInCoreWell->m_brush.m_color = ((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInCoreWell->m_strClr = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
|
|
|
|
// case IDS_STR_TRACK_CORE_TIMES://ȡо<C8A1><D0BE><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackCoreWell* pTrackInCoreWell = (CInTrackCoreWell *)m_pTrackIn;
|
|
|
|
|
|
// pTrackInCoreWell->m_nTimes = ((CXTPPropertyGridItemNumber*)pItem)->GetNumber();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_SAMPLE)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACK_SAMPLESINGLE://<2F>Ƿ<EFBFBD><C7B7><EFBFBD>Ͳ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackSample* pTrackInSample = (CInTrackSample*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInSample->SetSingle(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_OILTEST)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_OIL_TEST_SHOW_MARK:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackOilTest* pTrackInOilTest = (CInTrackOilTest*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInOilTest->SetShowMark(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// case IDS_STR_OIL_BENDNAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackOilTest* pTrackInOilTest = (CInTrackOilTest*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInOilTest->m_strLayerName = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_OIL_BENDNUMBER://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackOilTest* pTrackInOilTest = (CInTrackOilTest*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInOilTest->m_nLayerNumber = atoi(pItem->GetValue());
|
|
|
|
|
|
|
|
|
|
|
|
// GetDoc()->Invalidate(); // (pTrackInOilTest);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_OIL_TEXTFONT://<2F>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackOilTest* pTrackInOilTest = (CInTrackOilTest*)m_pTrackIn;
|
|
|
|
|
|
// CTrackOilTest* pTrackOilTest = (CTrackOilTest*)pTrackInOilTest->GetParent();
|
|
|
|
|
|
// ((CXTPPropertyGridItemFont*)pItem)->GetFont(&pTrackInOilTest->m_font.m_logFont);
|
|
|
|
|
|
// ((CWellPoleDoc*)(GetDoc()))->NormalEXTLogFont(pTrackInOilTest->m_font);
|
|
|
|
|
|
// pTrackInOilTest->m_font.m_color = ((CXTPPropertyGridItemFont*)pItem)->GetColor();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_OIL_BGCOLOR://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackOilTest* pTrackInOilTest = (CInTrackOilTest*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInOilTest->m_brush.m_color=((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_LAYERGROUP)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACKIN_LAYERGROUP_LITHO://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* pTrackInLayer = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInLayer->m_strLitho = pItem->GetValue();
|
|
|
|
|
|
|
|
|
|
|
|
// if(!pTrackInLayer->m_strLitho.IsEmpty())
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strMark;
|
|
|
|
|
|
// strMark.Format("%s", LIB_MARK_FILL);
|
|
|
|
|
|
// strMark = strMark + pTrackInLayer->m_strLitho;
|
|
|
|
|
|
// pTrackInLayer->m_pMarkFill= (CXy*)AfxGetGlobalWellXy()->FindMark(strMark);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pTrackInLayer->m_pMarkFill = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// if(m_bChangeAllLayerSet)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// ChangeAllLayerSet((CInTrackLayerGroup*)m_pTrackIn, LayerLinkFlagAll, LayerPropertyFlagLitho);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //POSITION pos = pTrackInLayer->m_BendLeftList.GetHeadPosition();
|
|
|
|
|
|
// //while (pos != NULL)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CDrawObj* pObj = pTrackInLayer->m_BendLeftList.GetNext(pos);
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_SECTIONBEND)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBendObj = (CBendObj*)pObj;
|
|
|
|
|
|
// // CInTrackLayerGroup* pLayerLeft = (CInTrackLayerGroup*)pBendObj->m_pLayerLeft;
|
|
|
|
|
|
// // CInTrackLayerGroup* pLayerRight = (CInTrackLayerGroup*)pBendObj->m_pLayerRight;
|
|
|
|
|
|
// // if(pLayerLeft && pLayerRight)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->m_fTopLithoBreakPoint = 0.5;
|
|
|
|
|
|
// // pBendObj->m_fBottomLithoBreakPoint = 0.5;
|
|
|
|
|
|
// // if (!pBendObj->bBreakLithoTemp)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (pLayerLeft->m_strLitho != pLayerRight->m_strLitho)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = TRUE;
|
|
|
|
|
|
// // pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // pBendObj->CreateBendFills();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (pLayerLeft->m_strLitho == pLayerRight->m_strLitho)
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = FALSE;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// //pos = pTrackInLayer->m_BendRightList.GetHeadPosition();
|
|
|
|
|
|
// //while (pos != NULL)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CDrawObj* pObj = pTrackInLayer->m_BendRightList.GetNext(pos);
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_SECTIONBEND)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CBendObj* pBendObj = (CBendObj*)pObj;
|
|
|
|
|
|
// // CInTrackLayerGroup* pLayerLeft = (CInTrackLayerGroup*)pBendObj->m_pLayerLeft;
|
|
|
|
|
|
// // CInTrackLayerGroup* pLayerRight = (CInTrackLayerGroup*)pBendObj->m_pLayerRight;
|
|
|
|
|
|
// // if(pLayerLeft && pLayerRight)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->m_fTopLithoBreakPoint = 0.5;
|
|
|
|
|
|
// // pBendObj->m_fBottomLithoBreakPoint = 0.5;
|
|
|
|
|
|
// // if (!pBendObj->bBreakLithoTemp)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CString strLithoLeft;
|
|
|
|
|
|
// // CString strLithoRight;
|
|
|
|
|
|
// // if (pLayerLeft->m_strLitho != pLayerRight->m_strLitho)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = TRUE;
|
|
|
|
|
|
// // pBendObj->CreateBendLithoBreak();
|
|
|
|
|
|
// // pBendObj->CreateBendFills();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // if (pLayerLeft->m_strLitho == pLayerRight->m_strLitho)
|
|
|
|
|
|
// // pBendObj->bBreakLithoTemp = FALSE;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
//
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //if (NULL != pWellSection)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_LAYERGROUP_BGCOLOR://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* TrackInLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// TrackInLayerGroup->m_brush.m_color = ((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
//
|
|
|
|
|
|
// if(m_bChangeAllLayerSet)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// ChangeAllLayerSet((CInTrackLayerGroup*)m_pTrackIn, LayerLinkFlagAll, LayerPropertyFlagColor);
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //if (NULL != pWellSection)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_LAYERGROUP_FONT://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* TrackInLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// ((CXTPPropertyGridItemFont*)pItem)->GetFont(&TrackInLayerGroup->m_font.m_logFont);
|
|
|
|
|
|
// ((CWellPoleDoc*)GetDoc())->NormalEXTLogFont(TrackInLayerGroup->m_font);
|
|
|
|
|
|
// TrackInLayerGroup->m_font.m_color = ((CXTPPropertyGridItemFont*)pItem)->GetColor();
|
|
|
|
|
|
//
|
|
|
|
|
|
// if(m_bChangeAllLayerSet)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// ChangeAllLayerSet((CInTrackLayerGroup*)m_pTrackIn, LayerLinkFlagAll, LayerPropertyFlagFont);
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //if (NULL != pWellSection)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_BOTTOMUNACROSS://<2F>Ƿ<EFBFBD><C7B7>ײ<EFBFBD>δ<EFBFBD>괩
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* TrackInLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// TrackInLayerGroup->SetBottomUnDrill(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// if(m_bChangeAllLayerSet)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //ChangeAllLayerSet((CInTrackLayerGroup*)m_pTrackIn, LayerLinkFlagAll, LayerPropertyFlagBottom);
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //if (NULL != pWellSection)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_TOP_UNCOMFORMITY://<2F>Ƿ<C7B7><F1B6A5B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* TrackInLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// TrackInLayerGroup->SetTopUnComformity(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
|
|
|
|
|
|
// if(m_bChangeAllLayerSet)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// ChangeAllLayerSet((CInTrackLayerGroup*)m_pTrackIn, LayerLinkFlagAll, LayerPropertyFlagTop);
|
|
|
|
|
|
// //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// //if (NULL != pWellSection)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_LAYERGROUP_NAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* TrackInLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// TrackInLayerGroup->m_strLayerName = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_LAYERGROUP_TEXT://<2F>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackLayerGroup* TrackInLayerGroup = (CInTrackLayerGroup*)m_pTrackIn;
|
|
|
|
|
|
// TrackInLayerGroup->m_strLayerText = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// //case IDS_CHANGEALL_LAYERGROUPS://ͬ<><CDAC>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // m_bChangeAllLayerSet = ((CCustomItemCombo*)pItem)->GetBool();
|
|
|
|
|
|
|
|
|
|
|
|
// // if(m_bChangeAllLayerSet)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // ChangeAllLayerSet((CInTrackLayerGroup*)m_pTrackIn, LayerLinkFlagAll, LayerPropertyFlagAll);
|
|
|
|
|
|
// // //CWellSection* pWellSection = (CWellSection*)m_pTrackIn->GetParentObj()->GetParentObj()->GetParentObj();
|
|
|
|
|
|
// // //if (NULL != pWellSection)
|
|
|
|
|
|
// // //{
|
|
|
|
|
|
// // // GetDoc()->Invalidate(pWellSection);
|
|
|
|
|
|
// // //}
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_STANDARD)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// //case IDS_STR_TRACK_STANDARD_NAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackStandardLayer* TrackInStandardLayer = (CInTrackStandardLayer*)m_pTrackIn;
|
|
|
|
|
|
// // TrackInStandardLayer->m_strLayerName = pItem->GetValue();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_STANDARD_LAYER_TEXT://<2F>ı<EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackStandardLayer* TrackInStandardLayer = (CInTrackStandardLayer*)m_pTrackIn;
|
|
|
|
|
|
// // TrackInStandardLayer->m_strText = pItem->GetValue();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_STANDARDLAYER_TEXFFONT://<2F>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackStandardLayer* TrackInStandardLayer = (CInTrackStandardLayer*)m_pTrackIn;
|
|
|
|
|
|
// // ((CXTPPropertyGridItemFont*)pItem)->GetFont(&TrackInStandardLayer->m_font.m_logFont);
|
|
|
|
|
|
// // ((CWellPoleDoc*)GetDoc())->NormalEXTLogFont(TrackInStandardLayer->m_font);
|
|
|
|
|
|
// // TrackInStandardLayer->m_font.m_frColor = ((CXTPPropertyGridItemFont*)pItem)->GetColor();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //else if (m_pTrackIn->GetType() == KEP_CEMENT)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// //case IDS_STR_CEMENTING_NAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackCementing* pTrackInCementing = (CInTrackCementing*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInCementing->m_strLayerName = pItem->GetValue();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_CEMENTING_MARK://<2F><>ע
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackCementing* pTrackInCementing = (CInTrackCementing*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInCementing->m_strMark = pItem->GetValue();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_CEMENTING_FIRST_INTERFACE://<2F><>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackCementing* pTrackInCementing = (CInTrackCementing*)m_pTrackIn;
|
|
|
|
|
|
// // CCustomItemCombo* pItemCombo = (CCustomItemCombo*)pItem;
|
|
|
|
|
|
// // if (pItemCombo->GetCurSel() == 3)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pTrackInCementing->SetFirstInerface(CInTrackCementing::TrackInCementingFlagsFirstGood);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pItemCombo->GetCurSel() == 2)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pTrackInCementing->SetFirstInerface(CInTrackCementing::TrackInCementingFlagsFirstMedium);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pItemCombo->GetCurSel() == 1)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pTrackInCementing->SetFirstInerface(CInTrackCementing::TrackInCementingFlagsFirstBad);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (pItemCombo->GetCurSel() == 0)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // pTrackInCementing->SetFirstInerface(CInTrackCementing::TrackInCementingFlagsFirstFreedomCasing);
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_CEMENTING_SECOND_INTERFACE://<2F>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // //CInTrackCementing* pTrackInCementing = (CInTrackCementing*)m_pTrackIn;
|
|
|
|
|
|
// // //CCustomItemCombo* pItemCombo = (CCustomItemCombo*)pItem;
|
|
|
|
|
|
// // //if (pItemCombo->GetCurSel() == 3)
|
|
|
|
|
|
// // //{
|
|
|
|
|
|
// // // pTrackInCementing->SetSecondInerface(CInTrackCementing::TrackInCementingFlagsSecondGood);
|
|
|
|
|
|
// // //}
|
|
|
|
|
|
// // //else if (pItemCombo->GetCurSel() == 2)
|
|
|
|
|
|
// // //{
|
|
|
|
|
|
// // // pTrackInCementing->SetSecondInerface(CInTrackCementing::TrackInCementingFlagsSecondMedium);
|
|
|
|
|
|
// // //}
|
|
|
|
|
|
// // //else if (pItemCombo->GetCurSel() == 1)
|
|
|
|
|
|
// // //{
|
|
|
|
|
|
// // // pTrackInCementing->SetSecondInerface(CInTrackCementing::TrackInCementingFlagsSecondBad);
|
|
|
|
|
|
// // //}
|
|
|
|
|
|
// // //else if (pItemCombo->GetCurSel() == 0)
|
|
|
|
|
|
// // //{
|
|
|
|
|
|
// // // pTrackInCementing->SetSecondInerface(CInTrackCementing::TrackInCementingFlagsSecondFreedomCasing);
|
|
|
|
|
|
// // //}
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_PRODUCEDPARAMENTER)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// // case IDS_STR_PRODUCE_FONT://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // ((CXTPPropertyGridItemFont*)pItem)->GetFont(&pTrackInProduceFluid->m_font.m_logFont);
|
|
|
|
|
|
// // GetDoc()->NormalGDFLogFont(pTrackInProduceFluid->m_font);
|
|
|
|
|
|
// // pTrackInProduceFluid->m_font.m_frColor = ((CXTPPropertyGridItemFont*)pItem)->GetColor();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCENAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_strLayerName = pItem->GetValue();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCEBGCOLOR://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_brush.m_color = ((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCELEFTSPACE://<2F><><EFBFBD>߿հ<DFBF>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_fLeftSpace = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCERIGHTSPACE://<2F>ұ߿հ<DFBF>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_fRightSpace = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCEFLUIDNUMBER://<2F><>Һ<EFBFBD><D2BA>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_dFluidAmount = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCEOILNUMBER://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_dOilAmount = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCEWATERNUMBER://<2F><>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_dWaterAmount = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCEGASNUMBER://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_dGasdAmount = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCEWATERRATE://<2F><>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_dWaterContent = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_PRODUCECONCLUSION://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackProducedFluid* pTrackInProduceFluid = (CInTrackProducedFluid*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackInProduceFluid->m_StrResult = pItem->GetValue();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // else if (m_pTrackIn->GetType() == KEP_ABSORPTIONWATER)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// //case IDS_STR_ABSORPTION_FONT://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // ((CXTPPropertyGridItemFont*)pItem)->GetFont(&pTrackinWater->m_font.m_logFont);
|
|
|
|
|
|
// // GetDoc()->NormalGDFLogFont(pTrackinWater->m_font);
|
|
|
|
|
|
// // pTrackinWater->m_font.m_frColor = ((CXTPPropertyGridItemFont*)pItem)->GetColor();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_WATERNAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackinWater->m_strLayerName = pItem->GetValue();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_WATERBGCOLOR://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackinWater->m_brush.m_color = ((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_WATERLEFTSPACE://<2F><><EFBFBD>߿հ<DFBF>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackinWater->m_fLeftSpace = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_WATERRIGHTSPACE://<2F>ұ߿հ<DFBF>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackinWater->m_fRightSpace = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_ABSORPTIONABSOLUTE://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackinWater->m_dAbsorptionAmount = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_ABSORPTIONRELATIVE://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackinWater->m_dRelativeAbsorpt = atof(pItem->GetValue());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// //case IDS_STR_TRACKIN_WATERCONCLUSION://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// // pTrackinWater->m_strConclusion = pItem->GetValue();
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// // break;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_ISSHOWREATIVE://<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// //pTrackinWater->SetShowRelative(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// //CTrackWaterAbsorptionSectionObj* pTrackWater = (CTrackWaterAbsorptionSectionObj*)pTrackinWater->GetParentObj();
|
|
|
|
|
|
// //pTrackWater->SetShowRelative(pTrackinWater->IsShowRelative());
|
|
|
|
|
|
// //POSITION pos = pTrackWater->GetChildObjList().GetHeadPosition();
|
|
|
|
|
|
// //while(NULL != pos)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CDrawObj* pObj = (CDrawObj*)pTrackWater->GetChildObjList().GetNext(pos);
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_ABSORPTIONWATER)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackInWaterAbsor = (CInTrackWaterAbsorption*)pObj;
|
|
|
|
|
|
// // pTrackInWaterAbsor->SetShowRelative(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_ISSHOWABSOLUTE://<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //CInTrackWaterAbsorption* pTrackinWater = (CInTrackWaterAbsorption*)m_pTrackIn;
|
|
|
|
|
|
// //pTrackinWater->SetShowAbsolute(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// //CTrackWaterAbsorptionSectionObj* pTrackWater = (CTrackWaterAbsorptionSectionObj*)pTrackinWater->GetParentObj();
|
|
|
|
|
|
// //pTrackWater->SetShowAbsolute(pTrackinWater->IsShowAbsolute());
|
|
|
|
|
|
// //POSITION pos = pTrackWater->GetChildObjList().GetHeadPosition();
|
|
|
|
|
|
// //while(NULL != pos)
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CDrawObj* pObj = (CDrawObj*)pTrackWater->GetChildObjList().GetNext(pos);
|
|
|
|
|
|
// // if (pObj->GetType() == KEP_ABSORPTIONWATER)
|
|
|
|
|
|
// // {
|
|
|
|
|
|
// // CInTrackWaterAbsorption* pTrackInWaterAbsor = (CInTrackWaterAbsorption*)pObj;
|
|
|
|
|
|
// // pTrackInWaterAbsor->SetShowAbsolute(((CCustomItemCombo*)pItem)->GetBool());
|
|
|
|
|
|
// // }
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_TESTEXTRACTION)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TESTEXTRACTION_NAME://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTestExtraction->m_strLayerName = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TESTEXTRACTION_LAYERNUMBER://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTestExtraction->m_nLayerNumber = atoi(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TESTEXTRACTION_CONCLUSION://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTestExtraction->m_strResult = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TESTEXTRACTION_BGCOLOR://<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInTestExtraction->m_brush.m_color = ((CXTPPropertyGridItemColor*)pItem)->GetColor();
|
|
|
|
|
|
// //pTrackInTestExtraction->SetColor(pTrackInTestExtraction->m_brush.m_color);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TESTEXTRACTION_FONT://<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackTestExtraction* pTrackInTestExtraction = (CInTrackTestExtraction*)m_pTrackIn;
|
|
|
|
|
|
// ((CXTPPropertyGridItemFont*)pItem)->GetFont(&pTrackInTestExtraction->m_font.m_logFont);
|
|
|
|
|
|
// ((CWellPoleDoc*)GetDoc())->NormalEXTLogFont(pTrackInTestExtraction->m_font);
|
|
|
|
|
|
// pTrackInTestExtraction->m_font.m_color = ((CXTPPropertyGridItemFont*)pItem)->GetColor();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_SHOT)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_TRACKIN_SHOOTLAYERNAME:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackShot* pTrackInShot = (CInTrackShot*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInShot->m_Text.SetName(pItem->GetValue());
|
|
|
|
|
|
// if (pTrackInShot->m_Text.GetName().Find("<Font") > -1 && pTrackInShot->m_Text.GetName().Find("</Font>") > -1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pTrackInShot->m_Text.m_bScript = TRUE;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_SHOOTDATE:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackShot* pTrackInShot = (CInTrackShot*)m_pTrackIn;
|
|
|
|
|
|
// CString strdate = pItem->GetValue();
|
|
|
|
|
|
// //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ʱ<><CAB1>
|
|
|
|
|
|
// CStringArray strDateTimeArr, strDateArr, strTimeArr;
|
|
|
|
|
|
// AfxGetPublicFunction()->ScanfString1(strDateTimeArr, strdate, ' ');
|
|
|
|
|
|
|
|
|
|
|
|
// if (strDateTimeArr.GetCount()>0)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CString strDate = strDateTimeArr[0];
|
|
|
|
|
|
// //CString strTime = strDateTimeArr[1];
|
|
|
|
|
|
|
|
|
|
|
|
// AfxGetPublicFunction()->ScanfString1(strDateArr, strDate, '/');
|
|
|
|
|
|
// //AfxGetPublicFunction()->ScanfString1(strTimeArr, strTime, ':');
|
|
|
|
|
|
|
|
|
|
|
|
// int year = atoi(strDateArr[2]);
|
|
|
|
|
|
// int month = atoi(strDateArr[1]);
|
|
|
|
|
|
// int day = atoi(strDateArr[0]);
|
|
|
|
|
|
// pTrackInShot->m_date.SetDate(year,month,day);
|
|
|
|
|
|
// //int hour = atoi(strTimeArr[0]);
|
|
|
|
|
|
// //int minute = atoi(strTimeArr[1]);
|
|
|
|
|
|
// //int second = atoi(strTimeArr[2]);
|
|
|
|
|
|
// //pTrackInShot->m_date.SetDateTime(year,month,day,hour,minute,second);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// //else
|
|
|
|
|
|
// //{
|
|
|
|
|
|
// // CString strDate = strDateTimeArr[0];
|
|
|
|
|
|
// // AfxGetPublicFunction()->ScanfString1(strDateArr, strDate, '/');
|
|
|
|
|
|
// // int year = atoi(strDateArr[0]);
|
|
|
|
|
|
// // int month = atoi(strDateArr[1]);
|
|
|
|
|
|
// // int day = atoi(strDateArr[2]);
|
|
|
|
|
|
// // pTrackInShot->m_date.SetDate(year,month,day);
|
|
|
|
|
|
// //}
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_SHOOTDENISTY:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackShot* pTrackInShot = (CInTrackShot*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInShot->m_fDensity = atof(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_SHOOTMETHOD:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackShot* pTrackInShot = (CInTrackShot*)m_pTrackIn;
|
|
|
|
|
|
// pTrackInShot->m_strMethod = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else if (m_pTrackIn->GetType() == KEP_FAULTPOINT)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// case IDS_STR_FAULT_NAME:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackFaultPoint *pFaultPoint = (CInTrackFaultPoint*)m_pTrackIn;
|
|
|
|
|
|
// pFaultPoint->m_strLayerName = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_FAULTTHROW:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackFaultPoint *pFaultPoint = (CInTrackFaultPoint*)m_pTrackIn;
|
|
|
|
|
|
// pFaultPoint->m_dThrow = atof(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_FAULTED_HORIZON:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackFaultPoint *pFaultPoint = (CInTrackFaultPoint*)m_pTrackIn;
|
|
|
|
|
|
// pFaultPoint->m_sfaultedHori = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_COMPARE_WELL:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackFaultPoint *pFaultPoint = (CInTrackFaultPoint*)m_pTrackIn;
|
|
|
|
|
|
// pFaultPoint->m_sCompareWell = pItem->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_COMPARE_WELL_BOTTOMDEPTH:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackFaultPoint *pFaultPoint = (CInTrackFaultPoint*)m_pTrackIn;
|
|
|
|
|
|
// pFaultPoint->m_dCompareWellBottom = atof(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_COMPARE_WELL_TOPDEPTH:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackFaultPoint *pFaultPoint = (CInTrackFaultPoint*)m_pTrackIn;
|
|
|
|
|
|
// pFaultPoint->m_dCompareWellTop = atof(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_SYMBOL_SHOWMODE:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackSymbol *pSymol = (CInTrackSymbol*) m_pTrackIn;
|
|
|
|
|
|
// CCustomItemCombo* pItemCombo = (CCustomItemCombo*)pItem;
|
|
|
|
|
|
|
|
|
|
|
|
// pSymol->m_nKind = pItemCombo->GetCurSel(); //atof(pItem->GetValue());
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// case IDS_STR_TRACKIN_SHOTLAYERTYPE:
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CInTrackShot *pShot = (CInTrackShot*)m_pTrackIn;
|
|
|
|
|
|
// CCustomItemCombo* pItemCombo = (CCustomItemCombo*)pItem;
|
|
|
|
|
|
|
|
|
|
|
|
// pShot->m_strResult = pItemCombo->GetValue();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// default:
|
|
|
|
|
|
// break;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// GetDoc()->Invalidate();// (CTrackObj*)m_pTrackIn->GetParentObj());
|
|
|
|
|
|
// return CItem::OnGridItemChangeValue(pItem);
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
void CItemTrackIn::RemoveSelectedTrackIn()
|
|
|
|
|
|
{
|
|
|
|
|
|
CTrackObj* pTrack = (CTrackObj*)m_pTrackIn->GetParent();
|
|
|
|
|
|
pTrack->RemoveChild(m_pTrackIn);
|
|
|
|
|
|
//pTrack->RemoveFromObjList(m_pTrackIn);
|
|
|
|
|
|
//delete m_pTrackIn;
|
|
|
|
|
|
m_pTrackIn = NULL;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int CItemTrackIn::DeleteSelection(void)
|
|
|
|
|
|
{
|
|
|
|
|
|
if(GetDrawObj() == NULL)
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
|
CTrackObj* pTrack = (CTrackObj*)m_pTrackIn->GetParent();
|
|
|
|
|
|
//if (((CWellObj*)(pTrack->GetParentObj()))->GetWellType()==Well_Section)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// CWellSection* pSection = (CWellSection*)(pTrack->GetParentObj()->GetParentObj());
|
|
|
|
|
|
// POSITION posBend = pSection->m_BendList.GetHeadPosition();
|
|
|
|
|
|
// while(posBend!=NULL)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// CBendObj * pBend = (CBendObj *)pSection->m_BendList.GetNext(posBend);
|
|
|
|
|
|
// if (pBend->m_pLayerLeft==m_pTrackIn||(pBend->m_pLayerRight!=NULL&&pBend->m_pLayerRight==m_pTrackIn))
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pSection->DeleteBend(pBend);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
RemoveSelectedTrackIn();
|
|
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CItemTrackIn::ChangeAllLayerSet(CInTrackLayerGroup* pLayer, DWORD nLayerLinkFlag, DWORD nLayerPropertyFlag)
|
|
|
|
|
|
{
|
|
|
|
|
|
if(pLayer == NULL)
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
//CBendObj * pBend = NULL;
|
|
|
|
|
|
if(nLayerLinkFlag & LayerLinkFlagLeft)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
//CInTrackLayerGroup* pLayerLeft = NULL;
|
|
|
|
|
|
//POSITION pos = pLayer->m_BendLeftList.GetHeadPosition();
|
|
|
|
|
|
//while(pos != NULL)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// pBend = (CBendObj*)pLayer->m_BendLeftList.GetNext(pos);
|
|
|
|
|
|
|
|
|
|
|
|
// if(pBend->m_pLayerLeft && pBend->m_pLayerRight)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// if(pBend->m_pLayerLeft->GetPosition().CenterPoint().x0 < pBend->m_pLayerRight->GetPosition().CenterPoint().x0)
|
|
|
|
|
|
// pLayerLeft = (CInTrackLayerGroup*)pBend->m_pLayerLeft;
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pLayerLeft = (CInTrackLayerGroup*)pBend->m_pLayerRight;
|
|
|
|
|
|
|
|
|
|
|
|
// if(pLayerLeft != pLayer)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagColor)
|
|
|
|
|
|
// pLayerLeft->m_brush.m_color = pLayer->m_brush.m_color;
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagFont)
|
|
|
|
|
|
// pLayerLeft->m_font = pLayer->m_font;
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagLitho)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pLayerLeft->m_strLitho = pLayer->m_strLitho;
|
|
|
|
|
|
// pLayerLeft->m_pMarkFill = pLayer->m_pMarkFill;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagTop)
|
|
|
|
|
|
// pLayerLeft->SetTopUnComformity(pLayer->IsTopUnConformity());
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagBottom)
|
|
|
|
|
|
// pLayerLeft->SetBottomUnDrill(pLayer->IsBottomUnDrill());
|
|
|
|
|
|
|
|
|
|
|
|
// ChangeAllLayerSet(pLayerLeft, LayerLinkFlagLeft, nLayerPropertyFlag);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(nLayerLinkFlag & LayerLinkFlagRight)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
//CInTrackLayerGroup* pLayerRight = NULL;
|
|
|
|
|
|
//POSITION pos = pLayer->m_BendRightList.GetHeadPosition();
|
|
|
|
|
|
//while(pos != NULL)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// pBend = (CBendObj*)pLayer->m_BendRightList.GetNext(pos);
|
|
|
|
|
|
// if(pBend->m_pLayerLeft && pBend->m_pLayerRight)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// if(pBend->m_pLayerLeft->GetPosition().CenterPoint().x0 < pBend->m_pLayerRight->GetPosition().CenterPoint().x0)
|
|
|
|
|
|
// pLayerRight = (CInTrackLayerGroup*)pBend->m_pLayerRight;
|
|
|
|
|
|
// else
|
|
|
|
|
|
// pLayerRight = (CInTrackLayerGroup*)pBend->m_pLayerLeft;
|
|
|
|
|
|
|
|
|
|
|
|
// if(pLayerRight != pLayer)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// //ͬ<><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagColor)
|
|
|
|
|
|
// pLayerRight->m_brush.m_color = pLayer->m_brush.m_color;
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagFont)
|
|
|
|
|
|
// pLayerRight->m_font = pLayer->m_font;
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagLitho)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pLayerRight->m_strLitho = pLayer->m_strLitho;
|
|
|
|
|
|
// pLayerRight->m_pMarkFill = pLayer->m_pMarkFill;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagTop)
|
|
|
|
|
|
// pLayerRight->SetTopUnComformity(pLayer->IsTopUnConformity());
|
|
|
|
|
|
// if(nLayerPropertyFlag & LayerPropertyFlagBottom)
|
|
|
|
|
|
// pLayerRight->SetBottomUnDrill(pLayer->IsBottomUnDrill());
|
|
|
|
|
|
|
|
|
|
|
|
// ChangeAllLayerSet(pLayerRight, LayerLinkFlagRight, nLayerPropertyFlag);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|