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; }
public CustomList <HRM_EmpEmployment> GetAllEmpHistByEmpKey(string EmpKey) { return(HRM_EmpEmployment.GetAllEmpHistByEmpKey(EmpKey)); }
public CustomList <HRM_EmpEmployment> GetAllEmpHistory() { return(HRM_EmpEmployment.GetAllHRM_EmpEmployment()); }