예제 #1
0
 public void readTags(CustomReportSection section)
 {
     PISDK.Server server=PIServerInfo.getPIServer("DEFAULT");
     IGetPoints2 srv=server as IGetPoints2;
     NamedValues nvs=new NamedValues();
     PointList points=srv.GetPoints2(section.FindString, nvs,GetPointsRetrievalTypes.useGetPoints);
     Tags = new List<CustomReportDataString>();
     foreach (PIPoint point in points) {
         CustomReportDataString tag=new CustomReportDataString();
         tag.TagName = point.Name;
         tag.TagTitle = point.PointAttributes["descriptor"].Value;
         tag.AvgData = false;
         tag.MaxData = false;
         tag.MinData = false;
         Tags.Add(tag);
     }
 }
예제 #2
0
 protected string getItemStr(CustomReportDataString tag, string sumType, string resultMode, string post)
 {
     string basis=tag.TagName.ToLower().Contains(".sue.") ? "cbEventWeightedExcludeEarliestEvent" : "cbTimeWeighted";
     string itemstr=String.Format(
         "<item mode='tag' tagName='{0}' title='{1}' summariesType='{2}' resultMode='{3}' calculationBasis ='{4}' id='{5}' toChart='true'  stringFormat='### ### ### ### ##0.##'/>",
         tag.TagName, tag.TagTitle + post, sumType, resultMode, basis, tag.TagName+"_"+resultMode);
     return itemstr;
 }
예제 #3
0
 protected ChartSerieProperties getItemChartProperties(CustomReportDataString tag, string resultMode, string post)
 {
     ChartSerieProperties prop=new ChartSerieProperties();
     prop.Enabled = true;
     prop.LineWidth = 2;
     prop.SerieType = ChartSerieType.line;
     prop.TagName = tag.TagName + "_" + resultMode;
     prop.Title = tag.TagTitle+post;
     return prop;
 }