|
||
/// <reference path="~/javascript/extjs/ext-base.js">
/// <reference path="~/javascript/extjs/ext-all-debug.js">
/// <reference path="~/javascript/zjs/json2.js">
/// <reference path="~/javascript/zjs/all.js">
/*
* Term.js
* Copyright (C) 2006-2010, Ad Astra Information Systems, LLC.
* All Rights Reserved
*/
/*-------------------------------------------------------------------------------------------------------------
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// Template: BusinessJS.cst
-------------------------------------------------------------------------------------------------------------*/
$module("astra.entities.Term");
$namespace("astra.entities",
{
/**
Ext.data.Record field definition for storing Term objects in Ext.data.Store.
*/
Term :
{
type : "Term",
fields:
{
Id: { name:'Id', type:'string' },
Name: { name:'Name', type:'string' },
Description: { name:'Description', type:'string' },
Label: { name:'Label', type:'string' },
StartDate: { name:'StartDate', type:'date' },
EndDate: { name:'EndDate', type:'date' },
TermTypeId: { name:'TermTypeId', type:'string' },
TermGroupId: { name:'TermGroupId', type:'string' },
RoomPreferenceSetId: { name:'RoomPreferenceSetId', type:'string' },
TimePreferenceSetId: { name:'TimePreferenceSetId', type:'string' },
IsTermGroup: { name:'IsTermGroup', type:'boolean' },
IsActive: { name:'IsActive', type:'boolean' },
DefaultPartOfTermId: { name:'DefaultPartOfTermId', type:'string' },
InstitutionId: { name:'InstitutionId', type:'string' },
CreatedDate: { name:'CreatedDate', type:'date' },
CreatedBy: { name:'CreatedBy', type:'string' },
ModifiedDate: { name:'ModifiedDate', type:'date' },
ModifiedBy: { name:'ModifiedBy', type:'string' },
RowVersion: { name:'RowVersion', type:'int' },
SisKey: { name:'SisKey', type:'string' },
LastSisUpdateDate: { name:'LastSisUpdateDate', type:'date' },
LastImportedDate: { name:'LastImportedDate', type:'date' },
RequiresAttention: { name:'RequiresAttention', type:'boolean' },
RequiresAttentionReason: { name:'RequiresAttentionReason', type:'string' }
},
getFields : function ()
{
var f = this.fields;
return [
f.Id,
f.Name,
f.Description,
f.Label,
f.StartDate,
f.EndDate,
f.TermTypeId,
f.TermGroupId,
f.RoomPreferenceSetId,
f.TimePreferenceSetId,
f.IsTermGroup,
f.IsActive,
f.DefaultPartOfTermId,
f.InstitutionId,
f.CreatedDate,
f.CreatedBy,
f.ModifiedDate,
f.ModifiedBy,
f.RowVersion,
f.SisKey,
f.LastSisUpdateDate,
f.LastImportedDate,
f.RequiresAttention,
f.RequiresAttentionReason
];
},
/**
Variable declaration for a single Term object.
*/
data :
{
Id: null, // KEY
Name: null,
Description: null,
Label: null,
StartDate: null,
EndDate: null,
TermTypeId: null,
TermGroupId: null,
RoomPreferenceSetId: null,
TimePreferenceSetId: null,
IsTermGroup: false,
IsActive: true,
DefaultPartOfTermId: null,
InstitutionId: null,
CreatedDate: null,
CreatedBy: null,
ModifiedDate: null,
ModifiedBy: null,
RowVersion: 0,
SisKey: null,
LastSisUpdateDate: null,
LastImportedDate: null,
RequiresAttention: false,
RequiresAttentionReason: null
},
/**
Associations
*/
join :
{
// one-to-one association (set)
RoomPreferenceSet : { name: "RoomPreferenceSet", left: true, type: "PreferenceSet", field: "RoomPreferenceSetId", nullable: true, recipName: "TermsByRoomPreferenceSetId" }
,TermType : { name: "TermType", left: true, type: "TermType", field: "TermTypeId", nullable: false, recipName: "Terms" }
,TimePreferenceSet : { name: "TimePreferenceSet", left: true, type: "PreferenceSet", field: "TimePreferenceSetId", nullable: true, recipName: "TermsByTimePreferenceSetId" }
,TermGroup : { name: "TermGroup", left: true, type: "Term", field: "TermGroupId", nullable: true, recipName: "TermsByTermGroupId" }
// one-to-many association (edit)
,AnlySbxCrseByMPGsByLastLikeTermId : { name: "AnlySbxCrseByMPGsByLastLikeTermId", left: false, type: "AnlySbxCrseByMPG", field: "LastLikeTermId", nullable: true, recipName: "LastLikeTerm" }
,AnlySbxCrseByMPGsByLastTermId : { name: "AnlySbxCrseByMPGsByLastTermId", left: false, type: "AnlySbxCrseByMPG", field: "LastTermId", nullable: true, recipName: "LastTerm" }
,AnlySandboxCoursesByLastLikeTermId : { name: "AnlySandboxCoursesByLastLikeTermId", left: false, type: "AnlySandboxCourse", field: "LastLikeTermId", nullable: true, recipName: "LastLikeTerm" }
,AnlySandboxCoursesByLastTermId : { name: "AnlySandboxCoursesByLastTermId", left: false, type: "AnlySandboxCourse", field: "LastTermId", nullable: true, recipName: "LastTerm" }
,AnlysStudentSelectorsByAnalysisTermId : { name: "AnlysStudentSelectorsByAnalysisTermId", left: false, type: "AnlysStudentSelector", owner: "Term", field: "AnalysisTermId", nullable: true, recipName: "AnalysisTerm" }
,AnlysStudentSelectorsByPriorTermId : { name: "AnlysStudentSelectorsByPriorTermId", left: false, type: "AnlysStudentSelector", owner: "Term", field: "PriorTermId", nullable: true, recipName: "PriorTerm" }
,CatalogVersions : { name: "CatalogVersions", left: false, type: "CatalogVersion", field: "TermId", nullable: true, recipName: "Term" }
,Crosslists : { name: "Crosslists", left: false, type: "Crosslist", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,CoursesByLastTermId : { name: "CoursesByLastTermId", left: false, type: "Course", field: "LastTermId", nullable: true, recipName: "LastTerm" }
,CoursePartOfTerms : { name: "CoursePartOfTerms", left: false, type: "CoursePartOfTerm", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,ExamSessions : { name: "ExamSessions", left: false, type: "ExamSession", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,InstructorOptSettingsBySourceTermId : { name: "InstructorOptSettingsBySourceTermId", left: false, type: "InstructorOptSetting", field: "SourceTermId", nullable: true, recipName: "SourceTerm" }
,LinkedSections : { name: "LinkedSections", left: false, type: "LinkedSection", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,PartOfTerms : { name: "PartOfTerms", left: false, type: "PartOfTerm", field: "TermId", nullable: false, recipName: "Term" }
,PgmAnalysisSettingsByAnalysisTermId : { name: "PgmAnalysisSettingsByAnalysisTermId", left: false, type: "PgmAnalysisSetting", field: "AnalysisTermId", nullable: false, recipName: "AnalysisTerm" }
,PgmAnalysisSettingsByBaseLineTermId : { name: "PgmAnalysisSettingsByBaseLineTermId", left: false, type: "PgmAnalysisSetting", field: "BaseLineTermId", nullable: true, recipName: "BaseLineTerm" }
,PgmAnlysSettingTerms : { name: "PgmAnlysSettingTerms", left: false, type: "PgmAnlysSettingTerm", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,PgmAnlysBsLnCrsMPGs : { name: "PgmAnlysBsLnCrsMPGs", left: false, type: "PgmAnlysBsLnCrsMPG", field: "TermId", nullable: false, recipName: "Term" }
,PgmHstAnlysBsLnCourses : { name: "PgmHstAnlysBsLnCourses", left: false, type: "PgmHstAnlysBsLnCourse", field: "TermId", nullable: false, recipName: "Term" }
,PgmHstAnlysHstTrmSecs : { name: "PgmHstAnlysHstTrmSecs", left: false, type: "PgmHstAnlysHstTrmSec", field: "TermId", nullable: false, recipName: "Term" }
,PgmHstAnlysSections : { name: "PgmHstAnlysSections", left: false, type: "PgmHstAnlysSection", field: "TermId", nullable: false, recipName: "Term" }
,PgmStudentDegreesByEffectiveTermId : { name: "PgmStudentDegreesByEffectiveTermId", left: false, type: "PgmStudentDegree", field: "EffectiveTermId", nullable: true, recipName: "EffectiveTerm" }
,PgmStudHistoryCourses : { name: "PgmStudHistoryCourses", left: false, type: "PgmStudHistoryCourse", field: "TermId", nullable: false, recipName: "Term" }
,PgmStudentPlansByGoalCompletionTermId : { name: "PgmStudentPlansByGoalCompletionTermId", left: false, type: "PgmStudentPlan", field: "GoalCompletionTermId", nullable: true, recipName: "GoalCompletionTerm" }
,PgmStudentPlanTerms : { name: "PgmStudentPlanTerms", left: false, type: "PgmStudentPlanTerm", owner: "Term", field: "TermId", nullable: true, recipName: "Term" }
,PgmStudPlannedCourses : { name: "PgmStudPlannedCourses", left: false, type: "PgmStudPlannedCourse", field: "TermId", nullable: false, recipName: "Term" }
,PlannedCourseSettingsByStartTermId : { name: "PlannedCourseSettingsByStartTermId", left: false, type: "PlannedCourseSetting", owner: "Term", field: "StartTermId", nullable: true, recipName: "StartTerm" }
,SandboxSections : { name: "SandboxSections", left: false, type: "SandboxSection", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,SboxStudentPlanTerms : { name: "SboxStudentPlanTerms", left: false, type: "SboxStudentPlanTerm", owner: "Term", field: "TermId", nullable: true, recipName: "Term" }
,SandboxStudentAreas : { name: "SandboxStudentAreas", left: false, type: "SandboxStudentArea", field: "TermId", nullable: true, recipName: "Term" }
,SandboxStudentAttrTestsByEffectiveTermId : { name: "SandboxStudentAttrTestsByEffectiveTermId", left: false, type: "SandboxStudentAttrTest", field: "EffectiveTermId", nullable: true, recipName: "EffectiveTerm" }
,SandboxStudentCourses : { name: "SandboxStudentCourses", left: false, type: "SandboxStudentCourse", field: "TermId", nullable: false, recipName: "Term" }
,SandboxStudentDegreesByEffectiveTermId : { name: "SandboxStudentDegreesByEffectiveTermId", left: false, type: "SandboxStudentDegree", field: "EffectiveTermId", nullable: true, recipName: "EffectiveTerm" }
,SandboxStudentsByExpectedGraduationTermId : { name: "SandboxStudentsByExpectedGraduationTermId", left: false, type: "SandboxStudent", field: "ExpectedGraduationTermId", nullable: true, recipName: "ExpectedGraduationTerm" }
,SandboxStudentPlansByGoalCompletionTermId : { name: "SandboxStudentPlansByGoalCompletionTermId", left: false, type: "SandboxStudentPlan", field: "GoalCompletionTermId", nullable: true, recipName: "GoalCompletionTerm" }
,SectioningSettings : { name: "SectioningSettings", left: false, type: "SectioningSetting", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,Sections : { name: "Sections", left: false, type: "Section", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,SimRegSettingsBySourceTermId : { name: "SimRegSettingsBySourceTermId", left: false, type: "SimRegSetting", field: "SourceTermId", nullable: true, recipName: "SourceTerm" }
,SimStudSettingTermsByPriorTermId : { name: "SimStudSettingTermsByPriorTermId", left: false, type: "SimStudSettingTerm", owner: "Term", field: "PriorTermId", nullable: false, recipName: "PriorTerm" }
,SimStudSettingTerms : { name: "SimStudSettingTerms", left: false, type: "SimStudSettingTerm", owner: "Term", field: "TermId", nullable: false, recipName: "Term" }
,SnapshotsBySnapshotTermId : { name: "SnapshotsBySnapshotTermId", left: false, type: "Snapshot", field: "SnapshotTermId", nullable: false, recipName: "SnapshotTerm" }
,SpaceUtilAnalysis : { name: "SpaceUtilAnalysis", left: false, type: "SpaceUtilAnalysis", field: "TermId", nullable: true, recipName: "Term" }
,SimStudTermBreakDowns : { name: "SimStudTermBreakDowns", left: false, type: "SimStudTermBreakDown", field: "TermId", nullable: false, recipName: "Term" }
,StudentAreas : { name: "StudentAreas", left: false, type: "StudentArea", field: "TermId", nullable: true, recipName: "Term" }
,StudentAttrTestCodesByEffectiveTermId : { name: "StudentAttrTestCodesByEffectiveTermId", left: false, type: "StudentAttrTestCode", field: "EffectiveTermId", nullable: true, recipName: "EffectiveTerm" }
,StudentHistoryCrseSums : { name: "StudentHistoryCrseSums", left: false, type: "StudentHistoryCrseSum", field: "TermId", nullable: false, recipName: "Term" }
,StudentsByExpectedGraduationTermId : { name: "StudentsByExpectedGraduationTermId", left: false, type: "Student", field: "ExpectedGraduationTermId", nullable: true, recipName: "ExpectedGraduationTerm" }
,StudentTermCourseLoads : { name: "StudentTermCourseLoads", left: false, type: "StudentTermCourseLoad", owner: "Term", field: "TermId", nullable: true, recipName: "Term" }
,NotesByRecordId : { name: "NotesByRecordId", left: false, type: "Note", owner: "Term", field: "RecordId", nullable: false, recipName: "TermByRecordId", typeField: "NoteTypeId", typeValue: "07d4585a-6b29-492e-a9dc-deab729214b3" }
,SandboxPlannedCoursesByPlannedTermId : { name: "SandboxPlannedCoursesByPlannedTermId", left: false, type: "SandboxPlannedCourse", field: "PlannedTermId", nullable: true, recipName: "PlannedTerm" }
,TermsByTermGroupId : { name: "TermsByTermGroupId", left: false, type: "Term", field: "TermGroupId", nullable: true, recipName: "TermGroup" }
,TimetableRunCustoms : { name: "TimetableRunCustoms", left: false, type: "TimetableRunCustom", field: "TermId", nullable: false, recipName: "Term" }
// many-to-many association (add/remove)
,Campuses : { name: "Campuses", left: true, type: "Campus", matrix: "TermCampus", role: "TermId", recipName: "Terms", recipRole: "CampusId" }
,OptimizerSettings : { name: "OptimizerSettings", left: false, type: "OptimizerSetting", matrix: "OptimizerSettingTerms", role: "TermId", recipName: "Terms", recipRole: "OptimizerSettingId" }
,PlannedCourseSettings : { name: "PlannedCourseSettings", left: false, type: "PlannedCourseSetting", matrix: "PlannedCourseSttngTerm", role: "TermId", recipName: "Terms", recipRole: "PlannedCourseSettingId" }
,AnlysStudentSelectors : { name: "AnlysStudentSelectors", left: false, type: "AnlysStudentSelector", matrix: "RooAnlysStudSelTerm", role: "TermId", recipName: "Terms", recipRole: "AnlysStudentSelectorId" }
,Students : { name: "Students", left: false, type: "Student", matrix: "StudentTerm", role: "TermId", recipName: "Terms", recipRole: "StudentId" }
,TimetableSettings : { name: "TimetableSettings", left: false, type: "TimetableSetting", matrix: "TimetableSttngTerm", role: "TermId", recipName: "Terms", recipRole: "TimetableSettingId" }
}
}
}); // end astra namespace
astra.initFieldIndexes(astra.entities.Term);