public bool IsStaff(string grp_id)
 {
     BTSS_BE.set_group group = new BTSS_BE.set_group();
     group = this._SetGroup.Where(t => t.grp_id == grp_id).FirstOrDefault();
     if (group.grp_name == "Staff")
     {
         return(true);
     }
     return(false);
 }
 public bool IsDepAnalyst(string grp_id)
 {
     BTSS_BE.set_group group = new BTSS_BE.set_group();
     group = this._SetGroup.Where(t => t.grp_id == grp_id).FirstOrDefault();
     if (group.grp_name == "Department Analyst")
     {
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
        public List <BTSS_BE.set_group> SetGroup()
        {
            List <BTSS_BE.set_group> resultSet = new List <BTSS_BE.set_group>();
            DataTable dt = new DataTable();

            dt = this.GetData(BTSS_BE.AppConst.TABLE_SETGROUP);
            foreach (DataRow dr in dt.Rows)
            {
                BTSS_BE.set_group set_group = new BTSS_BE.set_group();
                set_group.grp_id       = Convert.ToString(dr["grp_id"]);
                set_group.grp_name     = Convert.ToString(dr["grp_name"]);
                set_group.grp_desc     = Convert.ToString(dr["grp_desc"]);
                set_group.created_date = Convert.ToDateTime(dr["created_date"]);
                resultSet.Add(set_group);
            }
            return(resultSet);
        }