Ejemplo n.º 1
0
 public static void BindFeesPeriod(DropDownList ddlFeesPeriod)
 {
     try
     {
         DayCareBAL.FeesPeriodService     proxyClassRoom = new DayCareBAL.FeesPeriodService();
         DayCarePL.FeesPeriodProperties[] FeesPeriod     = proxyClassRoom.LoadFeesPeriod();
         if (FeesPeriod != null && FeesPeriod.Count() > 0)
         {
             ddlFeesPeriod.DataSource     = FeesPeriod.ToList().FindAll(c => c.Active.Equals(true));
             ddlFeesPeriod.DataTextField  = "Name";
             ddlFeesPeriod.DataValueField = "Id";
             ddlFeesPeriod.DataBind();
             ddlFeesPeriod.Items.Insert(0, new ListItem("--Select--", DayCarePL.Common.GUID_DEFAULT));
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 protected void rgFeesPeriod_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     DayCareBAL.FeesPeriodService proxyLoad = new DayCareBAL.FeesPeriodService();
     rgFeesPeriod.DataSource = proxyLoad.LoadFeesPeriod();
 }