void LoadData()
    {
        uxTable.ClientIDMode = ClientIDMode.Static;
        List <DEPARTMENT> list = AttendanceBLL.GetDepartments();

        uxOrg.DataSource = list;
        uxOrg.DataBind();

        List <int>    years     = Enumerable.Range(PersianDate.Now.Year, 3).ToList();
        List <object> yearslist = new List <object>();

        foreach (int i in years)
        {
            yearslist.Add(new { Value = i, Text = i });
        }

        uxYear.DataSource = yearslist;
        uxYear.DataBind();


        List <object> mlist = PersianDate.GetPersianMonths();

        uxMonth.DataSource = mlist;
        uxMonth.DataBind();

        List <Zone> zlist = AttendanceBLL.GetZones();

        uxZoneName.DataSource = zlist;
        uxZoneName.DataBind();
        //List<vAttendanceReport> EmployeeReport = AttendanceBLL.GetReportForAMonth();

        //ListsBLL.GenerateGeneralReportXL(EmployeeReport);

        //String output = "";
        //int counter = 1;
        //foreach (vAttendanceReport m in EmployeeReport)
        //{
        //    output = output + Temp.Replace("$Counter", counter.ToString()).Replace("$NameLocal", m.NAMELOCAL).Replace("$FatherNameLocal", m.FATHERNAMELOCAL).Replace("$Bast", m.Bast).Replace("$Qadam", m.Qadam).Replace("$UserID", m.USERID.ToString()).Replace("$Title", m.TITLE).Replace("$Department", m.Departments).Replace("$Present", m.Present.ToString()).Replace("$Absent", m.Absent.ToString()).Replace("$Leave", m.Leave.ToString());
        //    counter++;
        //}
        //uxTable.InnerHtml = output;
    }
    void loadValues()
    {
        List <Bast> blist = AttendanceBLL.GetAllBasts();

        uxBast.DataSource = blist;
        uxBast.DataBind();

        List <Qadam> qlist = AttendanceBLL.GetQadams();

        uxQadam.DataSource = qlist;
        uxQadam.DataBind();

        List <DEPARTMENT> dlist = AttendanceBLL.GetDepartments();

        uxDefaultDeptID.DataSource = dlist;
        uxDefaultDeptID.DataBind();

        List <Gender> glist = AttendanceBLL.GetGenders();

        uxGender.DataSource = glist;
        uxGender.DataBind();

        List <Status> slist = AttendanceBLL.GetStatuses();

        uxStatus.DataSource = slist;
        uxStatus.DataBind();

        List <Zone> zlist = AttendanceBLL.GetZones();

        uxZoneName.DataSource = zlist;
        uxZoneName.DataBind();


        //List<object> vlist = new List<object>();
        //List<object> elist = new List<object>();
        //for (int i = 1; i <= 100; i++)
        //{
        //    vlist.Add(new { ID = i, Text = i });

        //    if (i <= 20)
        //    {
        //        elist.Add(new { ID = i, Text = i + " years" });
        //    }
        //}

        //uxBast.DataSource = CMSBLL.GetBastList();
        //uxBast.DataBind();

        //uxVacant.DataSource = vlist;
        //uxVacant.DataBind();

        //uxStatus.DataSource = CMSBLL.GetStatusList();
        //uxStatus.DataBind();

        //uxExperience.DataSource = elist;
        //uxExperience.DataBind();

        //uxEducationDegree.DataSource = CMSBLL.GetEducationList();
        //uxEducationDegree.DataBind();

        //uxLocation.DataSource = CMSBLL.GetLocationList(1);
        //uxLocation.DataBind();


        //uxNationality.DataSource = CMSBLL.GetNationalityList();
        //uxNationality.DataBind();

        //uxGender.DataSource = CMSBLL.GetGenderList();
        //uxGender.DataBind();

        //uxFA.DataSource = CMSBLL.GetFunctionalAreaList();
        //uxFA.DataBind();

        //uxStudyField.DataSource = CMSBLL.GetStudyFieldList();
        //uxStudyField.DataBind();


        //uxShortlistCriteria.DataSource = CMSBLL.GetAttributesList();
        //uxShortlistCriteria.DataBind();
    }