private void getApplicantInfo()
        {
            try
            {
                string eid = ((SessionUser)Session["SessionUser"]).EID;
                if (eid != null)
                {
                    EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
                    string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
                    //int eid = Convert.ToInt16(ddlReportingTo.SelectedValue);

                    List <AssignTo> assignTos = new List <AssignTo>();
                    assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
                    foreach (AssignTo assign in assignTos)
                    {
                        lblApplicantId.Text          = ((SessionUser)Session["SessionUser"]).EID;
                        lblApplicantDesignation.Text = assign.DeginationName.ToString();
                        lblApplicantDepartment.Text  = assign.DepartmentName.ToString();
                    }
                    List <HRM_PersonalInformations> personanlInfo1 = employeeBll.getEmpployeeNameById(eid, OCODE);
                    foreach (HRM_PersonalInformations aperson in personanlInfo1)
                    {
                        lblApplicantName.Text = aperson.FirstName + " " + aperson.LastName;
                        //hidReportingBossID.Value = aperson.ReportingBossId.ToString();
                    }
                }
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "func('" + ex.Message + "')", true);
            }
        }
Example #2
0
 private void GetEmployeeInformation(string employeeId)
 {
     try
     {
         EMPOYEE_BLL     employeeBll = new EMPOYEE_BLL();
         string          OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
         string          eid         = employeeId;
         List <AssignTo> assignTos   = new List <AssignTo>();
         assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
         foreach (AssignTo assign in assignTos)
         {
             lblApplicantId.Text          = employeeId.ToString();
             lblApplicantDesignation.Text = assign.DeginationName.ToString();
             lblApplicantDepartment.Text  = assign.DepartmentName.ToString();
             List <HRM_PersonalInformations> personanlInfo = employeeBll.getEmpployeeNameById(eid, OCODE);
             foreach (HRM_PersonalInformations aperson in personanlInfo)
             {
                 lblApplicantName.Text = aperson.FirstName + " " + aperson.LastName;
             }
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
        private void GetEmployeeInfo()
        {
            try
            {
                string eid = ((SessionUser)Session["SessionUser"]).EID;
                if (eid != null)
                {
                    EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
                    string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
                    //int eid = Convert.ToInt16(ddlReportingTo.SelectedValue);

                    List <AssignTo> assignTos = new List <AssignTo>();
                    assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
                    foreach (AssignTo assign in assignTos)
                    {
                        //txtEID.Text = ((SessionUser)Session["SessionUser"]).EID;
                        //txtDesignation.Text = assign.DeginationName.ToString();
                        hdnOfficeID.Value = Convert.ToInt32(assign.OfficeID).ToString();
                        //txtDepartment.Text = assign.DepartmentName.ToString();
                        //hdnDEPT_CODE.Value = assign.DPT_CODE;
                        //ddlDepartment.SelectedItem.Text = assign.DepartmentName.ToString();
                        //ddlDepartment.SelectedValue = assign.DPT_CODE.ToString();
                    }
                }
            }
            catch
            {
            }
        }
Example #4
0
        private void GetEmployeeInfo()
        {
            try
            {
                string eid = ((SessionUser)Session["SessionUser"]).EID;
                if (eid != null)
                {
                    EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
                    string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;

                    List <AssignTo> assignTos = new List <AssignTo>();
                    assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
                    foreach (AssignTo assign in assignTos)
                    {
                        txtEID.Text                 = ((SessionUser)Session["SessionUser"]).EID;
                        txtDesignation.Text         = assign.DeginationName.ToString();
                        hdnOfficeID.Value           = Convert.ToInt32(assign.OfficeID).ToString();
                        ddlDepartment.SelectedValue = assign.DPT_CODE.ToString();
                    }
                    List <HRM_PersonalInformations> personanlInfo = employeeBll.getEmpployeeNameById(eid, OCODE);
                    foreach (HRM_PersonalInformations aperson in personanlInfo)
                    {
                        LoadEmployeeList();
                        ddlEmployee.SelectedValue = aperson.EID;
                        hidReportingBossID.Value  = aperson.ReportingBossId;
                    }
                }
            }

            catch
            {
            }
        }
        private void getApplicantInfo()
        {
            try
            {
                string eid = ((SessionUser)Session["SessionUser"]).EID;
                if (eid != null)
                {
                    EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
                    string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
                    //int eid = Convert.ToInt16(ddlReportingTo.SelectedValue);

                    List <AssignTo> assignTos = new List <AssignTo>();
                    assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
                    foreach (AssignTo assign in assignTos)
                    {
                        lblApplicantId.Text          = ((SessionUser)Session["SessionUser"]).EID;
                        lblApplicantDesignation.Text = assign.DeginationName.ToString();
                        lblApplicantDepartment.Text  = assign.DepartmentName.ToString();
                    }
                    List <HRM_PersonalInformations> personanlInfo = employeeBll.getEmpployeeNameById(eid, OCODE);
                    foreach (HRM_PersonalInformations aperson in personanlInfo)
                    {
                        lblApplicantName.Text = aperson.FirstName + " " + aperson.LastName;
                        //hidReportingBossID.Value = aperson.ReportingBossId.ToString();
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Example #6
0
 private void GetDesignation(string firstReportingBossId)
 {
     try
     {
         EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
         string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
         //int eid = Convert.ToInt16(ddlReportingTo.SelectedValue);
         string          eid       = ddlReportingTo.SelectedValue.ToString();
         List <AssignTo> assignTos = new List <AssignTo>();
         assignTos = employeeBll.GetDesgination(firstReportingBossId, OCODE).ToList();
         foreach (AssignTo assign in assignTos)
         {
             txtRptBossDsg.Text = assign.DeginationName.ToString();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #7
0
 protected void ddlReportingTo_SelecttedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
         string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
         //int eid = Convert.ToInt16(ddlReportingTo.SelectedValue);
         string          eid       = ddlReportingTo.SelectedValue.ToString();
         List <AssignTo> assignTos = new List <AssignTo>();
         assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
         foreach (AssignTo assign in assignTos)
         {
             txtRptBossDsg.Text   = assign.DeginationName.ToString();
             txtbxAssignToId.Text = assign.EID.ToString();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #8
0
        private void GetEmployeeInfo()
        {
            try
            {
                string eid = ((SessionUser)Session["SessionUser"]).EID;
                if (eid != null)
                {
                    EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
                    string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
                    //int eid = Convert.ToInt16(ddlReportingTo.SelectedValue);

                    List <AssignTo> assignTos = new List <AssignTo>();
                    assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
                    foreach (AssignTo assign in assignTos)
                    {
                        //hdnEID.Value = ((SessionUser)Session["SessionUser"]).EID;
                        hdnOfficeID.Value = Convert.ToInt32(assign.OfficeID).ToString();
                        //txtEID.Text = ((SessionUser)Session["SessionUser"]).EID;
                        //txtDesignation.Text = assign.DeginationName.ToString();
                        //txtDepartment.Text = assign.DepartmentName.ToString();
                        //hdnDEPT_CODE.Value = assign.DPT_CODE;
                        //ddlDepartment.SelectedItem.Text = assign.DepartmentName.ToString();
                        //ddlDepartment.SelectedValue = assign.DPT_CODE.ToString();
                    }
                    //List<HRM_PersonalInformations> personanlInfo = employeeBll.getEmpployeeNameById(eid, OCODE);
                    //foreach (HRM_PersonalInformations aperson in personanlInfo)
                    //{
                    //txtEmployee.Text = aperson.FirstName + " " + aperson.LastName;
                    //LoadEmployeeList();
                    //ddlEmployee.SelectedValue = aperson.EID;
                    //hidReportingBossID.Value = aperson.ReportingBossId;
                    //}
                }
            }
            catch
            {
            }
        }
Example #9
0
 protected void txtbxSecondEdit_TextChanged(object sender, EventArgs e)
 {
     try
     {
         EMPOYEE_BLL     employeeBll = new EMPOYEE_BLL();
         string          OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
         string          eid         = txtbxSecondEdit.Text;
         List <AssignTo> assignTos   = new List <AssignTo>();
         assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
         foreach (AssignTo assign in assignTos)
         {
             AllDepartmentForSecondReportingBoss();
             AllReportingBossUseSecondReportingBoss();
             txtbxSecondDesignation.Text           = assign.DeginationName.ToString();
             drpwownSecondDepartmetn.SelectedValue = assign.DepartmentId.ToString();
             drpSecondReportingTo.SelectedValue    = assign.EID;
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #10
0
 protected void txtbxAssignToId_TextChanged(object sender, EventArgs e)
 {
     try
     {
         EMPOYEE_BLL     employeeBll = new EMPOYEE_BLL();
         string          OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
         string          eid         = txtbxAssignToId.Text;
         List <AssignTo> assignTos   = new List <AssignTo>();
         assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
         foreach (AssignTo assign in assignTos)
         {
             allDepartment();
             allReportingBoss();
             txtRptBossDsg.Text = assign.DeginationName.ToString();
             drpFirstReportingDepartment.SelectedValue = assign.DepartmentId.ToString();
             ddlReportingTo.SelectedValue = assign.EID;
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
        private void GetEmployeeInfo()
        {
            try
            {
                string eid = ((SessionUser)Session["SessionUser"]).EID;
                if (eid != null)
                {
                    EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
                    string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;

                    List <AssignTo> assignTos = new List <AssignTo>();
                    assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
                    foreach (AssignTo assign in assignTos)
                    {
                        txtEID.Text = ((SessionUser)Session["SessionUser"]).EID;
                    }
                }
            }

            catch
            {
            }
        }
        private void GetEmployeeInfo()
        {
            try
            {
                string eid = ((SessionUser)Session["SessionUser"]).EID;
                if (eid != null)
                {
                    EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
                    string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
                    //int eid = Convert.ToInt16(ddlReportingTo.SelectedValue);

                    List <AssignTo> assignTos = new List <AssignTo>();
                    assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
                    foreach (AssignTo assign in assignTos)
                    {
                        hdnAdminEID.Value = ((SessionUser)Session["SessionUser"]).EID;
                        hdnOfficeID.Value = Convert.ToInt32(assign.OfficeID).ToString();
                    }
                }
            }
            catch
            {
            }
        }
Example #13
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)
        //    {

        //        throw;
        //    }


        //}

        private void getApplicantInfo()
        {
            try
            {
                string eid = ((SessionUser)Session["SessionUser"]).EID;

                if (eid != null)
                {
                    EMPOYEE_BLL employeeBll = new EMPOYEE_BLL();
                    string      OCODE       = ((SessionUser)Session["SessionUser"]).OCode;
                    //int eid = Convert.ToInt16(ddlReportingTo.SelectedValue);

                    List <AssignTo> assignTos = new List <AssignTo>();
                    assignTos = employeeBll.GetDesgination(eid, OCODE).ToList();
                    foreach (AssignTo assign in assignTos)
                    {
                        txtEid_TRNS.Text    = ((SessionUser)Session["SessionUser"]).EID;
                        txtDesignation.Text = assign.DeginationName.ToString();
                        txtDepartment.Text  = assign.DepartmentName.ToString();
                        string employeeID = Convert.ToString(txtEid_TRNS.Text);
                        Emp_IMG_TR.Visible  = true;
                        Emp_IMG_TR.ImageUrl = "EmployeeIMG.ashx?eId=" + eid + "&oCode=" + OCODE;
                    }
                    List <HRM_PersonalInformations> personanlInfo = employeeBll.getEmpployeeNameById(eid, OCODE);
                    foreach (HRM_PersonalInformations aperson in personanlInfo)
                    {
                        txtEmpName_TRNS.Text = aperson.FirstName + " " + aperson.LastName;
                        //hidReportingBossID.Value = aperson.ReportingBossId.ToString();
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }