Esempio n. 1
0
 protected void drpFirstReportingDepartment_SelecttedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         int    departmentId = Convert.ToInt16(drpFirstReportingDepartment.SelectedValue);
         string Ocode        = ((SessionUser)Session["SessionUser"]).OCode;
         List <ReportingBoss> personalInfos = objEmp_BLL.GetPersonalInfoes(Ocode, departmentId);
         if (personalInfos.Count > 0)
         {
             ddlReportingTo.DataSource     = personalInfos;
             ddlReportingTo.DataTextField  = "FulllName";
             ddlReportingTo.DataValueField = "EID";
             ddlReportingTo.DataBind();
             ddlReportingTo.Items.Insert(0, new ListItem("--Select--", "0"));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }