Example #1
0
 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";
     }
 }
Example #2
0
 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;";
     }
 }
Example #3
0
 protected List<M_寻呼> LoadUsers(M_寻呼 m)
 {
     return List.Where(o => o.Type == "U" && o.ParentId == m.Id).OrderBy(o => o.Ordinal).ToList();
 }
Example #4
0
 protected string LoadTooltip(M_寻呼 m)
 {
     return "主职单位:" + m.PriorName + "\r\n手机号码:" + m.Phone;
 }