소스 검색

Merge branch 'Release3.3' of http://36.129.169.60:30080/gogsadmin/OTS into Release3.3

zhangjiaxin 1 개월 전
부모
커밋
02c6f6edee
1개의 변경된 파일15개의 추가작업 그리고 7개의 파일을 삭제
  1. 15 7
      OTSIncAMeasureApp/4-OTSSamplespaceGraphicsPanel/OTSSamplespaceWindow.cs

+ 15 - 7
OTSIncAMeasureApp/4-OTSSamplespaceGraphicsPanel/OTSSamplespaceWindow.cs

@@ -454,6 +454,10 @@ namespace OTSMeasureApp
                 newGDI.SetZoomNumber(m_visualStage.GetZoomNum());
                 newGDI.SetZoomNumber(m_visualStage.GetZoomNum());
                 newGDI.SetDisplayRefPoint(m_visualStage.GetDisplayRefPoint());
                 newGDI.SetDisplayRefPoint(m_visualStage.GetDisplayRefPoint());
                 newGDI.IsWorkSample = true;
                 newGDI.IsWorkSample = true;
+
+
+                newGDI.HoleNo = sam.GetMeasureGDIObject().HoleNo;
+
                 sam.SetMeasureGDIObject(newGDI);
                 sam.SetMeasureGDIObject(newGDI);
                 m_DrawPolygonFinishGDIObject = null;
                 m_DrawPolygonFinishGDIObject = null;
                 m_DrawMeasureGDIObject = null;
                 m_DrawMeasureGDIObject = null;
@@ -502,9 +506,6 @@ namespace OTSMeasureApp
         
         
         
         
         
         
-        
-        
-        
         
         
         
         
         
         
@@ -537,6 +538,11 @@ namespace OTSMeasureApp
                 newGDI.SetZoomNumber(m_visualStage.GetZoomNum());
                 newGDI.SetZoomNumber(m_visualStage.GetZoomNum());
                 newGDI.SetDisplayRefPoint(m_visualStage.GetDisplayRefPoint());
                 newGDI.SetDisplayRefPoint(m_visualStage.GetDisplayRefPoint());
                 newGDI.IsWorkSample = true;
                 newGDI.IsWorkSample = true;
+
+                newGDI.HoleNo = sam.GetMeasureGDIObject().HoleNo;
+
+
+
                 sam.SetMeasureGDIObject(newGDI);
                 sam.SetMeasureGDIObject(newGDI);
                 m_DrawPolygonFinishGDIObject = null;
                 m_DrawPolygonFinishGDIObject = null;
                 m_DrawMeasureGDIObject = null;
                 m_DrawMeasureGDIObject = null;
@@ -544,8 +550,6 @@ namespace OTSMeasureApp
 
 
                 SetWorkSampleMeasureArea(para);
                 SetWorkSampleMeasureArea(para);
                 
                 
-
-                
                 if (frmInput.IsInclinedPlaneFocus) {
                 if (frmInput.IsInclinedPlaneFocus) {
                     m_MeasureAppForm.m_ProjParam.GetWorkSample().GetMsrParams().SlopParam = frmInput.GetCSlopFocusParam();
                     m_MeasureAppForm.m_ProjParam.GetWorkSample().GetMsrParams().SlopParam = frmInput.GetCSlopFocusParam();
                 }
                 }
@@ -554,15 +558,14 @@ namespace OTSMeasureApp
                 PrepareVisualMeasureField(GetWorkingVisualSample());
                 PrepareVisualMeasureField(GetWorkingVisualSample());
             }
             }
         }
         }
+
         public void SetWorkSampleMeasureArea(SampleMeasurePara SMeasurePara)
         public void SetWorkSampleMeasureArea(SampleMeasurePara SMeasurePara)
         {
         {
-
             COTSSample WSample = m_MeasureAppForm.m_ProjParam.GetResultData().GetWorkingSample();
             COTSSample WSample = m_MeasureAppForm.m_ProjParam.GetResultData().GetWorkingSample();
             if (null == WSample)
             if (null == WSample)
             {
             {
                 return;
                 return;
             }
             }
-
             CDomain Domain = new CDomain();
             CDomain Domain = new CDomain();
             Domain.SetShape((otsdataconst.DOMAIN_SHAPE)SMeasurePara.iShape);
             Domain.SetShape((otsdataconst.DOMAIN_SHAPE)SMeasurePara.iShape);
             Domain.SetRectDomain(SMeasurePara.MeasureRect);
             Domain.SetRectDomain(SMeasurePara.MeasureRect);
@@ -580,6 +583,11 @@ namespace OTSMeasureApp
             return;
             return;
         }
         }
 
 
+
+
+
+
+
         public CVisualSampleArea GetWorkingVisualSample()
         public CVisualSampleArea GetWorkingVisualSample()
         {
         {