private void SetHourLineChartDate(List <PositionList> DataList, UGUI_LineChartDateFill LineChart, int count)
 {
     if (DataList != null)
     {
         //LastTime = long.Parse(DataList[DataList.Count - 1].RecordTime);
         DateTime dt = Convert.ToDateTime(DataList[DataList.Count - 1].Name);
         LineChart.DateFillT(UGUI_LineChartDateFill.DateType.Month, count, dt);
         //if (CurrentLevel == 0)
         //{
         //    LineChart.DateFillT(UGUI_LineChartDateFill.DateType.Month, count, dt);
         //}
         //else if(CurrentLevel == 1)
         //{
         //    LineChart.DateFillT(UGUI_LineChartDateFill.DateType.ThreeMonths  , count, dt);
         //}
         //else if (CurrentLevel == 2)
         //{
         //    LineChart.DateFillT(UGUI_LineChartDateFill.DateType.HalfAYear, count, dt);
         //}
         //else if (CurrentLevel == 3)
         //{
         //    LineChart.DateFillT(UGUI_LineChartDateFill.DateType.year, count, dt);
         //}
     }
 }
 /// <summary>
 /// 设置折线图日期
 /// </summary>
 /// <param name="DataList"></param>
 private void SetHourLineChartDate(List <PositionList> DataList, DateTime DT, int Num)
 {
     if (DataList != null)
     {
         Personnel_X_Data.DateFillT(UGUI_LineChartDateFill.DateType.Day, Num, DT);
     }
 }
示例#3
0
 private void SetHourLineChartDate(List <PositionList> DataList, DateTime DT, int count)
 {
     if (DataList != null)
     {
         //LastTime = long.Parse(DataList[DataList.Count - 1].RecordTime);
         DateTime dt = Convert.ToDateTime(DataList[DataList.Count - 1].Name + ":00:00");
         Personnel_X_Data.DateFillT(UGUI_LineChartDateFill.DateType.Day, count, DT.AddHours(23));
     }
 }
示例#4
0
 /// <summary>
 /// 设置折线图日期
 /// </summary>
 /// <param name="DataList"></param>
 private void SetHourLineChartDate(List <PositionList> DataList, UGUI_LineChartDateFill LineChart, int Num)
 {
     if (DataList != null && DataList.Count != 0)
     {
         //LastTime = long.Parse(DataList[DataList.Count - 1].RecordTime);
         DateTime dt = Convert.ToDateTime(DataList[DataList.Count - 1].Name);
         LineChart.DateFillT(UGUI_LineChartDateFill.DateType.Month, Num, dt);
     }
 }
 private void SetHourLineChartDate(DateTime dt, int count)
 {
     PerAlarm_X_Data.DateFillT(UGUI_LineChartDateFill.DateType.Month, count, dt.AddDays(1));
 }
 private void SetHourLineChartDate(DateTime dt, int count)
 {
     DevAlarm_X_Data.DateFillT(UGUI_LineChartDateFill.DateType.Month, count, dt);
 }