public ProposalItemViewModel(ProposalViewModel proposal, BacklogItem item, BacklogItemGroup group)
 {
     this.proposal = proposal;
     this.Item = item;
     this.ItemGroup = group;
     OnPropertyChanged("IsAtProposal");
 }
예제 #2
0
        private BacklogItemGroup CreateDefaultGroup(string projectUId, DefaultItemGroups defaultGroup, string name)
        {
            if (name == null)
            {
                name = defaultGroup.ToString();
            }

            BacklogItemGroup group =
                new BacklogItemGroup()
            {
                GroupColor   = "WhiteSmoke",
                GroupName    = name,
                GroupUId     = Guid.NewGuid().ToString(),
                ProjectUId   = projectUId,
                DefaultGroup = (short)defaultGroup
            };

            if (defaultGroup == DefaultItemGroups.PLAN_GROUP)
            {
                group.GroupColor = "Khaki";
            }
            if (defaultGroup == DefaultItemGroups.DELIVERY_GROUP)
            {
                group.GroupColor = "Crimson";
            }

            return(group);
        }
예제 #3
0
        private BacklogItemGroup CreateDefaultGroup(string projectUId, DefaultItemGroups defaultGroup, string name)
        {
            if (name == null)
                name = defaultGroup.ToString();

            BacklogItemGroup group =
                new BacklogItemGroup() {
                    GroupColor = "WhiteSmoke",
                    GroupName = name,
                    GroupUId = Guid.NewGuid().ToString(),
                    ProjectUId = projectUId,
                    DefaultGroup = (short)defaultGroup
                };
            if (defaultGroup == DefaultItemGroups.PLAN_GROUP)
                group.GroupColor = "Khaki";
            if (defaultGroup == DefaultItemGroups.DELIVERY_GROUP)
                group.GroupColor = "Crimson";

            return group;
        }
예제 #4
0
 public void UpdateBacklogItemGroup(string projectUId, BacklogItemGroup group)
 {
     authorizationService.VerifyPermissionAtProject(projectUId, PermissionSets.SCRUM_MASTER);
     backlogRepository.UpdateBacklogItemGroup(group);
 }
        public void UpdateBacklogItemGroup(BacklogItemGroup group)
        {
            using (var context = new ScrumFactoryEntities(this.connectionString)) {
                BacklogItemGroup oldGroup = context.BacklogItemGroups.Where(g => g.GroupUId == group.GroupUId).SingleOrDefault();
                if (oldGroup == null)
                    context.AddObject("BacklogItemGroups", group);
                else
                    context.ApplyCurrentValues<BacklogItemGroup>("BacklogItemGroups", group);

                context.SaveChanges();

            }
        }
 public void UpdateBacklogItemGroup(string projectUId, BacklogItemGroup group)
 {
     var client = ClientHelper.GetClient(authorizator);
     HttpResponseMessage response = client.Put(Url("Groups/" + projectUId), new ObjectContent<BacklogItemGroup>(group, JsonValueMediaTypeFormatter.DefaultMediaType));
     ClientHelper.HandleHTTPErrorCode(response);
 }
예제 #7
0
 public void UpdateBacklogItemGroup(string projectUId, BacklogItemGroup group)
 {
     authorizationService.VerifyPermissionAtProject(projectUId, PermissionSets.SCRUM_MASTER);
     backlogRepository.UpdateBacklogItemGroup(group);
 }