Пример #1
0
 public void LoadGroup()
 {
     if (this.ServiceGroup.Length > 0)
     {
         this.oServiceGroup = new ServiceGroup(this.ServiceGroup);
     }
 }
Пример #2
0
 public SvcGrpSimple(ServiceGroup group)
 {
     this.GroupId          = group.GroupId;
     this.GroupName        = group.GroupName;
     this.GroupDescription = group.GroupDescription;
     this.GroupColor       = group.GroupColor;
     this.GroupIcon        = group.GroupIcon;
 }
Пример #3
0
        public SvcGrpSimple(string groupId)
        {
            ServiceGroup group = new ServiceGroup(groupId);

            if (group.isValid)
            {
                this.GroupId          = groupId;
                this.GroupName        = group.GroupName;
                this.GroupDescription = group.GroupDescription;
                this.GroupColor       = group.GroupColor;
                this.GroupIcon        = group.GroupIcon;
            }
        }
Пример #4
0
        public static IEnumerable <SvcGrpSimple> GetSimpleServiceGroups()
        {
            List <SvcGrpSimple> groups = new List <SvcGrpSimple>();

            try
            {
                DataTable groupsData = DBConn.ExecuteCommand("sp_ServicesGroup_GetAll", null).Tables[0];
                foreach (DataRow row in groupsData.Rows)
                {
                    ServiceGroup group = new ServiceGroup();
                    group.MapFromTableRow(row);
                    groups.Add(new SvcGrpSimple(group));
                }
                return(groups);
            }
            catch (Exception e)
            {
                throw e;
            }
        }