protected string LoadColor(M_寻呼 m) { if (m.Prior && !m.Online) { return "btn btn-info btn-xs pull-left"; } else if (m.Prior && m.Online) { return "btn btn-danger btn-xs pull-left"; } else if (!m.Prior && !m.Online) { return "btn btn-success btn-xs pull-left"; } else { return "btn btn-warning btn-xs pull-left"; } }
protected string LoadColorX(M_寻呼 m) { if (m.Prior && !m.Online) { return "margin-right: 16px; font-family: SimSun; font-weight: bold; color: #3BAFDA;"; } else if (m.Prior && m.Online) { return "margin-right: 16px; font-family: SimSun; font-weight: bold; color: #E9573F;"; } else if (!m.Prior && !m.Online) { return "margin-right: 16px; font-family: SimSun; font-weight: bold; color: #8CC152;"; } else { return "margin-right: 16px; font-family: SimSun; font-weight: bold; color: #F6BB42;"; } }
protected List<M_寻呼> LoadUsers(M_寻呼 m) { return List.Where(o => o.Type == "U" && o.ParentId == m.Id).OrderBy(o => o.Ordinal).ToList(); }
protected string LoadTooltip(M_寻呼 m) { return "主职单位:" + m.PriorName + "\r\n手机号码:" + m.Phone; }