Ejemplo n.º 1
0
        public PartialViewResult EditChildrenSortOrder(TaxonomyBranchPrimaryKey taxonomyBranchPrimaryKey)
        {
            var projectTypes = taxonomyBranchPrimaryKey.EntityObject.ProjectTypes;
            var viewModel    = new EditSortOrderViewModel();

            return(ViewEditChildrenSortOrder(projectTypes, viewModel));
        }
Ejemplo n.º 2
0
        public PartialViewResult EditSortOrder()
        {
            var projectCustomAttributeGroups = HttpRequestStorage.DatabaseEntities.ProjectCustomAttributeGroups;
            EditSortOrderViewModel viewModel = new EditSortOrderViewModel();

            return(ViewEditSortOrder(projectCustomAttributeGroups, viewModel));
        }
        private PartialViewResult ViewEditAttributeTypesSortOrder(TreatmentBMPType treatmentBMPType,
                                                                  EditSortOrderViewModel viewModel, int attributeTypePurposeID)
        {
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(treatmentBMPType.TreatmentBMPTypeCustomAttributeTypes.Where(x => x.CustomAttributeType.CustomAttributeTypePurposeID == attributeTypePurposeID)), "Attribute Types");

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
        public PartialViewResult EditSortOrder(ClassificationSystemPrimaryKey classificationSystemPrimaryKey)
        {
            var classificationSystem         = classificationSystemPrimaryKey.EntityObject;
            EditSortOrderViewModel viewModel = new EditSortOrderViewModel();

            return(ViewEditSortOrder(classificationSystem, viewModel));
        }
        public PartialViewResult EditSortOrder()
        {
            var performanceMeasures          = HttpRequestStorage.DatabaseEntities.PerformanceMeasures;
            EditSortOrderViewModel viewModel = new EditSortOrderViewModel();

            return(ViewEditSortOrder(performanceMeasures, viewModel));
        }
Ejemplo n.º 6
0
        public PartialViewResult EditSortOrder()
        {
            var projectTypes = HttpRequestStorage.DatabaseEntities.ProjectTypes;
            EditSortOrderViewModel viewModel = new EditSortOrderViewModel();

            return(ViewEditSortOrder(projectTypes, viewModel));
        }
        public PartialViewResult EditObservationTypesSortOrder(TreatmentBMPTypePrimaryKey treatmentBMPTypePrimaryKey)
        {
            var treatmentBMPType             = treatmentBMPTypePrimaryKey.EntityObject;
            EditSortOrderViewModel viewModel = new EditSortOrderViewModel();

            return(ViewEditObservationTypesSortOrder(treatmentBMPType, viewModel));
        }
Ejemplo n.º 8
0
        public PartialViewResult EditSortOrder()
        {
            var taxonomyLeafs = HttpRequestStorage.DatabaseEntities.TaxonomyLeafs;
            EditSortOrderViewModel viewModel = new EditSortOrderViewModel();

            return(ViewEditSortOrder(taxonomyLeafs, viewModel));
        }
Ejemplo n.º 9
0
        private PartialViewResult ViewEditChildrenSortOrder(ICollection <TaxonomyBranch> taxonomyBranches,
                                                            EditSortOrderViewModel viewModel)
        {
            var viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(taxonomyBranches), FieldDefinition.TaxonomyTrunk.GetFieldDefinitionLabelPluralized());

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
Ejemplo n.º 10
0
        public PartialViewResult EditDocumentSortOrder(DocumentLibraryPrimaryKey documentLibraryPrimaryKey)
        {
            var classificationSystem         = documentLibraryPrimaryKey.EntityObject;
            EditSortOrderViewModel viewModel = new EditSortOrderViewModel();

            return(ViewEditDocumentSortOrder(classificationSystem, viewModel));
        }
Ejemplo n.º 11
0
        public PartialViewResult EditAttributeTypesSortOrder(TreatmentBMPTypePrimaryKey treatmentBMPTypePrimaryKey,
                                                             int attributeTypePurposeID)
        {
            var treatmentBMPType             = treatmentBMPTypePrimaryKey.EntityObject;
            EditSortOrderViewModel viewModel = new EditSortOrderViewModel();

            return(ViewEditAttributeTypesSortOrder(treatmentBMPType, viewModel, attributeTypePurposeID));
        }
