public void LoadGroup() { if (this.ServiceGroup.Length > 0) { this.oServiceGroup = new ServiceGroup(this.ServiceGroup); } }
public SvcGrpSimple(ServiceGroup group) { this.GroupId = group.GroupId; this.GroupName = group.GroupName; this.GroupDescription = group.GroupDescription; this.GroupColor = group.GroupColor; this.GroupIcon = group.GroupIcon; }
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; } }
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; } }