Esempio n. 1
0
        private void gethrmemployeeList()
        {
            try
            {
                string OCODE = ((SessionUser)Session["SessionUser"]).OCode;
                List <ReportingBoss> personalInfos = objEmp_BLL.GetPersonalInfoByDepartment(OCODE);
                if (personalInfos.Count > 0)
                {
                    drpdwnApproveSupervisor.DataSource     = personalInfos;
                    drpdwnApproveSupervisor.DataTextField  = "FulllName";
                    drpdwnApproveSupervisor.DataValueField = "EID";
                    drpdwnApproveSupervisor.DataBind();
                    drpdwnApproveSupervisor.Items.Insert(0, new ListItem("--Select--", "0"));

                    drpApprovedAdmin.DataSource     = personalInfos;
                    drpApprovedAdmin.DataTextField  = "FulllName";
                    drpApprovedAdmin.DataValueField = "EID";
                    drpApprovedAdmin.DataBind();
                    drpApprovedAdmin.Items.Insert(0, new ListItem("--Select--", "0"));

                    drpApprovedHR.DataSource     = personalInfos;
                    drpApprovedHR.DataTextField  = "FulllName";
                    drpApprovedHR.DataValueField = "EID";
                    drpApprovedHR.DataBind();
                    drpApprovedHR.Items.Insert(0, new ListItem("--Select--", "0"));
                }
            }
            catch (Exception ex)
            {
            }
        }