Ejemplo n.º 12
0
        private PartialViewResult ViewEditSortOrder(IEnumerable <TaxonomyLeaf> taxonomyLeafs,
                                                    EditSortOrderViewModel viewModel)
        {
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(taxonomyLeafs),
                                                                       FieldDefinitionEnum.TaxonomyLeaf.ToType().GetFieldDefinitionLabelPluralized());

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
        private PartialViewResult ViewEditSortOrder(IQueryable <PerformanceMeasure> performanceMeasures,
                                                    EditSortOrderViewModel viewModel)
        {
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(performanceMeasures),
                                                                       FieldDefinitionEnum.PerformanceMeasure.ToType().GetFieldDefinitionLabelPluralized());

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
Ejemplo n.º 14
0
        private PartialViewResult ViewEditSortOrder(IEnumerable <ProjectType> projectTypes,
                                                    EditSortOrderViewModel viewModel)
        {
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(projectTypes),
                                                                       FieldDefinition.ProjectType.GetFieldDefinitionLabelPluralized());

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
Ejemplo n.º 15
0
        public ActionResult EditSortOrder(EditSortOrderViewModel viewModel)
        {
            var taxonomyBranches = HttpRequestStorage.DatabaseEntities.TaxonomyBranches;

            if (!ModelState.IsValid)
            {
                return(ViewEditSortOrder(taxonomyBranches, viewModel));
            }

            viewModel.UpdateModel(new List <IHaveASortOrder>(taxonomyBranches));
            SetMessageForDisplay($"Successfully Updated {FieldDefinition.TaxonomyBranch.GetFieldDefinitionLabel()} Sort Order");
            return(new ModalDialogFormJsonResult());
        }
Ejemplo n.º 16
0
        public ActionResult EditSortOrder(EditSortOrderViewModel viewModel)
        {
            var projectCustomAttributeGroups = HttpRequestStorage.DatabaseEntities.ProjectCustomAttributeGroups;


            if (!ModelState.IsValid)
            {
                return(ViewEditSortOrder(projectCustomAttributeGroups, viewModel));
            }

            viewModel.UpdateModel(new List <IHaveASortOrder>(projectCustomAttributeGroups));
            SetMessageForDisplay($"Successfully Updated {FieldDefinitionEnum.ProjectCustomAttributeGroup.ToType().GetFieldDefinitionLabel()} Sort Order");
            return(new ModalDialogFormJsonResult());
        }
Ejemplo n.º 17
0
        private PartialViewResult ViewEditSortOrder(IQueryable <ProjectCustomAttributeGroup> projectCustomAttributeGroups, EditSortOrderViewModel viewModel)
        {
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(projectCustomAttributeGroups), FieldDefinitionEnum.ProjectCustomAttributeGroup.ToType().GetFieldDefinitionLabelPluralized());

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
Ejemplo n.º 18
0
        public ActionResult EditDocumentSortOrder(DocumentLibraryPrimaryKey documentLibraryPrimaryKey, EditSortOrderViewModel viewModel)
        {
            var documentLibrary = documentLibraryPrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(ViewEditDocumentSortOrder(documentLibrary, viewModel));
            }

            viewModel.UpdateModel(new List <IHaveASortOrder>(documentLibrary.DocumentLibraryDocuments));
            SetMessageForDisplay("Successfully Updated Document Sort Order");
            return(new ModalDialogFormJsonResult());
        }
