|
||
/// <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">
/*
* SandboxSection.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.SandboxSection");
$namespace("astra.entities",
{
/**
Ext.data.Record field definition for storing SandboxSection objects in Ext.data.Store.
*/
SandboxSection :
{
type : "SandboxSection",
fields:
{
Id: { name:'Id', type:'string' },
TermId: { name:'TermId', type:'string' },
PartOfTermId: { name:'PartOfTermId', type:'string' },
CampusId: { name:'CampusId', type:'string' },
CourseDeliveryMethodId: { name:'CourseDeliveryMethodId', type:'string' },
SectionTitle: { name:'SectionTitle', type:'string' },
SectionCode: { name:'SectionCode', type:'string' },
DoNotOptimize: { name:'DoNotOptimize', type:'boolean' },
DoNotOptimizeInstructor: { name:'DoNotOptimizeInstructor', type:'boolean' },
DoNotOptimizeTime: { name:'DoNotOptimizeTime', type:'boolean' },
MinEnrollment: { name:'MinEnrollment', type:'int' },
MaxEnrollment: { name:'MaxEnrollment', type:'int' },
IdealEnrollment: { name:'IdealEnrollment', type:'int' },
OriginalSectionId: { name:'OriginalSectionId', type:'string' },
OriginalModifiedDate: { name:'OriginalModifiedDate', type:'date' },
IsSandboxModified: { name:'IsSandboxModified', type:'boolean' },
SandboxCourseId: { name:'SandboxCourseId', type:'string' },
SandboxId: { name:'SandboxId', type:'string' },
AvailabilityTemplateId: { name:'AvailabilityTemplateId', type:'string' },
SectionStatusCode: { name:'SectionStatusCode', type:'int' },
WaitListSeats: { name:'WaitListSeats', type:'int' },
WaitListWrongTime: { name:'WaitListWrongTime', type:'int' },
WaitListConflict: { name:'WaitListConflict', type:'int' },
SandboxLinkedSectionId: { name:'SandboxLinkedSectionId', type:'string' },
SameMtgSameRoom: { name:'SameMtgSameRoom', type:'boolean' },
SameMtgPatternSameInstructor: { name:'SameMtgPatternSameInstructor', type:'boolean' },
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' }
},
getFields : function ()
{
var f = this.fields;
return [
f.Id,
f.TermId,
f.PartOfTermId,
f.CampusId,
f.CourseDeliveryMethodId,
f.SectionTitle,
f.SectionCode,
f.DoNotOptimize,
f.DoNotOptimizeInstructor,
f.DoNotOptimizeTime,
f.MinEnrollment,
f.MaxEnrollment,
f.IdealEnrollment,
f.OriginalSectionId,
f.OriginalModifiedDate,
f.IsSandboxModified,
f.SandboxCourseId,
f.SandboxId,
f.AvailabilityTemplateId,
f.SectionStatusCode,
f.WaitListSeats,
f.WaitListWrongTime,
f.WaitListConflict,
f.SandboxLinkedSectionId,
f.SameMtgSameRoom,
f.SameMtgPatternSameInstructor,
f.CreatedDate,
f.CreatedBy,
f.ModifiedDate,
f.ModifiedBy,
f.RowVersion
];
},
/**
Variable declaration for a single SandboxSection object.
*/
data :
{
Id: null, // KEY
TermId: null,
PartOfTermId: null,
CampusId: null,
CourseDeliveryMethodId: null,
SectionTitle: null,
SectionCode: null,
DoNotOptimize: false,
DoNotOptimizeInstructor: false,
DoNotOptimizeTime: false,
MinEnrollment: 0,
MaxEnrollment: 0,
IdealEnrollment: 0,
OriginalSectionId: null,
OriginalModifiedDate: null,
IsSandboxModified: false,
SandboxCourseId: null,
SandboxId: null,
AvailabilityTemplateId: null,
SectionStatusCode: 631,
WaitListSeats: 0,
WaitListWrongTime: 0,
WaitListConflict: 0,
SandboxLinkedSectionId: null,
SameMtgSameRoom: false,
SameMtgPatternSameInstructor: true,
CreatedDate: null,
CreatedBy: null,
ModifiedDate: null,
ModifiedBy: null,
RowVersion: 0
},
/**
Associations
*/
join :
{
// one-to-one association (set)
Campus : { name: "Campus", left: true, type: "Campus", field: "CampusId", nullable: false, recipName: "SandboxSections" }
,CourseDeliveryMethod : { name: "CourseDeliveryMethod", left: true, type: "CourseDeliveryMethod", field: "CourseDeliveryMethodId", nullable: false, recipName: "SandboxSections" }
,SandboxCourse : { name: "SandboxCourse", left: true, type: "SandboxCourse", field: "SandboxCourseId", nullable: false, recipName: "SandboxSections" }
,SandboxLinkedSection : { name: "SandboxLinkedSection", left: true, type: "SandboxLinkedSection", field: "SandboxLinkedSectionId", nullable: true, recipName: "SandboxSections" }
,OriginalSection : { name: "OriginalSection", left: true, type: "Section", field: "OriginalSectionId", nullable: true, recipName: "SandboxSectionsByOriginalSectionId" }
,Sandbox : { name: "Sandbox", left: true, type: "Sandbox", field: "SandboxId", nullable: false, recipName: "SandboxSections" }
,Term : { name: "Term", left: true, type: "Term", owner: "Term", field: "TermId", nullable: false, recipName: "SandboxSections" }
,PartOfTerm : { name: "PartOfTerm", left: true, type: "PartOfTerm", field: "PartOfTermId", nullable: true, recipName: "SandboxSections" }
,AvailabilityTemplate : { name: "AvailabilityTemplate", left: true, type: "AvailabilityTemplate", field: "AvailabilityTemplateId", nullable: true, recipName: "SandboxSections" }
// one-to-many association (edit)
,SandboxSectionMeetings : { name: "SandboxSectionMeetings", left: false, type: "SandboxSectionMeeting", owner: "SandboxSection", field: "SandboxSectionId", nullable: false, recipName: "SandboxSection" }
,SandboxSectionWaitLists : { name: "SandboxSectionWaitLists", left: false, type: "SandboxSectionWaitList", owner: "SandboxSection", field: "SandboxSectionId", nullable: false, recipName: "SandboxSection" }
}
}
}); // end astra namespace
astra.initFieldIndexes(astra.entities.SandboxSection);