protected void btnAdd_Click(object sender, EventArgs e)
        {
            var eh = new HRM_EmpEmployment();

            GetValueFromControl(eh);
            EmpHistList.Add(eh);
        }
        private void GetValueFromControl(HRM_EmpEmployment eh)
        {
            var empKey = Session["EmpKey"].ToString();

            //eh.DateFrom = Convert.ToDateTime(txtFrom.Text);
            //eh.DateTo = Convert.ToDateTime(txtTo.Text);
            //eh.EmpKey = Convert.ToInt64(empKey);
            //eh.EmployerAddr = txtAddress.Text;
            //eh.EmployerName = txtEmpName.Text;
            //eh.JobDesc = txtJobDescription.Text;
            //eh.LastDesigKey = ddlDesignation.SelectedValue.ToInt();
            //eh.Remark = txtRemarks.Text;
        }
Exemple #3
0
 public CustomList <HRM_EmpEmployment> GetAllEmpHistByEmpKey(string EmpKey)
 {
     return(HRM_EmpEmployment.GetAllEmpHistByEmpKey(EmpKey));
 }
Exemple #4
0
 public CustomList <HRM_EmpEmployment> GetAllEmpHistory()
 {
     return(HRM_EmpEmployment.GetAllHRM_EmpEmployment());
 }