Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ProgramClassId = Convert.ToInt32(Request["programClassId"]);

            if (!IsPostBack)
            {
            }

            int?programCourseLevelId = null;
            int?programCourseId      = null;
            int programId            = 0;

            var cProgramClass = new CProgramClass();
            var programClass  = cProgramClass.Get(ProgramClassId);

            if (programClass != null)
            {
                programCourseLevelId = programClass.ProgramCourseLevelId;
                programCourseId      = programClass.ProgramCourseId;
                programId            = programClass.ProgramId;
            }

            var cGradeSchema = new CGradeSchema();
            var gradeSchema  = cGradeSchema.GetGradeSchema(CurrentSiteLocationId, programId, programCourseId, programCourseLevelId, ProgramClassId);

            if (gradeSchema != null)
            {
                RadTextBoxGrade.Text = gradeSchema.Name;
                GradeSchemaId        = gradeSchema.GradeSchemaId;
            }

            // ProgramClass Grid
            LinqDataSourceClassStudentList.WhereParameters.Clear();
            LinqDataSourceClassStudentList.WhereParameters.Add("ProgramClassId", DbType.Int32, ProgramClassId.ToString());
            LinqDataSourceClassStudentList.Where = "ProgramClassId == @ProgramClassId";
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ProgramClassId  = Convert.ToInt32(Request["programClassId"]);
            ProgramCourseId = Request["programCourseId"] == string.Empty ? (int?)null : Convert.ToInt32(Request["programCourseId"]);

            if (!IsPostBack)
            {
            }

            LinqDataSourceClassStudentList.WhereParameters.Clear();
            LinqDataSourceClassStudentList.WhereParameters.Add("ProgramClassId", DbType.Int32, ProgramClassId.ToString());
            LinqDataSourceClassStudentList.Where = "ProgramClassId == @ProgramClassId";

            LinqDataSourceProgramStudentList.WhereParameters.Clear();
            LinqDataSourceProgramStudentList.WhereParameters.Add("ProgramClassId", DbType.Int32, ProgramClassId.ToString());
            LinqDataSourceProgramStudentList.Where = "ProgramClassId == @ProgramClassId";
        }