|
@@ -240,6 +240,11 @@ namespace OTSIncAReportGrids
|
|
|
|
|
|
}
|
|
|
private void ParticlesGridDevidePage_Load(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+
|
|
|
+ UpdateLoad();
|
|
|
+ }
|
|
|
+ private void UpdateLoad()
|
|
|
{
|
|
|
if (!Init())
|
|
|
{
|
|
@@ -251,7 +256,7 @@ namespace OTSIncAReportGrids
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
cbB_PageSize.Items.Add("20");
|
|
|
cbB_PageSize.Items.Add("100");
|
|
|
cbB_PageSize.Items.Add("500");
|
|
@@ -259,11 +264,9 @@ namespace OTSIncAReportGrids
|
|
|
cbB_PageSize.Items.Add("5000");
|
|
|
cbB_PageSize.Items.Add("All");
|
|
|
cbB_PageSize.SelectedIndex = 0;
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
#region 自定义方法
|
|
|
-
|
|
|
+
|
|
|
bool UpdateTable()
|
|
|
{
|
|
|
int sel = m_ReportApp.m_conditionChoose.m_SourceGridData.GetComboDownListIndexByItemName(OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
@@ -1632,8 +1635,7 @@ namespace OTSIncAReportGrids
|
|
|
DrawControl(true);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- private void cbB_PageSize_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
+ private void DisplayData()
|
|
|
{
|
|
|
if (cbB_PageSize.SelectedItem.ToString() == "All")
|
|
|
{
|
|
@@ -1647,6 +1649,11 @@ namespace OTSIncAReportGrids
|
|
|
SetDataGridViewStyle();
|
|
|
}
|
|
|
|
|
|
+ private void cbB_PageSize_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ DisplayData();
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 在帧图上标记颗粒的位置矩形,并保存到FIELD_FILES_MARK文件夹中
|
|
|
/// </summary>
|
|
@@ -1996,6 +2003,17 @@ namespace OTSIncAReportGrids
|
|
|
if (ReportFun.DeleteParticlesFromLibrary(item.ParticleId, item.FieldId))
|
|
|
{
|
|
|
MessageBox.Show("Deleted successfully");
|
|
|
+
|
|
|
+ for (int i=0;i< particlesAll.Rows.Count;i++)
|
|
|
+ {
|
|
|
+ if (particlesAll.Rows[i]["Fieldid"].ToString()== item.FieldId.ToString() && particlesAll.Rows[i]["Particleid"].ToString()==item.ParticleId.ToString())
|
|
|
+ {
|
|
|
+ particlesAll.Rows.RemoveAt(i);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ DisplayData();
|
|
|
+
|
|
|
}
|
|
|
else
|
|
|
{
|