Exemplo n.º 1
0
        public CatalogEntry(string title, string subtitle, List <string> ids, string publisher, string pubDate = null, int?pages = null, string desc = null, string shelf = null, int?minAge = null, int?maxAge = null, GradeLevels minGrd = GradeLevels.NotSet, GradeLevels maxGrd = GradeLevels.NotSet, params string[] genres) : base(true)
        {
            Title    = title;
            Subtitle = subtitle;
            if (!ids.IsNullOrEmpty())
            {
                foreach (var i in ids)
                {
                    Identifiers.Add(new Identifier(this, i));
                }
            }

            Publisher     = publisher;
            PubDate       = pubDate;
            PageCount     = pages;
            Description   = !string.IsNullOrWhiteSpace(desc) ? desc.Trim() : null;
            MinAge        = minAge;
            MaxAge        = maxAge;
            MinGrade      = minGrd;
            MaxGrade      = maxGrd;
            ShelfLocation = !string.IsNullOrWhiteSpace(shelf) ? shelf : null;
            if (!genres.IsNullOrEmpty())
            {
                foreach (var g in genres)
                {
                    Genres.Add(new Genre(this, g));
                }
            }
        }
Exemplo n.º 2
0
        public static string IndividualGradeToNumString(this GradeLevels grade)
        {
            switch (grade)
            {
            case GradeLevels.Grade3: return("03");

            case GradeLevels.Grade4: return("04");

            case GradeLevels.Grade5: return("05");

            case GradeLevels.Grade6: return("06");

            case GradeLevels.Grade7: return("07");

            case GradeLevels.Grade8: return("08");

            case GradeLevels.Grade9: return("09");

            case GradeLevels.Grade10: return("10");

            case GradeLevels.Grade11: return("11");

            case GradeLevels.Grade12: return("12");

            case GradeLevels.High: return("11");

            default: return(string.Empty);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">The price value</param>
 ///<param name="mealStatus">This gives information about a student's meal status.</param>
 ///<param name="mealType">This gives information about a meal type</param>
 ///<param name="gradeLevels">Refer to section 5.1.12 GradeLevels.</param>
 ///
 public Price(decimal?value, MealStatus mealStatus, MealTypes mealType, GradeLevels gradeLevels) : base(FoodDTD.PRICE)
 {
     this.Value      = value;
     this.MealStatus = mealStatus;
     this.SetMealType(mealType);
     this.GradeLevels = gradeLevels;
 }
Exemplo n.º 4
0
 public BrailleFileInfo(int itemKey, string subject, GradeLevels grade, string brailleType)
 {
     ItemKey     = itemKey;
     Subject     = subject;
     Grade       = grade;
     BrailleType = brailleType;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Used for testing so that it's not necessary to specify all parameters.
 /// </summary>
 public static ItemCardViewModel Create(
     int bankKey                 = -1,
     int itemKey                 = -1,
     string title                = "",
     GradeLevels grade           = GradeLevels.NA,
     string gradeLabel           = "",
     string subjectCode          = "",
     string subjectLabel         = "",
     string claimCode            = "",
     string claimLabel           = "",
     string target               = "",
     string interactionTypeCode  = "",
     string interactionTypeLabel = "",
     bool isPerformanceItem      = false,
     bool brailleOnlyitem        = false)
 {
     return(new ItemCardViewModel(
                bankKey: bankKey,
                itemKey: itemKey,
                title: title,
                grade: grade,
                gradeLabel: gradeLabel,
                subjectCode: subjectCode,
                subjectLabel: subjectLabel,
                claimCode: claimCode,
                claimLabel: claimLabel,
                target: target,
                interactionTypeCode: interactionTypeCode,
                interactionTypeLabel: interactionTypeLabel,
                isPerformanceItem: isPerformanceItem,
                brailleOnlyItem: brailleOnlyitem));
 }
Exemplo n.º 6
0
 public ItemCardViewModel(
     int bankKey,
     int itemKey,
     string title,
     GradeLevels grade,
     string gradeLabel,
     string subjectCode,
     string subjectLabel,
     string claimCode,
     string claimLabel,
     string target,
     string interactionTypeCode,
     string interactionTypeLabel,
     bool isPerformanceItem,
     bool brailleOnlyItem)
 {
     BankKey              = bankKey;
     ItemKey              = itemKey;
     Title                = title;
     Grade                = grade;
     GradeLabel           = gradeLabel;
     SubjectCode          = subjectCode;
     SubjectLabel         = subjectLabel;
     ClaimCode            = claimCode;
     ClaimLabel           = claimLabel;
     Target               = target;
     InteractionTypeCode  = interactionTypeCode;
     InteractionTypeLabel = interactionTypeLabel;
     IsPerformanceItem    = isPerformanceItem;
     BrailleOnlyItem      = brailleOnlyItem;
 }
        public static ImmutableArray <AccessibilityResourceGroup> GetAccessibilityResourceGroups(
            ItemDigest itemDigest,
            IList <MergedAccessibilityFamily> resourceFamilies,
            GradeLevels grade,
            bool isPerformance,
            bool aslSupported,
            Claim claim,
            InteractionType interactionType,
            ImmutableArray <string> brailleItemCodes,
            AppSettings settings)
        {
            var family = resourceFamilies.FirstOrDefault(f =>
                                                         f.Grades.Contains(grade) &&
                                                         f.Subjects.Contains(itemDigest.SubjectCode));

            var flaggedResources = family?.Resources
                                   .Select(r => r.ApplyFlags(
                                               itemDigest,
                                               interactionType?.Code, isPerformance,
                                               settings.SettingsConfig.DictionarySupportedItemTypes,
                                               brailleItemCodes,
                                               claim,
                                               aslSupported))
                                   .ToImmutableArray() ?? ImmutableArray <AccessibilityResource> .Empty;

            var groups = settings.SettingsConfig.AccessibilityTypes
                         .Select(accType => GroupItemResources(accType, flaggedResources))
                         .OrderBy(g => g.Order)
                         .ToImmutableArray();

            return(groups);
        }
Exemplo n.º 8
0
        static string FlagToString(this GradeLevels grade)
        {
            switch (grade)
            {
            case GradeLevels.NA: return("NA");

            case GradeLevels.Grade3: return("Grade 3");

            case GradeLevels.Grade4: return("Grade 4");

            case GradeLevels.Grade5: return("Grade 5");

            case GradeLevels.Grade6: return("Grade 6");

            case GradeLevels.Grade7: return("Grade 7");

            case GradeLevels.Grade8: return("Grade 8");

            case GradeLevels.Elementary: return("Grades 3-5");

            case GradeLevels.Middle: return("Grades 6-8");

            case GradeLevels.Grade9:
            case GradeLevels.Grade10:
            case GradeLevels.Grade11:
            case GradeLevels.Grade12:
            case GradeLevels.High:
                return("High School");

            case GradeLevels.All: return("All");

            default: return(string.Empty);
            }
        }
Exemplo n.º 9
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="schoolInfoRefId">References SchoolInfo object to determine school in which this assignment pertains.</param>
 ///<param name="gradeLevels">A GradeLevels</param>
 ///<param name="jobFunction">A JobFunction</param>
 ///
 public EmplAssignment( string schoolInfoRefId, GradeLevels gradeLevels, JobFunction jobFunction )
     : base(ProfdevDTD.EMPLASSIGNMENT)
 {
     this.SchoolInfoRefId = schoolInfoRefId;
     this.GradeLevels = gradeLevels;
     this.JobFunction = jobFunction;
 }
Exemplo n.º 10
0
        public IActionResult Search(string itemID, GradeLevels gradeLevels, string[] subjects, string[] interactionTypes, string[] claims, bool performanceOnly)
        {
            var parms = new ItemsSearchParams(itemID, gradeLevels, subjects, interactionTypes, claims, performanceOnly);
            var items = sampleItemsSearchRepo.GetItemCards(parms);

            return(Json(items));
        }
Exemplo n.º 11
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">The price value</param>
 ///<param name="mealStatus">This gives information about a student's meal status.</param>
 ///<param name="mealType">This gives information about a meal type</param>
 ///<param name="gradeLevels">Refer to section 5.1.12 GradeLevels.</param>
 ///
 public Price( decimal? value, MealStatus mealStatus, MealTypes mealType, GradeLevels gradeLevels )
     : base(FoodDTD.PRICE)
 {
     this.Value = value;
     this.MealStatus = mealStatus;
     this.SetMealType( mealType );
     this.GradeLevels = gradeLevels;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="yearCreated">This represents the year that this specific learning standard was created.  This is important to indicate as standards are updated to reflect the appropriate year it was created. This would be assigned and unique to the standard setting body.</param>
 ///<param name="subjectArea">This represents the subject or content area this learning standard addresses. This would be assigned and unique to the standard setting body.\</param>
 ///<param name="standardNumber">This is the specific number of the standard.  For example, if the subject is mathematics and this standard is Patterns, Functions and Algebra, this would be StandardNumber 1. This would be assigned and unique to the standard setting body.</param>
 ///<param name="gradeLevels">This represents the grade level(s) this specific learning standard will address. This may be addressed in different ways.  Some states have a grade level that covers several grades and others have just one grade. This would be assigned and unique to the standard setting body.</param>
 ///<param name="organization">Name of organization represented by the document, i.e., "National Council of Teachers of Mathematics (NCTM)," "Washington," "Seattle School District." This is the name of the organization that has this AlternateIdentificationCode. This should be a text field.</param>
 ///
 public StandardIdentifier( int? yearCreated, SubjectArea subjectArea, string standardNumber, GradeLevels gradeLevels, string organization )
     : base(InstrDTD.STANDARDIDENTIFIER)
 {
     this.YearCreated = yearCreated;
     this.SubjectArea = subjectArea;
     this.StandardNumber = standardNumber;
     this.GradeLevels = gradeLevels;
     this.Organization = organization;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">GUID that identifies this menu plan</param>
 ///<param name="schoolInfoRefId">GUID that identifies the school for this menu plan</param>
 ///<param name="gradeLevels">A GradeLevels</param>
 ///<param name="menuPlanDate">Date of menu plan</param>
 ///<param name="program">A Program</param>
 ///<param name="projectedParticipation">Feeding figure projected</param>
 ///
 public FoodserviceMenuPlan(string refId, string schoolInfoRefId, GradeLevels gradeLevels, DateTime?menuPlanDate, Program program, string projectedParticipation) : base(Adk.SifVersion, FoodDTD.FOODSERVICEMENUPLAN)
 {
     this.RefId                  = refId;
     this.SchoolInfoRefId        = schoolInfoRefId;
     this.GradeLevels            = gradeLevels;
     this.MenuPlanDate           = menuPlanDate;
     this.Program                = program;
     this.ProjectedParticipation = projectedParticipation;
 }
 public MergedAccessibilityFamily(
     ImmutableArray <string> subjects,
     GradeLevels grades,
     ImmutableArray <AccessibilityResource> resources)
 {
     Subjects  = subjects;
     Grades    = grades;
     Resources = resources;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">GUID assigned to each statement at each level within the document hierarchy</param>
 ///<param name="language">A Language</param>
 ///<param name="standardHierarchyLevel">Integer assigned to each hierarchical level within standards tree. The top level is "1".</param>
 ///<param name="gradeLevels">For a description of this element, see 5.1.12 GradeLevels.</param>
 ///<param name="learningStandardDocumentRefId">The RefId of the item's parent LearningStandardDocument.</param>
 ///
 public LearningStandardItem( string refId, LanguageCode language, StandardHierarchyLevel standardHierarchyLevel, GradeLevels gradeLevels, string learningStandardDocumentRefId )
     : base(Adk.SifVersion, InstrDTD.LEARNINGSTANDARDITEM)
 {
     this.RefId = refId;
     this.SetLanguage( language );
     this.StandardHierarchyLevel = standardHierarchyLevel;
     this.GradeLevels = gradeLevels;
     this.LearningStandardDocumentRefId = learningStandardDocumentRefId;
 }
Exemplo n.º 16
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">GUID that identifies this menu plan</param>
 ///<param name="schoolInfoRefId">GUID that identifies the school for this menu plan</param>
 ///<param name="gradeLevels">A GradeLevels</param>
 ///<param name="menuPlanDate">Date of menu plan</param>
 ///<param name="program">A Program</param>
 ///<param name="projectedParticipation">Feeding figure projected</param>
 ///
 public FoodserviceMenuPlan( string refId, string schoolInfoRefId, GradeLevels gradeLevels, DateTime? menuPlanDate, Program program, string projectedParticipation )
     : base(Adk.SifVersion, FoodDTD.FOODSERVICEMENUPLAN)
 {
     this.RefId = refId;
     this.SchoolInfoRefId = schoolInfoRefId;
     this.GradeLevels = gradeLevels;
     this.MenuPlanDate = menuPlanDate;
     this.Program = program;
     this.ProjectedParticipation = projectedParticipation;
 }
Exemplo n.º 17
0
        public static GradeLevels GradeAbove(this GradeLevels grade)
        {
            int raw = (int)grade;

            if (grade.IsSingleGrade() && raw < (int)GradeLevels.Grade12)
            {
                return((GradeLevels)(raw << 1));
            }

            return(GradeLevels.NA);
        }
Exemplo n.º 18
0
        public static GradeLevels ToGradeLevels(this IEnumerable <string> grades)
        {
            GradeLevels gradeLevels = GradeLevels.NA;

            foreach (string grade in grades)
            {
                gradeLevels |= FromString(grade);
            }

            return(gradeLevels);
        }
Exemplo n.º 19
0
 public static SampleItem Create(
     int bankKey       = -1,
     int itemKey       = -1,
     string itemType   = "",
     GradeLevels grade = GradeLevels.NA,
     Subject subject   = null,
     Claim claim       = null,
     ImmutableArray <Rubric> rubrics = new ImmutableArray <Rubric>(),
     InteractionType interactionType = null,
     ImmutableArray <AccessibilityResourceGroup> accessibilityResourceGroups = new ImmutableArray <AccessibilityResourceGroup>(),
     string targetAssessmentType     = "",
     string sufficentEvidenceOfClaim = "",
     int?associatedStimulus          = -1,
     bool aslSupported                           = false,
     bool allowCalculator                        = false,
     string depthOfKnowledge                     = "",
     bool isPerformanceItem                      = false,
     CoreStandards coreStandards                 = null,
     FieldTestUse fieldTestUse                   = null,
     string interactionTypeSubCat                = "",
     ImmutableArray <string> brailleItemCodes    = new ImmutableArray <string>(),
     ImmutableArray <string> braillePassageCodes = new ImmutableArray <string>(),
     bool brailleOnlyItem                        = false,
     int?copiedFromItem                          = null)
 {
     return(new SampleItem(
                bankKey,
                itemKey,
                itemType,
                grade,
                subject,
                claim,
                rubrics,
                interactionType,
                accessibilityResourceGroups,
                targetAssessmentType,
                sufficentEvidenceOfClaim,
                associatedStimulus,
                aslSupported,
                allowCalculator,
                depthOfKnowledge,
                isPerformanceItem,
                coreStandards,
                fieldTestUse,
                interactionTypeSubCat,
                brailleItemCodes,
                braillePassageCodes,
                brailleOnlyItem,
                copiedFromItem
                ));
 }
Exemplo n.º 20
0
 public SampleItem(
     int bankKey,
     int itemKey,
     string itemType,
     GradeLevels grade,
     Subject subject,
     Claim claim,
     ImmutableArray <Rubric> rubrics,
     InteractionType interactionType,
     ImmutableArray <AccessibilityResourceGroup> accessibilityResourceGroups,
     string targetAssessmentType,
     string sufficentEvidenceOfClaim,
     int?associatedStimulus,
     bool aslSupported,
     bool allowCalculator,
     string depthOfKnowledge,
     bool isPerformanceItem,
     CoreStandards coreStandards,
     FieldTestUse fieldTestUse,
     string interactionTypeSubCat,
     ImmutableArray <string> brailleItemCodes,
     ImmutableArray <string> braillePassageCodes,
     bool brailleOnlyItem,
     int?copiedFromitem
     )
 {
     BankKey                     = bankKey;
     ItemKey                     = itemKey;
     ItemType                    = itemType;
     Grade                       = grade;
     Subject                     = subject;
     Claim                       = claim;
     Rubrics                     = rubrics;
     InteractionType             = interactionType;
     AccessibilityResourceGroups = accessibilityResourceGroups;
     TargetAssessmentType        = targetAssessmentType;
     SufficentEvidenceOfClaim    = sufficentEvidenceOfClaim;
     AssociatedStimulus          = associatedStimulus;
     AslSupported                = aslSupported;
     AllowCalculator             = allowCalculator;
     DepthOfKnowledge            = depthOfKnowledge;
     IsPerformanceItem           = isPerformanceItem;
     CoreStandards               = coreStandards;
     FieldTestUse                = fieldTestUse;
     InteractionTypeSubCat       = interactionTypeSubCat;
     BrailleItemCodes            = brailleItemCodes;
     BraillePassageCodes         = braillePassageCodes;
     CopiedFromItem              = copiedFromitem;
     BrailleOnlyItem             = brailleOnlyItem;
 }
Exemplo n.º 21
0
 public ItemsSearchParams(
     string itemId,
     GradeLevels grades,
     IList <string> subjects,
     string[] interactionTypes,
     string[] claimIds,
     bool performanceOnly)
 {
     ItemId           = itemId;
     Grades           = grades;
     Subjects         = subjects;
     InteractionTypes = interactionTypes;
     ClaimIds         = claimIds;
     PerformanceOnly  = performanceOnly;
 }
Exemplo n.º 22
0
        /// <summary>
        /// Gets up to 3 items same grade, grade above, and grade below. All items
        /// </summary>
        /// <param name="grade"></param>
        /// <param name="subject"></param>
        /// <param name="claim"></param>
        public MoreLikeThisViewModel GetMoreLikeThis(SampleItem sampleItem)
        {
            var subjectCode = sampleItem.Subject.Code;
            var claimCode   = sampleItem.Claim?.Code;
            var grade       = sampleItem.Grade;
            var itemKey     = sampleItem.ItemKey;
            var bankKey     = sampleItem.BankKey;

            var matchingSubjectClaim = context.ItemCards.Where(i => i.SubjectCode == subjectCode && i.ClaimCode == claimCode);
            int numExpected          = context.AppSettings.SettingsConfig.NumMoreLikeThisItems;

            var comparer = new MoreLikeThisComparer(subjectCode, claimCode);

            bool        isHighSchool = GradeLevels.High.Contains(grade);
            GradeLevels gradeBelow   = isHighSchool ? GradeLevels.Grade8 : grade.GradeBelow();
            GradeLevels gradeAbove   = grade.GradeAbove();

            IEnumerable <ItemCardViewModel> cardsGradeAbove = null;

            // Only display above if not a high school grade
            if (!isHighSchool)
            {
                // take grade 11 if gradeabove is high school (only high school items are grade 11)
                gradeAbove      = GradeLevels.High.Contains(gradeAbove) ? GradeLevels.Grade11 : gradeAbove;
                cardsGradeAbove = context.ItemCards
                                  .Where(i => i.Grade == gradeAbove)
                                  .OrderBy(i => i, comparer)
                                  .Take(numExpected);
            }

            var cardsSameGrade = context.ItemCards
                                 .Where(i => i.Grade == grade && i.ItemKey != itemKey)
                                 .OrderBy(i => i, comparer)
                                 .Take(numExpected);

            var cardsGradeBelow = context.ItemCards
                                  .Where(i => i.Grade == gradeBelow)
                                  .OrderBy(i => i, comparer)
                                  .Take(numExpected);

            var moreLikeThisVM = new MoreLikeThisViewModel(
                ToColumn(cardsGradeBelow, gradeBelow),
                ToColumn(cardsSameGrade, grade),
                ToColumn(cardsGradeAbove, gradeAbove)
                );

            return(moreLikeThisVM);
        }
        private bool validateGradeRestrictions()
        {
            GradeLevels min = gradeRestrict.MinGrade;
            GradeLevels max = gradeRestrict.MaxGrade;

            if (gradeHasValue(min) && gradeHasValue(max))
            {
                if (min > max)
                {
                    MessageBox.Show($"The Minimum [{min}] is greater than the Maximum [{max}] Grade-Level restriction. Please correct.",
                                    "Invalid Grade-Level Restrictions", MessageBoxButton.OK, MessageBoxImage.Warning);
                    gradeRestrict.Focus();
                    return(false);
                }
            }
            return(true);
        }
Exemplo n.º 24
0
        public static string ToDisplayString(this GradeLevels grades)
        {
            var flagString = FlagToString(grades);

            if (flagString != string.Empty)
            {
                return(flagString);
            }

            var parts = new List <string>();

            foreach (var grade in singleGrades)
            {
                if (grades.Contains(grade))
                {
                    parts.Add(FlagToString(grade));
                }
            }

            return(string.Join(", ", parts));
        }
Exemplo n.º 25
0
 ///<summary>Adds the value of the <c>&lt;Price&gt;</c> element.</summary>
 /// <param name="Value">The price value</param>
 /// <param name="MealStatus">This gives information about a student's meal status.</param>
 /// <param name="MealType">This gives information about a meal type</param>
 /// <param name="GradeLevels">Refer to section 5.1.12 GradeLevels.</param>
 ///<remarks>
 /// <para>This form of <c>setPrice</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddPrice</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddPrice(decimal?Value, MealStatus MealStatus, MealTypes MealType, GradeLevels GradeLevels)
 {
     AddChild(FoodDTD.PRICES_PRICE, new Price(Value, MealStatus, MealType, GradeLevels));
 }
Exemplo n.º 26
0
 public static GradeLevels GradeBelow(this GradeLevels grade)
 {
     return(grade.IsSingleGrade()
         ? (GradeLevels)((int)grade >> 1)
         : GradeLevels.NA);
 }
Exemplo n.º 27
0
 internal static bool CanCheckOut(this IHasRestrictions volume, int?age = null, GradeLevels grade = GradeLevels.NotSet)
 {
     if (volume.MinAge.HasValue && (age ?? 100) < volume.MinAge.Value)
     {
         return(false);
     }
     if (volume.MaxAge.HasValue && (age ?? 0) > volume.MaxAge.Value)
     {
         return(false);
     }
     if (volume.MinGrade != GradeLevels.NotSet && grade != GradeLevels.NotSet && volume.MinGrade > grade)
     {
         return(false);
     }
     if (volume.MaxGrade != GradeLevels.NotSet && grade != GradeLevels.NotSet && volume.MaxGrade < grade)
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 28
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="schoolInfoRefId">References SchoolInfo object to determine school in which this assignment pertains.</param>
 ///<param name="gradeLevels">A GradeLevels</param>
 ///<param name="jobFunction">A JobFunction</param>
 ///
 public EmplAssignment(string schoolInfoRefId, GradeLevels gradeLevels, JobFunction jobFunction) : base(ProfdevDTD.EMPLASSIGNMENT)
 {
     this.SchoolInfoRefId = schoolInfoRefId;
     this.GradeLevels     = gradeLevels;
     this.JobFunction     = jobFunction;
 }
 private bool gradeHasValue(GradeLevels v) => v > GradeLevels.NotSet;
Exemplo n.º 30
0
        private MoreLikeThisColumn ToColumn(IEnumerable <ItemCardViewModel> itemCards, GradeLevels grade)
        {
            if (itemCards == null)
            {
                return(null);
            }

            string label  = grade.ToDisplayString();
            var    column = new MoreLikeThisColumn(
                label: label, itemCards: itemCards.ToImmutableArray());

            return(column);
        }
Exemplo n.º 31
0
 ///<summary>Adds the value of the <c>&lt;Assignment&gt;</c> element.</summary>
 /// <param name="SchoolInfoRefId">References SchoolInfo object to determine school in which this assignment pertains.</param>
 /// <param name="GradeLevels">A GradeLevels</param>
 /// <param name="JobFunction">A JobFunction</param>
 ///<remarks>
 /// <para>This form of <c>setAssignment</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddAssignment</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddAssignment(string SchoolInfoRefId, GradeLevels GradeLevels, JobFunction JobFunction)
 {
     AddChild(ProfdevDTD.EMPLOYEEASSIGNMENTS_ASSIGNMENT, new EmplAssignment(SchoolInfoRefId, GradeLevels, JobFunction));
 }
Exemplo n.º 32
0
 ///<summary>Sets the value of the <c>&lt;StandardIdentifier&gt;</c> element.</summary>
 /// <param name="YearCreated">This represents the year that this specific learning standard was created.  This is important to indicate as standards are updated to reflect the appropriate year it was created. This would be assigned and unique to the standard setting body.</param>
 /// <param name="SubjectArea">This represents the subject or content area this learning standard addresses. This would be assigned and unique to the standard setting body.\</param>
 /// <param name="StandardNumber">This is the specific number of the standard.  For example, if the subject is mathematics and this standard is Patterns, Functions and Algebra, this would be StandardNumber 1. This would be assigned and unique to the standard setting body.</param>
 /// <param name="GradeLevels">This represents the grade level(s) this specific learning standard will address. This may be addressed in different ways.  Some states have a grade level that covers several grades and others have just one grade. This would be assigned and unique to the standard setting body.</param>
 /// <param name="Organization">Name of organization represented by the document, i.e., "National Council of Teachers of Mathematics (NCTM)," "Washington," "Seattle School District." This is the name of the organization that has this AlternateIdentificationCode. This should be a text field.</param>
 ///<remarks>
 /// <para>This form of <c>setStandardIdentifier</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>StandardIdentifier</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.2</para>
 /// </remarks>
 public void SetStandardIdentifier( int? YearCreated, SubjectArea SubjectArea, string StandardNumber, GradeLevels GradeLevels, string Organization )
 {
     RemoveChild( InstrDTD.LEARNINGSTANDARDITEM_STANDARDIDENTIFIER);
     AddChild( InstrDTD.LEARNINGSTANDARDITEM_STANDARDIDENTIFIER, new StandardIdentifier( YearCreated, SubjectArea, StandardNumber, GradeLevels, Organization ) );
 }
Exemplo n.º 33
0
 // getter, setter
 public void SetGradeLevel(GradeLevels _gradeLevel)
 {
     GradeLevel = _gradeLevel;
 }
Exemplo n.º 34
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="yearCreated">This represents the year that this specific learning standard was created.  This is important to indicate as standards are updated to reflect the appropriate year it was created. This would be assigned and unique to the standard setting body.</param>
 ///<param name="subjectArea">This represents the subject or content area this learning standard addresses. This would be assigned and unique to the standard setting body.\</param>
 ///<param name="standardNumber">This is the specific number of the standard.  For example, if the subject is mathematics and this standard is Patterns, Functions and Algebra, this would be StandardNumber 1. This would be assigned and unique to the standard setting body.</param>
 ///<param name="gradeLevels">This represents the grade level(s) this specific learning standard will address. This may be addressed in different ways.  Some states have a grade level that covers several grades and others have just one grade. This would be assigned and unique to the standard setting body.</param>
 ///<param name="organization">Name of organization represented by the document, i.e., "National Council of Teachers of Mathematics (NCTM)," "Washington," "Seattle School District." This is the name of the organization that has this AlternateIdentificationCode. This should be a text field.</param>
 ///
 public StandardIdentifier(int?yearCreated, SubjectArea subjectArea, string standardNumber, GradeLevels gradeLevels, string organization) : base(InstrDTD.STANDARDIDENTIFIER)
 {
     this.YearCreated    = yearCreated;
     this.SubjectArea    = subjectArea;
     this.StandardNumber = standardNumber;
     this.GradeLevels    = gradeLevels;
     this.Organization   = organization;
 }
Exemplo n.º 35
0
 ///<summary>Sets the value of the <c>&lt;StandardIdentifier&gt;</c> element.</summary>
 /// <param name="YearCreated">This represents the year that this specific learning standard was created.  This is important to indicate as standards are updated to reflect the appropriate year it was created. This would be assigned and unique to the standard setting body.</param>
 /// <param name="SubjectArea">This represents the subject or content area this learning standard addresses. This would be assigned and unique to the standard setting body.\</param>
 /// <param name="StandardNumber">This is the specific number of the standard.  For example, if the subject is mathematics and this standard is Patterns, Functions and Algebra, this would be StandardNumber 1. This would be assigned and unique to the standard setting body.</param>
 /// <param name="GradeLevels">This represents the grade level(s) this specific learning standard will address. This may be addressed in different ways.  Some states have a grade level that covers several grades and others have just one grade. This would be assigned and unique to the standard setting body.</param>
 /// <param name="Organization">Name of organization represented by the document, i.e., "National Council of Teachers of Mathematics (NCTM)," "Washington," "Seattle School District." This is the name of the organization that has this AlternateIdentificationCode. This should be a text field.</param>
 ///<remarks>
 /// <para>This form of <c>setStandardIdentifier</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>StandardIdentifier</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.2</para>
 /// </remarks>
 public void SetStandardIdentifier(int?YearCreated, SubjectArea SubjectArea, string StandardNumber, GradeLevels GradeLevels, string Organization)
 {
     RemoveChild(InstrDTD.LEARNINGSTANDARDITEM_STANDARDIDENTIFIER);
     AddChild(InstrDTD.LEARNINGSTANDARDITEM_STANDARDIDENTIFIER, new StandardIdentifier(YearCreated, SubjectArea, StandardNumber, GradeLevels, Organization));
 }
Exemplo n.º 36
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">GUID assigned to each statement at each level within the document hierarchy</param>
 ///<param name="language">A Language</param>
 ///<param name="standardHierarchyLevel">Integer assigned to each hierarchical level within standards tree. The top level is "1".</param>
 ///<param name="gradeLevels">For a description of this element, see 5.1.12 GradeLevels.</param>
 ///<param name="learningStandardDocumentRefId">The RefId of the item's parent LearningStandardDocument.</param>
 ///
 public LearningStandardItem(string refId, LanguageCode language, StandardHierarchyLevel standardHierarchyLevel, GradeLevels gradeLevels, string learningStandardDocumentRefId) : base(Adk.SifVersion, InstrDTD.LEARNINGSTANDARDITEM)
 {
     this.RefId = refId;
     this.SetLanguage(language);
     this.StandardHierarchyLevel        = standardHierarchyLevel;
     this.GradeLevels                   = gradeLevels;
     this.LearningStandardDocumentRefId = learningStandardDocumentRefId;
 }