Esempio n. 1
0
 private void dataGridVRe_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         string strDJH = dataGridVRe.Rows[e.RowIndex].Cells["CumDJH"].Value.ToString();
         if (this.WriteLog)
         {
             Plugin.LogTable.Writelog("查看地籍号为:" + strDJH + "的宗地详细信息");
         }
         if (strDJH == "")
         {
             MessageBox.Show("地籍号信息缺失!", "提示!");
             return;
         }
         if (SysCommon.ModField._DicFieldName == null)
         {
             SysCommon.ModField.InitNameDic(DJAttributeQueryClass.m_Workspace, SysCommon.ModField._DicFieldName, "属性对照表");
         }
         DJAttributeQueryClass.QueryResult(dataGridVVQLR, username + "CZDJ_QLR", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVQSDC, username + "CZDJ_QSDC", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVQSLYZM, username + "CZDJ_QSLYZM", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVQSSP, username + "CZDJ_QSSP", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVSQDJ, username + "CZDJ_SQDJ", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVTXQLZM, username + "CZDJ_TXQLDJ", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVZCDJ, username + "CZDJ_ZCDJ", strDJH);
         IFeature pFeature = DJAttributeQueryClass.QueryFeature(m_FeatureClass, strDJH);
         if (pFeature == null)
         {
             MessageBox.Show("未找到该地籍号图形信息!", "提示!");
             return;
         }
     }
     catch { }
 }
Esempio n. 2
0
 private void dataGridVRe_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         string strDJH = dataGridVRe.Rows[e.RowIndex].Cells["CumDJH"].Value.ToString();
         if (this.WriteLog)
         {
             Plugin.LogTable.Writelog("查看地籍号为:" + strDJH + "的宗地详细信息");
         }
         if (strDJH == "")
         {
             MessageBox.Show("地籍号信息缺失!", "提示!");
             return;
         }
         if (SysCommon.ModField._DicFieldName == null)
         {
             SysCommon.ModField.InitNameDic(DJAttributeQueryClass.m_Workspace, SysCommon.ModField._DicFieldName, "属性对照表");
         }
         DJAttributeQueryClass.QueryResult(dataGridVVQLR, username + "CZDJ_QLR", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVQSDC, username + "CZDJ_QSDC", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVQSLYZM, username + "CZDJ_QSLYZM", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVQSSP, username + "CZDJ_QSSP", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVSQDJ, username + "CZDJ_SQDJ", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVTXQLZM, username + "CZDJ_TXQLDJ", strDJH);
         DJAttributeQueryClass.QueryResult(dataGridVZCDJ, username + "CZDJ_ZCDJ", strDJH);
         IFeature pFeature = DJAttributeQueryClass.QueryFeature(m_FeatureClass, strDJH);
         if (pFeature == null)
         {
             MessageBox.Show("未找到该地籍号图形信息!", "提示!");
             return;
         }
         //先刷新,后闪烁问题
         ///ZQ 20111020 定位范围扩大1.5倍
         IEnvelope pExtent = pFeature.Extent;
         SysCommon.ModPublicFun.ResizeEnvelope(pExtent, 1.5);
         m_MapControl.Extent = pExtent;
         m_MapControl.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewBackground, null, null);
         m_MapControl.ActiveView.ScreenDisplay.UpdateWindow();
         m_MapControl.FlashShape(pFeature.ShapeCopy, 3, 200, null);
     }
     catch { }
 }