Exemple #1
0
        private void FillFacultyCourseMoLrnPatternName(string Uni_ID, string Inst_ID, string Faculty_ID)
        {
            ddlCrDesc.Items.Clear();
            oDT    = new System.Data.DataTable();
            Common = new clsCommon();
            try
            {
                if (hidInstID.Value != "")
                {
                    oDT = oInstituteRepository.ListFacultyWiseConfirmedCourseMoLrnPattern(Uni_ID, Inst_ID, Faculty_ID);
                    Common.fillDropDown(ddlCrDesc, oDT, string.Empty, "Text", "value", "--- Select ---");
                }
                else
                {
                    oDT = crRepository.ListFacultyWiseConfirmedCourseMoLrnPattern(Uni_ID, Faculty_ID);
                    Common.fillDropDown(ddlCrDesc, oDT, string.Empty, "Text", "Value", "--- Select ---");
                }

                if (Common != null)
                {
                    Common = null;
                }
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="Uni_ID"></param>
        /// <param name="Faculty_ID"></param>
        private void FillFacultyCourseMoLrnPatternName(string Uni_ID, string Inst_ID, string Faculty_ID)
        {
            DD_Course.Items.Clear();
            DT = new DataTable();

            if (Inst_ID != string.Empty)
            {
                DT = oInst.ListFacultyWiseConfirmedCourseMoLrnPattern(Uni_ID, Inst_ID, Faculty_ID);
            }
            else
            {
                DT = oCr.ListFacultyWiseConfirmedCourseMoLrnPattern(Uni_ID, Faculty_ID);
            }

            oCommon = new clsCommon();
            oCommon.fillDropDown(DD_Course, DT, string.Empty, "Text", "Value", "---- Select ----");

            if (oCommon != null)
            {
                oCommon = null;
            }
        }