protected void FillCoboofStaff()
        {
            DayCareBAL.StaffAttendanceHistoryListService proxystaff = new DayCareBAL.StaffAttendanceHistoryListService();
            DayCarePL.StaffProperties[]      result = proxystaff.LoadStaffList(new Guid(Session["CurrentSchoolYearId"].ToString())).ToArray();
            List <DayCarePL.StaffProperties> data   = new List <DayCarePL.StaffProperties>();

            DayCarePL.StaffProperties Rec = new DayCarePL.StaffProperties();
            Rec.Id       = new Guid("00000000-0000-0000-0000-000000000000");
            Rec.FullName = "--Select All--";
            foreach (DayCarePL.StaffProperties d in result)
            {
                data.Add(d);
            }
            data.Insert(0, Rec);
            rcbStudentList.Items.Clear();
            rcbStudentList.DataSource    = data;
            rcbStudentList.DataTextField = "FullName";
            rcbStudentList.DataBind();
            rcbStudentList.EmptyMessage = "---Select---";
        }
Пример #2
0
 protected void rgStaffAttendanceList_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     DayCareBAL.StaffAttendanceHistoryListService proxyLoad = new DayCareBAL.StaffAttendanceHistoryListService();
     rgStaffAttendanceList.DataSource = proxyLoad.LoadStaffList(new Guid(Session["CurrentSchoolYearId"].ToString()));
 }