Esempio n. 1
0
        private void FillPartTerm(string Uni_ID, string Inst_ID, string Fac_ID, string Cr_ID, string Molrn_ID, string Ptrn_ID, string Brn_ID, string CrPrDetails_ID)
        {
            ddlCrPrChDesc.Items.Clear();
            oDT    = new System.Data.DataTable();
            Common = new clsCommon();
            try
            {
                if (hidInstID.Value != "")
                {
                    oDT = oInstituteRepository.AssignCoursePartTerm(hidUniID.Value, hidInstID.Value, hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, Convert.ToString(ddlCrBrnDesc.SelectedValue), Convert.ToString(ddlCrPrDetailsDesc.SelectedValue));
                    Common.fillDropDown(ddlCrPrChDesc, oDT, string.Empty, "Text", "value", "--- Select ---");
                }
                else
                {
                    oDT = crRepository.ListCourseMoLrnPtrnBrnCrPrWiseLaunchedCrPrCh(long.Parse(hidUniID.Value), long.Parse(CrPrDetails_ID));
                    Common.fillDropDown(ddlCrPrChDesc, oDT, string.Empty, "Text", "Value", "--- Select ---");
                }


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

                if (oDT != null)
                {
                    oDT = null;
                }
            }
            catch (Exception Ex5)
            {
                throw new Exception(Ex5.Message);
            }
        }
        public HtmlSelect FetchCoursePartWiseCoursePartChildList(string UniID, string InstID, string FacID, string CrID, string MoLrnID, string PtrnID, string BrnID, string CrPrDetails_ID, string HtmlSelCrBrnID)
        {
            InstituteRepository oInstituteRepository = new InstituteRepository();
            DataTable           dt      = oInstituteRepository.AssignCoursePartTerm(UniID, InstID, FacID, CrID, MoLrnID, PtrnID, BrnID, CrPrDetails_ID);
            HtmlSelect          htmlSel = new HtmlSelect();

            htmlSel.ID = HtmlSelCrBrnID;
            htmlSel.Attributes.Add("class", "selectbox");


            // htmlSel.Attributes.Add("onchange", "FetchCourseMoLrnPtrnBrnWiseCoursePartList('tdCrPrDesc', hidUniID.value, hidFacID.value, hidCrID.value, hidMoLrnID.value, hidPtrnID.value, hidBrnID.value, 'ddlCrPrDesc'); ");//ClearDropDowns(5," + levelflag + ");");

            //htmlSel.Attributes.Add("onchange", "setValue('hidCrPrID',this.value);");
            htmlSel.Attributes.Add("onchange", "setCrPartTerm(this.value);");
            //hCrPart.Attributes.Add("onchange", "setCrPart(this.value);");
            htmlSel.DataSource     = dt;
            htmlSel.DataTextField  = "text";
            htmlSel.DataValueField = "value";
            htmlSel.Style.Add("width", "230px");
            htmlSel.DataBind();
            ListItem li = new ListItem("--- Select ---", "-1");

            htmlSel.Items.Insert(0, li);

            return(htmlSel);
        }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Uni_ID"></param>
 /// <param name="CrPrDetails_ID"></param>
 private void FillPartTerm(long Uni_ID, string Inst_ID, string Fac_ID, string Cr_ID, string Molrn_ID, string Ptrn_ID, string Brn_ID, long CrPrDetails_ID)
 {
     DD_Term.Items.Clear();
     DT = new DataTable();
     if (Inst_ID != string.Empty)
     {
         DT = oInst.AssignCoursePartTerm(Convert.ToString(Uni_ID), Inst_ID, Fac_ID, Cr_ID, Molrn_ID, Ptrn_ID, Brn_ID, Convert.ToString(CrPrDetails_ID));
     }
     else
     {
         DT = oCr.ListCourseMoLrnPtrnBrnCrPrWiseLaunchedCrPrCh(Uni_ID, CrPrDetails_ID);
     }
     oCommon = new clsCommon();
     oCommon.fillDropDown(DD_Term, DT, string.Empty, "Text", "Value", "---- Select ----");
     if (oCommon != null)
     {
         oCommon = null;
     }
 }