Ejemplo n.º 19
0
        private PartialViewResult ViewEditObservationTypesSortOrder(TreatmentBMPType treatmentBMPType, EditSortOrderViewModel viewModel)
        {
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(treatmentBMPType.TreatmentBMPTypeAssessmentObservationTypes), "Observation Types");

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
Ejemplo n.º 20
0
        public ActionResult EditObservationTypesSortOrder(TreatmentBMPTypePrimaryKey treatmentBMPTypePrimaryKey, EditSortOrderViewModel viewModel)
        {
            var treatmentBMPType = treatmentBMPTypePrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(ViewEditObservationTypesSortOrder(treatmentBMPType, viewModel));
            }

            viewModel.UpdateModel(new List <IHaveASortOrder>(treatmentBMPType.TreatmentBMPTypeAssessmentObservationTypes));
            SetMessageForDisplay("Successfully Updated Observation Type Sort Order");
            return(new ModalDialogFormJsonResult());
        }
        public ActionResult EditSortOrder(ClassificationSystemPrimaryKey classificationSystemPrimaryKey, EditSortOrderViewModel viewModel)
        {
            var classificationSystem = classificationSystemPrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(ViewEditSortOrder(classificationSystem, viewModel));
            }

            viewModel.UpdateModel(new List <IHaveASortOrder>(classificationSystem.Classifications));
            SetMessageForDisplay("Successfully Updated Classification Sort Order");
            return(new ModalDialogFormJsonResult());
        }
        private PartialViewResult ViewEditSortOrder(ClassificationSystem classificationSystem, EditSortOrderViewModel viewModel)
        {
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(classificationSystem.Classifications), ClassificationSystemModelExtensions.GetClassificationSystemNamePluralized(classificationSystem));

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
Ejemplo n.º 23
0
        public ActionResult EditAttributeTypesSortOrder(TreatmentBMPTypePrimaryKey treatmentBMPTypePrimaryKey, int attributeTypePurposeID, EditSortOrderViewModel viewModel)
        {
            var treatmentBMPType = treatmentBMPTypePrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(ViewEditAttributeTypesSortOrder(treatmentBMPType, viewModel, attributeTypePurposeID));
            }

            viewModel.UpdateModel(new List <IHaveASortOrder>(treatmentBMPType.TreatmentBMPTypeCustomAttributeTypes));
            SetMessageForDisplay("Successfully Updated Attribute Type Sort Order");
            return(new ModalDialogFormJsonResult());
        }
Ejemplo n.º 24
0
        public ActionResult EditChildrenSortOrder(TaxonomyBranchPrimaryKey taxonomyBranchPrimaryKey, EditSortOrderViewModel viewModel)
        {
            var projectTypes = taxonomyBranchPrimaryKey.EntityObject.ProjectTypes;

            if (!ModelState.IsValid)
            {
                return(ViewEditChildrenSortOrder(projectTypes, viewModel));
            }

            viewModel.UpdateModel(new List <IHaveASortOrder>(projectTypes));
            SetMessageForDisplay($"Successfully Updated {FieldDefinition.TaxonomyBranch.GetFieldDefinitionLabel()} Sort Order");
            return(new ModalDialogFormJsonResult());
        }
Ejemplo n.º 25
0
        private PartialViewResult ViewEditSortOrder(IQueryable <ProjectStatus> projectStatuses, EditSortOrderViewModel viewModel)
        {
            var fieldDefinitionForStatus = FieldDefinitionEnum.Status.ToType();
            var statusLabelPluralized    =
                fieldDefinitionForStatus.GetFieldDefinitionLabel()
                .Equals("Status", StringComparison.InvariantCultureIgnoreCase)
                    ? "Statuses"
                    : fieldDefinitionForStatus.GetFieldDefinitionLabelPluralized();
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(projectStatuses), statusLabelPluralized);

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
Ejemplo n.º 26
0
        private PartialViewResult ViewEditDocumentSortOrder(DocumentLibrary documentLibrary, EditSortOrderViewModel viewModel)
        {
            EditSortOrderViewData viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(documentLibrary.DocumentLibraryDocuments), "Documents");

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }
Ejemplo n.º 27
0
        private PartialViewResult ViewEditSortOrder(IEnumerable <TaxonomyTrunk> taxonomyTrunks, EditSortOrderViewModel viewModel)
        {
            var viewData = new EditSortOrderViewData(new List <IHaveASortOrder>(taxonomyTrunks), FieldDefinition.TaxonomyTrunk.GetFieldDefinitionLabelPluralized());

            return(RazorPartialView <EditSortOrder, EditSortOrderViewData, EditSortOrderViewModel>(viewData, viewModel));
        }