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);
            }
        }
Beispiel #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;
     }
 }
Beispiel #3
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 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
            {
            }
        }
        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;
            }
        }
        private void GetEmployeeAttendence()
        {
            EMPOYEE_BLL _employeedetailsbll = new EMPOYEE_BLL();

            try
            {
                string id = ((SessionUser)Session["SessionUser"]).EID;
                HRM_PersonalInformations _employeeDetailsr = _employeedetailsbll.GetEmployeeDetails(id);
                string   status = "All";
                DateTime Date   = DateTime.Now;
                // string StartDate = startdate.ToString("MM/dd/yyyy");
                string StartDate = Date.AddMonths(-1).ToString("MM/dd/yyyy");

                string endDate          = Date.AddDays(-1).ToString("MM/dd/yyyy");
                var    _employeeAttends = _employeedetailsbll.GetEmployeeAttend(id, status, StartDate, endDate);
                if (_employeeAttends != null)
                {
                    lblTotalPresent.Text = _employeeAttends.TotalPresent.ToString();
                    lblTotalAbsent.Text  = _employeeAttends.TotalAbsent.ToString();
                    lblTotalLate.Text    = _employeeAttends.TotalLate.ToString();
                    lblTotalLeave.Text   = _employeeAttends.TotalLeave.ToString();
                    lblTOtlaOt.Text      = _employeeAttends.TotalOT.ToString();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
        private void GetEmployeeDetails()
        {
            EMPOYEE_BLL _employeedetailsbll = new EMPOYEE_BLL();

            try
            {
                string id = ((SessionUser)Session["SessionUser"]).EID;
                HRM_PersonalInformations _employeeDetailsr = _employeedetailsbll.GetEmployeeDetails(id);
                if (_employeeDetailsr != null)
                {
                    lblServiceAge.Text = ServiceDays(_employeeDetailsr);
                    DateTime join = Convert.ToDateTime(_employeeDetailsr.JoiningDate);
                    lblJoinDate.Text = join.ToString("MM/dd/yyyy");

                    DateTime DOB = Convert.ToDateTime(_employeeDetailsr.DateOfBrith);
                    lblDOB.Text = DOB.ToString("MM/dd/yyyy");

                    lblBloodGroup.Text = _employeeDetailsr.BloodGroup.ToString();
                    lblFather.Text     = _employeeDetailsr.FatherName.ToString();
                    lblMother.Text     = _employeeDetailsr.MotherName.ToString();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Beispiel #8
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;
     }
 }
Beispiel #9
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;
     }
 }
Beispiel #10
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
            {
            }
        }
Beispiel #11
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;
     }
 }
Beispiel #12
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
            {
            }
        }
        //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;
            }
        }