/// <summary> /// Function to insert values to Employee Table if not exist employee code /// </summary> /// <param name="employeeinfo"></param> /// <returns></returns> public bool EmployeeAddIfNotExistsEmployeeCode(EmployeeInfo employeeinfo) { bool isSave = false; try { isSave = SPEmployee.EmployeeAddIfNotExistsEmployeeCode(employeeinfo); } catch (Exception ex) { MessageBox.Show("EC5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(isSave); }