コード例 #1
0
 private void Report_SectionFormat(IGRSection pSender)
 {
     try
     {
         if (IsAlarmField == null)
         {
             return;
         }
         if (IsAlarmField.AsBoolean)
         {
             for (int i = 1; i <= dispView.Report.DetailGrid.ColumnContent.ContentCells.Count; i++)
             {
                 dispView.Report.DetailGrid.ColumnContent.ContentCells[i].ForeColor = Pub.ColorToOleColor(Color.Red);
             }
         }
         else
         {
             for (int i = 1; i <= dispView.Report.DetailGrid.ColumnContent.ContentCells.Count; i++)
             {
                 dispView.Report.DetailGrid.ColumnContent.ContentCells[i].ForeColor = Pub.ColorToOleColor(Color.Black);
             }
         }
     }
     catch
     {
     }
 }
コード例 #2
0
 private void Report_SectionFormat(IGRSection pSender)
 {
     /*try
      * {
      * if (ResultIsNormalField == null) return;
      * if (ResultIsNormalField.AsString == "N")
      * {
      *  for (int i = 1; i <= dispView.Report.DetailGrid.ColumnContent.ContentCells.Count; i++)
      *  {
      *    dispView.Report.DetailGrid.ColumnContent.ContentCells[i].ForeColor = Pub.ColorToOleColor(Color.Red);
      *  }
      * }
      * else
      * {
      *  for (int i = 1; i <= dispView.Report.DetailGrid.ColumnContent.ContentCells.Count; i++)
      *  {
      *    dispView.Report.DetailGrid.ColumnContent.ContentCells[i].ForeColor = Pub.ColorToOleColor(Color.Black);
      *  }
      * }
      * }
      * catch
      * {
      * }*/
 }