private void BindData() { ucTaskTime.Value = DateTime.MinValue; ddType.DataSource = Incident.GetListIncidentTypes(); ddType.DataTextField = "TypeName"; ddType.DataValueField = "TypeId"; ddType.DataBind(); ddSeverity.DataSource = Incident.GetListIncidentSeverity(); ddSeverity.DataTextField = "SeverityName"; ddSeverity.DataValueField = "SeverityId"; ddSeverity.DataBind(); ddPriority.DataSource = Incident.GetListPriorities(); ddPriority.DataTextField = "PriorityName"; ddPriority.DataValueField = "PriorityId"; ddPriority.DataBind(); ddProject.DataSource = Incident.GetListProjects(); ddProject.DataTextField = "Title"; ddProject.DataValueField = "ProjectId"; ddProject.DataBind(); ddProject.Items.Insert(0, new ListItem(LocRM.GetString("tNotSet"), "0")); ddCreator.DataSource = SecureGroup.GetListAllActiveUsersInGroup((int)InternalSecureGroups.Intranet, false); ddCreator.DataTextField = "DisplayName"; ddCreator.DataValueField = "UserId"; ddCreator.DataBind(); ddManager.DataSource = SecureGroup.GetListAllActiveUsersInGroup((int)InternalSecureGroups.Intranet, false); ddManager.DataTextField = "DisplayName"; ddManager.DataValueField = "UserId"; ddManager.DataBind(); ddManager.Items.Insert(0, new ListItem( Util.CommonHelper.GetGroupPureName((int)InternalSecureGroups.HelpDeskManager), ((int)InternalSecureGroups.HelpDeskManager).ToString() )); }