예제 #1
0
        private void FillCoursePart(string Uni_ID, string Inst_ID, string Fac_ID, string Cr_ID, string Molrn_ID, string Ptrn_ID, string Brn_ID)
        {
            ddlCrPrDetailsDesc.Items.Clear();
            oDT    = new System.Data.DataTable();
            Common = new clsCommon();
            try
            {
                if (hidInstID.Value != "")
                {
                    oDT = oInstituteRepository.AssignedConfirmedCourseParts(Uni_ID, Inst_ID, Fac_ID, Cr_ID, Molrn_ID, Ptrn_ID, Brn_ID);
                    Common.fillDropDown(ddlCrPrDetailsDesc, oDT, string.Empty, "Text", "Value", "--- Select ---");
                }
                else
                {
                    oDT = crRepository.ListCourseModeOfLearningPatternBrnWiseLaunchedCourseParts(long.Parse(Uni_ID), long.Parse(Fac_ID), long.Parse(Cr_ID), long.Parse(Molrn_ID), long.Parse(Ptrn_ID), long.Parse(Brn_ID));
                    Common.fillDropDown(ddlCrPrDetailsDesc, oDT, string.Empty, "Text", "Value", "--- Select ---");
                }

                if (Common != null)
                {
                    Common = null;
                }
            }
            catch (Exception e) { }
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Uni_ID"></param>
 /// <param name="Fac_ID"></param>
 /// <param name="Cr_ID"></param>
 /// <param name="Molrn_ID"></param>
 /// <param name="Ptrn_ID"></param>
 /// <param name="Brn_ID"></param>
 private void FillCoursePart(long Uni_ID, string Inst_ID, long Fac_ID, long Cr_ID, long Molrn_ID, long Ptrn_ID, long Brn_ID)
 {
     DD_CoursePart.Items.Clear();
     DT = new DataTable();
     if (Inst_ID != string.Empty)
     {
         DT = oInst.AssignedConfirmedCourseParts(Convert.ToString(Uni_ID), Inst_ID, Convert.ToString(Fac_ID), Convert.ToString(Cr_ID), Convert.ToString(Molrn_ID), Convert.ToString(Ptrn_ID), Convert.ToString(Brn_ID));
     }
     else
     {
         DT = oCr.ListCourseModeOfLearningPatternBrnWiseLaunchedCourseParts(Uni_ID, Fac_ID, Cr_ID, Molrn_ID, Ptrn_ID, Brn_ID);
     }
     oCommon = new clsCommon();
     oCommon.fillDropDown(DD_CoursePart, DT, string.Empty, "Text", "Value", "---- Select ----");
     if (oCommon != null)
     {
         oCommon = null;
     }
 }