Esempio n. 1
0
    protected void PreencherDetalhesTreinamento()
    {
        objEmployee.EmployeeID = Convert.ToInt32(Request["EmpId"].ToString());
        objEmployee.SelectById();
        lblEmployeeName.Text = objEmployee.Name.ToString();
        lblDesignation.Text  = objEmployee.Designation.ToString();
        lblDegree.Text       = objEmployee.Degree.ToString();
        if (objEmployee.DOJ.CompareTo(Convert.ToDateTime("01/01/1900")) > 0)
        {
            lblDOJ.Text = objEmployee.DOJ.ToString("dd/MM/yyyy");
        }
        else
        {
            lblDOJ.Text = "";
        }
        lblEmpId.Text = "EMP" + objEmployee.EmployeeID.ToString();

        objDepartment.DepartmentId = objEmployee.DepartmentId;
        objDepartment.SelectById();
        lblDeparment.Text = objDepartment.DepartmentName.ToString();

        //Configuração do gridview de treinamento no trabalho
        objTrainings.EmployeeId = Convert.ToInt32(Request["EmpId"].ToString());
        objTrainings.JobType    = 1;
        gvOnJob.DataSource      = objTrainings.SelectByEmployee();
        gvOnJob.DataBind();


        //Configuração do gridview de treinamento fora do trabalho
        objTrainings.EmployeeId = Convert.ToInt32(Request["EmpId"].ToString());
        objTrainings.JobType    = 2;
        gvOffJob.DataSource     = objTrainings.SelectByEmployee();
        gvOffJob.DataBind();
    }
Esempio n. 2
0
    public string getDepartmentName(int DepartmentID)
    {
        objDepartment.DepartmentId = DepartmentID;
        objDepartment.SelectById();

        return(objDepartment.DepartmentName.ToString());
    }
Esempio n. 3
0
 protected void getDepartmentDetails(int DepartmentId)
 {
     objDepartment.DepartmentId = DepartmentId;
     objDepartment.SelectById();
     txtDepartamento.Text = objDepartment.DepartmentName.ToString();
 }