예제 #1
0
 protected override string Content(ReportData reportData, Dictionary <string, string> options)
 {
     if (null != reportData &&
         null != reportData.CurrentSnapshot)
     {
         double?result = MeasureUtility.GetAddedFunctionPoint(reportData.CurrentSnapshot) + MeasureUtility.GetModifiedFunctionPoint(reportData.CurrentSnapshot) + MeasureUtility.GetDeletedFunctionPoint(reportData.CurrentSnapshot);
         return(result.HasValue ? result.Value.ToString("N0") : CastReporting.Domain.Constants.No_Value);
     }
     return(CastReporting.Domain.Constants.No_Value);
 }
예제 #2
0
        public override string Content(ReportData reportData, Dictionary <string, string> options)
        {
            if (reportData?.CurrentSnapshot == null)
            {
                return(Domain.Constants.No_Value);
            }
            double?result = MeasureUtility.GetAddedFunctionPoint(reportData.CurrentSnapshot);

            return(result?.ToString("N0") ?? Domain.Constants.No_Value);
        }