12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.Serialization;
- using System.Text;
- using System.Threading.Tasks;
- namespace GDNXFD.Data
- {
- [DataContract]
- public class RankingModel
- {
- [DataMember]
- public int RankingNo { get; set; }
- [DataMember]
- public string ObjectName { get; set; }
- [DataMember]
- public int Total { get; set; }
- }
- public class GroupRankModel
- {
- public GroupModel GM { get; set; }
- public int Total { get; set; }
- }
- public class GroupModel
- {
- public string StationName { get; set; }
- public string ProjectName { get; set; }
- public string LineName { get; set; }
- public string WindturbineName { get; set; }
- public string ObjectName
- {
- get
- {
- if (!string.IsNullOrWhiteSpace(WindturbineName))
- return WindturbineName;
- if (!string.IsNullOrWhiteSpace(LineName))
- return LineName;
- if (!string.IsNullOrWhiteSpace(ProjectName))
- return ProjectName;
- return StationName;
- }
- }
- }
- }
|