/// <summary> /// Function to get the next id for Employee table /// </summary> /// <returns></returns> public int EmployeeGetMax() { int max = 0; try { max = SPEmployee.EmployeeGetMax(); } catch (Exception ex) { MessageBox.Show("EC4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(max); }